summaryrefslogtreecommitdiffstats
path: root/Include/compile.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-11-30 13:40:46 (GMT)
committerGuido van Rossum <guido@python.org>1993-11-30 13:40:46 (GMT)
commit590baa4a7a43b596119b47f605e3e570c2b3b0ee (patch)
tree767cbcf90f5b53bf63be9c2ea9a8081551120f10 /Include/compile.h
parent8732d6aeea250f23af50b772d710109c9ee3bc00 (diff)
downloadcpython-590baa4a7a43b596119b47f605e3e570c2b3b0ee.zip
cpython-590baa4a7a43b596119b47f605e3e570c2b3b0ee.tar.gz
cpython-590baa4a7a43b596119b47f605e3e570c2b3b0ee.tar.bz2
* import.c (get_module): pass .py filename to parse_file, not .pyc filename!
* funcobject.c (func_repr): don't call getstringvalue(None) for anonymous functions. * bltinmodule.c: removed lambda (which is now a built-in function); removed implied lambda for string arg to filter/map/reduce. * Grammar, graminit.[ch], compile.[ch]: replaced lambda as built-in function by lambda as grammar entity: instead of "lambda('x: x+1')" you write "lambda x: x+1". * Xtmodule.c (checkargdict): return 0, not NULL, for error.
Diffstat (limited to 'Include/compile.h')
-rw-r--r--Include/compile.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/Include/compile.h b/Include/compile.h
index 2b0b29e..a23fea1 100644
--- a/Include/compile.h
+++ b/Include/compile.h
@@ -54,12 +54,10 @@ extern typeobject Codetype;
/* Public interface */
struct _node; /* Declare the existence of this type */
-codeobject *_compile PROTO((struct _node *, char *, int));
+codeobject *compile PROTO((struct _node *, char *));
codeobject *newcodeobject
PROTO((object *, object *, object *, object *, object *));
-#define compile(n,f) (_compile((n),(f),0))
-
#ifdef __cplusplus
}
#endif