diff options
author | Guido van Rossum <guido@python.org> | 1993-03-30 13:18:41 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-03-30 13:18:41 +0000 |
commit | 3873f1e038949ace69247ae135948a40aead9022 (patch) | |
tree | 674feb40cdd451a756a56c60928aced4f9dd943b /Modules/flmodule.c | |
parent | 58f83893d2a6424253f1e3714db2357044981fea (diff) | |
download | cpython-3873f1e038949ace69247ae135948a40aead9022.tar.gz |
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.
Diffstat (limited to 'Modules/flmodule.c')
-rw-r--r-- | Modules/flmodule.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/flmodule.c b/Modules/flmodule.c index 00cf12c7fd..3d424d1fe6 100644 --- a/Modules/flmodule.c +++ b/Modules/flmodule.c @@ -1201,6 +1201,14 @@ get_menu (g, 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; object *args; @@ -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 */ }; |