Skip to content

Commit b613995

Browse files
committed
Make some structs private
1 parent 9254d52 commit b613995

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

Zend/zend_language_scanner.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,6 @@ typedef struct _zend_lex_state {
6161
zend_arena *ast_arena;
6262
} zend_lex_state;
6363

64-
typedef struct _zend_heredoc_label {
65-
char *label;
66-
int length;
67-
int indentation;
68-
bool indentation_uses_spaces;
69-
} zend_heredoc_label;
70-
71-
/* Track locations of unclosed {, [, (, etc. for better syntax error reporting */
72-
typedef struct _zend_nest_location {
73-
char text;
74-
uint32_t lineno;
75-
} zend_nest_location;
76-
7764
BEGIN_EXTERN_C()
7865
ZEND_API void zend_save_lexical_state(zend_lex_state *lex_state);
7966
ZEND_API void zend_restore_lexical_state(zend_lex_state *lex_state);

Zend/zend_language_scanner.l

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,19 @@
4848
#include "zend_exceptions.h"
4949
#include "zend_virtual_cwd.h"
5050

51+
typedef struct _zend_heredoc_label {
52+
char *label;
53+
int length;
54+
int indentation;
55+
bool indentation_uses_spaces;
56+
} zend_heredoc_label;
57+
58+
/* Track locations of unclosed {, [, (, etc. for better syntax error reporting */
59+
typedef struct _zend_nest_location {
60+
char text;
61+
uint32_t lineno;
62+
} zend_nest_location;
63+
5164
#define YYCTYPE unsigned char
5265
#define YYFILL(n) { if ((YYCURSOR + n) >= (YYLIMIT + ZEND_MMAP_AHEAD)) { return 0; } }
5366
#define YYCURSOR SCNG(yy_cursor)

0 commit comments

Comments
 (0)