ARPDAS_QNX6 1.0
compiler.h
Go to the documentation of this file.
00001 /* compiler.h
00002  * $Log: compiler.h,v $
00003  * Revision 1.4  2009/09/10 17:27:34  ntallen
00004  * Another const char
00005  *
00006  * Revision 1.3  2001/12/04 15:06:04  nort
00007  * Debugging, etc.
00008  *
00009  * Revision 1.2  2001/10/05 21:03:49  nort
00010  * Updated compiler.h to fix prototype.
00011  * Removed Makefile.in
00012  *
00013  * Revision 1.1  1994/08/02 15:34:58  nort
00014  * Initial revision
00015  *
00016  */
00017 #ifndef _COMPILER_H_INCLUDED
00018 #define _COMPILER_H_INCLUDED
00019 
00020 #include <stdio.h>
00021 #include "ll_of_str.h"
00022 
00023 extern FILE *ofile, *yyin;
00024 extern char *input_filename, *output_filename;
00025 extern int input_linenumber, error_level;
00026 extern char *opt_string;
00027 extern ll_of_str input_files;
00028 
00029 #define OPT_COMPILER_INIT "qkwvo:"
00030 
00031 /* CO_IGN_WARN and CO_KEEP_OUTPUT are common. CO_CUSTOM provides
00032    a hook for other options. Any bits higher than CO_CUSTOM are
00033    available for an individual developer.
00034 */
00035 extern short compile_options;
00036 #define CO_IGN_WARN 1
00037 #define CO_KEEP_OUTPUT 2
00038 #define CO_CUSTOM 4
00039 
00040 #ifdef __cplusplus
00041 extern "C" {
00042 #endif
00043 
00044 int compile_error(int level, const char *format, ...);
00045 FILE *open_output_file(char *name);
00046 FILE *open_input_file(char *name);
00047 void compile_init_options(int argc, char **argv, char *extension);
00048 #ifdef yywrap
00049   #undef yywrap
00050 #endif
00051 int yywrap(void);
00052 int yylex(void);
00053 int yyparse(void);
00054 extern int yydebug;
00055 
00056 #ifdef __cplusplus
00057 };
00058 #endif
00059 
00060 #if defined __386__
00061 #  pragma library (nortlib3r)
00062 #elif defined __SMALL__
00063 #  pragma library (nortlibs)
00064 #elif defined __COMPACT__
00065 #  pragma library (nortlibc)
00066 #elif defined __MEDIUM__
00067 #  pragma library (nortlibm)
00068 #elif defined __LARGE__
00069 #  pragma library (nortlibl)
00070 #endif
00071 
00072 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines