projects
/
plproxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db42060
)
Redefine YYMALLOC/YYFREE instead malloc/free. Its safer.
author
Marko Kreen
<markokr@gmail.com>
Fri, 5 Sep 2008 12:40:56 +0000
(12:40 +0000)
committer
Marko Kreen
<markokr@gmail.com>
Fri, 5 Sep 2008 12:40:56 +0000
(12:40 +0000)
src/parser.y
patch
|
blob
|
blame
|
history
diff --git
a/src/parser.y
b/src/parser.y
index 39184f5cc1994989af89596bbe9fd64e341c4ef0..502b4efef90abad4fdc4b8397905b1c7fe36b348 100644
(file)
--- a/
src/parser.y
+++ b/
src/parser.y
@@
-24,8
+24,8
@@
void plproxy_yy_scan_bytes(const char *bytes, int len);
/* avoid permanent allocations */
-#define
malloc
palloc
-#define
free
pfree
+#define
YYMALLOC
palloc
+#define
YYFREE
pfree
/* remove unused code */
#define YY_LOCATION_PRINT(File, Loc) (0)