stage1_2/stage1_2.cc
changeset 873 dea39ef02847
parent 867 a435684a5223
child 881 e05d69c1ccb3
equal deleted inserted replaced
872:3d682f87c870 873:dea39ef02847
    66 /************************************/
    66 /************************************/
    67 /* whether to allow nested comments */
    67 /* whether to allow nested comments */
    68 /************************************/
    68 /************************************/
    69 bool nested_comments_ = false;
    69 bool nested_comments_ = false;
    70 bool get_opt_nested_comments() {return nested_comments_;}
    70 bool get_opt_nested_comments() {return nested_comments_;}
       
    71 
       
    72 /************************************/
       
    73 /* whether to allow REF() operator  */
       
    74 /************************************/
       
    75 bool ref_operator_ = false;
       
    76 bool get_opt_ref_operator() {return ref_operator_;}
       
    77 
    71 
    78 
    72 /******************************************************/
    79 /******************************************************/
    73 /* whether we are supporting conversion functions     */
    80 /* whether we are supporting conversion functions     */
    74 /* for enumerate data types                           */
    81 /* for enumerate data types                           */
    75 /******************************************************/
    82 /******************************************************/
   246        *       These callback functions will get their data from local (to this file) global variables...
   253        *       These callback functions will get their data from local (to this file) global variables...
   247        *       We now set those variables...
   254        *       We now set those variables...
   248        */
   255        */
   249 
   256 
   250   nested_comments_ = options.nested_comments;    
   257   nested_comments_ = options.nested_comments;    
       
   258   ref_operator_    = options.ref_operator;    
   251   safe_extensions_ = options.safe_extensions;
   259   safe_extensions_ = options.safe_extensions;
   252   conversion_functions_ = options.conversion_functions;
   260   conversion_functions_ = options.conversion_functions;
   253   return stage2__(filename, options.includedir, tree_root_ref, options.full_token_loc);
   261   return stage2__(filename, options.includedir, tree_root_ref, options.full_token_loc);
   254 }
   262 }
   255 
   263