Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

driver.cpp File Reference

One of the original OpenC++ source files. More...

#include "occCommon.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
#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.cpp:

Include dependency graph


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 AddCc2Option (const char *arg)
void CloseCcOptions ()
bool IsCxxSource (char *fname)
void ShowCommandLine (const char *cmd, const char **args)
void SetTargetDirectory (const char *)
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 RecordCmdOption (char *option)
void ParseCcOptions (char *arg, char *&source_file)


BEGIN_OPENCXX_NAMESPACE char thisVersion [] = "2.6.t.0"
char copyingNote []
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

Detailed Description

One of the original OpenC++ source files.

Function Documentation

bool ParseTargetSpecificOptions char *  arg,
char *&  source_file

void RunLinker  ) 

char * RunPreprocessor const char *  src  ) 

Runs preprocessor (g++ / cpre) on file_in.

Name of the file that contains preprocessor output. (The name is generated using MakeTempFilename().)
See also:
PREPROCESSOR_EXT, SetTargetDirectory()

char * OpenCxxOutputFileName const char *  src  ) 

void RunCompiler const char *  org_src,
const char *  occ_src

Runs compiler (g++) on occ_src.

Sends the compiler the parameters specified when executing IOPC SP / OpenC++ (only the "compiler" options). Adds to them some parameters specified by IOPC SP / OpenC++ options, if called from IOPC SP adds some parameters needed for translated source to compile (two bytes wchar_t support).

org_src The original (not translated) C++ source file name. Used in OpenC++ if generating shared library.
occ_src Name of the translated C++ source file - input for the compiler.
See also:

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 AddCc2Option const char *  arg  ) 

void CloseCcOptions  ) 

bool IsCxxSource char *  fname  ) 

void ShowCommandLine const char *  cmd,
const char **  args

void SetTargetDirectory const char *  dirPath  ) 

Sets path (targetDir) into which files generated by IOPC SP / OpenC++ should be placed.

Sets drive and directory (targetDrive, targetDir) into which files generated by IOPC SP / OpenC++ should be placed.

void ReadStdin  )  [static]

void ReadFile const char *  src  ) 

char * RunOpencxx const char *  src  )  [static]

int ParseOpencxx Program parse  )  [static]

char * ParseOptions int  argc,
char **  argv

void ShowVersion  )  [static]

void ShowHelp char **   )  [static]

void RecordCmdOption char *  option  )  [static]

void ParseCcOptions char *  arg,
char *&  source_file

Variable Documentation

BEGIN_OPENCXX_NAMESPACE char thisVersion[] = "2.6.t.0" [static]

char copyingNote[] [static]

Initial value:

 "Copyright (c) 1997-2001 Shigeru Chiba.  All Rights Reserved.\n"
    "Copyright (c) 1995, 1996 Xerox Corporation. All Rights Reserved.\n"
    "Copyright (c) 2002 Other Developers.\n"
    "Copyright (c) 2003-2004 Josef Troch."

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 [static]

Generated on Wed Aug 11 22:33:45 2004 for IOPC by Doxygen 1.3.6