@@ -353,49 +353,6 @@ namespace simplecpp {
353353 bool removeComments; /* * remove comment tokens from included files */
354354 };
355355
356- SIMPLECPP_LIB long long characterLiteralToLL (const std::string& str);
357-
358- SIMPLECPP_LIB FileDataCache load (const TokenList &rawtokens, std::vector<std::string> &filenames, const DUI &dui, OutputList *outputList = nullptr );
359-
360- /* *
361- * Preprocess
362- * @todo simplify interface
363- * @param output TokenList that receives the preprocessing output
364- * @param rawtokens Raw tokenlist for top sourcefile
365- * @param files internal data of simplecpp
366- * @param cache output from simplecpp::load()
367- * @param dui defines, undefs, and include paths
368- * @param outputList output: list that will receive output messages
369- * @param macroUsage output: macro usage
370- * @param ifCond output: #if/#elif expressions
371- */
372- SIMPLECPP_LIB void preprocess (TokenList &output, const TokenList &rawtokens, std::vector<std::string> &files, FileDataCache &cache, const DUI &dui, OutputList *outputList = nullptr , std::list<MacroUsage> *macroUsage = nullptr , std::list<IfCond> *ifCond = nullptr );
373-
374- /* *
375- * Deallocate data
376- */
377- SIMPLECPP_LIB void cleanup (FileDataCache &cache);
378-
379- /* * Simplify path */
380- SIMPLECPP_LIB std::string simplifyPath (std::string path);
381-
382- /* * Convert Cygwin path to Windows path */
383- SIMPLECPP_LIB std::string convertCygwinToWindowsPath (const std::string &cygwinPath);
384-
385- /* * Returns the C version a given standard */
386- SIMPLECPP_LIB cstd_t getCStd (const std::string &std);
387-
388- /* * Returns the C++ version a given standard */
389- SIMPLECPP_LIB cppstd_t getCppStd (const std::string &std);
390-
391- /* * Returns the __STDC_VERSION__ value for a given standard */
392- SIMPLECPP_LIB std::string getCStdString (const std::string &std);
393- SIMPLECPP_LIB std::string getCStdString (cstd_t std);
394-
395- /* * Returns the __cplusplus value for a given standard */
396- SIMPLECPP_LIB std::string getCppStdString (const std::string &std);
397- SIMPLECPP_LIB std::string getCppStdString (cppstd_t std);
398-
399356 struct SIMPLECPP_LIB FileData {
400357 /* * The canonical filename associated with this data */
401358 std::string filename;
@@ -503,8 +460,50 @@ namespace simplecpp {
503460 container_type mData ;
504461 name_map_type mNameMap ;
505462 id_map_type mIdMap ;
506-
507463 };
464+
465+ SIMPLECPP_LIB long long characterLiteralToLL (const std::string& str);
466+
467+ SIMPLECPP_LIB FileDataCache load (const TokenList &rawtokens, std::vector<std::string> &filenames, const DUI &dui, OutputList *outputList = nullptr , FileDataCache cache = {});
468+
469+ /* *
470+ * Preprocess
471+ * @todo simplify interface
472+ * @param output TokenList that receives the preprocessing output
473+ * @param rawtokens Raw tokenlist for top sourcefile
474+ * @param files internal data of simplecpp
475+ * @param cache output from simplecpp::load()
476+ * @param dui defines, undefs, and include paths
477+ * @param outputList output: list that will receive output messages
478+ * @param macroUsage output: macro usage
479+ * @param ifCond output: #if/#elif expressions
480+ */
481+ SIMPLECPP_LIB void preprocess (TokenList &output, const TokenList &rawtokens, std::vector<std::string> &files, FileDataCache &cache, const DUI &dui, OutputList *outputList = nullptr , std::list<MacroUsage> *macroUsage = nullptr , std::list<IfCond> *ifCond = nullptr );
482+
483+ /* *
484+ * Deallocate data
485+ */
486+ SIMPLECPP_LIB void cleanup (FileDataCache &cache);
487+
488+ /* * Simplify path */
489+ SIMPLECPP_LIB std::string simplifyPath (std::string path);
490+
491+ /* * Convert Cygwin path to Windows path */
492+ SIMPLECPP_LIB std::string convertCygwinToWindowsPath (const std::string &cygwinPath);
493+
494+ /* * Returns the C version a given standard */
495+ SIMPLECPP_LIB cstd_t getCStd (const std::string &std);
496+
497+ /* * Returns the C++ version a given standard */
498+ SIMPLECPP_LIB cppstd_t getCppStd (const std::string &std);
499+
500+ /* * Returns the __STDC_VERSION__ value for a given standard */
501+ SIMPLECPP_LIB std::string getCStdString (const std::string &std);
502+ SIMPLECPP_LIB std::string getCStdString (cstd_t std);
503+
504+ /* * Returns the __cplusplus value for a given standard */
505+ SIMPLECPP_LIB std::string getCppStdString (const std::string &std);
506+ SIMPLECPP_LIB std::string getCppStdString (cppstd_t std);
508507}
509508
510509#if defined(_MSC_VER)
0 commit comments