#include "copyright.h"
Include dependency graph for functions.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | fun |
struct | ufun |
Defines | |
#define | FN_VARARGS 1 |
#define | FN_NO_EVAL 2 |
#define | FN_PRIV 4 |
#define | FN_PRES 8 |
Typedefs | |
typedef fun | FUN |
typedef ufun | UFUN |
Functions | |
void | init_functab (void) |
void | list_functable (dbref) |
dbref | match_thing (dbref, char *) |
#define FN_NO_EVAL 2 |
#define FN_PRES 8 |
#define FN_PRIV 4 |
#define FN_VARARGS 1 |
Definition at line 28 of file functions.h.
void init_functab | ( | void | ) |
Definition at line 5808 of file functions.c.
05809 { 05810 FUN *fp; 05811 char *buff, *cp, *dp; 05812 05813 buff = alloc_sbuf("init_functab"); 05814 hashinit(&mudstate.func_htab, 100 * HASH_FACTOR); 05815 for(fp = flist; fp->name; fp++) { 05816 cp = (char *) fp->name; 05817 dp = buff; 05818 while (*cp) { 05819 *dp = ToLower(*cp); 05820 cp++; 05821 dp++; 05822 } 05823 *dp = '\0'; 05824 hashadd(buff, (int *) fp, &mudstate.func_htab); 05825 } 05826 free_sbuf(buff); 05827 ufun_head = NULL; 05828 hashinit(&mudstate.ufunc_htab, 11); 05829 }
void list_functable | ( | dbref | ) |
Definition at line 5942 of file functions.c.
05943 { 05944 FUN *fp; 05945 UFUN *ufp; 05946 char *buf, *bp, *cp; 05947 05948 buf = alloc_lbuf("list_functable"); 05949 bp = buf; 05950 05951 /* Hardcoded Functions */ 05952 for(cp = (char *) "Functions:"; *cp; cp++) 05953 *bp++ = *cp; 05954 for(fp = flist; fp->name; fp++) { 05955 if(check_access(player, fp->perms)) { 05956 *bp++ = ' '; 05957 for(cp = (char *) (fp->name); *cp; cp++) 05958 *bp++ = *cp; 05959 } 05960 } 05961 *bp = '\0'; 05962 notify(player, buf); 05963 05964 /* User-Defined functions (via @function) */ 05965 bp = buf; 05966 safe_str("User-Functions:", buf, &bp); 05967 05968 for(ufp = ufun_head; ufp; ufp = ufp->next) { 05969 if(check_access(player, ufp->perms)) { 05970 *bp++ = ' '; 05971 for(cp = (char *) (ufp->name); *cp; cp++) 05972 *bp++ = *cp; 05973 } 05974 } 05975 *bp = '\0'; 05976 notify(player, buf); 05977 free_lbuf(buf); 05978 }
Definition at line 289 of file functions.c.
00290 { 00291 init_match(player, name, NOTYPE); 00292 match_everything(MAT_EXIT_PARENTS); 00293 return (noisy_match_result()); 00294 }