Staging
v0.8.1
Revision 72227035fe52ae825dac8760d8505dde64f041bf authored by Benjamin Peterson on 28 May 2009, 03:32:08 UTC, committed by Benjamin Peterson on 28 May 2009, 03:32:08 UTC
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r72977 | benjamin.peterson | 2009-05-27 22:30:13 -0500 (Wed, 27 May 2009) | 9 lines

  Merged revisions 72971 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r72971 | benjamin.peterson | 2009-05-27 22:02:13 -0500 (Wed, 27 May 2009) | 1 line

    switch library reference and language reference
  ........
................
1 parent dc020b1
Raw File
compile.h

#ifndef Py_COMPILE_H
#define Py_COMPILE_H

#include "code.h"

#ifdef __cplusplus
extern "C" {
#endif

/* Public interface */
struct _node; /* Declare the existence of this type */
PyAPI_FUNC(PyCodeObject *) PyNode_Compile(struct _node *, const char *);

/* Future feature support */

typedef struct {
    int ff_features;      /* flags set by future statements */
    int ff_lineno;        /* line number of last future statement */
} PyFutureFeatures;

#define FUTURE_NESTED_SCOPES "nested_scopes"
#define FUTURE_GENERATORS "generators"
#define FUTURE_DIVISION "division"
#define FUTURE_ABSOLUTE_IMPORT "absolute_import"
#define FUTURE_WITH_STATEMENT "with_statement"
#define FUTURE_PRINT_FUNCTION "print_function"
#define FUTURE_UNICODE_LITERALS "unicode_literals"

struct _mod; /* Declare the existence of this type */
PyAPI_FUNC(PyCodeObject *) PyAST_Compile(struct _mod *, const char *,
					PyCompilerFlags *, PyArena *);
PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, const char *);


#ifdef __cplusplus
}
#endif
#endif /* !Py_COMPILE_H */
back to top