VirtualBox

Changeset 34662 in vbox for trunk/src/bldprogs


Ignore:
Timestamp:
Dec 2, 2010 9:51:17 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68464
Message:

Hacking in progress, enclosed in VBOX_ONLY_EXTPACKS_USE_IMPLIBS ifdefs for now.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/deftoimp.sed

    r34625 r34662  
    11# $Id$
    22## @file
    3 # SED script for generating a dummy .so from a windows .def file.
     3# SED script for generating a dummy .c from a windows .def file.
    44#
    55
    66#
    77#
    8 # Copyright (C) 2006-2007 Oracle Corporation
     8# Copyright (C) 2006-2010 Oracle Corporation
    99#
    1010# This file is part of VirtualBox Open Source Edition (OSE), as
     
    1717#
    1818
     19#
     20# Remove comments and space. Skip empty lines.
     21#
    1922s/;.*$//g
    2023s/^[[:space:]][[:space:]]*//g
     
    2730/^$/b end
    2831
     32
     33/[[:space:]]DATA$/b data
     34
     35#
     36# Function export
     37#
     38:code
    2939s/^\(.*\)$/EXPORT\nvoid \1(void);\nvoid \1(void){}/
    3040b end
     41
     42
     43#
     44# Data export
     45#
     46:data
     47s/^\(.*\)[[:space:]]*DATA$/EXPORT_DATA void *\1 = (void *)0;/
     48b end
     49
    3150}
    3251d
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette