functions.h
AlloyMUSH-1.1/src/functions.h · 1.1 KB
From the archive AlloyMUSH-1.1.tar.gz
Download the archive « Back to the archive contents
/* functions.h - declarations for functions & function processing */
#include "copyright.h"
#include "ansi.h"
#ifndef __FUNCTIONS_H
#define __FUNCTIONS_H
#ifndef lint
static char functions_RCSid[] = "$Id: functions.h,v 1.3 1994/10/24 15:01:31 xmen Exp $";
#endif
typedef struct fun {
const char *name; /* function name */
void (*fun) (); /* handler */
int nargs; /* Number of args needed or expected */
int flags; /* Function flags */
int perms; /* Access to function */
}
FUN;
typedef struct ufun {
const char *name; /* function name */
dbref obj; /* Object ID */
int atr; /* Attribute ID */
int flags; /* Function flags */
int perms; /* Access to function */
struct ufun *next; /* Next ufun in chain */
} UFUN;
#define FN_VARARGS 1 /* Function allows a variable # of args */
#define FN_NO_EVAL 2 /* Don't evaluate args to function */
#define FN_PRIV 4 /* Perform user-def function as holding obj */
extern void NDECL(init_functab);
extern void FDECL(list_functable, (dbref));
#endif