home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 7
/
FreshFishVol7.bin
/
bbs
/
gnu
/
gcc-2.3.3-src.lha
/
GNU
/
src
/
amiga
/
gcc-2.3.3
/
cond.awk
< prev
next >
Wrap
Text File
|
1994-02-06
|
410b
|
11 lines
# Simpleminded conditional-processor awk script
# to permit use of a single .y source file for C and Objective C.
# If objc=1, the ifobjc conditionals succeed.
# If objc=0, the ifc conditionals succeed.
/^ifobjc$/,/^end ifobjc$/ \
{ if (objc != 0 && $0 != "ifobjc" && $0 != "end ifobjc") print; next }
/^ifc$/,/^end ifc$/ \
{ if (objc == 0 && $0 != "ifc" && $0 != "end ifc") print; next }
{ print }