#include <stdio.h>
#include <stdlib.h>
#include <iostream.h>
#include <string.h>
#include "token.h"
#include "buffer.h"
#include "parse.h"
#include "walker.h"
#include "classwalk.h"
#include "ptree-core.h"
#include "mop.h"
#include <unistd.h>
Include dependency graph for driver.cc:
Go to the source code of this file.
Functions | |
bool | ParseTargetSpecificOptions (char *arg, char *&source_file) |
void | RunLinker () |
char * | RunPreprocessor (const char *src) |
char * | OpenCxxOutputFileName (const char *src) |
void | RunCompiler (const char *src, const char *occserc) |
void | LoadMetaclass (char *) |
void | Compile (int argc, char **argv) |
void | ParseCmdOptions (int from, int argc, char **argv, char *&source_file) |
void | AddCppOption (const char *arg) |
void | AddCcOption (const char *arg) |
void | CloseCcOptions () |
bool | IsCxxSource (char *fname) |
void | ShowCommandLine (const char *cmd, const char **args) |
void | ReadStdin () |
void | ReadFile (const char *src) |
char * | RunOpencxx (const char *src) |
int | ParseOpencxx (Program *parse) |
char * | ParseOptions (int argc, char **argv) |
void | ShowVersion () |
void | ShowHelp (char **) |
void | AddCc2Option (const char *arg) |
void | RecordCmdOption (char *option) |
void | ParseCcOptions (char *arg, char *&source_file) |
Variables | |
char | thisVersion [] = "2.5.12" |
char | copyingNote [] |
const char | opencxxErrorMessage [] = " Error(s). OpenC++ stops.\n" |
const char * | compilerName |
bool | showProgram |
bool | doCompile |
bool | makeExecutable |
bool | doPreprocess |
bool | doTranslate |
bool | verboseMode |
bool | regularCpp |
bool | makeSharedLibrary |
char * | sharedLibraryName |
bool | preprocessTwice |
const int | NARGS = 64 |
const char * | cppArgv [NARGS] |
const char * | ccArgv [NARGS] |
const char * | cc2Argv [NARGS] |
int | cppArgc = 0 |
int | ccArgc = 0 |
int | cc2Argc = 0 |
int | numOfObjectFiles = 0 |
|
Definition at line 388 of file driver.cc. References cc2Argc, cc2Argv, and NARGS. Referenced by ParseCcOptions(). |
|
|
|
|
|
Definition at line 380 of file driver.cc. References AddCcOption(), cc2Argc, and cc2Argv. Referenced by RunCompiler(), and RunLinker(). |
|
Definition at line 114 of file driver.cc. References nil, numOfObjectFiles, ParseOptions(), ReadFile(), ReadStdin(), and RunLinker(). |
|
|
|
Definition at line 299 of file metaclass.cc. |
|
Definition at line 223 of file driver2.cc. |
|
Definition at line 413 of file driver.cc. References AddCc2Option(), AddCcOption(), IsCxxSource(), nil, and numOfObjectFiles. Referenced by ParseCmdOptions(). |
|
Definition at line 250 of file driver.cc. References AddCcOption(), AddCppOption(), doCompile, doPreprocess, doTranslate, FALSE, LoadMetaclass(), makeExecutable, makeSharedLibrary, ParseCcOptions(), ParseTargetSpecificOptions(), preprocessTwice, opcxx_ListOfMetaclass::PrintAllMetaclasses(), RecordCmdOption(), regularCpp, sharedLibraryName, ShowHelp(), showProgram, ShowVersion(), TRUE, and verboseMode. |
|
Definition at line 203 of file driver.cc. References Ptree::Display2(), ClassWalker::GetAppendedPtree(), ClassWalker::GetInsertedPtree(), Program::Insert(), Program::MinimumSubst(), Parser::NumOfErrors(), Parser::rProgram(), and Walker::Translate(). Referenced by ReadStdin(), and RunOpencxx(). |
|
Definition at line 228 of file driver.cc. References AddCcOption(), AddCppOption(), compilerName, doCompile, doPreprocess, doTranslate, FALSE, makeExecutable, makeSharedLibrary, nil, ParseCmdOptions(), preprocessTwice, regularCpp, sharedLibraryName, showProgram, TRUE, and verboseMode. Referenced by Compile(). |
|
Definition at line 116 of file driver2.cc. |
|
Definition at line 142 of file driver.cc. References RunCompiler(), RunOpencxx(), and RunPreprocessor(). Referenced by Compile(). |
|
Definition at line 126 of file driver.cc. References opencxxErrorMessage, ParseOpencxx(), showProgram, and Program::Write(). Referenced by Compile(). |
|
Definition at line 398 of file driver.cc. References nil, and Class::RecordCmdLineOption(). Referenced by ParseCmdOptions(). |
|
Definition at line 241 of file driver2.cc. |
|
Definition at line 121 of file driver2.cc. Referenced by Compile(). |
|
Definition at line 163 of file driver.cc. References opencxxErrorMessage, OpenCxxOutputFileName(), ParseOpencxx(), and Program::Write(). Referenced by ReadFile(). |
|
Definition at line 173 of file driver2.cc. |
|
Definition at line 466 of file driver.cc. References nil. |
|
Definition at line 321 of file driver.cc. Referenced by ParseCmdOptions(). |
|
Definition at line 316 of file driver.cc. References copyingNote, and thisVersion. Referenced by ParseCmdOptions(). |
|
Definition at line 81 of file driver.cc. Referenced by AddCc2Option(), and CloseCcOptions(). |
|
Definition at line 78 of file driver.cc. Referenced by AddCc2Option(), and CloseCcOptions(). |
|
Definition at line 80 of file driver.cc. Referenced by AddCcOption(). |
|
Definition at line 77 of file driver.cc. Referenced by AddCcOption(), and RunCompiler(). |
|
Definition at line 62 of file driver.cc. Referenced by ParseOptions(), RunCompiler(), and RunPreprocessor(). |
|
Initial value: "Copyright (c) 1997-2001 Shigeru Chiba. All Rights Reserved.\n" "Copyright (c) 1995, 1996 Xerox Corporation. All Rights Reserved." Definition at line 57 of file driver.cc. Referenced by ShowVersion(). |
|
Definition at line 79 of file driver.cc. Referenced by AddCppOption(). |
|
Definition at line 76 of file driver.cc. Referenced by AddCppOption(), and RunPreprocessor(). |
|
Definition at line 65 of file driver.cc. Referenced by ParseCmdOptions(), and ParseOptions(). |
|
Definition at line 67 of file driver.cc. Referenced by ParseCmdOptions(), and ParseOptions(). |
|
Definition at line 68 of file driver.cc. Referenced by ParseCmdOptions(), and ParseOptions(). |
|
Definition at line 66 of file driver.cc. Referenced by ParseCmdOptions(), ParseOptions(), and RunCompiler(). |
|
Definition at line 71 of file driver.cc. Referenced by ParseCmdOptions(), and ParseOptions(). |
|
Definition at line 75 of file driver.cc. Referenced by AddCc2Option(), AddCcOption(), and AddCppOption(). |
|
Definition at line 82 of file driver.cc. Referenced by Compile(), and ParseCcOptions(). |
|
Definition at line 60 of file driver.cc. Referenced by ReadStdin(), and RunOpencxx(). |
|
Definition at line 73 of file driver.cc. Referenced by ParseCmdOptions(), and ParseOptions(). |
|
Definition at line 70 of file driver.cc. Referenced by ParseCmdOptions(), and ParseOptions(). |
|
Definition at line 72 of file driver.cc. Referenced by ParseCmdOptions(), ParseOptions(), RunCompiler(), and RunLinker(). |
|
Definition at line 64 of file driver.cc. Referenced by ParseCmdOptions(), ParseOptions(), and ReadStdin(). |
|
Definition at line 54 of file driver.cc. Referenced by ShowVersion(). |
|
Definition at line 69 of file driver.cc. Referenced by ParseCmdOptions(), and ParseOptions(). |