#include <unistd.h>
#include <string.h>
#include <strings.h>
#include "cpp_io.h"
#include "cpp_calc.h"
#include "cpp_conv.h"
#include "cpp_macros.h"
#include "cpp_path.h"
#include "cpp_scan.h"
#include "cpp_parse.h"
Functions | |
int | simple_Expression (int fd_in, int fd_out, int fd_err, struct _token *t, struct _macro_list *ml, struct _calc *st) |
parse a simple expression | |
int | defined_Statement (int fd_in, int fd_out, int fd_err, struct _token *t, struct _macro_list *ml, struct _calc *st) |
parse a defined statement | |
int | if_Statement (int fd_in, int fd_out, int fd_err, struct _token *t, struct _macro_list *ml, struct _calc *st) |
parse a if statement | |
int | endif_Statement (int fd_in, int fd_out, int fd_err, struct _token *t, struct _macro_list *ml, struct _calc *st) |
parse a endif statement | |
int | ifdef_Statement (int fd_in, int fd_out, int fd_err, struct _token *t, struct _macro_list *ml, struct _calc *st) |
parse a ifdef statement | |
int | ifndef_Statement (int fd_in, int fd_out, int fd_err, struct _token *t, struct _macro_list *ml, struct _calc *st) |
parse a ifndef statement | |
int | cpp_error (int fd, struct _token *t, char *s1, char *s2) |
write an error message with two strings and a newline to an open file | |
int | cpp_warning (int fd, struct _token *t, char *s1, char *s2) |
write an warning message with two strings and a newline to an open file | |
int | cpp_info (int fd, struct _token *t, char *s1, char *s2) |
write an info message with two strings and a newline to an open file | |
void | calculate (int fd_err, int sym, struct _calc *st) |
calculate expressions using the stack based calculator | |
int | comp_Expression (int fd_in, int fd_out, int fd_err, struct _token *t, struct _macro_list *ml, struct _calc *st) |
parse a logical and expression | |
int | logical_And_Expression (int fd_in, int fd_out, int fd_err, struct _token *t, struct _macro_list *ml, struct _calc *st) |
parse a logical and expression | |
int | logical_Or_Expression (int fd_in, int fd_out, int fd_err, struct _token *t, struct _macro_list *ml, struct _calc *st) |
parse a logical or expression | |
int | factor (int fd_in, int fd_out, int fd_err, struct _token *t, struct _macro_list *ml, struct _calc *st) |
parse a factor | |
int | term (int fd_in, int fd_out, int fd_err, struct _token *t, struct _macro_list *ml, struct _calc *st, int neg) |
parse a term | |
int | elsif_Statement (int fd_in, int fd_out, int fd_err, struct _token *t, struct _macro_list *ml, struct _calc *st) |
parse a elsif statement | |
int | else_Statement (int fd_in, int fd_out, int fd_err, struct _token *t, struct _macro_list *ml, struct _calc *st) |
parse a else statement | |
void | write_line (int fd_out, struct _token *t) |
write the current line number and file name to the output file | |
int | include_Statement (int fd_in, int fd_out, int fd_err, struct _token *t, struct _macro_list *ml, struct _calc *st, struct _include_path *pl) |
parse a include statement | |
int | define_Statement (int fd_in, int fd_out, int fd_err, struct _token *t, struct _macro_list *ml, struct _calc *st) |
parse a define statement | |
int | undef_Statement (int fd_in, int fd_out, int fd_err, struct _token *t, struct _macro_list *ml, struct _calc *st) |
parse a undef statement | |
int | PreProcLine (int fd_in, int fd_out, int fd_err, struct _token *t, struct _macro_list *ml, struct _calc *st, struct _include_path *pl) |
parse a pre-processor line | |
int | cpp_parse (int fd_in, int fd_out, int fd_err, struct _token *t, struct _macro_list *ml, struct _calc *st, struct _include_path *pl) |
the C pre-processor parser |
|
calculate expressions using the stack based calculator
|
|
parse a logical and expression
|
|
write an error message with two strings and a newline to an open file
|
|
write an info message with two strings and a newline to an open file
|
|
the C pre-processor parser
|
|
write an warning message with two strings and a newline to an open file
|
|
parse a define statement
|
|
parse a defined statement
|
|
parse a else statement
|
|
parse a elsif statement
|
|
parse a endif statement
|
|
parse a factor
|
|
parse a if statement
|
|
parse a ifdef statement
|
|
parse a ifndef statement
|
|
parse a include statement
|
|
parse a logical and expression
|
|
parse a logical or expression
|
|
parse a pre-processor line
|
|
parse a simple expression
|
|
parse a term
|
|
parse a undef statement
|
|
write the current line number and file name to the output file
|