From: jesusc Date: Sat, 30 Dec 2006 16:12:13 +0000 (+0000) Subject: Create support/cpp2/options.c and support/cpp2/options.h under MSVC X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=63eb898e2629a1910805f7b8654cad9689ec220d;p=fw%2Fsdcc Create support/cpp2/options.c and support/cpp2/options.h under MSVC git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4539 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index 69fa7ee2..526ee483 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-12-30 Jesus Calvino-Fraga + + * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c, + support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC. + 2006-12-30 Borut Razem * support/cpp2/spacs.h: deleted from svn diff --git a/support/cpp2/options_vc_in.c b/support/cpp2/options_vc_in.c new file mode 100644 index 00000000..ab232e73 --- /dev/null +++ b/support/cpp2/options_vc_in.c @@ -0,0 +1,221 @@ +/* This file is auto-generated by opts.sh. */ + +#include +#include "options.h" +#include "opts.h" + +const char * const lang_names[] = +{ + "SDCPP", + 0 +}; + +const unsigned int cl_options_count = N_OPTS; + +const struct cl_option cl_options[] = +{ + { "--help", + N_("Display this information"), + N_OPTS, 5, CL_COMMON }, + { "--version", + N_("Display the compiler's version"), + N_OPTS, 8, CL_COMMON }, + { "-A", + N_("-A= Assert the to . Putting '-' before disables the to "), + N_OPTS, 1, CL_SDCPP | CL_JOINED | CL_SEPARATE }, + { "-C", + N_("Do not discard comments"), + N_OPTS, 1, CL_SDCPP }, + { "-CC", + N_("Do not discard comments in macro expansions"), + N_OPTS, 2, CL_SDCPP }, + { "-D", + N_("-D[=] Define a with as its value. If just is given, is taken to be 1"), + N_OPTS, 1, CL_SDCPP | CL_JOINED | CL_SEPARATE }, + { "-H", + N_("Print the name of header files as they are used"), + N_OPTS, 1, CL_SDCPP }, + { "-I", + N_("-I Add to the end of the main include path. -I- gives more include path control; see info documentation"), + N_OPTS, 1, CL_SDCPP | CL_JOINED | CL_SEPARATE }, + { "-M", + N_("Generate make dependencies"), + N_OPTS, 1, CL_SDCPP }, + { "-MD", + N_("Generate make dependencies and compile"), + N_OPTS, 2, CL_SDCPP | CL_SEPARATE }, + { "-MF", + N_("-MF Write dependency output to the given file"), + N_OPTS, 2, CL_SDCPP | CL_JOINED | CL_SEPARATE }, + { "-MG", + N_("Treat missing header files as generated files"), + N_OPTS, 2, CL_SDCPP }, + { "-MM", + N_("Like -M but ignore system header files"), + N_OPTS, 2, CL_SDCPP }, + { "-MMD", + N_("Like -MD but ignore system header files"), + N_OPTS, 3, CL_SDCPP | CL_SEPARATE }, + { "-MP", + N_("Generate phony targets for all headers"), + N_OPTS, 2, CL_SDCPP }, + { "-MQ", + N_("-MQ Add a MAKE-quoted target"), + N_OPTS, 2, CL_SDCPP | CL_JOINED | CL_SEPARATE }, + { "-MT", + N_("-MT Add an unquoted target"), + N_OPTS, 2, CL_SDCPP | CL_JOINED | CL_SEPARATE }, + { "-P", + N_("Do not generate #line directives"), + N_OPTS, 1, CL_SDCPP }, + { "-U", + N_("-U Undefine "), + N_OPTS, 1, CL_SDCPP | CL_JOINED | CL_SEPARATE }, + { "-Wall", + N_("Enable most warning messages"), + N_OPTS, 4, CL_SDCPP }, + { "-Wcomment", + N_("Warn about possibly nested block comments, and C++ comments spanning more than one physical line"), + N_OPTS, 8, CL_SDCPP }, + { "-Wcomments", + N_("Synonym for -Wcomment"), + N_OPTS, 9, CL_SDCPP }, + { "-Wdeprecated", + N_("Warn about deprecated compiler features"), + N_OPTS, 11, CL_SDCPP }, + { "-Wendif-labels", + N_("Warn about stray tokens after #elif and #endif"), + N_OPTS, 13, CL_SDCPP }, + { "-Werror", + N_("Treat all warnings as errors"), + N_OPTS, 6, CL_SDCPP }, + { "-Wimport", + N_("Deprecated. This switch has no effect."), + N_OPTS, 7, CL_SDCPP }, + { "-Wsystem-headers", + N_("Do not suppress warnings from system headers"), + N_OPTS, 15, CL_SDCPP }, + { "-Wtrigraphs", + N_("Warn if trigraphs are encountered that might affect the meaning of the program"), + N_OPTS, 10, CL_SDCPP }, + { "-Wundef", + N_("Warn if an undefined macro is used in an #if directive"), + N_OPTS, 6, CL_SDCPP }, + { "-Wunused-macros", + N_("Warn about macros defined in the main file that are not used"), + N_OPTS, 14, CL_SDCPP }, + { "-ansi", + N_("A synonym for -std=c89."), + N_OPTS, 4, CL_SDCPP }, + { "-d", + N_("-d Enable dumps from specific passes of the compiler"), + N_OPTS, 1, CL_SDCPP | CL_JOINED }, + { "-fdollars-in-identifiers", + N_("Permit '$' as an identifier character"), + N_OPTS, 23, CL_SDCPP }, + { "-fexec-charset=", + N_("-fexec-charset= Convert all strings and character constants to character set "), + N_OPTS, 14, CL_SDCPP | CL_JOINED | CL_REJECT_NEGATIVE }, + { "-finput-charset=", + N_("-finput-charset= Specify the default character set for source files."), + N_OPTS, 15, CL_SDCPP | CL_JOINED | CL_REJECT_NEGATIVE }, + { "-fpreprocessed", + N_("Treat the input file as already preprocessed"), + N_OPTS, 13, CL_SDCPP }, + { "-fshow-column", + 0, + N_OPTS, 12, CL_SDCPP }, + { "-fsigned-char", + N_("Make \"char\" signed by default"), + N_OPTS, 12, CL_SDCPP }, + { "-ftabstop=", + N_("-ftabstop= Distance between tab stops for column reporting"), + N_OPTS, 9, CL_SDCPP | CL_JOINED | CL_REJECT_NEGATIVE | CL_UINTEGER }, + { "-funsigned-char", + N_("Make \"char\" unsigned by default"), + N_OPTS, 14, CL_SDCPP }, + { "-fwide-exec-charset=", + N_("-fwide-exec-charset= Convert all wide strings and character constants to character set "), + N_OPTS, 19, CL_SDCPP | CL_JOINED | CL_REJECT_NEGATIVE }, + { "-fworking-directory", + N_("Generate a #line directive pointing at the current working directory"), + N_OPTS, 18, CL_SDCPP }, + { "-idirafter", + N_("-idirafter Add to the end of the system include path"), + N_OPTS, 9, CL_SDCPP | CL_JOINED | CL_SEPARATE }, + { "-imacros", + N_("-imacros Accept definition of macros in "), + N_OPTS, 7, CL_SDCPP | CL_JOINED | CL_SEPARATE }, + { "-include", + N_("-include Include the contents of before other files"), + N_OPTS, 7, CL_SDCPP | CL_JOINED | CL_SEPARATE }, + { "-iprefix", + N_("-iprefix Specify as a prefix for next two options"), + N_OPTS, 7, CL_SDCPP | CL_JOINED | CL_SEPARATE }, + { "-isysroot", + N_("-isysroot Set to be the system root directory"), + N_OPTS, 8, CL_SDCPP | CL_JOINED | CL_SEPARATE }, + { "-isystem", + N_("-isystem Add to the start of the system include path"), + N_OPTS, 7, CL_SDCPP | CL_JOINED | CL_SEPARATE }, + { "-iwithprefix", + N_("-iwithprefix Add to the end of the system include path"), + N_OPTS, 11, CL_SDCPP | CL_JOINED | CL_SEPARATE }, + { "-iwithprefixbefore", + N_("-iwithprefixbefore Add to the end of the main include path"), + OPT_iwithprefix, 17, CL_SDCPP | CL_JOINED | CL_SEPARATE }, + { "-lang-asm", + 0, + N_OPTS, 8, CL_UNDOCUMENTED }, + { "-lang-objc", + 0, + N_OPTS, 9, CL_SDCPP | CL_UNDOCUMENTED }, + { "-nostdinc", + N_("Do not search standard system include directories (those specified with -isystem will still be used)"), + N_OPTS, 8, CL_SDCPP }, + { "-o", + N_("-o Place output into "), + N_OPTS, 1, CL_SDCPP | CL_JOINED | CL_SEPARATE }, + { "-obj-ext=", + N_("-obj-ext= Define object file extension, used for generation of make dependencies"), + OPT_o, 8, CL_SDCPP | CL_JOINED }, + { "-pedantic", + N_("Issue warnings needed for strict compliance to the standard"), + N_OPTS, 8, CL_SDCPP }, + { "-pedantic-errors", + N_("Like -pedantic but issue them as errors"), + N_OPTS, 15, CL_SDCPP }, + { "-pedantic-parse-number", + N_("Pedantic parse number"), + N_OPTS, 21, CL_SDCPP }, + { "-remap", + N_("Remap file names when including files"), + N_OPTS, 5, CL_SDCPP }, + { "-std=c89", + N_("Conform to the ISO 1990 C standard"), + N_OPTS, 7, CL_SDCPP }, + { "-std=c99", + N_("Conform to the ISO 1999 C standard"), + N_OPTS, 7, CL_SDCPP }, + { "-std=iso9899:1990", + N_("Conform to the ISO 1990 C standard"), + N_OPTS, 16, 0 }, + { "-std=iso9899:199409", + N_("Conform to the ISO 1990 C standard as amended in 1994"), + N_OPTS, 18, CL_SDCPP }, + { "-std=iso9899:1999", + N_("Conform to the ISO 1999 C standard"), + N_OPTS, 16, 0 }, + { "-traditional-cpp", + N_("Enable traditional preprocessing"), + N_OPTS, 15, CL_SDCPP }, + { "-trigraphs", + N_("-trigraphs Support ISO C trigraphs"), + N_OPTS, 9, CL_SDCPP }, + { "-v", + N_("Enable verbose output"), + N_OPTS, 1, CL_SDCPP }, + { "-w", + N_("Suppress warnings"), + N_OPTS, 1, CL_SDCPP } +}; diff --git a/support/cpp2/options_vc_in.h b/support/cpp2/options_vc_in.h new file mode 100644 index 00000000..142b24cd --- /dev/null +++ b/support/cpp2/options_vc_in.h @@ -0,0 +1,76 @@ +/* This file is auto-generated by opts.sh. */ + +#define CL_SDCPP (1 << 0) + +enum opt_code +{ + OPT__help, /* --help */ + OPT__version, /* --version */ + OPT_A, /* -A */ + OPT_C, /* -C */ + OPT_CC, /* -CC */ + OPT_D, /* -D */ + OPT_H, /* -H */ + OPT_I, /* -I */ + OPT_M, /* -M */ + OPT_MD, /* -MD */ + OPT_MF, /* -MF */ + OPT_MG, /* -MG */ + OPT_MM, /* -MM */ + OPT_MMD, /* -MMD */ + OPT_MP, /* -MP */ + OPT_MQ, /* -MQ */ + OPT_MT, /* -MT */ + OPT_P, /* -P */ + OPT_U, /* -U */ + OPT_Wall, /* -Wall */ + OPT_Wcomment, /* -Wcomment */ + OPT_Wcomments, /* -Wcomments */ + OPT_Wdeprecated, /* -Wdeprecated */ + OPT_Wendif_labels, /* -Wendif-labels */ + OPT_Werror, /* -Werror */ + OPT_Wimport, /* -Wimport */ + OPT_Wsystem_headers, /* -Wsystem-headers */ + OPT_Wtrigraphs, /* -Wtrigraphs */ + OPT_Wundef, /* -Wundef */ + OPT_Wunused_macros, /* -Wunused-macros */ + OPT_ansi, /* -ansi */ + OPT_d, /* -d */ + OPT_fdollars_in_identifiers, /* -fdollars-in-identifiers */ + OPT_fexec_charset_, /* -fexec-charset= */ + OPT_finput_charset_, /* -finput-charset= */ + OPT_fpreprocessed, /* -fpreprocessed */ + OPT_fshow_column, /* -fshow-column */ + OPT_fsigned_char, /* -fsigned-char */ + OPT_ftabstop_, /* -ftabstop= */ + OPT_funsigned_char, /* -funsigned-char */ + OPT_fwide_exec_charset_, /* -fwide-exec-charset= */ + OPT_fworking_directory, /* -fworking-directory */ + OPT_idirafter, /* -idirafter */ + OPT_imacros, /* -imacros */ + OPT_include, /* -include */ + OPT_iprefix, /* -iprefix */ + OPT_isysroot, /* -isysroot */ + OPT_isystem, /* -isystem */ + OPT_iwithprefix, /* -iwithprefix */ + OPT_iwithprefixbefore, /* -iwithprefixbefore */ + OPT_lang_asm, /* -lang-asm */ + OPT_lang_objc, /* -lang-objc */ + OPT_nostdinc, /* -nostdinc */ + OPT_o, /* -o */ + OPT_obj_ext_, /* -obj-ext= */ + OPT_pedantic, /* -pedantic */ + OPT_pedantic_errors, /* -pedantic-errors */ + OPT_pedantic_parse_number, /* -pedantic-parse-number */ + OPT_remap, /* -remap */ + OPT_std_c89, /* -std=c89 */ + OPT_std_c99, /* -std=c99 */ + OPT_std_iso9899_1990, /* -std=iso9899:1990 */ + OPT_std_iso9899_199409, /* -std=iso9899:199409 */ + OPT_std_iso9899_1999, /* -std=iso9899:1999 */ + OPT_traditional_cpp, /* -traditional-cpp */ + OPT_trigraphs, /* -trigraphs */ + OPT_v, /* -v */ + OPT_w, /* -w */ + N_OPTS +}; diff --git a/support/cpp2/sdcppa.dsp b/support/cpp2/sdcppa.dsp index eb63a272..fc97e827 100644 --- a/support/cpp2/sdcppa.dsp +++ b/support/cpp2/sdcppa.dsp @@ -61,7 +61,7 @@ MTL=midl.exe # Name "sdcppa - Win32 Debug" # Begin Source File -SOURCE=.\auto-host_vc_in.h +SOURCE=".\auto-host_vc_in.h" !IF "$(CFG)" == "sdcppa - Win32 Release" @@ -70,6 +70,7 @@ InputPath=.\auto-host_vc_in.h "auto-host.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" copy auto-host_vc_in.h auto-host.h > nul + # End Custom Build !ELSEIF "$(CFG)" == "sdcppa - Win32 Debug" @@ -79,6 +80,61 @@ InputPath=.\auto-host_vc_in.h "auto-host.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" copy auto-host_vc_in.h auto-host.h > nul + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\options_vc_in.c + +!IF "$(CFG)" == "sdcppa - Win32 Release" + +# Begin Custom Build +InputPath=.\options_vc_in.c + +"options.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + copy options_vc_in.c options.c > nul + +# End Custom Build + +!ELSEIF "$(CFG)" == "sdcppa - Win32 Debug" + +# Begin Custom Build +InputPath=.\options_vc_in.c + +"options.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + copy options_vc_in.c options.c > nul + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\options_vc_in.h + +!IF "$(CFG)" == "sdcppa - Win32 Release" + +# Begin Custom Build +InputPath=.\options_vc_in.h + +"options.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + copy options_vc_in.h options.h > nul + +# End Custom Build + +!ELSEIF "$(CFG)" == "sdcppa - Win32 Debug" + +# Begin Custom Build +InputPath=.\options_vc_in.h + +"options.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + copy options_vc_in.h options.h > nul + # End Custom Build !ENDIF