diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2016-02-16 14:35:34 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-02-16 14:52:16 +0100 |
commit | 64f27743785e30855b486e4575429192fddaa9eb (patch) | |
tree | b67ab9c4c368a77c3b7c54cd2e0f806bc11b63e1 /src | |
parent | 1cc6c871f9891bbf02d600b7a515d3cad06b0e46 (diff) |
Converted K&R style function definitions to ANSI C style
Consistently make use of the ANSI C function definition style instead of
the K&R style.
Diffstat (limited to 'src')
-rw-r--r-- | src/gen.c | 6 | ||||
-rw-r--r-- | src/misc.c | 3 | ||||
-rw-r--r-- | src/scan.l | 2 |
3 files changed, 4 insertions, 7 deletions
@@ -725,8 +725,7 @@ void genftbl (void) /* Generate the code to find the next compressed-table state. */ -void gen_next_compressed_state (char_map) - char *char_map; +void gen_next_compressed_state (char *char_map) { indent_put2s ("YY_CHAR yy_c = %s;", char_map); @@ -876,8 +875,7 @@ void gen_next_match (void) /* Generate the code to find the next state. */ -void gen_next_state (worry_about_NULs) - int worry_about_NULs; +void gen_next_state (int worry_about_NULs) { /* NOTE - changes in here should be reflected in gen_next_match() */ char char_map[256]; @@ -852,8 +852,7 @@ void skelout (void) * element_n. Formats the output with spaces and carriage returns. */ -void transition_struct_out (element_v, element_n) - int element_v, element_n; +void transition_struct_out (int element_v, int element_n) { /* short circuit any output */ @@ -59,7 +59,7 @@ extern const char *escaped_qstart, *escaped_qend; #define MARK_END_OF_PROLOG mark_prolog(); #define YY_DECL \ - int flexscan() + int flexscan(void) #define RETURNCHAR \ yylval = (unsigned char) yytext[0]; \ |