sourcepawn/include/sp_vm_types.h
changeset 34 d4ebd5958b68
parent 33 6148f78000ae
child 37 1db7f62ebd8f
     1.1 --- a/sourcepawn/include/sp_vm_types.h	Sat Jul 29 21:02:28 2006 +0000
     1.2 +++ b/sourcepawn/include/sp_vm_types.h	Sat Jul 29 23:29:52 2006 +0000
     1.3 @@ -24,7 +24,7 @@
     1.4   * Information about the core plugin tables.
     1.5   * These may or may not be present!
     1.6   */
     1.7 -typedef struct sp_plugin_infotab_t
     1.8 +typedef struct sp_plugin_infotab_s
     1.9  {
    1.10  	const char *stringbase;		/* base of string table */
    1.11  	uint32_t	publics_num;	/* number of publics */
    1.12 @@ -33,13 +33,13 @@
    1.13  	sp_file_natives_t *natives; /* native table */
    1.14  	uint32_t	pubvars_num;	/* number of pubvars */
    1.15  	sp_file_pubvars_t *pubvars;	/* pubvars table */	
    1.16 -} sp_plugin_infotab_s;
    1.17 +} sp_plugin_infotab_t;
    1.18  
    1.19  /**
    1.20   * Information about the plugin's debug tables.
    1.21   * These are all present if one is present.
    1.22   */
    1.23 -typedef struct sp_plugin_debug_t
    1.24 +typedef struct sp_plugin_debug_s
    1.25  {
    1.26  	const char *stringbase;		/* base of string table */
    1.27  	uint32_t	files_num;		/* number of files */
    1.28 @@ -48,7 +48,7 @@
    1.29  	sp_fdbg_line_t *lines;		/* lines table */
    1.30  	uint32_t	syms_num;		/* number of symbols */
    1.31  	sp_fdbg_symbol_t *symbols;	/* symbol table */
    1.32 -} sp_plugin_debug_s;
    1.33 +} sp_plugin_debug_t;
    1.34  
    1.35  #define SP_FA_SELF_EXTERNAL		(1<<0)
    1.36  #define SP_FA_BASE_EXTERNAL		(1<<1)
    1.37 @@ -58,7 +58,7 @@
    1.38   * This differs from the on-disk structure to ensure
    1.39   *  that the format is properly read.
    1.40   */
    1.41 -typedef struct sp_plugin_t
    1.42 +typedef struct sp_plugin_s
    1.43  {
    1.44  	uint8_t		*base;			/* base of memory */
    1.45  	uint8_t		*pcode;			/* p-code */
    1.46 @@ -70,10 +70,10 @@
    1.47  	uint32_t	allocflags;		/* allocation flags */
    1.48  	sp_plugin_infotab_t *info;	/* base info table */
    1.49  	sp_plugin_debug_t *debug;	/* debug info table */
    1.50 -} sp_plugin_s;
    1.51 +} sp_plugin_t;
    1.52  
    1.53  struct sp_context_s;
    1.54 -typedef int (*SPVM_NATIVE_FUNC)(sp_context_s *, cell_t *);
    1.55 +typedef int (*SPVM_NATIVE_FUNC)(struct sp_context_s *, cell_t *);
    1.56  
    1.57  /**********************************************
    1.58   *** The following structures are bound to the VM/JIT.
    1.59 @@ -85,22 +85,22 @@
    1.60   * By default, these point back to the string table 
    1.61   *  in the sp_plugin_infotab_t structure.
    1.62   */
    1.63 -typedef struct sp_public_t
    1.64 +typedef struct sp_public_s
    1.65  {
    1.66  	uint32_t	offs;		/* code offset */
    1.67  	const char *name;		/* name */
    1.68 -} sp_publics_s;
    1.69 +} sp_public_t;
    1.70  
    1.71  /**
    1.72   * Offsets and names to public variables.
    1.73   * The offset is relocated and the name by default
    1.74   *  points back to the sp_plugin_infotab_t structure.
    1.75   */
    1.76 -typedef struct sp_pubvar_t
    1.77 +typedef struct sp_pubvar_s
    1.78  {
    1.79  	cell_t	   *offs;		/* pointer to data */
    1.80  	const char *name;		/* name */
    1.81 -} sp_pubvar_t 
    1.82 +} sp_pubvar_t;
    1.83  
    1.84  #define SP_NATIVE_NONE		(0)		/* Native is not yet found */
    1.85  #define SP_NATIVE_OKAY		(1)		/* Native has been added */
    1.86 @@ -111,7 +111,7 @@
    1.87   *  point back to the sp_plugin_infotab_t structure.
    1.88   * A native is NULL if unit
    1.89   */
    1.90 -typedef struct sp_native_t
    1.91 +typedef struct sp_native_s
    1.92  {
    1.93  	SPVM_NATIVE_FUNC	pfn;	/* function pointer */
    1.94  	const char *		name;	/* name of function */
    1.95 @@ -190,7 +190,7 @@
    1.96  	int32_t			err;		/* error code */
    1.97  	uint32_t		pushcount;	/* push count */
    1.98  	/* context rebased database */
    1.99 -	sp_public_t		*publics	/* public functions table */
   1.100 +	sp_public_t		*publics;	/* public functions table */
   1.101  	sp_pubvar_t		*pubvars;	/* public variables table */
   1.102  	sp_native_t		*natives;	/* natives table */
   1.103  	sp_debug_file_t	*files;		/* files */