@@ -52,7 +52,7 @@ void opstack_push(var_t *var)
5252 operand_stack [operand_stack_idx ++ ] = var ;
5353}
5454
55- var_t * opstack_pop ()
55+ var_t * opstack_pop (void )
5656{
5757 return operand_stack [-- operand_stack_idx ];
5858}
@@ -123,7 +123,7 @@ int get_unary_operator_prio(opcode_t op)
123123 }
124124}
125125
126- opcode_t get_operator ()
126+ opcode_t get_operator (void )
127127{
128128 opcode_t op = OP_generic ;
129129 if (lex_accept (T_plus ))
@@ -194,7 +194,7 @@ int read_numeric_constant(char buffer[])
194194 return value ;
195195}
196196
197- int read_constant_expr_operand ()
197+ int read_constant_expr_operand (void )
198198{
199199 char buffer [MAX_ID_LEN ];
200200 int value ;
@@ -326,15 +326,15 @@ int read_constant_infix_expr(int precedence)
326326 return lhs ;
327327}
328328
329- int read_constant_expr ()
329+ int read_constant_expr (void )
330330{
331331 return read_constant_infix_expr (0 );
332332}
333333
334334/* Skips lines where preprocessor match is false, this will stop once next
335335 * token is either 'T_cppd_elif', 'T_cppd_else' or 'cppd_endif'.
336336 */
337- void cppd_control_flow_skip_lines ()
337+ void cppd_control_flow_skip_lines (void )
338338{
339339 while (!lex_peek (T_cppd_elif , NULL ) && !lex_peek (T_cppd_else , NULL ) &&
340340 !lex_peek (T_cppd_endif , NULL )) {
@@ -349,7 +349,7 @@ void check_def(char *alias, bool expected)
349349 preproc_match = true;
350350}
351351
352- void read_defined_macro ()
352+ void read_defined_macro (void )
353353{
354354 char lookup_alias [MAX_TOKEN_LEN ];
355355
@@ -364,7 +364,7 @@ void read_defined_macro()
364364/* read preprocessor directive at each potential positions: e.g.,
365365 * global statement / body statement
366366 */
367- bool read_preproc_directive ()
367+ bool read_preproc_directive (void )
368368{
369369 char token [MAX_ID_LEN ];
370370
@@ -1816,7 +1816,7 @@ bool read_body_assignment(char *token,
18161816 return false;
18171817}
18181818
1819- int read_primary_constant ()
1819+ int read_primary_constant (void )
18201820{
18211821 /* return signed constant */
18221822 int isneg = 0 , res ;
@@ -2681,7 +2681,7 @@ void read_global_decl(block_t *block)
26812681 error ("Syntax error in global declaration" );
26822682}
26832683
2684- void read_global_statement ()
2684+ void read_global_statement (void )
26852685{
26862686 char token [MAX_ID_LEN ];
26872687 block_t * block = BLOCKS .head ; /* global block */
@@ -2799,7 +2799,7 @@ void read_global_statement()
27992799 error ("Syntax error in global statement" );
28002800}
28012801
2802- void parse_internal ()
2802+ void parse_internal (void )
28032803{
28042804 /* set starting point of global stack manually */
28052805 GLOBAL_FUNC = add_func ("" , true);
0 commit comments