~ubuntu-branches/ubuntu/natty/python3.2/natty-security

« back to all changes in this revision

Viewing changes to Include/parsetok.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2011-01-16 18:09:56 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20110116180956-yf91p6ode1z6lsi1
Tags: 3.2~rc1-0ubuntu1
Python 3.2 release candidate 1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
typedef struct {
11
11
    int error;
12
 
    const char *filename;
 
12
    const char *filename;       /* decoded from the filesystem encoding */
13
13
    int lineno;
14
14
    int offset;
15
 
    char *text;
 
15
    char *text;                 /* UTF-8-encoded string */
16
16
    int token;
17
17
    int expected;
18
18
} perrdetail;
39
39
 
40
40
PyAPI_FUNC(node *) PyParser_ParseStringFlags(const char *, grammar *, int,
41
41
                                              perrdetail *, int);
42
 
PyAPI_FUNC(node *) PyParser_ParseFileFlags(FILE *, const char *, 
 
42
PyAPI_FUNC(node *) PyParser_ParseFileFlags(FILE *, const char *,
43
43
                                           const char*, grammar *,
44
44
                                                 int, char *, char *,
45
45
                                                 perrdetail *, int);
46
 
PyAPI_FUNC(node *) PyParser_ParseFileFlagsEx(FILE *, const char *,
47
 
                                           const char*, grammar *,
48
 
                                                 int, char *, char *,
49
 
                                                 perrdetail *, int *);
 
46
PyAPI_FUNC(node *) PyParser_ParseFileFlagsEx(
 
47
    FILE *fp,
 
48
    const char *filename,       /* decoded from the filesystem encoding */
 
49
    const char *enc,
 
50
    grammar *g,
 
51
    int start,
 
52
    char *ps1,
 
53
    char *ps2,
 
54
    perrdetail *err_ret,
 
55
    int *flags);
50
56
 
51
57
PyAPI_FUNC(node *) PyParser_ParseStringFlagsFilename(const char *,
52
58
                                              const char *,
53
59
                                              grammar *, int,
54
60
                                              perrdetail *, int);
55
 
PyAPI_FUNC(node *) PyParser_ParseStringFlagsFilenameEx(const char *,
56
 
                                              const char *,
57
 
                                              grammar *, int,
58
 
                                              perrdetail *, int *);
 
61
PyAPI_FUNC(node *) PyParser_ParseStringFlagsFilenameEx(
 
62
    const char *s,
 
63
    const char *filename,       /* decoded from the filesystem encoding */
 
64
    grammar *g,
 
65
    int start,
 
66
    perrdetail *err_ret,
 
67
    int *flags);
59
68
 
60
69
/* Note that he following function is defined in pythonrun.c not parsetok.c. */
61
70
PyAPI_FUNC(void) PyParser_SetError(perrdetail *);