| 905 | } |
| 906 | |
| 907 | int |
| 908 | main ( |
| 909 | IN int Argc, |
| 910 | IN char **Argv |
| 911 | ) |
| 912 | { |
| 913 | COMPILER_RUN_STATUS Status; |
| 914 | |
| 915 | SetPrintLevel(WARNING_LOG_LEVEL); |
| 916 | CVfrCompiler Compiler(Argc, Argv); |
| 917 | |
| 918 | Compiler.PreProcess(); |
| 919 | Compiler.Compile(); |
| 920 | Compiler.AdjustBin(); |
| 921 | Compiler.GenBinary(); |
| 922 | Compiler.GenCFile(); |
| 923 | Compiler.GenRecordListFile (); |
| 924 | |
| 925 | Status = Compiler.RunStatus (); |
| 926 | if ((Status == STATUS_DEAD) || (Status == STATUS_FAILED)) { |
| 927 | return 2; |
| 928 | } |
| 929 | |
| 930 | if (gCBuffer.Buffer != NULL) { |
| 931 | delete[] gCBuffer.Buffer; |
| 932 | } |
| 933 | |
| 934 | if (gRBuffer.Buffer != NULL) { |
| 935 | delete[] gRBuffer.Buffer; |
| 936 | } |
| 937 | |
| 938 | return GetUtilityStatus (); |
| 939 | } |
| 940 | |
| 941 |
nothing calls this directly
no test coverage detected