ARPDAS_QNX6 1.0
|
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <unistd.h>
#include <assert.h>
#include "nortlib.h"
#include "compiler.h"
Go to the source code of this file.
Defines | |
#define | USE_BIN "/bin/use" |
Functions | |
static char * | makeofile (char *in, char *extension) |
FILE * | open_output_file (char *name) |
static void | compile_exit (void) |
int | compile_error (int level, const char *format,...) |
int | yywrap (void) |
void | compile_init_options (int argc, char **argv, char *extension) |
Variables | |
char | rcsid_compiler_c [] = "$Header: /cvsroot/arp-das/nortlib2/src/compiler.c,v 1.10 2009/09/10 17:27:34 ntallen Exp $" |
FILE * | ofile = NULL |
FILE * | yyin |
short | compile_options = CO_IGN_WARN |
char * | input_filename = NULL |
char * | output_filename = NULL |
int | input_linenumber = 0 |
int | error_level = 0 |
ll_of_str | input_files |
#define USE_BIN "/bin/use" |
Definition at line 52 of file compiler.c.
Referenced by compile_init_options().
int compile_error | ( | int | level, |
const char * | format, | ||
... | |||
) |
Definition at line 91 of file compiler.c.
References CO_IGN_WARN, compile_options, error_level, input_filename, input_linenumber, and nl_verror().
Referenced by compile_init_options(), and yywrap().
static void compile_exit | ( | void | ) | [static] |
Definition at line 83 of file compiler.c.
References CO_KEEP_OUTPUT, compile_options, error_level, ofile, and output_filename.
Referenced by compile_init_options().
void compile_init_options | ( | int | argc, |
char ** | argv, | ||
char * | extension | ||
) |
Definition at line 125 of file compiler.c.
References CO_IGN_WARN, CO_KEEP_OUTPUT, compile_error(), compile_exit(), compile_options, input_filename, llos_enq(), makeofile(), nl_debug_level, ofile, open_output_file(), opt_string, OPTIND_RESET, output_filename, USE_BIN, and yywrap().
static char* makeofile | ( | char * | in, |
char * | extension | ||
) | [static] |
Definition at line 55 of file compiler.c.
References assert.
Referenced by compile_init_options().
FILE* open_output_file | ( | char * | name | ) |
Definition at line 73 of file compiler.c.
References nl_error.
Referenced by compile_init_options().
int yywrap | ( | void | ) |
Definition at line 109 of file compiler.c.
References compile_error(), input_filename, input_linenumber, llos_deq(), open_input_file(), and yyin.
Referenced by compile_init_options().
short compile_options = CO_IGN_WARN |
Definition at line 42 of file compiler.c.
Referenced by compile_error(), compile_exit(), and compile_init_options().
int error_level = 0 |
Definition at line 46 of file compiler.c.
Referenced by compile_error(), and compile_exit().
char* input_filename = NULL |
Definition at line 43 of file compiler.c.
Referenced by compile_error(), compile_init_options(), and yywrap().
Definition at line 47 of file compiler.c.
int input_linenumber = 0 |
Definition at line 45 of file compiler.c.
Referenced by compile_error(), and yywrap().
FILE* ofile = NULL |
Definition at line 40 of file compiler.c.
Referenced by compile_exit(), and compile_init_options().
char* output_filename = NULL |
Definition at line 44 of file compiler.c.
Referenced by compile_exit(), and compile_init_options().
char rcsid_compiler_c[] = "$Header: /cvsroot/arp-das/nortlib2/src/compiler.c,v 1.10 2009/09/10 17:27:34 ntallen Exp $" |
Definition at line 10 of file compiler.c.