Skip to content

Commit 1dc76af

Browse files
committed
py: Remove name of var arg from macros with var args.
1 parent c5ac2ac commit 1dc76af

5 files changed

Lines changed: 4 additions & 5 deletions

File tree

py/compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2509,7 +2509,7 @@ STATIC compile_function_t compile_function[] = {
25092509
NULL,
25102510
#define nc NULL
25112511
#define c(f) compile_##f
2512-
#define DEF_RULE(rule, comp, kind, arg...) comp,
2512+
#define DEF_RULE(rule, comp, kind, ...) comp,
25132513
#include "grammar.h"
25142514
#undef nc
25152515
#undef c

py/emitcommon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "runtime0.h"
1414
#include "emit.h"
1515

16-
#define EMIT(fun, arg...) (emit_method_table->fun(emit, ##arg))
16+
#define EMIT(fun, ...) (emit_method_table->fun(emit, __VA_ARGS__))
1717

1818
void emit_common_load_id(emit_t *emit, const emit_method_table_t *emit_method_table, scope_t *scope, qstr qstr) {
1919
// assumes pass is greater than 1, ie that all identifiers are defined in the scope

py/malloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#if 0 // print debugging info
99
#define DEBUG_printf DEBUG_printf
1010
#else // don't print debugging info
11-
#define DEBUG_printf(args...) (void)0
11+
#define DEBUG_printf(...) (void)0
1212
#endif
1313

1414
#if MICROPY_MEM_STATS

py/obj.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ typedef struct _mp_obj_base_t mp_obj_base_t;
7575
// Need to declare this here so we are not dependent on map.h
7676
struct _mp_map_t;
7777
struct _mp_map_elem_t;
78-
enum _mp_map_lookup_kind_t;
7978

8079
// Type definitions for methods
8180

py/qstr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#if 0 // print debugging info
1313
#define DEBUG_printf DEBUG_printf
1414
#else // don't print debugging info
15-
#define DEBUG_printf(args...) (void)0
15+
#define DEBUG_printf(...) (void)0
1616
#endif
1717

1818
// A qstr is an index into the qstr pool.

0 commit comments

Comments
 (0)