[Python-checkins] python/dist/src/Python newcompile.c, 1.1.2.103,
1.1.2.104
bcannon at users.sourceforge.net
bcannon at users.sourceforge.net
Mon Mar 21 20:27:45 CET 2005
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29116/Python
Modified Files:
Tag: ast-branch
newcompile.c
Log Message:
Fix MSVC project files and removed a forward declaration of a static array to
allow building on Windows.
Closes patch #742621. Thanks logistix.
Index: newcompile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/newcompile.c,v
retrieving revision 1.1.2.103
retrieving revision 1.1.2.104
diff -u -d -r1.1.2.103 -r1.1.2.104
--- newcompile.c 19 Feb 2005 03:42:35 -0000 1.1.2.103
+++ newcompile.c 21 Mar 2005 19:27:42 -0000 1.1.2.104
@@ -190,7 +190,154 @@
static PyCodeObject *assemble(struct compiler *, int addNone);
-static char *opnames[];
+
+static char *opnames[] = {
+ "STOP_CODE",
+ "POP_TOP",
+ "ROT_TWO",
+ "ROT_THREE",
+ "DUP_TOP",
+ "ROT_FOUR",
+ "<6>",
+ "<7>",
+ "<8>",
+ "<9>",
+ "UNARY_POSITIVE",
+ "UNARY_NEGATIVE",
+ "UNARY_NOT",
+ "UNARY_CONVERT",
+ "<14>",
+ "UNARY_INVERT",
+ "<16>",
+ "<17>",
+ "<18>",
+ "BINARY_POWER",
+ "BINARY_MULTIPLY",
+ "BINARY_DIVIDE",
+ "BINARY_MODULO",
+ "BINARY_ADD",
+ "BINARY_SUBTRACT",
+ "BINARY_SUBSCR",
+ "BINARY_FLOOR_DIVIDE",
+ "BINARY_TRUE_DIVIDE",
+ "INPLACE_FLOOR_DIVIDE",
+ "INPLACE_TRUE_DIVIDE",
+ "SLICE+0",
+ "SLICE+1",
+ "SLICE+2",
+ "SLICE+3",
+ "<34>",
+ "<35>",
+ "<36>",
+ "<37>",
+ "<38>",
+ "<39>",
+ "STORE_SLICE+0",
+ "STORE_SLICE+1",
+ "STORE_SLICE+2",
+ "STORE_SLICE+3",
+ "<44>",
+ "<45>",
+ "<46>",
+ "<47>",
+ "<48>",
+ "<49>",
+ "DELETE_SLICE+0",
+ "DELETE_SLICE+1",
+ "DELETE_SLICE+2",
+ "DELETE_SLICE+3",
+ "<54>",
+ "INPLACE_ADD",
+ "INPLACE_SUBTRACT",
+ "INPLACE_MULTIPLY",
+ "INPLACE_DIVIDE",
+ "INPLACE_MODULO",
+ "STORE_SUBSCR",
+ "DELETE_SUBSCR",
+ "BINARY_LSHIFT",
+ "BINARY_RSHIFT",
+ "BINARY_AND",
+ "BINARY_XOR",
+ "BINARY_OR",
+ "INPLACE_POWER",
+ "GET_ITER",
+ "<69>",
+ "PRINT_EXPR",
+ "PRINT_ITEM",
+ "PRINT_NEWLINE",
+ "PRINT_ITEM_TO",
+ "PRINT_NEWLINE_TO",
+ "INPLACE_LSHIFT",
+ "INPLACE_RSHIFT",
+ "INPLACE_AND",
+ "INPLACE_XOR",
+ "INPLACE_OR",
+ "BREAK_LOOP",
+ "<81>",
+ "LOAD_LOCALS",
+ "RETURN_VALUE",
+ "IMPORT_STAR",
+ "EXEC_STMT",
+ "YIELD_VALUE",
+ "POP_BLOCK",
+ "END_FINALLY",
+ "BUILD_CLASS",
+ "STORE_NAME",
+ "DELETE_NAME",
+ "UNPACK_SEQUENCE",
+ "FOR_ITER",
+ "<94>",
+ "STORE_ATTR",
+ "DELETE_ATTR",
+ "STORE_GLOBAL",
+ "DELETE_GLOBAL",
+ "DUP_TOPX",
+ "LOAD_CONST",
+ "LOAD_NAME",
+ "BUILD_TUPLE",
+ "BUILD_LIST",
+ "BUILD_MAP",
+ "LOAD_ATTR",
+ "COMPARE_OP",
+ "IMPORT_NAME",
+ "IMPORT_FROM",
+ "<109>",
+ "JUMP_FORWARD",
+ "JUMP_IF_FALSE",
+ "JUMP_IF_TRUE",
+ "JUMP_ABSOLUTE",
+ "<114>",
+ "<115>",
+ "LOAD_GLOBAL",
+ "<117>",
+ "<118>",
+ "CONTINUE_LOOP",
+ "SETUP_LOOP",
+ "SETUP_EXCEPT",
+ "SETUP_FINALLY",
+ "<123>",
+ "LOAD_FAST",
+ "STORE_FAST",
+ "DELETE_FAST",
+ "<127>",
+ "<128>",
+ "<129>",
+ "RAISE_VARARGS",
+ "CALL_FUNCTION",
+ "MAKE_FUNCTION",
+ "BUILD_SLICE",
+ "MAKE_CLOSURE",
+ "LOAD_CLOSURE",
+ "LOAD_DEREF",
+ "STORE_DEREF",
+ "<138>",
+ "<139>",
+ "CALL_FUNCTION_VAR",
+ "CALL_FUNCTION_KW",
+ "CALL_FUNCTION_VAR_KW",
+ "EXTENDED_ARG",
+};
+
static PyObject *__doc__;
PyObject *
@@ -3310,149 +3457,4 @@
return co;
}
-static char *opnames[] = {
- "STOP_CODE",
- "POP_TOP",
- "ROT_TWO",
- "ROT_THREE",
- "DUP_TOP",
- "ROT_FOUR",
- "<6>",
- "<7>",
- "<8>",
- "<9>",
- "UNARY_POSITIVE",
- "UNARY_NEGATIVE",
- "UNARY_NOT",
- "UNARY_CONVERT",
- "<14>",
- "UNARY_INVERT",
- "<16>",
- "<17>",
- "<18>",
- "BINARY_POWER",
- "BINARY_MULTIPLY",
- "BINARY_DIVIDE",
- "BINARY_MODULO",
- "BINARY_ADD",
- "BINARY_SUBTRACT",
- "BINARY_SUBSCR",
- "BINARY_FLOOR_DIVIDE",
- "BINARY_TRUE_DIVIDE",
- "INPLACE_FLOOR_DIVIDE",
- "INPLACE_TRUE_DIVIDE",
- "SLICE+0",
- "SLICE+1",
- "SLICE+2",
- "SLICE+3",
- "<34>",
- "<35>",
- "<36>",
- "<37>",
- "<38>",
- "<39>",
- "STORE_SLICE+0",
- "STORE_SLICE+1",
- "STORE_SLICE+2",
- "STORE_SLICE+3",
- "<44>",
- "<45>",
- "<46>",
- "<47>",
- "<48>",
- "<49>",
- "DELETE_SLICE+0",
- "DELETE_SLICE+1",
- "DELETE_SLICE+2",
- "DELETE_SLICE+3",
- "<54>",
- "INPLACE_ADD",
- "INPLACE_SUBTRACT",
- "INPLACE_MULTIPLY",
- "INPLACE_DIVIDE",
- "INPLACE_MODULO",
- "STORE_SUBSCR",
- "DELETE_SUBSCR",
- "BINARY_LSHIFT",
- "BINARY_RSHIFT",
- "BINARY_AND",
- "BINARY_XOR",
- "BINARY_OR",
- "INPLACE_POWER",
- "GET_ITER",
- "<69>",
- "PRINT_EXPR",
- "PRINT_ITEM",
- "PRINT_NEWLINE",
- "PRINT_ITEM_TO",
- "PRINT_NEWLINE_TO",
- "INPLACE_LSHIFT",
- "INPLACE_RSHIFT",
- "INPLACE_AND",
- "INPLACE_XOR",
- "INPLACE_OR",
- "BREAK_LOOP",
- "<81>",
- "LOAD_LOCALS",
- "RETURN_VALUE",
- "IMPORT_STAR",
- "EXEC_STMT",
- "YIELD_VALUE",
- "POP_BLOCK",
- "END_FINALLY",
- "BUILD_CLASS",
- "STORE_NAME",
- "DELETE_NAME",
- "UNPACK_SEQUENCE",
- "FOR_ITER",
- "<94>",
- "STORE_ATTR",
- "DELETE_ATTR",
- "STORE_GLOBAL",
- "DELETE_GLOBAL",
- "DUP_TOPX",
- "LOAD_CONST",
- "LOAD_NAME",
- "BUILD_TUPLE",
- "BUILD_LIST",
- "BUILD_MAP",
- "LOAD_ATTR",
- "COMPARE_OP",
- "IMPORT_NAME",
- "IMPORT_FROM",
- "<109>",
- "JUMP_FORWARD",
- "JUMP_IF_FALSE",
- "JUMP_IF_TRUE",
- "JUMP_ABSOLUTE",
- "<114>",
- "<115>",
- "LOAD_GLOBAL",
- "<117>",
- "<118>",
- "CONTINUE_LOOP",
- "SETUP_LOOP",
- "SETUP_EXCEPT",
- "SETUP_FINALLY",
- "<123>",
- "LOAD_FAST",
- "STORE_FAST",
- "DELETE_FAST",
- "<127>",
- "<128>",
- "<129>",
- "RAISE_VARARGS",
- "CALL_FUNCTION",
- "MAKE_FUNCTION",
- "BUILD_SLICE",
- "MAKE_CLOSURE",
- "LOAD_CLOSURE",
- "LOAD_DEREF",
- "STORE_DEREF",
- "<138>",
- "<139>",
- "CALL_FUNCTION_VAR",
- "CALL_FUNCTION_KW",
- "CALL_FUNCTION_VAR_KW",
- "EXTENDED_ARG",
-};
+
More information about the Python-checkins
mailing list