Main Page | Class List | Directories | File List | Class Members | File Members

cpp_parse.h File Reference

CKPM C pre-processor parser definitions. More...

#include "cpp_token.h"
#include "cpp_calc.h"
#include "cpp_macros.h"

Functions

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
int cpp_error (int fd_err, 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_err, 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_err, struct _token *t, char *s1, char *s2)
 write an info message with two strings and a newline to an open file


Detailed Description

CKPM C pre-processor parser definitions.


Function Documentation

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

Parameters:
fd an already opened file to write to
t the actual token (including line number)
s1 the first string to be written
s2 the second string to be written
Returns:
the response code from write(2)

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

Parameters:
fd an already opened file to write to
t the actual token (including line number)
s1 the first string to be written
s2 the second string to be written
Returns:
the response code from write(2)

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

Parameters:
fd_in file descriptor index of the input file
fd_out file descriptor index of the output file
fd_err file descriptor index of the error output file
t the current token
ml the macro list
st the calculator stack
pl include path list
Returns:
1 on success, otherwise 0

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

Parameters:
fd an already opened file to write to
t the actual token (including line number)
s1 the first string to be written
s2 the second string to be written
Returns:
the response code from write(2)


Generated on Thu Jul 13 03:56:36 2006 for CKPMcc by  doxygen 1.4.4