ARPDAS_QNX6 1.0
Defines | Functions | Variables
compiler.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <unistd.h>
#include <assert.h>
#include "nortlib.h"
#include "compiler.h"
Include dependency graph for compiler.c:

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 Documentation

#define USE_BIN   "/bin/use"

Definition at line 52 of file compiler.c.

Referenced by compile_init_options().


Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

void compile_init_options ( int  argc,
char **  argv,
char *  extension 
)
static char* makeofile ( char *  in,
char *  extension 
) [static]

Definition at line 55 of file compiler.c.

References assert.

Referenced by compile_init_options().

Here is the caller graph for this function:

FILE* open_output_file ( char *  name)

Definition at line 73 of file compiler.c.

References nl_error.

Referenced by compile_init_options().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

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.

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.

FILE* yyin

Definition at line 4 of file yyin.c.

Referenced by yywrap().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines