#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 LINEBUFF_SIZE 1024 |
#define PROGRAM_NAME "apinames" |
Definition at line 24 of file apinames.c.
#define PROGRAM_VERSION "0.1" |
typedef enum OutputFormat_ OutputFormat |
enum OutputFormat_ |
Definition at line 29 of file apinames.c.
enum State_ |
Definition at line 194 of file apinames.c.
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] |
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] |
int max_names [static] |
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().
Definition at line 54 of file apinames.c.
Referenced by names_add(), names_dump(), and names_sort().