Skip to content

Commit

Permalink
imported peg-0.1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
gpakosz committed Dec 23, 2013
1 parent 6012e75 commit 2acf83a
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 19 deletions.
8 changes: 8 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2013-12-18 piumarta <com -dot- gmail -at- piumarta (backwards)>

* src/version.h: 0.1.15

* src/compile.c: YY_FREE takes context and pointer as arguments.

* YYRELEASE: Pass yyctx and pointer to YY_FREE.

2013-12-01 Ian Piumarta <com -dot- gmail -at- piumarta (backwards)>

* src/version.h: 0.1.14
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ distribute them any way you like.

## Version history

* **0.1.15** ([zip](../../archive/0.1.15.zip), [tar.gz](../../archive/0.1.15.tar.gz)) &mdash; 2013-12-17
Calls to `YY_FREE` fixed (thanks to Andrew Dunham).
* **0.1.14** ([zip](../../archive/0.1.14.zip), [tar.gz](../../archive/0.1.14.tar.gz)) &mdash; 2013-12-01
Documentation typos fixed (thanks to Giulio Paci).
* **0.1.13** ([zip](../../archive/0.1.13.zip), [tar.gz](../../archive/0.1.13.tar.gz)) &mdash; 2013-08-16
Expand Down
12 changes: 6 additions & 6 deletions src/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* THE SOFTWARE IS PROVIDED 'AS IS'. USE ENTIRELY AT YOUR OWN RISK.
*
* Last edited: 2013-08-16 00:58:47 by piumarta on emilia
* Last edited: 2013-12-18 10:09:42 by piumarta on linux32
*/

#include <stdio.h>
Expand Down Expand Up @@ -406,7 +406,7 @@ static char *preamble= "\
#define YY_REALLOC(C, P, N) realloc(P, N)\n\
#endif\n\
#ifndef YY_FREE\n\
#define YY_FREE free\n\
#define YY_FREE(C, P) free(P)\n\
#endif\n\
#ifndef YY_LOCAL\n\
#define YY_LOCAL(T) static T\n\
Expand Down Expand Up @@ -709,10 +709,10 @@ YY_PARSE(yycontext *) YYRELEASE(yycontext *yyctx)\n\
if (yyctx->__buflen)\n\
{\n\
yyctx->__buflen= 0;\n\
YY_FREE(yyctx->__buf);\n\
YY_FREE(yyctx->__text);\n\
YY_FREE(yyctx->__thunks);\n\
YY_FREE(yyctx->__vals);\n\
YY_FREE(yyctx, yyctx->__buf);\n\
YY_FREE(yyctx, yyctx->__text);\n\
YY_FREE(yyctx, yyctx->__thunks);\n\
YY_FREE(yyctx, yyctx->__vals);\n\
}\n\
return yyctx;\n\
}\n\
Expand Down
12 changes: 6 additions & 6 deletions src/leg.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* A recursive-descent parser generated by peg 0.1.14 */
/* A recursive-descent parser generated by peg 0.1.15 */

#include <stdio.h>
#include <stdlib.h>
Expand Down Expand Up @@ -53,7 +53,7 @@
#define YY_REALLOC(C, P, N) realloc(P, N)
#endif
#ifndef YY_FREE
#define YY_FREE free
#define YY_FREE(C, P) free(P)
#endif
#ifndef YY_LOCAL
#define YY_LOCAL(T) static T
Expand Down Expand Up @@ -1269,10 +1269,10 @@ YY_PARSE(yycontext *) YYRELEASE(yycontext *yyctx)
if (yyctx->__buflen)
{
yyctx->__buflen= 0;
YY_FREE(yyctx->__buf);
YY_FREE(yyctx->__text);
YY_FREE(yyctx->__thunks);
YY_FREE(yyctx->__vals);
YY_FREE(yyctx, yyctx->__buf);
YY_FREE(yyctx, yyctx->__text);
YY_FREE(yyctx, yyctx->__thunks);
YY_FREE(yyctx, yyctx->__vals);
}
return yyctx;
}
Expand Down
12 changes: 6 additions & 6 deletions src/peg.peg-c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* A recursive-descent parser generated by peg 0.1.14 */
/* A recursive-descent parser generated by peg 0.1.15 */

#include <stdio.h>
#include <stdlib.h>
Expand All @@ -11,7 +11,7 @@
#define YY_REALLOC(C, P, N) realloc(P, N)
#endif
#ifndef YY_FREE
#define YY_FREE free
#define YY_FREE(C, P) free(P)
#endif
#ifndef YY_LOCAL
#define YY_LOCAL(T) static T
Expand Down Expand Up @@ -1057,10 +1057,10 @@ YY_PARSE(yycontext *) YYRELEASE(yycontext *yyctx)
if (yyctx->__buflen)
{
yyctx->__buflen= 0;
YY_FREE(yyctx->__buf);
YY_FREE(yyctx->__text);
YY_FREE(yyctx->__thunks);
YY_FREE(yyctx->__vals);
YY_FREE(yyctx, yyctx->__buf);
YY_FREE(yyctx, yyctx->__text);
YY_FREE(yyctx, yyctx->__thunks);
YY_FREE(yyctx, yyctx->__vals);
}
return yyctx;
}
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#define PEG_MAJOR 0
#define PEG_MINOR 1
#define PEG_LEVEL 14
#define PEG_LEVEL 15

0 comments on commit 2acf83a

Please sign in to comment.