Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
639ce065
Commit
639ce065
authored
Jun 29, 2013
by
Olivier Bertrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Release storage allocated by flex
modified: storage/connect/fmdlex.c
parent
b8d6f973
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
storage/connect/fmdlex.c
storage/connect/fmdlex.c
+12
-13
No files found.
storage/connect/fmdlex.c
View file @
639ce065
...
@@ -20,11 +20,9 @@
...
@@ -20,11 +20,9 @@
*/
*/
#define FLEX_SCANNER
#define FLEX_SCANNER
#if WIN32
#if WIN32
#define __STDC__ 1
#define __STDC__ 1
#endif
#endif
#include <stdio.h>
#include <stdio.h>
...
@@ -47,7 +45,7 @@
...
@@ -47,7 +45,7 @@
/* The "const" storage-class-modifier is valid. */
/* The "const" storage-class-modifier is valid. */
#define YY_USE_CONST
#define YY_USE_CONST
#else
/* ! __cplusplus */
#else
/* ! __cplusplus */
#ifdef __STDC__
#ifdef __STDC__
...
@@ -131,7 +129,7 @@ extern "C" {
...
@@ -131,7 +129,7 @@ extern "C" {
* int a single C statement (which needs a semi-colon terminator). This
* int a single C statement (which needs a semi-colon terminator). This
* avoids problems with code like:
* avoids problems with code like:
*
*
*
if ( condition_holds )
* if ( condition_holds )
* yyless( 5 );
* yyless( 5 );
* else
* else
* do_something_else();
* do_something_else();
...
@@ -161,7 +159,7 @@ struct yy_buffer_state
...
@@ -161,7 +159,7 @@ struct yy_buffer_state
FILE
*
yy_input_file
;
FILE
*
yy_input_file
;
char
*
yy_ch_buf
;
/* input buffer */
char
*
yy_ch_buf
;
/* input buffer */
char
*
yy_buf_pos
;
/* current position in input buffer */
char
*
yy_buf_pos
;
/* current position in input buffer */
/* Size of input buffer in bytes, not including room for EOB
/* Size of input buffer in bytes, not including room for EOB
* characters.
* characters.
...
@@ -220,7 +218,7 @@ int yyleng;
...
@@ -220,7 +218,7 @@ int yyleng;
/* Points to current character in buffer. */
/* Points to current character in buffer. */
static
char
*
yy_c_buf_p
=
(
char
*
)
0
;
static
char
*
yy_c_buf_p
=
(
char
*
)
0
;
static
int
yy_init
=
1
;
/* whether we need to initialize */
static
int
yy_init
=
1
;
/* whether we need to initialize */
static
int
yy_start
=
0
;
/* start state number */
static
int
yy_start
=
0
;
/* start state number */
/* Flag which is used to allow yywrap()'s to do buffer switches
/* Flag which is used to allow yywrap()'s to do buffer switches
...
@@ -520,10 +518,7 @@ YY_DECL
...
@@ -520,10 +518,7 @@ YY_DECL
if
(
pp
->
InFmt
)
{
*
pp
->
InFmt
=
'\0'
;
pp
->
InFmt
[
pp
->
Outsize
-
1
]
=
'\0'
;
}
if
(
pp
->
InFmt
)
{
*
pp
->
InFmt
=
'\0'
;
pp
->
InFmt
[
pp
->
Outsize
-
1
]
=
'\0'
;
}
if
(
pp
->
OutFmt
)
{
*
pp
->
OutFmt
=
'\0'
;
pp
->
OutFmt
[
pp
->
Outsize
-
1
]
=
'\0'
;
}
if
(
pp
->
OutFmt
)
{
*
pp
->
OutFmt
=
'\0'
;
pp
->
OutFmt
[
pp
->
Outsize
-
1
]
=
'\0'
;
}
pp
->
Curp
=
pp
->
Format
;
pp
->
Curp
=
pp
->
Format
;
if
(
!
yy_init
)
{
/* Restart that stupid Flex otherwise parsing last input */
yy_init
=
1
;
/* This is a new input */
yy_init_buffer
(
yy_current_buffer
,
yyin
);
yy_load_buffer_state
();
}
// endif yy_init
if
(
yy_init
)
if
(
yy_init
)
...
@@ -533,7 +528,7 @@ YY_DECL
...
@@ -533,7 +528,7 @@ YY_DECL
#endif
#endif
if
(
!
yy_start
)
if
(
!
yy_start
)
yy_start
=
1
;
/* first start state */
yy_start
=
1
;
/* first start state */
if
(
!
yyin
)
if
(
!
yyin
)
yyin
=
stdin
;
yyin
=
stdin
;
...
@@ -552,7 +547,7 @@ YY_DECL
...
@@ -552,7 +547,7 @@ YY_DECL
yy_init
=
0
;
yy_init
=
0
;
}
}
while
(
1
)
/* loops until end-of-file is reached */
while
(
1
)
/* loops until end-of-file is reached */
{
{
yy_cp
=
yy_c_buf_p
;
yy_cp
=
yy_c_buf_p
;
...
@@ -1114,7 +1109,7 @@ static int input()
...
@@ -1114,7 +1109,7 @@ static int input()
}
}
c
=
*
(
unsigned
char
*
)
yy_c_buf_p
;
/* cast for 8-bit char's */
c
=
*
(
unsigned
char
*
)
yy_c_buf_p
;
/* cast for 8-bit char's */
*
yy_c_buf_p
=
'\0'
;
/* preserve yytext */
*
yy_c_buf_p
=
'\0'
;
/* preserve yytext */
yy_hold_char
=
*++
yy_c_buf_p
;
yy_hold_char
=
*++
yy_c_buf_p
;
return
c
;
return
c
;
...
@@ -1520,6 +1515,10 @@ void Quotout(char *text)
...
@@ -1520,6 +1515,10 @@ void Quotout(char *text)
int
yywrap
(
void
)
int
yywrap
(
void
)
{
{
/* Avoid memory leak */
if
(
yy_current_buffer
)
yy_delete_buffer
(
yy_current_buffer
);
return
1
;
return
1
;
}
/* end of yywrap */
}
/* end of yywrap */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment