mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Changes to speed up local variables enormously, by avoiding dictionary
lookup (opcode.h, ceval.[ch], compile.c, frameobject.[ch], pythonrun.c, import.c). The .pyc MAGIC number is changed again. Added get_menu_text to flmodule.
This commit is contained in:
parent
0023078a0b
commit
8b17d6bd89
9 changed files with 245 additions and 71 deletions
|
@ -1200,6 +1200,14 @@ get_menu (g, args)
|
|||
return call_forms_Ri (fl_get_menu, g-> ob_generic, args);
|
||||
}
|
||||
|
||||
static object *
|
||||
get_menu_text (g, args)
|
||||
genericobject *g;
|
||||
object *args;
|
||||
{
|
||||
return call_forms_Rstr (fl_get_menu_text, g-> ob_generic, args);
|
||||
}
|
||||
|
||||
static object *
|
||||
addto_menu (g, args)
|
||||
genericobject *g;
|
||||
|
@ -1211,6 +1219,7 @@ addto_menu (g, args)
|
|||
static struct methodlist menu_methods[] = {
|
||||
{"set_menu", set_menu},
|
||||
{"get_menu", get_menu},
|
||||
{"get_menu_text", get_menu_text},
|
||||
{"addto_menu", addto_menu},
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue