Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 60fe499

Browse files
author
Victor Stinner
committed
Compile pgenmain.c and printgrammar.c with PGEN defined
1 parent 251cc84 commit 60fe499

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Parser/pgenmain.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
- check for duplicate definitions of names (instead of fatal err)
1414
*/
1515

16+
#define PGEN
17+
1618
#include "Python.h"
1719
#include "pgenheaders.h"
1820
#include "grammar.h"

Parser/printgrammar.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
/* Print a bunch of C initializers that represent a grammar */
33

4+
#define PGEN
5+
46
#include "pgenheaders.h"
57
#include "grammar.h"
68

0 commit comments

Comments
 (0)