Fix expressions on Big Endian platforms (issue #5233)

using bison version 1.875d, flex version 2.5.31


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6645 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2005-09-25 17:03:18 +00:00
parent 9804f96c0f
commit 168733a179
3 changed files with 645 additions and 163 deletions

View File

@@ -159,7 +159,10 @@ extern int ast_yylex __P((YYSTYPE *, YYLTYPE *, yyscan_t));
start: expr { ((struct parse_io *)parseio)->val = (struct val *)calloc(sizeof(struct val),1);
((struct parse_io *)parseio)->val->type = $$->type;
((struct parse_io *)parseio)->val->u.s = $$->u.s; }
if( $$->type == AST_EXPR_integer )
((struct parse_io *)parseio)->val->u.i = $$->u.i;
else
((struct parse_io *)parseio)->val->u.s = $$->u.s; }
;
expr: TOKEN { $$= $1;}