Skip to content

Commit 60c9c19

Browse files
author
Stefan Reinauer
committed
tokenizer v 1.0.2, contribution by David Paktor <dlpaktor@netscape.net>
git-svn-id: svn://coreboot.org/openbios/fcode-utils@100 f158a5a8-5612-0410-a976-696ce0be7e32
1 parent 487ecdc commit 60c9c19

24 files changed

Lines changed: 1400 additions & 387 deletions

toke/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ STRIP = strip
2929
INCLUDES = -I../shared
3030

3131
# Normal flags
32-
CFLAGS = -O2 -Wall -Wno-pointer-sign -fno-strict-aliasing -DSYS_IS_GNU_Linux
32+
CFLAGS = -O2 -Wall -Wno-pointer-sign -fno-strict-aliasing
3333
LDFLAGS =
3434

3535
# Coverage:

toke/clflags.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ bool verbose_dup_warning = TRUE ;
104104
bool obso_fcode_warning = TRUE ;
105105
bool trace_conditionals = FALSE ;
106106
bool big_end_pci_image_rev = FALSE ;
107+
bool allow_ret_stk_interp = TRUE ;
107108

108109
/* And one to trigger a "help" message */
109110
bool clflag_help = FALSE;
@@ -242,6 +243,11 @@ static const cl_flag_t cl_flags_list[] = {
242243
"Save the Vendor's Rev Level field of the PCI Header"
243244
" in Big-Endian format" } ,
244245

246+
{ "Ret-Stk-Interp",
247+
&allow_ret_stk_interp,
248+
"\t\t",
249+
"Allow Return-Stack Operations during Interpretation" } ,
250+
245251

246252
/* Keep the "help" pseudo-flag last in the list */
247253
{ "help",

toke/clflags.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ extern bool big_end_pci_image_rev;
124124

125125
extern bool force_tokens_case;
126126
extern bool force_lower_case_tokens;
127+
extern bool allow_ret_stk_interp;
127128

128129
extern bool clflag_help;
129130

toke/devnode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ bool exists_in_ancestor( char *m_name)
580580
}
581581
if ( grandpa != NULL )
582582
{
583-
char as_what_buf[32] = "";
583+
char as_what_buf[AS_WHAT_BUF_SIZE] = "";
584584
if ( as_a_what( found->fword_defr, as_what_buf) )
585585
{
586586
strcat( as_what_buf, " ");

0 commit comments

Comments
 (0)