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

Go to the source code of this file.

Functions

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

Variables

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

Function Documentation

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

Definition at line 61 of file whirl2f_main.cxx.

References FALSE.

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

Definition at line 156 of file whirl2f_main.cxx.

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

Here is the call graph for this function:

static void Usage ( char *  progname) [static]

Definition at line 76 of file whirl2f_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 57 of file whirl2f_main.cxx.

Referenced by main().

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

Definition at line 51 of file whirl2f_main.cxx.

Referenced by main().

char path[PATH_MAX]

Definition at line 50 of file whirl2f_main.cxx.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines