8000 Fix smelly tests · python/cpython@d28efe1 · GitHub
[go: up one dir, main page]

Skip to content

Commit d28efe1

Browse files
committed
Fix smelly tests
1 parent 18f69e6 commit d28efe1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Parser/action_helpers.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ _PyPegen_nonparen_genexp_in_call(Parser *p, expr_ty args, asdl_comprehension_seq
11971197

11981198
// Fstring stuff
11991199

1200-
expr_ty
1200+
static expr_ty
12011201
decode_fstring_buffer(Parser *p, int lineno, int col_offset, int end_lineno,
12021202
int end_col_offset)
12031203
{

Parser/tokenizer.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
tok->col_offset = 0;
4545

4646
/* Forward */
47-
struct tok_state *tok_new(void);
47+
static struct tok_state *tok_new(void);
4848
static int tok_nextc(struct tok_state *tok);
4949
static void tok_backup(struct tok_state *tok, int c);
5050
static int syntaxerror(struct tok_state *tok, const char *format, ...);
@@ -55,7 +55,7 @@ static const char* type_comment_prefix = "# type: ";
5555

5656
/* Create and initialize a new tok_state structure */
5757

58-
struct tok_state *
58+
static struct tok_state *
5959
tok_new(void)
6060
{
6161
struct tok_state *tok = (struct tok_state *)PyMem_Malloc(

0 commit comments

Comments
 (0)
0