Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
whirl2c_main.cxx File Reference
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <limits.h>
#include <errno.h>
#include <stdarg.h>
#include <cmplrs/rcodes.h>
#include "defs.h"
Include dependency graph for whirl2c_main.cxx:

Go to the source code of this file.

Functions

void error (const char *format,...)
static BOOL Has_Extension (const char *name, const char *ext)
static void Usage (const char *progname)
int main (INT argc, const char *const argv[], const char *const envp[])

Variables

char path [PATH_MAX]
static const char * libpath [3]
static const char *const errstring = "%s: can't allocate memory\n"
static const char * program_name

Function Documentation

void error ( const char *  format,
  ... 
)

Definition at line 64 of file whirl2c_main.cxx.

References fprintf(), and program_name.

Referenced by __OPN(), _INQ(), _RUI(), _setuptr(), _WUF(), _WUI(), directive_region_error(), end_if_blk(), is_attr_referenced_in_bound(), kind_to_linear_type(), main(), MDopen(), merge_type(), and PRINTMSG().

Here is the call graph for this function:

static BOOL Has_Extension ( const char *  name,
const char *  ext 
) [static]

Definition at line 76 of file whirl2c_main.cxx.

References FALSE.

Referenced by main().

int main ( INT  argc,
const char *const  argv[],
const char *const  envp[] 
)

Definition at line 167 of file whirl2c_main.cxx.

References errno, error(), errstring, exit(), FALSE, fprintf(), getenv(), Has_Extension(), len, libpath, NULL, path, program_name, RC_NORECOVER_USER_ERROR, RC_SYSTEM_ERROR, strcpy, TRUE, and Usage().

Here is the call graph for this function:

static void Usage ( const char *  progname) [static]

Definition at line 91 of file whirl2c_main.cxx.

References fprintf().

Referenced by main().

Here is the call graph for this function:


Variable Documentation

const char* const errstring = "%s: can't allocate memory\n" [static]

Definition at line 59 of file whirl2c_main.cxx.

Referenced by main().

const char* libpath[3] [static]
Initial value:
 
{"LD_LIBRARY_PATH",
 "LD_LIBRARYN32_PATH",
 "LD_LIBRARY64_PATH"
}

Definition at line 53 of file whirl2c_main.cxx.

Referenced by main().

const char* program_name [static]

Definition at line 60 of file whirl2c_main.cxx.

Referenced by error(), and main().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines