Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

/home/groups/n/no/noxwizard/cvs/src/amx/amxcore.c File Reference

#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <limits.h>
#include <assert.h>
#include "amx.h"

Compounds

struct  _property_list

Defines

#define CHARBITS   (8*sizeof(char))
#define IL_RMULT   1103515245L

Typedefs

typedef unsigned char uchar
typedef _property_list proplist

Functions

proplistlist_additem (proplist *root)
void list_delete (proplist *pred, proplist *item)
void list_setitem (proplist *item, cell id, char *name, cell value)
proplistlist_finditem (proplist *root, cell id, char *name, cell value, proplist **pred)
cell numargs (AMX *amx, cell *params)
cell getarg (AMX *amx, cell *params)
cell setarg (AMX *amx, cell *params)
cell heapspace (AMX *amx, cell *params)
cell funcidx (AMX *amx, cell *params)
int amx_StrPack (cell *dest, cell *source)
int amx_StrUnpack (cell *dest, cell *source)
int verify_addr (AMX *amx, cell addr)
cell core_strlen (AMX *amx, cell *params)
cell strpack (AMX *amx, cell *params)
cell strunpack (AMX *amx, cell *params)
cell swapchars (AMX *amx, cell *params)
cell core_tolower (AMX *amx, cell *params)
cell core_toupper (AMX *amx, cell *params)
cell core_min (AMX *amx, cell *params)
cell core_max (AMX *amx, cell *params)
cell core_clamp (AMX *amx, cell *params)
char * MakePackedString (cell *cptr)
cell getproperty (AMX *amx, cell *params)
cell setproperty (AMX *amx, cell *params)
cell delproperty (AMX *amx, cell *params)
cell existproperty (AMX *amx, cell *params)
cell core_random (AMX *amx, cell *params)
void core_Init (void)
void core_Exit (void)

Variables

proplist proproot
unsigned long IL_StandardRandom_seed
AMX_NATIVE_INFO core_Natives []

Define Documentation

#define CHARBITS   (8*sizeof(char))
 

#define IL_RMULT   1103515245L
 


Typedef Documentation

typedef struct _property_list proplist
 

typedef unsigned char uchar
 


Function Documentation

int amx_StrPack cell   dest,
cell   source
 

int amx_StrUnpack cell   dest,
cell   source
 

cell core_clamp AMX   amx,
cell   params
[static]
 

void core_Exit void   
 

void core_Init void   
 

cell core_max AMX   amx,
cell   params
[static]
 

cell core_min AMX   amx,
cell   params
[static]
 

cell core_random AMX   amx,
cell   params
[static]
 

cell core_strlen AMX   amx,
cell   params
[static]
 

cell core_tolower AMX   amx,
cell   params
[static]
 

cell core_toupper AMX   amx,
cell   params
[static]
 

cell delproperty AMX   amx,
cell   params
[static]
 

cell existproperty AMX   amx,
cell   params
[static]
 

cell funcidx AMX   amx,
cell   params
[static]
 

cell getarg AMX   amx,
cell   params
[static]
 

cell getproperty AMX   amx,
cell   params
[static]
 

cell heapspace AMX   amx,
cell   params
[static]
 

proplist* list_additem proplist   root [static]
 

void list_delete proplist   pred,
proplist   item
[static]
 

proplist* list_finditem proplist   root,
cell    id,
char *    name,
cell    value,
proplist **    pred
[static]
 

void list_setitem proplist   item,
cell    id,
char *    name,
cell    value
[static]
 

char* MakePackedString cell   cptr [static]
 

cell numargs AMX   amx,
cell   params
[static]
 

cell setarg AMX   amx,
cell   params
[static]
 

cell setproperty AMX   amx,
cell   params
[static]
 

cell strpack AMX   amx,
cell   params
[static]
 

cell strunpack AMX   amx,
cell   params
[static]
 

cell swapchars AMX   amx,
cell   params
[static]
 

int verify_addr AMX   amx,
cell    addr
[static]
 


Variable Documentation

AMX_NATIVE_INFO core_Natives[]
 

Initial value:

 {
  { "numargs",       numargs },
  { "getarg",        getarg },
  { "setarg",        setarg },
  { "heapspace",     heapspace },
  { "funcidx",       funcidx },
  { "strlen",        core_strlen },
  { "strpack",       strpack },
  { "strunpack",     strunpack },
  { "swapchars",     swapchars },
  { "tolower",       core_tolower },
  { "toupper",       core_toupper },
  { "random",        core_random },
  { "min",           core_min },
  { "max",           core_max },
  { "clamp",         core_clamp },

  { "getproperty",   getproperty },
  { "setproperty",   setproperty },
  { "deleteproperty",delproperty },
  { "existproperty", existproperty },

  { NULL, NULL }        
}

unsigned long IL_StandardRandom_seed [static]
 

proplist proproot [static]
 

SourceForge.net Logo