mklink.c File Reference

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

Include dependency graph for mklink.c:

Go to the source code of this file.

Classes

struct  usecode_func

Typedefs

typedef unsigned char byte
typedef unsigned short u16b
typedef unsigned long u32b
typedef usecode_func usecode_func

Functions

void read_u16b (FILE *fff, u16b *n)
void read_u32b (FILE *fff, u32b *n)
void write_u16b (FILE *fff, u16b n)
void write_u32b (FILE *fff, u32b n)
u16b get_total_size (u16b *call_tree, u16b tree_size)
u16bget_tree (u16b func_num, u16b *num)
void clear_visited (void)
int comp_func (const void *one, const void *two)
void fix_tree (u16b *tree, u16b *tree_size)
int main (void)

Variables

usecode_func functions [4096]


Typedef Documentation

typedef unsigned char byte

Definition at line 13 of file mklink.c.

typedef unsigned short u16b

Definition at line 14 of file mklink.c.

typedef unsigned long u32b

Definition at line 15 of file mklink.c.

typedef struct usecode_func usecode_func

Definition at line 18 of file mklink.c.


Function Documentation

void clear_visited ( void   ) 

Definition at line 229 of file mklink.c.

References functions.

Referenced by main().

int comp_func ( const void *  one,
const void *  two 
)

Definition at line 244 of file mklink.c.

Referenced by fix_tree().

void fix_tree ( u16b tree,
u16b tree_size 
)

Definition at line 262 of file mklink.c.

References comp_func().

Referenced by main().

Here is the call graph for this function:

u16b get_total_size ( u16b call_tree,
u16b  tree_size 
)

Definition at line 138 of file mklink.c.

References functions, usecode_func::size, and size.

Referenced by main().

u16b* get_tree ( u16b  func_num,
u16b num 
)

Definition at line 163 of file mklink.c.

References usecode_func::called, functions, usecode_func::num_call, and usecode_func::visited.

Referenced by main().

int main ( void   ) 

Definition at line 271 of file mklink.c.

References usecode_func::called, clear_visited(), fix_tree(), functions, get_total_size(), get_tree(), usecode_func::num_call, read_u16b(), usecode_func::size, Ucscript::usecode, usecode_func::where, write_u16b(), and write_u32b().

Here is the call graph for this function:

void read_u16b ( FILE *  fff,
u16b n 
)

Definition at line 44 of file mklink.c.

Referenced by main().

void read_u32b ( FILE *  fff,
u32b n 
)

Definition at line 63 of file mklink.c.

void write_u16b ( FILE *  fff,
u16b  n 
)

Definition at line 90 of file mklink.c.

Referenced by main().

void write_u32b ( FILE *  fff,
u32b  n 
)

Definition at line 108 of file mklink.c.

Referenced by main().


Variable Documentation

usecode_func functions[4096]

Definition at line 39 of file mklink.c.

Referenced by clear_visited(), get_total_size(), get_tree(), main(), and yyparse().


Generated on Mon Jul 9 14:45:47 2007 for ExultEngine by  doxygen 1.5.1