apinames.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

Go to the source code of this file.

Classes

struct  NameRec_

Defines

#define PROGRAM_NAME   "apinames"
#define PROGRAM_VERSION   "0.1"
#define LINEBUFF_SIZE   1024

Typedefs

typedef enum OutputFormat_ OutputFormat
typedef NameRec_ NameRec
typedef NameRec_Name
typedef enum State_ State

Enumerations

enum  OutputFormat_
enum  State_

Functions

static void panic (const char *message)
static void names_add (const char *name, const char *end)
static int name_compare (const void *name1, const void *name2)
static void names_sort (void)
static void names_dump (FILE *out, OutputFormat format, const char *dll_name)
static int read_header_file (FILE *file, int verbose)
static void usage (void)
int main (int argc, const char *const *argv)

Variables

static Name the_names
static int num_names
static int max_names


Define Documentation

#define LINEBUFF_SIZE   1024

Definition at line 27 of file apinames.c.

Referenced by read_header_file().

#define PROGRAM_NAME   "apinames"

Definition at line 24 of file apinames.c.

#define PROGRAM_VERSION   "0.1"

Definition at line 25 of file apinames.c.

Referenced by usage().


Typedef Documentation

typedef struct NameRec_ * Name

typedef struct NameRec_ NameRec

typedef enum OutputFormat_ OutputFormat

typedef enum State_ State


Enumeration Type Documentation

enum OutputFormat_

Definition at line 29 of file apinames.c.

enum State_

Definition at line 194 of file apinames.c.


Function Documentation

int main ( int  argc,
const char *const *  argv 
)

Definition at line 319 of file apinames.c.

References fclose(), fopen, fprintf(), names_dump(), names_sort(), NULL, num_names, out, OUTPUT_BORLAND_DEF, OUTPUT_LIST, OUTPUT_WATCOM_LBC, OUTPUT_WINDOWS_DEF, panic(), read_header_file(), usage, and verbose.

static int name_compare ( const void *  name1,
const void *  name2 
) [static]

Definition at line 106 of file apinames.c.

References NameRec_::name.

Referenced by names_sort().

static void names_add ( const char *  name,
const char *  end 
) [static]

Definition at line 59 of file apinames.c.

References h, NameRec_::hash, int, len, malloc(), max_names, NameRec_::name, NULL, num_names, panic(), realloc(), and the_names.

Referenced by read_header_file().

static void names_dump ( FILE *  out,
OutputFormat  format,
const char *  dll_name 
) [static]

Definition at line 123 of file apinames.c.

References RootCsg::dot(), fprintf(), len, name, NULL, num_names, OUTPUT_BORLAND_DEF, OUTPUT_WATCOM_LBC, OUTPUT_WINDOWS_DEF, and the_names.

Referenced by main().

static void names_sort ( void   )  [static]

Definition at line 116 of file apinames.c.

References name_compare(), num_names, size_t, and the_names.

Referenced by main().

static void panic ( const char *  message  )  [static]

Definition at line 40 of file apinames.c.

References fprintf().

Referenced by main(), and names_add().

static int read_header_file ( FILE *  file,
int  verbose 
) [static]

Definition at line 202 of file apinames.c.

References fprintf(), LINEBUFF_SIZE, name, names_add(), p, STATE_START, and STATE_TYPE.

Referenced by main().

static void usage ( void   )  [static]

Definition at line 290 of file apinames.c.

References fprintf(), PROGRAM_NAME, and PROGRAM_VERSION.


Variable Documentation

int max_names [static]

Definition at line 56 of file apinames.c.

Referenced by names_add().

int num_names [static]

Definition at line 55 of file apinames.c.

Referenced by load_format_20(), main(), names_add(), names_dump(), and names_sort().

Name the_names [static]

Definition at line 54 of file apinames.c.

Referenced by names_add(), names_dump(), and names_sort().


Generated on Tue Jul 5 15:58:26 2011 for ROOT_528-00b_version by  doxygen 1.5.1