PostgreSQL Source Code: src/include/fe_utils/psqlscan_int.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44#ifndef PSQLSCAN_INT_H

45#define PSQLSCAN_INT_H

46

48

49

50

51

52

53

54#ifndef YY_TYPEDEF_YY_BUFFER_STATE

55#define YY_TYPEDEF_YY_BUFFER_STATE

57#endif

58#ifndef YY_TYPEDEF_YY_SCANNER_T

59#define YY_TYPEDEF_YY_SCANNER_T

61#endif

62

63

64

65

66

67

68

70{

72 char *bufstring;

73 char *origstring;

74 char *varname;

77

78

79

80

81

82

83

85{

87

89

91

92

93

94

95

97 char *scanbuf;

98 const char *scanline;

99

100

101 int encoding;

103 bool std_strings;

104 const char *curline;

105 const char *refline;

106

107

108 int cur_line_no;

109 const char *cur_line_ptr;

110

111

112

113

114

115

116 int start_state;

118 int paren_depth;

119 int xcdepth;

120 char *dolqstart;

121

122

123

124

125

127 char identifiers[4];

129

130

131

132

133

137

138

139

140

141

142

144 const char *newstr, const char *varname);

148 const char *varname);

150 const char *txt, int len,

151 char **txtcopy);

154 const char *txt, int len);

156 const char *txt, int len,

159 const char *txt, int len);

160

161#endif

void psqlscan_escape_variable(PsqlScanState state, const char *txt, int len, PsqlScanQuoteType quote)

struct StackElem StackElem

YY_BUFFER_STATE psqlscan_prepare_buffer(PsqlScanState state, const char *txt, int len, char **txtcopy)

void psqlscan_select_top_buffer(PsqlScanState state)

struct PsqlScanStateData PsqlScanStateData

void psqlscan_emit(PsqlScanState state, const char *txt, int len)

struct yy_buffer_state * YY_BUFFER_STATE

char * psqlscan_extract_substring(PsqlScanState state, const char *txt, int len)

void psqlscan_push_new_buffer(PsqlScanState state, const char *newstr, const char *varname)

void psqlscan_pop_buffer_stack(PsqlScanState state)

void psqlscan_test_variable(PsqlScanState state, const char *txt, int len)

bool psqlscan_var_is_current_source(PsqlScanState state, const char *varname)

const PsqlScanCallbacks * callbacks

const char * cur_line_ptr

YY_BUFFER_STATE scanbufhandle

int state_before_str_stop