@@ -426,36 +426,36 @@ static PyMethodDef GccMethods[] = {
426
426
/* Options: */
427
427
{"get_option_list" ,
428
428
PyGcc_get_option_list ,
429
- METH_VARARGS ,
429
+ METH_NOARGS ,
430
430
"Get all command-line options, as a list of gcc.Option instances" },
431
431
432
432
{"get_option_dict" ,
433
433
PyGcc_get_option_dict ,
434
- METH_VARARGS ,
434
+ METH_NOARGS ,
435
435
("Get all command-line options, as a dict from command-line text strings "
436
436
"to gcc.Option instances" )},
437
437
438
- {"get_parameters" , PyGcc_get_parameters , METH_VARARGS ,
438
+ {"get_parameters" , PyGcc_get_parameters , METH_NOARGS ,
439
439
"Get all tunable GCC parameters. Returns a dictionary, mapping from"
440
440
"option name -> gcc.Parameter instance" },
441
441
442
- {"get_variables" , PyGcc_get_variables , METH_VARARGS ,
442
+ {"get_variables" , PyGcc_get_variables , METH_NOARGS ,
443
443
"Get all variables in this compilation unit as a list of gcc.Variable" },
444
444
445
445
{"maybe_get_identifier" , PyGcc_maybe_get_identifier , METH_VARARGS ,
446
446
"Get the gcc.IdentifierNode with this name, if it exists, otherwise None" },
447
447
448
- {"get_translation_units" , PyGcc_get_translation_units , METH_VARARGS ,
448
+ {"get_translation_units" , PyGcc_get_translation_units , METH_NOARGS ,
449
449
"Get a list of all gcc.TranslationUnitDecl" },
450
450
451
- {"get_global_namespace" , PyGcc_get_global_namespace , METH_VARARGS ,
451
+ {"get_global_namespace" , PyGcc_get_global_namespace , METH_NOARGS ,
452
452
"C++: get the global namespace (aka '::') as a gcc.NamespaceDecl" },
453
453
454
454
/* Version handling: */
455
- {"get_plugin_gcc_version" , PyGcc_get_plugin_gcc_version , METH_VARARGS ,
455
+ {"get_plugin_gcc_version" , PyGcc_get_plugin_gcc_version , METH_NOARGS ,
456
456
"Get the gcc.Version that this plugin was compiled with" },
457
457
458
- {"get_gcc_version" , PyGcc_get_gcc_version , METH_VARARGS ,
458
+ {"get_gcc_version" , PyGcc_get_gcc_version , METH_NOARGS ,
459
459
"Get the gcc.Version for this version of GCC" },
460
460
461
461
{"get_callgraph_nodes" , PyGcc_get_callgraph_nodes , METH_VARARGS ,
@@ -475,10 +475,10 @@ static PyMethodDef GccMethods[] = {
475
475
"Determine whether or not we're being invoked during link-time optimization" },
476
476
477
477
/* Garbage collection */
478
- {"_force_garbage_collection" , PyGcc__force_garbage_collection , METH_VARARGS ,
478
+ {"_force_garbage_collection" , PyGcc__force_garbage_collection , METH_NOARGS ,
479
479
"Forcibly trigger a single run of GCC's garbage collector" },
480
480
481
- {"_gc_selftest" , PyGcc__gc_selftest , METH_VARARGS ,
481
+ {"_gc_selftest" , PyGcc__gc_selftest , METH_NOARGS ,
482
482
"Run a garbage-collection selftest" },
483
483
484
484
/* Sentinel: */
0 commit comments