41 #define get_label_prefix() "-"
51 #define FIRST_C_LINE_NUMBER (1)
52 #define UNDEFINED_C_LINE_NUMBER (-1)
54 #define CParserError(m) c_parser_error(CURRENT_FUNCTION, m)
55 #define c_parser_user_warning(...) \
56 c_parser_user_warning_func(CURRENT_FUNCTION, __FILE__, __LINE__, __VA_ARGS__)
string get_current_C_comment(void)
Return the current comment as a string to be freed by the caller and reset the current comment.
void reset_expression_comment(void)
we don't want an expression comment with new lines, it is disgracefull
void PushContext(c_parser_context)
c_parser_context GetContextCopy(void)
void remove_LFs_from_C_comment(int)
Remove "extra_LF" trailing LF from C_current_comment if they can be found at the end of the comment s...
entity DynamicArea
These global variables are declared in ri-util/util.c.
c_parser_context GetContext(void)
int get_previous_c_lineno(void)
void push_new_c_parser_scope(void)
void init_c_parser_scope_stack(void)
void reset_token_has_been_seen_p(void)
void discard_C_comment(void)
Discard a C comment because we don't know how to deal with it.
string get_c_parser_current_scope(void)
void set_current_C_line_number(void)
void push_current_C_comment(void)
Push the current C comment so that we can get it back when building the statement later.
void reset_c_parser_scope_stack(void)
void reset_declaration_counter(void)
int get_current_C_line_number(void)
c_parser_context CreateDefaultContext(void)
string get_c_parser_nth_scope(int)
string pop_current_C_comment(void)
Pop the current comment.
int C_line_increment
from "clex.l"
string scope_to_block_scope(string)
Allocate a new string containing only block scope information.
unsigned int character_occurences_in_string(string, char)
Use a stack to survive to file inclusions if any.
void init_C_comment(void)
void reset_current_C_line_number(void)
void push_current_C_line_number(void)
The line number stack, designed for structured control structure, is not used yet.
string GetParentScope(void)
void reset_C_comment(bool)
reset and reset_error should be handled differently
bool c_parser_scope_stack_empty_p(void)
void pop_c_parser_scope_stack(void)
string pop_block_scope(string)
The scope is moved up the scope tree and a NULL is return when there are no more scope to explore.
int c_parser_number_of_scopes(void)
void error_reset_current_C_line_number(void)
void error_reset_C_comment(bool)
int get_previous_C_line_number(void)
Should be called just before get_current_C_line_number.
void force_reset_c_parser_scope_stack(void)
To be used by an error handler.
void clear_C_comment(void)
void update_C_comment(string)
Add a comment to the current one.
int get_declaration_counter(void)
entity GetFunction(void)
cproto workaround
int pop_current_C_line_number(void)
int c_lineno
the file read in by the c_lexer