File:  [GCC 2.x] / gcc / cond.awk
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 18:02:29 2018 UTC (8 years, 2 months ago) by root
Branches: fsf, MAIN
CVS tags: gcc-233, HEAD
gcc-2.3.3

# 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 }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.