]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
this update to Makefile corrects how ast_expr2f.c should be generated
authorSteve Murphy <murf@digium.com>
Tue, 23 Oct 2007 20:22:25 +0000 (20:22 +0000)
committerSteve Murphy <murf@digium.com>
Tue, 23 Oct 2007 20:22:25 +0000 (20:22 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@86881 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/Makefile

index dd2c97e4051edf518d22d155ec43b7f56f4a15a0..10353da39f71887b6004af03500a3687ff3eb3e2 100644 (file)
@@ -106,6 +106,8 @@ ast_expr2.c ast_expr2.h:
 
 ast_expr2f.c:
        flex -o $@ --full ast_expr2.fl
+       sed 's@free( (char \*) ptr );@if(ptr) free( (char *) ptr );@' ast_expr2f.c > zz
+       mv zz ast_expr2f.c
 
 testexpr2: ast_expr2f.c ast_expr2.c ast_expr2.h
        $(CC) -g -c -Iinclude -DSTANDALONE ast_expr2f.c