pspsdk-1.0+beta2
psp-config.c File Reference
#include <stdio.h>
#include <getopt.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
Include dependency graph for psp-config.c:

Macros

#define PSPDEV_ENV   "PSPDEV"
#define PATH_ENV   "PATH"
#define MAX_PATH   256
#define PATH_SEP   ":"
#define DIR_SEP   '/'
#define DIR_SEP_STR   "/"
#define PSPDEV_PATH_SUFFIX   "/bin/psp-config"

Enumerations

enum  PspConfigMode {
  PSP_BUILD_UNKNOWN, PSP_BUILD_EXPORTS, PSP_BUILD_STUBS, PSP_BUILD_STUBS_NEW,
  PSP_CONFIG_UNKNOWN, PSP_CONFIG_PSPSDK_PATH, PSP_CONFIG_PSPDEV_PATH, PSP_CONFIG_PSP_PREFIX
}

Functions

int process_args (int argc, char **argv)
void print_help (void)
void normalize_path (char *out)
char * find_pspdev_path (char *name)
void print_path (char *name)
int main (int argc, char **argv)

Macro Definition Documentation

#define DIR_SEP   '/'

Referenced by find_pspdev_path(), and print_path().

#define DIR_SEP_STR   "/"

Referenced by find_pspdev_path().

#define MAX_PATH   256

Referenced by find_pspdev_path(), and main().

#define PATH_ENV   "PATH"

Referenced by find_pspdev_path().

#define PATH_SEP   ":"

Referenced by find_pspdev_path().

#define PSPDEV_ENV   "PSPDEV"

Referenced by print_path().

#define PSPDEV_PATH_SUFFIX   "/bin/psp-config"

Referenced by find_pspdev_path().

Enumeration Type Documentation

Enumerator:
PSP_BUILD_UNKNOWN 
PSP_BUILD_EXPORTS 
PSP_BUILD_STUBS 
PSP_BUILD_STUBS_NEW 
PSP_CONFIG_UNKNOWN 
PSP_CONFIG_PSPSDK_PATH 
PSP_CONFIG_PSPDEV_PATH 
PSP_CONFIG_PSP_PREFIX 

Function Documentation

int main ( int  argc,
char **  argv 
)
void normalize_path ( char *  out)

References i.

Referenced by find_pspdev_path().

void print_help ( void  )

References fprintf(), and stderr.

int process_args ( int  argc,
char **  argv 
)