mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-26 06:26:41 +00:00
ael: Regenerate lexers and parsers.
Various changes to ensure that the lexers and parsers can be correctly generated when REBUILD_PARSERS is enabled. Some notes: * Because of the version of flex we are using to generate the lexers (2.5.35) some post-processing in the Makefile is still required. * The generated lexers do not contain the problematic C99 check that was being replaced by the call to sed in the respective Makefiles so it was removed. * Since these files are generated, they will include trailing whitespace in some places. This does not need to be corrected. Change-Id: Ibbd343606fcf5c0d285b1599e6e8e59f514f2e4e
This commit is contained in:
committed by
Friendly Automation
parent
7dc73c8151
commit
acd1513111
@@ -40,13 +40,10 @@ else
|
||||
ael/ael_lex.c:
|
||||
endif
|
||||
$(ECHO_PREFIX) echo " [FLEX] $< -> $@"
|
||||
$(CMD_PREFIX) (cd ael; $(FLEX) ael.flex)
|
||||
$(CMD_PREFIX) sed 's@#if __STDC_VERSION__ >= 199901L@#if !defined __STDC_VERSION__ || __STDC_VERSION__ >= 199901L@' $@ > $@.fix
|
||||
$(CMD_PREFIX) echo "#define ASTMM_LIBC ASTMM_REDIRECT" > $@
|
||||
$(CMD_PREFIX) echo "#include \"asterisk.h\"" >> $@
|
||||
$(CMD_PREFIX) echo >> $@
|
||||
$(CMD_PREFIX) cat $@.fix >> $@
|
||||
$(CMD_PREFIX) rm $@.fix
|
||||
$(CMD_PREFIX) $(FLEX) -t ael/ael.flex >> $@
|
||||
|
||||
ifneq ($(findstring REBUILD_PARSERS,$(MENUSELECT_CFLAGS)),)
|
||||
ael/ael.tab.c ael/ael.tab.h: ael/ael.y
|
||||
|
||||
Reference in New Issue
Block a user