stage1_2/stage1_2.cc
changeset 870 9c6c588fd708
parent 822 a7d9e0b8636b
parent 867 a435684a5223
child 881 e05d69c1ccb3
equal deleted inserted replaced
822:a7d9e0b8636b 870:9c6c588fd708
    60 /* Part 1: Concepts and Function Blocks,              */
    60 /* Part 1: Concepts and Function Blocks,              */
    61 /* Version 1.0 – Official Release                   */
    61 /* Version 1.0 – Official Release                   */
    62 /******************************************************/
    62 /******************************************************/
    63 bool safe_extensions_ = false;
    63 bool safe_extensions_ = false;
    64 bool get_opt_safe_extensions() {return safe_extensions_;}
    64 bool get_opt_safe_extensions() {return safe_extensions_;}
       
    65 
       
    66 /************************************/
       
    67 /* whether to allow nested comments */
       
    68 /************************************/
       
    69 bool nested_comments_ = false;
       
    70 bool get_opt_nested_comments() {return nested_comments_;}
    65 
    71 
    66 /******************************************************/
    72 /******************************************************/
    67 /* whether we are supporting conversion functions     */
    73 /* whether we are supporting conversion functions     */
    68 /* for enumerate data types                           */
    74 /* for enumerate data types                           */
    69 /******************************************************/
    75 /******************************************************/
   239        *       whenever it needs info/parameters coming from stage1_2().
   245        *       whenever it needs info/parameters coming from stage1_2().
   240        *       These callback functions will get their data from local (to this file) global variables...
   246        *       These callback functions will get their data from local (to this file) global variables...
   241        *       We now set those variables...
   247        *       We now set those variables...
   242        */
   248        */
   243 
   249 
       
   250   nested_comments_ = options.nested_comments;    
   244   safe_extensions_ = options.safe_extensions;
   251   safe_extensions_ = options.safe_extensions;
   245   conversion_functions_ = options.conversion_functions;
   252   conversion_functions_ = options.conversion_functions;
   246   return stage2__(filename, options.includedir, tree_root_ref, options.full_token_loc);
   253   return stage2__(filename, options.includedir, tree_root_ref, options.full_token_loc);
   247 }
   254 }
   248 
   255