stage1_2/iec.flex
changeset 350 2c3c4dc34979
parent 287 9df7fcb9bde5
equal deleted inserted replaced
341:ba80c3ceb6fb 350:2c3c4dc34979
   812 
   812 
   813 			  if (include_stack_ptr >= MAX_INCLUDE_DEPTH) {
   813 			  if (include_stack_ptr >= MAX_INCLUDE_DEPTH) {
   814 			    fprintf(stderr, "Includes nested too deeply\n");
   814 			    fprintf(stderr, "Includes nested too deeply\n");
   815 			    exit( 1 );
   815 			    exit( 1 );
   816 			  }
   816 			  }
   817         include_stack[include_stack_ptr].buffer_state = YY_CURRENT_BUFFER;
   817 			  include_stack[include_stack_ptr].buffer_state = YY_CURRENT_BUFFER;
   818         include_stack[include_stack_ptr].env = current_tracking;
   818 			  include_stack[include_stack_ptr].env = current_tracking;
   819         include_stack[include_stack_ptr].filename = current_filename;
   819 			  include_stack[include_stack_ptr].filename = current_filename;
   820 			  
   820 			  
   821 			  for (i = 0, yyin = NULL; (INCLUDE_DIRECTORIES[i] != NULL) && (yyin == NULL); i++) {
   821 			  for (i = 0, yyin = NULL; (INCLUDE_DIRECTORIES[i] != NULL) && (yyin == NULL); i++) {
   822 			    char *full_name = strdup3(INCLUDE_DIRECTORIES[i], "/", yytext);
   822 			    char *full_name = strdup3(INCLUDE_DIRECTORIES[i], "/", yytext);
   823 			    if (full_name == NULL) {
   823 			    if (full_name == NULL) {
   824 			      fprintf(stderr, "Out of memory!\n");
   824 			      fprintf(stderr, "Out of memory!\n");