Macros | Functions | Variables
run.h File Reference

Go to the source code of this file.

Macros

#define PATH_SEP_CHAR_STR   "\\"
 
#define SEP_CHARS   ";"
 
#define MAX_ARGS   20
 
#define Trace(x)
 
#define NUM_EXTENSIONS   2
 

Functions

char * pfopen (char *retval, const char *name, const char *dirs)
 
void error (char *fmt,...)
 
void message (char *fmt,...)
 
void Trace_ (char *fmt,...)
 
int get_exec_name_and_path (char *execname, char *execpath)
 
char * my_strtok (char *s, const char *delim, char **lasts)
 
int parse_cmdline_to_arg_array (char *argv[MAX_ARGS], char *cmdline)
 
void strip_exe (char *s)
 
int start_child (char *cmdline, int wait_for_child)
 
void xemacs_special (char *exec)
 
int build_cmdline (char *new_cmdline, char *exec, int argc, char *argv[])
 
void process_execname (char *exec, const char *execname, const char *execpath)
 
int fileExists (char *fullname, const char *path, const char *name)
 
int endsWith (const char *s1, const char *s2)
 
int fileExistsMulti (char *fullname, const char *path, const char *name_noext, const char *exts[], const int extcnt)
 

Variables

const char * exts [NUM_EXTENSIONS] = { "", ".exe" }
 

Macro Definition Documentation

§ MAX_ARGS

#define MAX_ARGS   20

Definition at line 68 of file run.h.

§ NUM_EXTENSIONS

#define NUM_EXTENSIONS   2

Definition at line 76 of file run.h.

§ PATH_SEP_CHAR_STR

#define PATH_SEP_CHAR_STR   "\\"

Definition at line 62 of file run.h.

§ SEP_CHARS

#define SEP_CHARS   ";"

Definition at line 63 of file run.h.

§ Trace

#define Trace (   x)

Definition at line 73 of file run.h.

Function Documentation

§ build_cmdline()

int build_cmdline ( char *  new_cmdline,
char *  exec,
int  argc,
char *  argv[] 
)

§ endsWith()

int endsWith ( const char *  s1,
const char *  s2 
)

§ error()

void error ( char *  fmt,
  ... 
)

§ fileExists()

int fileExists ( char *  fullname,
const char *  path,
const char *  name 
)

§ fileExistsMulti()

int fileExistsMulti ( char *  fullname,
const char *  path,
const char *  name_noext,
const char *  exts[],
const int  extcnt 
)

§ get_exec_name_and_path()

int get_exec_name_and_path ( char *  execname,
char *  execpath 
)

§ message()

void message ( char *  fmt,
  ... 
)

§ my_strtok()

char* my_strtok ( char *  s,
const char *  delim,
char **  lasts 
)

§ parse_cmdline_to_arg_array()

int parse_cmdline_to_arg_array ( char *  argv[MAX_ARGS],
char *  cmdline 
)

§ pfopen()

char* pfopen ( char *  retval,
const char *  name,
const char *  dirs 
)

§ process_execname()

void process_execname ( char *  exec,
const char *  execname,
const char *  execpath 
)

§ start_child()

int start_child ( char *  cmdline,
int  wait_for_child 
)

§ strip_exe()

void strip_exe ( char *  s)

§ Trace_()

void Trace_ ( char *  fmt,
  ... 
)

§ xemacs_special()

void xemacs_special ( char *  exec)

Variable Documentation

§ exts

const char* exts[NUM_EXTENSIONS] = { "", ".exe" }

Definition at line 77 of file run.h.