hsk-libs-scripts  270
High Speed Karlsruhe XC878 build scripts
Functions
cstrip.awk File Reference

Seperates C instructions into individual lines, streamlining the formatting for parsing in other scripts. More...

Functions

void filter18 ()
 Initialise globals and process command line arguments. More...
 
void filter44 ()
 Accumulate and preprocess files so they become easier to parse. More...
 

Detailed Description

Seperates C instructions into individual lines, streamlining the formatting for parsing in other scripts.

Arguments starting with a dash are passed to each CPP instance, arguments the remaining arguments are treated as file names.

Function Documentation

§ filter18()

void filter18 ( )

Initialise globals and process command line arguments.

The following globals are created:

  • CPP: The C preprocessor to use, either from the environment variable with the same name or the default "cpp"
  • DEBUG: Defaults to the environment variable with the same name
    Precondition
    BEGIN  

§ filter44()

void filter44 ( )

Accumulate and preprocess files so they become easier to parse.

Precondition
!visited[FILENAME]++