8000 Fix build - remove extern's and fix tok_new decl · python/cpython@39257a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 39257a0

Browse files
committed
Fix build - remove extern's and fix tok_new decl
1 parent 99a2b40 commit 39257a0

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Parser/lexer/lexer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
int update_fstring_expr(struct tok_state *tok, char cur);
77

8-
extern int _PyTokenizer_Get(struct tok_state *, struct token *);
8+
int _PyTokenizer_Get(struct tok_state *, struct token *);
99

1010
#endif

Parser/lexer 8000 /state.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ int type_comment_token_setup(struct tok_state *tok, struct token *token, int typ
132132
int end_col_offset, const char *start, const char *end);
133133
int token_setup(struct tok_state *tok, struct token *token, int type, const char *start, const char *end);
134134

135-
extern struct tok_state *tok_new();
136-
extern void _PyTokenizer_Free(struct tok_state *);
137-
extern void _PyToken_Free(struct token *);
138-
extern void _PyToken_Init(struct token *);
135+
struct tok_state *tok_new(void);
136+
void _PyTokenizer_Free(struct tok_state *);
137+
void _PyToken_Free(struct token *);
138+
void _PyToken_Init(struct token *);
139139

140140

141141
#endif

Parser/tokenizer/tokenizer.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
#include "Python.h"
55

6-
extern struct tok_state *_PyTokenizer_FromString(const char *, int, int);
7-
extern struct tok_state *_PyTokenizer_FromUTF8(const char *, int, int);
8-
extern struct tok_state *_PyTokenizer_FromReadline(PyObject*, const char*, int, int);
9-
extern struct tok_state *_PyTokenizer_FromFile(FILE *, const char*,
6+
struct tok_state *_PyTokenizer_FromString(const char *, int, int);
7+
struct tok_state *_PyTokenizer_FromUTF8(const char *, int, int);
8+
struct tok_state *_PyTokenizer_FromReadline(PyObject*, const char*, int, int);
9+
struct tok_state *_PyTokenizer_FromFile(FILE *, const char*,
1010
const char *, const char *);
1111

1212
#define tok_dump _Py_tok_dump

0 commit comments

Comments
 (0)
0