@@ -108,7 +108,7 @@ void opstack_push(var_t *var)
108108 operand_stack [operand_stack_idx ++ ] = var ;
109109}
110110
111- var_t * opstack_pop ()
111+ var_t * opstack_pop (void )
112112{
113113 return operand_stack [-- operand_stack_idx ];
114114}
@@ -179,7 +179,7 @@ int get_unary_operator_prio(opcode_t op)
179179 }
180180}
181181
182- opcode_t get_operator ()
182+ opcode_t get_operator (void )
183183{
184184 opcode_t op = OP_generic ;
185185 if (lex_accept (T_plus ))
@@ -317,7 +317,7 @@ int read_numeric_constant(char buffer[])
317317 return value ;
318318}
319319
320- int read_constant_expr_operand ()
320+ int read_constant_expr_operand (void )
321321{
322322 char buffer [MAX_ID_LEN ];
323323 int value ;
@@ -449,15 +449,15 @@ int read_constant_infix_expr(int precedence)
449449 return lhs ;
450450}
451451
452- int read_constant_expr ()
452+ int read_constant_expr (void )
453453{
454454 return read_constant_infix_expr (0 );
455455}
456456
457457/* Skips lines where preprocessor match is false, this will stop once next
458458 * token is either 'T_cppd_elif', 'T_cppd_else' or 'cppd_endif'.
459459 */
460- void cppd_control_flow_skip_lines ()
460+ void cppd_control_flow_skip_lines (void )
461461{
462462 while (!lex_peek (T_cppd_elif , NULL ) && !lex_peek (T_cppd_else , NULL ) &&
463463 !lex_peek (T_cppd_endif , NULL )) {
@@ -472,7 +472,7 @@ void check_def(char *alias, bool expected)
472472 preproc_match = true;
473473}
474474
475- void read_defined_macro ()
475+ void read_defined_macro (void )
476476{
477477 char lookup_alias [MAX_TOKEN_LEN ];
478478
@@ -487,7 +487,7 @@ void read_defined_macro()
487487/* read preprocessor directive at each potential positions: e.g.,
488488 * global statement / body statement
489489 */
490- bool read_preproc_directive ()
490+ bool read_preproc_directive (void )
491491{
492492 char token [MAX_ID_LEN ];
493493
@@ -1969,7 +1969,7 @@ bool read_body_assignment(char *token,
19691969 return false;
19701970}
19711971
1972- int read_primary_constant ()
1972+ int read_primary_constant (void )
19731973{
19741974 /* return signed constant */
19751975 int isneg = 0 , res ;
@@ -2834,7 +2834,7 @@ void read_global_decl(block_t *block)
28342834 error ("Syntax error in global declaration" );
28352835}
28362836
2837- void read_global_statement ()
2837+ void read_global_statement (void )
28382838{
28392839 char token [MAX_ID_LEN ];
28402840 block_t * block = GLOBAL_BLOCK ; /* global block */
@@ -2953,7 +2953,7 @@ void read_global_statement()
29532953 error ("Syntax error in global statement" );
29542954}
29552955
2956- void parse_internal ()
2956+ void parse_internal (void )
29572957{
29582958 /* set starting point of global stack manually */
29592959 GLOBAL_FUNC = add_func ("" , true);
0 commit comments