forked from chiphackers/covered
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpplexer.l
executable file
·748 lines (580 loc) · 19.5 KB
/
pplexer.l
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
%{
/*
Copyright (c) 2006-2010 Trevor Williams
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program;
if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*!
\file pplexer.c
\author Trevor Williams ([email protected])
\date 12/2/2001
\brief Preprocessor lexer for Verilog language
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <ctype.h>
#include "defines.h"
#include "util.h"
#include "tree.h"
#include "obfuscate.h"
#define yylval PPVLlval
#define YYDEBUG 1
extern str_link* inc_paths_head;
extern char user_msg[USER_MSG_LENGTH];
/*!
Contains state before entering comment block.
*/
static int comment_enter;
static void def_match();
static void def_start();
static int def_is_done();
static void def_finish();
static void def_undefine();
static void do_define();
static int is_defined( const char* name );
static void include_filename();
static void do_include();
static int yywrap();
struct include_stack_t {
char* path;
FILE* file; /*!< If the current input is the file, this member is set. */
const char* str; /*!< If we are reparsing a macro expansion, file is 0 and
this member points to the the string in progress */
unsigned lineno;
YY_BUFFER_STATE yybs;
struct include_stack_t* next;
};
static struct include_stack_t* istack = 0;
static struct include_stack_t* standby = 0;
%}
%option stack
%x ATTRIBUTE
%x LCOMMENT
%x CCOMMENT
%x PCOMMENT
%x CSTRING
%x DEFINE
%x INCLUDE
%x ERROR_LINE
%x PROTECTED
%x IFDEF_FALSE
%s IFDEF_TRUE
%x IFDEF_SUPR
%x ELSIF_FALSE
%x PPTIMESCALE
WSPACE [ \t\b\f]+
%%
/* Whitespace -- we ignore this */
[ \t\b\f\r] { ECHO; }
/* Newline character - blank line -- we ignore these */
\n { istack->lineno += 1; ECHO; }
/* Make sure that we don't treat SLIST code as an attribute */
"("{WSPACE}*"*"{WSPACE}*")" { ECHO; }
/* Attribute -- we only perform define substitution within strings */
"(*" { comment_enter = YY_START; BEGIN( ATTRIBUTE ); ECHO; }
<ATTRIBUTE>`[a-zA-Z_][a-zA-Z0-9_]* { def_match(); }
<ATTRIBUTE>. { ECHO; }
<ATTRIBUTE>\n { istack->lineno += 1; ECHO; }
<ATTRIBUTE>"*)" { BEGIN( comment_enter ); ECHO; }
/* Single-line comment -- we ignore this information */
"//".* { comment_enter = YY_START; BEGIN( LCOMMENT ); ECHO; }
<LCOMMENT>. { ECHO; }
<LCOMMENT>\n { istack->lineno += 1; BEGIN( comment_enter ); ECHO; }
/* Multi-line comment */
"/*" { comment_enter = YY_START; BEGIN( CCOMMENT ); ECHO; }
<CCOMMENT>. { ECHO; }
<CCOMMENT>\n { istack->lineno += 1; ECHO; }
<CCOMMENT>"*/" { BEGIN( comment_enter ); ECHO; }
/* C-style strings */
\" { comment_enter = YY_START; BEGIN( CSTRING ); ECHO; }
<CSTRING>\\\" { ECHO; }
<CSTRING>\n { istack->lineno += 1; ECHO; }
<CSTRING>\" { BEGIN( comment_enter ); ECHO; }
<CSTRING>. { ECHO; }
/* Include directive */
^{WSPACE}?`include { yy_push_state( INCLUDE ); }
<INCLUDE>\"[^\"]*\" { include_filename(); }
<INCLUDE>[ \t\b\f] { ; }
<INCLUDE>"//".* { ; }
<INCLUDE>\n {
istack->lineno += 1;
yy_pop_state();
do_include();
}
<INCLUDE>\r\n {
istack->lineno += 1;
yy_pop_state();
do_include();
}
<INCLUDE>\n\r {
istack->lineno += 1;
yy_pop_state();
do_include();
}
<INCLUDE>. {
unsigned int rv = snprintf( user_msg, USER_MSG_LENGTH, "malformed `include directive, line %u, \"%s\"", istack->lineno, obf_file( istack->path ) );
assert( rv < USER_MSG_LENGTH );
print_output( user_msg, FATAL, __FILE__, __LINE__ );
BEGIN( ERROR_LINE );
}
/* Define directive */
`define{WSPACE}[a-zA-Z_][a-zA-Z0-9_]*{WSPACE} {
yy_push_state( DEFINE );
def_start();
}
`define{WSPACE}[a-zA-Z_][a-zA-Z0-9_]* {
yy_push_state( DEFINE );
def_start();
}
<DEFINE>.* {
do_define();
}
<DEFINE>(\n|"\r\n"|"\n\r") {
int rv;
if( def_is_done() ) {
def_finish();
istack->lineno += 1;
yy_pop_state();
}
rv = fputc( '\n', yyout );
assert( rv == '\n' );
}
/* Undefine directive */
`undef{WSPACE}[a-zA-Z_][a-zA-Z0-9_]*{WSPACE}?.* {
def_undefine();
}
/* ifdef directive */
`ifdef{WSPACE}[a-zA-Z_][a-zA-Z0-9_]* {
char* name = strchr( yytext, '`' );
assert( name );
name += 6;
name += strspn( name, " \t\b\f" );
name[ strcspn( name, " \t\b\f" ) ] = '\0';
if( is_defined( name ) ) {
yy_push_state( IFDEF_TRUE );
} else {
yy_push_state( IFDEF_FALSE );
}
}
/* ifndef directive */
`ifndef{WSPACE}[a-zA-Z_][a-zA-Z0-9_]* {
char* name = strchr( yytext, '`' );
assert( name );
name += 7;
name += strspn( name, " \t\b\f" );
name[ strcspn( name, " \t\b\f" ) ] = '\0';
if( !is_defined( name ) ) {
yy_push_state( IFDEF_TRUE );
} else {
yy_push_state( IFDEF_FALSE );
}
}
/* elsif directive after unused block */
<IFDEF_FALSE>`elsif{WSPACE}[a-zA-Z_][a-zA-Z0-9_]* {
char* name = strchr( yytext, '`' );
assert( name );
name += 6;
name += strspn( name, " \t\b\f" );
name[ strcspn( name, " \t\b\f" ) ] = '\0';
if( is_defined( name ) ) {
BEGIN( IFDEF_TRUE );
} else {
BEGIN( IFDEF_FALSE );
}
}
/* nested ifdef directive in unused block */
<IFDEF_FALSE,IFDEF_SUPR>^{WSPACE}?`ifdef{WSPACE}.* { yy_push_state( IFDEF_SUPR ); }
/* nested ifndef directive in unused block */
<IFDEF_FALSE,IFDEF_SUPR>^{WSPACE}?`ifndef{WSPACE}.* { yy_push_state( IFDEF_SUPR ); }
/* elsif directive after used block */
<IFDEF_TRUE,ELSIF_FALSE>^{WSPACE}?`elsif{WSPACE}.* { BEGIN( ELSIF_FALSE ); }
/* else directive after used block */
<IFDEF_TRUE>^{WSPACE}?`else.* { BEGIN( IFDEF_FALSE ); }
/* else directive after unused if block */
<IFDEF_FALSE>^{WSPACE}?`else.* { BEGIN( IFDEF_TRUE ); }
/* else directive after unused elsif block */
<ELSIF_FALSE>^{WSPACE}?`else.* { BEGIN( IFDEF_FALSE ); }
/* elsif directive in unused block */
<IFDEF_SUPR>^{WSPACE}?`elsif.* { }
/* else directive in unused block */
<IFDEF_SUPR>^{WSPACE}?`else.* { }
/* ignore anything in an unused block */
<IFDEF_FALSE,IFDEF_SUPR,ELSIF_FALSE>. { }
/* increment the line number when in an unused block and a newline is seen */
<IFDEF_FALSE,IFDEF_SUPR,ELSIF_FALSE>\n {
int rv;
istack->lineno += 1;
rv = fputc( '\n', yyout );
assert( rv == '\n' );
}
/* endif directive */
<IFDEF_FALSE,IFDEF_TRUE,IFDEF_SUPR,ELSIF_FALSE>^{WSPACE}?`endif.* { yy_pop_state(); }
/* Timescale directive -- we ignore this information */
`timescale { comment_enter = YY_START; BEGIN( PPTIMESCALE ); ECHO; }
<PPTIMESCALE>. { ECHO; }
<PPTIMESCALE>\n {
int rv;
istack->lineno += 1;
BEGIN( comment_enter );
rv = fputc( '\n', yyout );
assert( rv == '\n' );
}
/* For protected code, we need to completely ignore this information until a endprotected is seen */
`protected.* { yy_push_state( PROTECTED ); ECHO; }
<PROTECTED>. { ECHO; }
<PROTECTED>\n { istack->lineno += 1; }
<PROTECTED>`endprotected.* { yy_pop_state(); }
/* Miscellaneous directives -- we ignore this information */
`celldefine{WSPACE}?.* { ECHO; }
`default_nettype{WSPACE}?.* { ECHO; }
`delay_mode_distributed{WSPACE}?.* { ECHO; }
`delay_mode_unit{WSPACE}?.* { ECHO; }
`delay_mode_path{WSPACE}?.* { ECHO; }
`disable_portfaults{WSPACE}?.* { ECHO; }
`enable_portfaults{WSPACE}?.* { ECHO; }
`endcelldefine{WSPACE}?.* { ECHO; }
`nosuppress_faults{WSPACE}?.* { ECHO; }
`nounconnected_drive{WSPACE}?.* { ECHO; }
`resetall{WSPACE}?.* { ECHO; }
`suppress_faults{WSPACE}?.* { ECHO; }
`unconnected_drive{WSPACE}?.* { ECHO; }
`uselib{WSPACE}?.* { ECHO; }
`line{WSPACE}?.* { ECHO; }
/* Macro identifier */
`[a-zA-Z_][a-zA-Z0-9_]* { def_match(); }
/* Handle lines with errors */
<ERROR_LINE>.* { yy_pop_state(); }
/* Final catchall */
. { ECHO; }
%%
/*!
Define table.
*/
tnode* def_table = NULL;
/*!
Specifies if the current definition is complete or that the next line is a
continuation of the current definition.
*/
static int define_continue_flag = 0;
/*!
String that contains the current definition value.
*/
static char* define_text = NULL;
/*!
Specifies the size of the current define string.
*/
static size_t define_cnt = 0;
/*!
\return Pointer to defined value.
Looks up the specified define identifier in the binary tree lookup table.
Returns NULL (0), if the define was not found in the lookup tree; otherwise,
returns a pointer to the defined value.
*/
static tnode* def_lookup(
const char* name /*!< Name of define to lookup in table */
) { PROFILE(DEF_LOOKUP);
tnode* tn = tree_find( name, def_table );
PROFILE_END;
return( tn );
}
/*!
\return Returns 1 if define is found in lookup table; otherwise, returns 0.
Checks lookup table to see if specified define identifier has been
previously defined.
*/
static int is_defined(
const char* name /*!< Name of defined value */
) { PROFILE(IS_DEFINED);
int retval = (def_lookup( name ) != NULL);
PROFILE_END;
return( retval );
}
/*!
When a macro use is discovered in the source, this function is
used to look up the name and emit the substitution in its
place. If the name is not found, then the `name string is written
out instead.
*/
static void def_match() { PROFILE(DEF_MATCH);
tnode* cur = def_lookup( yytext + 1 ); /* Pointer to define identifier node */
int i; /* Loop iterator */
if( cur ) {
for( i=strlen( cur->value ) - 1; i>=0; i-- ) {
unput( cur->value[i] );
}
} else {
unsigned int rv = snprintf( user_msg, USER_MSG_LENGTH, "macro %s undefined (and assumed null) at this point, line %u, \"%s\"",
yytext, istack->lineno, obf_file( istack->path ) );
assert( rv < USER_MSG_LENGTH );
print_output( user_msg, WARNING, __FILE__, __LINE__ );
}
PROFILE_END;
}
/*!
Holds current define identifier string.
*/
static char def_name[256];
/*!
Extracts define identifier string from define directive match.
*/
static void def_start() { PROFILE(DEF_START);
unsigned int rv = sscanf(yytext, "`define %s", def_name);
assert( rv == 1 );
PROFILE_END;
}
/*!
Stores define identifer with its value in a define node and placed in
the binary search tree for quick lookup later on.
*/
void define_macro(
const char* name, /*!< String value of define identifier */
const char* value /*!< String value associated with define identifier */
) { PROFILE(DEFINE_MACRO);
(void)tree_add( name, value, TRUE, &def_table );
PROFILE_END;
}
/*!
\bug This strips trailing line comments out of the definition.
It's not adequate as the "//" may have been quoted or commented,
but it will do for now.
Prepares define value and identifier for storage in the lookup tree and
then performs the store.
*/
static void do_define() { PROFILE(DO_DEFINE);
char *cp; /* Pointer to current token */
define_continue_flag = 0;
if( (cp = strstr(yytext, "//")) != NULL ) {
*cp = 0;
}
/* Trim trailing white space. */
cp = yytext + strlen( yytext );
while( (cp > yytext) && isspace( *cp ) ) {
cp -= 1;
*cp = '\0';
}
/*
Detect the continuation sequence. If I find it, remove it
and the white space that preceeds it, then replace all that
with a single newline.
*/
if( (cp > yytext) && (cp[-1] == '\\') ) {
cp -= 1;
cp[0] = 0;
while( (cp > yytext) && isspace(cp[-1]) ) {
cp -= 1;
*cp = 0;
}
*cp++ = ' ';
*cp = 0;
define_continue_flag = 1;
}
/* Accumulate this text into the define_text string. */
define_text = (char*)realloc_safe( define_text, (strlen( define_text ) + 1), (define_cnt + (cp-yytext) + 1) ); /* FOOBAR */
strcpy( (define_text + define_cnt), yytext );
define_cnt += cp - yytext;
PROFILE_END;
}
/*!
\return Returns true if the definition text is done; otherwise, returns false.
*/
static int def_is_done() { PROFILE(DEF_IS_DONE);
int retval = define_continue_flag ? 0 : 1;
PROFILE_END;
return( retval );
}
/*!
Completes the define addition phase.
*/
static void def_finish() { PROFILE(DEF_FINISH);
define_continue_flag = 0;
if( def_name[0] ) {
if( define_text ) {
define_macro( def_name, define_text );
free_safe( define_text, (strlen( define_text ) + 1) );
define_text = NULL;
define_cnt = 0;
} else {
define_macro( def_name, "" );
}
def_name[0] = 0;
}
PROFILE_END;
}
/*!
Performs an undefine of an undef indentifier by searching for the
matching define node and removing it from the tree.
*/
static void def_undefine() { PROFILE(DEF_UNDEFINE);
/* Get undef directive identifier string */
unsigned int rv = sscanf( yytext, "`undef %s", def_name );
assert( rv == 1 );
tree_remove( def_name, &def_table );
PROFILE_END;
}
/*!
Include file handling works by keeping an include stack of the
files that are opened and being processed. The first item on the
stack is the current file being scanned. If I get to an include
statement,
- open the new file,
- save the current buffer context,
- create a new buffer context,
- and push the new file information.
When the file runs out, the yywrap closes the file and deletes the
buffer. If after popping the current file information there is
another file on the stack, restore its buffer context and resume
parsing.
*/
/*!
Adds include directive filename to file parsing stack.
*/
static void include_filename() { PROFILE(INCLUDE_FILENAME);
assert( standby == 0 );
standby = malloc_safe( sizeof(struct include_stack_t) );
yytext[strlen(yytext)-1] = '\0';
standby->path = strdup_safe( yytext + 1 );
standby->lineno = 0;
PROFILE_END;
}
/*!
Performs the file context switch and gets everything ready for parsing
the new file.
*/
static void do_include() { PROFILE(DO_INCLUDE);
char path[4096]; /* Full pathname to include file */
str_link* curr; /* Pointer to current include file element */
unsigned int rv; /* Return value from snprintf calls */
if( standby->path[0] == '/') {
standby->file = fopen(standby->path, "r");
if( standby->file == 0 ) {
rv = snprintf( user_msg, USER_MSG_LENGTH, "Unable to open `include file \"%s\"", obf_file( standby->path ) );
assert( rv < USER_MSG_LENGTH );
print_output( user_msg, FATAL, __FILE__, __LINE__ );
}
assert( strlen( standby->path ) < 4096 );
strcpy( path, standby->path );
} else {
standby->file = 0;
curr = inc_paths_head;
while( (curr != NULL) && (standby->file == 0) ) {
rv = snprintf( path, 4096, "%s/%s", curr->str, standby->path );
assert( rv < 4096 );
standby->file = fopen(path, "r");
curr = curr->next;
}
if( (curr == NULL) && (standby->file == 0) ) {
struct include_stack_t* is = istack;
struct include_stack_t* tmp;
rv = snprintf( user_msg, USER_MSG_LENGTH, "Unable to find `include file \"%s\" in include path", obf_file( standby->path ) );
assert( rv < USER_MSG_LENGTH );
print_output( user_msg, FATAL, __FILE__, __LINE__ );
while( is != 0 ) {
tmp = is;
is = is->next;
if( tmp->file != 0 ) {
rv = fclose( tmp->file );
assert( rv == 0 );
}
free_safe( tmp->path, (strlen( tmp->path ) + 1) );
free_safe( tmp, sizeof( struct include_stack_t ) );
}
istack = 0;
free_safe( standby->path, (strlen( standby->path ) + 1) );
free_safe( standby, sizeof( struct include_stack_t ) );
standby = 0;
Throw 0;
} else {
free_safe( standby->path, (strlen( standby->path ) + 1) );
standby->path = strdup_safe( path );
}
}
assert( standby->file );
standby->next = istack;
istack->yybs = YY_CURRENT_BUFFER;
istack->lineno = istack->lineno;
istack = standby;
standby = 0;
rv = snprintf( user_msg, USER_MSG_LENGTH, "Parsing include file '%s'", obf_file( path ) );
assert( rv < USER_MSG_LENGTH );
print_output( user_msg, NORMAL, __FILE__, __LINE__ );
yy_switch_to_buffer( yy_create_buffer( istack->file, YY_BUF_SIZE ) );
fprintf( yyout, "\n`line %u \"%s\" 1\n", (istack->lineno + 1), path );
PROFILE_END;
}
/*
* The lexical analyzer calls this function when the current file
* ends. Here I pop the include stack and resume the previous file. If
* there is no previous file, then the main input is ended.
*/
static int yywrap() { PROFILE(YYWRAP);
struct include_stack_t* isp = istack;
istack = isp->next;
/* If we are at the EOF and have not finished a define, do so now. */
if( YY_START == DEFINE ) {
def_finish();
yy_pop_state();
}
/* If we are at the EOF and have not finished an include, do so now. */
if( YY_START == INCLUDE ) {
yy_pop_state();
do_include();
}
/* Delete the current input buffers, and free the cell. */
yy_delete_buffer( YY_CURRENT_BUFFER );
if( isp->file ) {
unsigned int rv = fclose(isp->file);
assert( rv == 0 );
free_safe( isp->path, (strlen( isp->path ) + 1) );
}
free_safe( isp, sizeof( struct include_stack_t ) );
/*
If I am out of include stack, the main input is done.
*/
if( istack != 0 ) {
/* Otherwise, resume the input buffer that is the new stack top. */
unsigned int rv = snprintf( user_msg, USER_MSG_LENGTH, "Resume parsing '%s'", obf_file( istack->path ) );
assert( rv < USER_MSG_LENGTH );
print_output( user_msg, NORMAL, __FILE__, __LINE__ );
yy_switch_to_buffer( istack->yybs );
fprintf( yyout, "`line %u \"%s\" 2\n", istack->lineno + 1, istack->path );
return 0;
}
PROFILE_END;
return 1;
}
/*
* This function initializes the whole process. The first file is
* opened, and the lexor is initialized. The include stack is cleared
* and ready to go.
*/
void reset_pplexer(
char* filename, /*!< Name of initial file to start parsing */
FILE* out /*!< Name of file to output preprocessed contents to */
) { PROFILE(RESET_PPLEXER);
struct include_stack_t* isp = malloc_safe( sizeof( struct include_stack_t ) );
assert( filename != NULL );
isp->path = strdup_safe( filename );
isp->file = fopen( isp->path, "r" );
isp->lineno = 0;
isp->str = 0;
isp->next = 0;
if( isp->file == 0 ) {
perror( isp->path );
free_safe( isp->path, (strlen( isp->path ) + 1) );
free_safe( isp, sizeof( struct include_stack_t ) );
Throw 0;
}
yyout = out;
yyin = isp->file;
yyrestart( yyin );
istack = isp;
PROFILE_END;
}