unifdef man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

unifdef(1)							    unifdef(1)

NAME
       unifdef - remove preprocessor lines

SYNOPSIS
       sym] sym] sym] sym]] ...	 [file]

DESCRIPTION
       simulates  some of the actions of in interpreting C language preproces‐
       sor command lines (see cpp(1)).	For a valid preprocessor command  line
       contains as its first character a and one of the following keywords: or
       The character and its associated keyword must appear on the same	 line,
       but  they  can  be separated by spaces, tabs, and commented text.  When
       appropriate, the portions of code surrounded by and including the  tar‐
       geted  preprocessor  directives	are removed, and the resultant text is
       written to the standard output.

       Unlike does not insert included files, interpret macros, or strip  com‐
       ment  lines.  This means, among other things, that and macros occurring
       within the input text are not interpreted.

       Since is language-independent, it can be	 used  for  processing	source
       files  for  languages  other  than the C language.  For example, can be
       used on FORTRAN language source files, provided	the  C	language  pre‐
       processor commands are used.

   Options
       recognizes the following command-line options:

	      Complement  the  normal  behavior	 by printing only the rejected
	      lines.

	      Ignore text delimited by
			  sym.	In other words, text that would	 otherwise  be
			  affected  by	some  action is not touched when found
			  within the context of a preprocessor	command	 using
			  sym.

	      Ignore text delimited by
			  sym.

	      Replace rejected lines with blank lines
			  in the text written to the standard output.

	      Treat the input source as plain text.
			  C-language  comment  and  quoting constructs are not
			  recognized.

	      Define symbol
			  sym.

	      Cause symbol
			  sym to be undefined.

RETURN VALUE
       The command returns the following exit values:

	      0		  Output is an exact copy of the input.

	      1		  Output is not	 an  exact copy of the input.

	      2		  The command fails.  The failure might be  due	 to  a
			  premature EOF or to an inappropriate or

EXAMPLES
       Assume file contains the following:

       The command sequence:

       produces the following result in file

WARNINGS
       Any  symbol  name  defined in the file must be specified in the command
       line; otherwise, will ignore the line.

AUTHOR
       was developed in the public domain.

SEE ALSO
       cpp(1).

								    unifdef(1)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net