PennMUSH Community

Changeset 269

Show
Ignore:
Timestamp:
04/19/06 22:39:01 (3 years ago)
Author:
pennmush
Message:

PennMUSH 1.7.3p5 Archival

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.7.3/CHANGES

    r267 r269  
    1515 
    1616========================================================================== 
     17 
     18Version 1.7.3 patchlevel 5                    September 7, 2000 
     19 
     20Minor Changes: 
     21      * FLOATING_POINT is no longer an option (it's always on). [SW] 
     22      * EXTENDED_ANSI defaults to enabled. [SW] 
     23Attributes: 
     24      * @receive/@oreceive/@areceive triggered on the recipient 
     25        after a get or give, so you've got access to who caused 
     26        you to acquire the object and the object's dbref now. 
     27      * @give/@ogive/@agive triggered on the giver with object's 
     28        dbref in %0. Suggested by Oriens@Alexandria.  
     29Fixes: 
     30      * Fixes for systems with broken or incomplete IPv6 support. [SW] 
     31      * Uses of index() changed to strchr() for consistency. [SW] 
     32      * Much removal of duplicate function prototypes and rearranging 
     33        of headers.  hdrs/globals.h is now hdrs/case.h. hdrs/intrface.h is  
     34        no more, and hdrs/boolexp.h, hdrs/log.h were added. [SW] 
     35      * @search supports "quoted player names". 
     36      * We no longer report failed connect to ident servers in the log. 
    1737 
    1838Version 1.7.3 patchlevel 4                    August 8, 2000 
  • 1.7.3/Configure

    r267 r269  
    273273d_fpsetround='' 
    274274i_floatingpoint='' 
     275d_gaistr='' 
    275276d_getadinf='' 
    276277d_getdate='' 
     
    289290d_in2p='' 
    290291d_internet='' 
     292d_ipv6='' 
    291293d_keepsig='' 
    292294d_memcpy='' 
     
    38933895$rm -f test_fpset* core 
    38943896 
     3897: see if gai_strerror exists 
     3898set gai_strerror d_gaistr 
     3899eval $inlibc 
     3900 
    38953901: see if getaddrinfo exists 
    38963902set getaddrinfo d_getadinf 
     
    43784384eval $setvar 
    43794385 
     4386: see if we have struct sockaddr_in6. 
     4387echo " " 
     4388$cat >d_ipv6.c <<EOCP 
     4389#include <sys/types.h> 
     4390#include <sys/socket.h> 
     4391#include <netinet/in.h> 
     4392#include <stdio.h> 
     4393main() 
     4394{ 
     4395    struct sockaddr_in6 test; 
     4396    int foo = AF_INET6; 
     4397    printf("%d\n", foo); 
     4398} 
     4399EOCP 
     4400if $cc $ccflags $ldflags d_ipv6.c -o d_ipv6 $libs >/dev/null 2>&1; then 
     4401    val="$define" 
     4402    set d_ipv6; eval $setvar 
     4403    echo "IPv6 structures found." 
     4404else 
     4405    val="$undef" 
     4406    set d_ipv6; eval $setvar 
     4407    echo "No IPv6 structures found. No problem." 
     4408fi 
    43804409echo " " 
    43814410: see if we have sigaction 
     
    47594788eval $inlibc 
    47604789 
     4790: see if sys/types.h has to be included 
     4791set sys/types.h i_systypes 
     4792eval $inhdr 
     4793 
     4794: see if this is a sys/socket.h system 
     4795set sys/socket.h i_syssock 
     4796eval $inhdr 
     4797 
    47614798: see if we have socklen_t. 
    47624799echo " " 
    47634800$cat >d_socklen.c <<EOCP 
     4801#$i_systypes I_SYS_TYPES 
     4802#$i_syssock I_SYS_SOCKET 
     4803#ifdef I_SYS_TYPES 
     4804#include <sys/types.h> 
     4805#endif 
     4806#ifdef I_SYS_SOCKET 
    47644807#include <sys/socket.h> 
     4808#endif 
    47654809#include <stdio.h> 
    47664810main() 
     
    55885632: see if sys/select.h has to be included 
    55895633set sys/select.h i_sysselct 
    5590 eval $inhdr 
    5591  
    5592 : see if this is a sys/socket.h system 
    5593 set sys/socket.h i_syssock 
    55945634eval $inhdr 
    55955635 
     
    56805720esac 
    56815721$rm -f try.c try 
    5682  
    5683 : see if sys/types.h has to be included 
    5684 set sys/types.h i_systypes 
    5685 eval $inhdr 
    56865722 
    56875723: see if sys/vlimit.h has to be included 
     
    63606396d_fpsetmask='$d_fpsetmask' 
    63616397d_fpsetround='$d_fpsetround' 
     6398d_gaistr='$d_gaistr' 
    63626399d_getadinf='$d_getadinf' 
    63636400d_getdate='$d_getdate' 
     
    63756412d_int_max='$d_int_max' 
    63766413d_internet='$d_internet' 
     6414d_ipv6='$d_ipv6' 
    63776415d_keepsig='$d_keepsig' 
    63786416d_lrand48='$d_lrand48' 
  • 1.7.3/MANIFEST

    r267 r269  
    99hdrs/atr_tab.h 
    1010hdrs/attrib.h 
     11hdrs/boolexp.h 
    1112hdrs/command.h 
    1213hdrs/htab.h 
    1314hdrs/privtab.h 
    1415hdrs/switches.h 
     16hdrs/case.h 
    1517hdrs/conf.h 
    1618hdrs/copyrite.h 
     
    2325hdrs/game.h 
    2426hdrs/getpgsiz.h 
    25 hdrs/globals.h 
    2627hdrs/help.h 
    2728hdrs/ident.h 
    28 hdrs/intrface.h 
    2929hdrs/lock.h 
     30hdrs/log.h 
    3031hdrs/malias.h 
    3132hdrs/match.h 
    3233hdrs/memcheck.h 
    3334hdrs/mushdb.h 
     35hdrs/mushtype.h 
    3436hdrs/mymalloc.h 
    3537hdrs/mysocket.h 
  • 1.7.3/Patchlevel

    r267 r269  
    11Do not edit this file. It is maintained by the official PennMUSH patches. 
    2 This is PennMUSH 1.7.3p4 
     2This is PennMUSH 1.7.3p5 
  • 1.7.3/config_h.SH

    r267 r269  
    238238 *  include <netinet/in.h>. Otherwise, you may try <sys/in.h>. 
    239239 */ 
     240/* I_SYS_IN: 
     241 *  This symbol, if defined, indicates to the C program that it should 
     242 *  include <sys/in.h> instead of <netinet/in.h>. 
     243 */ 
    240244#$i_niin I_NETINET_IN   /**/ 
     245#$i_sysin I_SYS_IN      /**/ 
    241246 
    242247/* I_STDDEF: 
     
    465470#$i_floatingpoint I_FLOATINGPOINT       /**/ 
    466471 
     472/* HAS_GAI_STRERROR: 
     473 *  This symbol, if defined, indicates that getaddrinfo()'s error cores 
     474 * can be converted to strings for printing. 
     475 */ 
     476#$d_gaistr HAS_GAI_STRERROR     /**/ 
     477 
    467478/* HAS_GETADDRINFO: 
    468479 *  This symbol, if defined, indicates that the getaddrinfo() routine is 
     
    539550 */ 
    540551#$d_in2p HAS_INET_PTON      /**/ 
     552 
     553/* HAS_IPV6: 
     554 *  If defined, this system has the sockaddr_in6 struct and AF_INET6. 
     555 * We can't rely on just AF_INET6 being defined. 
     556 */ 
     557#$d_ipv6 HAS_IPV6   /**/ 
    541558 
    542559/* SIGNALS_KEPT: 
  • 1.7.3/game/txt/hlp/penncmd.hlp

    r267 r269  
    20062006 
    20072007See also: give, @apay, @opay, and @cost. 
     2008& @receive 
     2009& @oreceive 
     2010& @areceive 
     2011  @receive <recipient> [=<message>] 
     2012  @oreceive <recipient> [=<message>] 
     2013  @areceive <recipient> [=<message>] 
     2014 
     2015  @receive sets the message that is shown to the recipient who  
     2016  acquires an object by 'get'ing it or having it 'give'n to them. 
     2017  @oreceive is a mesasge shown to others in the recipient's location, 
     2018  and @areceive is an action run by the recipient. If not set, 
     2019  the recipient gets a default message ("Jane gave you A Headache"). 
     2020   
     2021  %0 will be set to the dbref of the object received. 
     2022  %1 will be set to the dbref of the giver if a 'give' was performed. 
     2023 
     2024See also: give 
     2025& @give 
     2026& @ogive 
     2027& @agive 
     2028  @give <giver> [=<message>] 
     2029  @ogive <giver> [=<message>] 
     2030  @agive <giver> [=<message>] 
     2031 
     2032  @give sets the message that is shown to the giver when giving an object 
     2033  to someone else.  @ogive is a mesasge shown to others in the giver's 
     2034  location, and @agive is an action run by the giver. If not set, 
     2035  the giver gets a default message ("Given.") 
     2036 
     2037  %0 will be set to the dbref of the object given. 
     2038 
     2039See also: give 
    20082040& @pcreate 
    20092041  @pcreate <name> = <password> 
     
    29743006  give an object. 
    29753007 
    2976 See also: @pay, @cost, @lock, inventory 
     3008See also: @pay, @cost, @lock, inventory, @receive, @give 
    29773009& go 
    29783010& goto 
  • 1.7.3/game/txt/hlp/pennvers.hlp

    r267 r269  
    11& changes 
    2 & 1.7.3p4 
     2& 1.7.3p5 
    33This is a list of changes in this patchlevel which are probably of 
    44interest to players. More information about new commands and functions 
     
    1010be read in 'help patchlevels'. 
    1111 
     12Version 1.7.3 patchlevel 5                    September 7, 2000 
     13 
     14Minor Changes: 
     15      * FLOATING_POINT is no longer an option (it's always on). [SW] 
     16      * EXTENDED_ANSI defaults to enabled. [SW] 
     17Attributes: 
     18      * @receive/@oreceive/@areceive triggered on the recipient 
     19        after a get or give, so you've got access to who caused 
     20        you to acquire the object and the object's dbref now. 
     21      * @give/@ogive/@agive triggered on the giver with object's 
     22        dbref in %0. Suggested by Oriens@Alexandria.  
     23Fixes: 
     24      * Fixes for systems with broken or incomplete IPv6 support. [SW] 
     25      * Uses of index() changed to strchr() for consistency. [SW] 
     26      * Much removal of duplicate function prototypes and rearranging 
     27        of headers.  hdrs/globals.h is now hdrs/case.h. hdrs/intrface.h is  
     28        no more, and hdrs/boolexp.h, hdrs/log.h were added. [SW] 
     29      * @search supports "quoted player names". 
     30      * We no longer report failed connect to ident servers in the log. 
     31 
     32& 1.7.3p4 
    1233Version 1.7.3 patchlevel 4                    August 8, 2000 
    1334 
     
    39273948 
    39283949& patchlevels 
    3929 1.7.3: 0, 1, 2, 3, 4 
     39501.7.3: 0, 1, 2, 3, 4, 5 
    393039511.7.2: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 
    39313952       19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32 
  • 1.7.3/hdrs/atr_tab.h

    r267 r269  
    2020  {(char *) "AFAILURE", AF_NOPROG, NULL, 0, NULL}, 
    2121  {(char *) "AFOLLOW", AF_NOPROG, NULL, 0, NULL}, 
     22  {(char *) "AGIVE", AF_NOPROG, NULL, 0, NULL}, 
    2223  {(char *) "AHEAR", AF_NOPROG, NULL, 0, NULL}, 
    2324  {(char *) "AIDESCRIBE", AF_NOPROG, NULL, 0, NULL}, 
     
    3132  {(char *) "AMOVE", AF_NOPROG, NULL, 0, NULL}, 
    3233  {(char *) "APAYMENT", AF_NOPROG, NULL, 0, NULL}, 
     34  {(char *) "ARECEIVE", AF_NOPROG, NULL, 0, NULL}, 
    3335  {(char *) "ASUCCESS", AF_NOPROG, NULL, 0, NULL}, 
    3436  {(char *) "ATPORT", AF_NOPROG, NULL, 0, NULL}, 
     
    5658  {(char *) "FOLLOWERS", AF_NOPROG | AF_PRIVATE | AF_WIZARD | AF_NOCOPY, 
    5759   NULL, 0, NULL}, 
     60  {(char *) "GIVE", AF_NOPROG, NULL, 0, NULL}, 
    5861  {(char *) "HAVEN", AF_NOPROG, NULL, 0, NULL}, 
    5962  {(char *) "IDESCRIBE", AF_NOPROG, NULL, 0, NULL}, 
     
    8689  {(char *) "OFAILURE", AF_NOPROG, NULL, 0, NULL}, 
    8790  {(char *) "OFOLLOW", AF_NOPROG, NULL, 0, NULL}, 
     91  {(char *) "OGIVE", AF_NOPROG, NULL, 0, NULL}, 
    8892  {(char *) "OIDESCRIBE", AF_NOPROG, NULL, 0, NULL}, 
    8993  {(char *) "OLEAVE", AF_NOPROG, NULL, 0, NULL}, 
     
    9195  {(char *) "OMOVE", AF_NOPROG, NULL, 0, NULL}, 
    9296  {(char *) "OPAYMENT", AF_NOPROG, NULL, 0, NULL}, 
     97  {(char *) "ORECEIVE", AF_NOPROG, NULL, 0, NULL}, 
    9398  {(char *) "OXMOVE", AF_NOPROG, NULL, 0, NULL}, 
    9499  {(char *) "OSUCCESS", AF_NOPROG, NULL, 0, NULL}, 
     
    102107  {(char *) "PAYMENT", AF_NOPROG, NULL, 0, NULL}, 
    103108  {(char *) "PREFIX", AF_NOPROG, NULL, 0, NULL}, 
     109  {(char *) "RECEIVE", AF_NOPROG, NULL, 0, NULL}, 
    104110  {(char *) "QUEUE", AF_MDARK | AF_WIZARD, NULL, 0, NULL}, 
    105111 
  • 1.7.3/hdrs/attrib.h

    r267 r269  
    11#ifndef _ATTRIB_H 
    22#define _ATTRIB_H 
    3  
    4 typedef int dbref;      /* offset into db */ 
    5  
    6 /* new attribute foo */ 
    7 typedef struct attr ATTR; 
    83 
    94/* the attribute structure */ 
     
    1611}; 
    1712 
    18 struct boolatr { 
    19   char *name;           /* which attribute? */ 
    20   unsigned char *text; 
    21 }; 
     13/* Stuff that's actually in atr_tab.c */ 
     14extern ATTR *aname_hash_lookup _((const char *name)); 
     15extern void do_attribute_access 
     16_((dbref player, char *name, char *perms, int retroactive)); 
     17extern void do_attribute_delete _((dbref player, char *name)); 
     18extern void do_attribute_rename _((dbref player, char *old, char *newname)); 
     19extern void do_attribute_info _((dbref player, char *name)); 
     20extern void do_list_attribs _((dbref player, int lc)); 
     21 
     22/* From attrib.c */ 
     23extern ATTR *atr_match _((char const *string)); 
     24extern void atr_new_add _((dbref thing, char const *atr, char const *s, 
     25               dbref player, int flags)); 
     26extern int atr_add _((dbref thing, char const *atr, char const *s, 
     27              dbref player, int flags)); 
     28extern int atr_clr _((dbref thing, char const *atr, dbref player)); 
     29extern ATTR *atr_get _((dbref thing, char const *atr)); 
     30extern ATTR *atr_get_noparent _((dbref thing, char const *atr)); 
     31#ifdef CAN_TAKE_ARGS_IN_FP 
     32extern int atr_iter_get _((dbref player, dbref thing, char const *name, 
     33               int (*func) 
     34               _((dbref player, dbref thing, 
     35                  char const *pattern, ATTR *atr, void *args)), 
     36               void *args)); 
     37#else 
     38extern int atr_iter_get _((dbref player, dbref thing, char const *name, 
     39               int (*func) (), void *args)); 
     40#endif 
     41extern ATTR *atr_complete_match _((dbref player, char const *atr, dbref privs)); 
     42extern void atr_free _((dbref thing)); 
     43extern void atr_cpy _((dbref dest, dbref source)); 
     44extern char const *const convert_atr _((int oldatr)); 
     45extern int atr_comm_match _((dbref thing, dbref player, int type, int end, 
     46                 char const *str, int just_match, char **atrname)); 
     47extern int do_set_atr 
     48_((dbref thing, char const *atr, char const *s, dbref player, int flags)); 
     49extern void do_atrlock _((dbref player, char const *arg1, char const *arg2)); 
     50extern void do_atrchown _((dbref player, char const *arg1, char const *arg2)); 
     51extern int string_to_atrflag _((dbref player, const char *p)); 
     52 
    2253 
    2354/* possible attribute flags */ 
     
    5384#endif 
    5485 
    55 typedef ATTR ALIST; 
    56  
    5786#define AL_ATTR(alist)          (alist) 
    5887#define AL_NAME(alist)          ((alist)->name) 
  • 1.7.3/hdrs/command.h

    r267 r269  
    11#ifndef __COMMAND_H 
    22#define __COMMAND_H 
    3  
    4 #include "config.h" 
    5 #include "confmagic.h" 
    63 
    74#define NUM_BYTES 20 
     
    8380#ifdef CAN_NEWSTYLE 
    8481#define COMMAND(command_name) \ 
    85 void command_name _((COMMAND_INFO *cmd, dbref player, dbref cause, switch_mask sw,char *raw, char *switches, char *args_raw, \ 
     82void command_name _((COMMAND_INFO *cmd, dbref player, dbref cause, \ 
     83 switch_mask sw,char *raw, char *switches, char *args_raw, \ 
    8684                  char *arg_left, char *args_left[MAX_ARG], \ 
    8785                  char *arg_right, char *args_right[MAX_ARG])); \ 
     
    175173}; 
    176174 
    177 #include "cmds.h" 
    178  
    179175#define SWITCH_NONE 0 
    180176#include "switches.h" 
     
    218214extern void do_list_commands _((dbref player, int lc)); 
    219215extern int command_check_byname _((dbref player, const char *name)); 
     216extern int restrict_command _((const char *name, const char *restriction)); 
     217extern void reserve_aliases _((void)); 
     218extern void local_commands _((void)); 
    220219 
    221220#endif              /* __COMMAND_H */ 
  • 1.7.3/hdrs/conf.h

    r267 r269  
    66#include "copyrite.h" 
    77#include "options.h" 
     8#include "mushtype.h" 
    89 
    910#ifdef __GNUC__ 
     
    7172 
    7273/* ---  DO NOT CHANGE ANYTHING BELOW THIS LINE --- */ 
     74/* From conf.c */ 
     75extern void do_config_list _((dbref player, const char *type, int lc)); 
    7376 
    7477typedef struct fblock_header FBLKHDR; 
     
    250253  long dbck_counter; 
    251254  int max_attrcount; 
    252 #ifdef FLOATING_POINTS 
    253255  int float_precision; 
    254 #endif 
    255256}; 
    256257 
     
    397398#define MUSH_IP_ADDR (options.ip_addr) 
    398399#define MAX_ATTRCOUNT (options.max_attrcount) 
    399 #ifdef FLOATING_POINTS 
    400400#define FLOAT_PRECISION (options.float_precision) 
    401 #endif 
    402401#ifdef WIN32 
    403402/* --------------- Stuff for Win32 services ------------------ */ 
  • 1.7.3/hdrs/dbdefs.h

    r267 r269  
    1111#include <time.h> 
    1212#endif 
    13 #include "attrib.h" 
    14 #include "options.h" 
    1513 
    1614extern int depth; 
    17  
    18 typedef int object_flag_type; 
    19  
    20 #ifdef CHAT_SYSTEM 
    21 /* Must come after dbref is defined */ 
    22 #include "extchat.h" 
    23 #endif 
    2415 
    2516extern dbref first_free;    /* pointer to free list */ 
     
    2718/* macro to make set string easier to use */ 
    2819#define SET(a,b) set_string(&(a),b) 
    29  
    30 /* set macro for compressed strings */ 
    31  
    32 #ifdef COMPRESS 
    33 #define SETC(a,b) SET(a,compress(b)) 
    34 #else 
    35 #define SETC(a,b) SET(a,b) 
    36 #endif              /* COMPRESS */ 
    3720 
    3821/*------------------------------------------------------------------------- 
     
    239222 */ 
    240223 
    241 /* Boolean expressions, for locks */ 
    242 typedef char boolexp_type; 
    243 #define BOOLEXP_AND 0 
    244 #define BOOLEXP_OR 1 
    245 #define BOOLEXP_NOT 2 
    246 #define BOOLEXP_CONST 3 
    247 #define BOOLEXP_ATR 4 
    248 #define BOOLEXP_IND 5 
    249 #define BOOLEXP_CARRY 6 
    250 #define BOOLEXP_IS 7 
    251 #define BOOLEXP_OWNER 8 
    252 #define BOOLEXP_EVAL 9 
    253 #define BOOLEXP_NULL 127    /* Mark a lack of a boolexp */ 
    254  
    255 struct boolexp { 
    256   boolexp_type type;        /* and, or, not, indirect, is, carry, etc. */ 
    257   struct boolexp *sub1;     /* first part of lock */ 
    258   struct boolexp *sub2;     /* second part of lock */ 
    259   dbref thing;          /* thing refers to an object */ 
    260   struct boolatr *atr_lock; 
    261 }; 
    262  
    263 #define TRUE_BOOLEXP ((struct boolexp *) 0) 
    264  
    265 /* special dbref's */ 
    266 #define NOTHING (-1)        /* null dbref */ 
    267 #define AMBIGUOUS (-2)      /* multiple possibilities, for matchers */ 
    268 #define HOME (-3)       /* virtual room, represents mover's home */ 
    269 #define ANY_OWNER (-2)      /* For lstats and @stat */ 
    270  
    271224struct object { 
    272225  const char *name; 
     
    326279extern dbref db_top; 
    327280 
    328 extern const char *alloc_string _((void)); 
    329 extern dbref new_object _((void)); 
    330 extern void putstring _((FILE * f, const char *s)); 
    331 extern long getref _((FILE * f)); 
    332 extern void putref _((FILE * f, long int ref)); 
    333 extern const char *getstring_noalloc _((FILE * f)); 
    334 extern struct boolexp *getboolexp _((FILE * f)); 
    335 extern void putboolexp _((FILE * f, struct boolexp * b)); 
    336 extern int db_write_object _((FILE * f, dbref i)); 
    337 extern dbref db_write _((FILE * f, int flag)); 
    338 extern dbref db_read _((FILE * f)); 
    339 /* Warning: destroys existing db contents! */ 
    340 extern void free_bool _((struct boolexp * b)); 
    341 extern struct boolexp *dup_bool _((struct boolexp * b)); 
    342 extern struct boolexp *alloc_bool _((void)); 
    343 extern void free_boolexp _((struct boolexp * b)); 
    344 extern void db_free _((void)); 
    345 extern dbref parse_dbref _((const char *s)); 
    346 extern void putlocks _((FILE * f, struct lock_list *l)); 
    347 extern void getlocks _((dbref i, FILE * f)); 
    348 extern void get_old_locks _((dbref i, FILE * f)); 
    349  
    350281#define DOLIST(var, first)\ 
    351282    for((var) = (first); GoodObject((var)); (var) = Next(var)) 
     
    373304#endif              /* USE_MAILER */ 
    374305 
    375 /* log types */ 
    376 #define LT_ERR    0 
    377 #define LT_CMD    1 
    378 #define LT_WIZ    2 
    379 #define LT_CONN   3 
    380 #define LT_TRACE  4 
    381 #define LT_RPAGE  5     /* Obsolete */ 
    382 #define LT_CHECK  6 
    383 #define LT_HUH    7 
    384  
    385 /* tokens for locks */ 
    386 #define NOT_TOKEN '!' 
    387 #define AND_TOKEN '&' 
    388 #define OR_TOKEN '|' 
    389 #define AT_TOKEN '@' 
    390 #define IN_TOKEN '+' 
    391 #define IS_TOKEN '=' 
    392 #define OWNER_TOKEN '$' 
    393  
    394306#endif              /* __DBDEFS_H */ 
  • 1.7.3/hdrs/extchat.h

    r267 r269  
    5151  struct chanuser *next; 
    5252}; 
    53 typedef struct chanuser CHANUSER; 
    5453 
    5554/* Flags and macros for channel users */ 
     
    8786  struct channel *next;     /* Next in linked list */ 
    8887}; 
    89 typedef struct channel CHAN; 
    9088 
    9189struct chanlist { 
     
    9391  struct chanlist *next; 
    9492}; 
    95 typedef struct chanlist CHANLIST; 
     93 
    9694#define Chanlist(x) db[(x)].channels 
    9795 
     
    195193extern void do_chan_title 
    196194_((dbref player, const char *name, const char *title)); 
     195extern void do_channel_who _((dbref player, CHAN *chan)); 
     196 
     197/* From chat.c */ 
     198extern void init_chat _((void)); 
     199extern void do_channel 
     200_((dbref player, const char *name, const char *target, const char *com)); 
     201extern void do_chat _((dbref player, CHAN *chan, const char *arg1)); 
     202extern void do_chan_admin 
     203_((dbref player, char *name, const char *perms, int flag)); 
     204extern int find_channel _((const char *p, CHAN **chan)); 
     205extern int find_channel_partial _((const char *p, CHAN **chan, dbref player)); 
     206extern void do_channel_list _((dbref player, const char *partname)); 
     207extern int do_chat_by_name 
     208_((dbref player, const char *name, const char *msg, int source)); 
     209extern void do_chan_decompile _((dbref player, const char *name, int brief)); 
     210extern void do_chan_chown 
     211_((dbref player, const char *name, const char *newowner)); 
     212 
    197213 
    198214#endif              /* CHAT_SYSTEM */ 
  • 1.7.3/hdrs/externs.h

    r267 r269  
    2222#include "copyrite.h" 
    2323#include "conf.h" 
    24 #include "intrface.h" 
    25 /* Prototypes for externs not defined elsewhere */ 
    26 #include "parse.h"      /* Needed for NVAL */ 
    27 #include "mushdb.h" 
    28 #include "attrib.h" 
    29 #ifdef CHAT_SYSTEM 
    30 #include "extchat.h" 
    31 #endif 
    3224#include "confmagic.h" 
    3325#ifndef HAS_STRCASECMP 
     
    3527extern int strncasecmp _((const char *s1, const char *s2, Size_t n)); 
    3628#endif 
     29 
     30/* these symbols must be defined by the interface */ 
     31extern DESC *cdesc; 
     32extern time_t mudtime; 
     33 
     34extern int shutdown_flag;   /* if non-zero, interface should shut down */ 
     35extern void emergency_shutdown _((void)); 
     36extern void boot_desc _((DESC *d)); /* remove a player */ 
     37extern DESC *player_desc _((dbref player)); /* find descriptors */ 
     38extern DESC *inactive_desc _((dbref player));   /* find descriptors */ 
     39extern DESC *port_desc _((int port));   /* find descriptors */ 
     40extern void WIN32_CDECL flag_broadcast _((object_flag_type inflags, 
     41                      object_flag_type intoggles, 
     42                      const char *fmt, 
     43                      ...)) 
     44  __attribute__ ((__format__(__printf__, 3, 4))); 
     45 
     46extern void raw_notify _((dbref player, const char *msg)); 
     47extern dbref short_page _((const char *match)); 
     48extern void do_doing _((dbref player, const char *message)); 
     49 
     50/* the following symbols are provided by game.c */ 
     51 
     52 
     53 
     54#define SBUF_LEN 32 
     55#define DOING_LEN 40 
     56 
     57extern void process_command _((dbref player, char *command, 
     58                   dbref cause, int from_port)); 
     59extern int init_game_dbs _((void)); 
     60extern void init_game_config _((const char *conf)); 
     61extern void dump_database _((void)); 
     62extern void panic _((const char *message)) __attribute__ ((__noreturn__)); 
     63 
    3764 
    3865#ifdef WIN32 
     
    4168extern void kill_timer _((void)); 
    4269#endif              /* WIN32 */ 
    43  
    44 /* From attrib.c */ 
    45 extern struct boolatr *alloc_atr _((const char *name, char *s)); 
    46 extern ATTR *atr_match _((char const *string)); 
    47 extern void atr_new_add _((dbref thing, char const *atr, char const *s, 
    48                dbref player, int flags)); 
    49 extern int atr_add _((dbref thing, char const *atr, char const *s, 
    50               dbref player, int flags)); 
    51 extern int atr_clr _((dbref thing, char const *atr, dbref player)); 
    52 extern ATTR *atr_get _((dbref thing, char const *atr)); 
    53 extern ATTR *atr_get_noparent _((dbref thing, char const *atr)); 
    54 #ifdef CAN_TAKE_ARGS_IN_FP 
    55 extern int atr_iter_get _((dbref player, dbref thing, char const *name, 
    56                int (*func) 
    57                _((dbref player, dbref thing, 
    58                   char const *pattern, ATTR *atr, void *args)), 
    59                void *args)); 
    60 #else 
    61 extern int atr_iter_get _((dbref player, dbref thing, char const *name, 
    62                int (*func) (), void *args)); 
    63 #endif 
    64 extern ATTR *atr_complete_match _((dbref player, char const *atr, dbref privs)); 
    65 extern void atr_free _((dbref thing)); 
    66 extern void atr_cpy _((dbref dest, dbref source)); 
    67 extern char const *const convert_atr _((int oldatr)); 
    68 extern int atr_comm_match _((dbref thing, dbref player, int type, int end, 
    69                  char const *str, int just_match, char **atrname)); 
    70 extern int do_set_atr 
    71 _((dbref thing, char const *atr, char const *s, dbref player, int flags)); 
    72 extern void do_atrlock _((dbref player, char const *arg1, char const *arg2)); 
    73 extern void do_atrchown _((dbref player, char const *arg1, char const *arg2)); 
    74 extern int string_to_atrflag _((dbref player, const char *p)); 
    7570 
    7671/* From bsd.c */ 
     
    8176extern FILE *cmdlog_fp; 
    8277extern int restarting; 
     78#ifdef USE_MAILER 
    8379extern struct mail *desc_mail _((dbref player)); 
     80extern void desc_mail_set _((dbref player, struct mail * mp)); 
     81#endif 
    8482#ifdef SUN_OS 
    8583extern int f_close _((FILE * file)); 
     
    8785#endif 
    8886extern int hidden _((dbref player)); 
    89 extern void kill_info_slave _((void)); 
    9087void dump_reboot_db _((void)); 
    9188 
     
    139136#define safe_uncompress(s) (strdup((char *) s)) 
    140137#endif 
    141  
    142 /* From conf.c */ 
    143 extern void do_config_list _((dbref player, const char *type, int lc)); 
    144138 
    145139/* From cque.c */ 
     
    167161extern dbref do_clone _((dbref player, char *name, int preserve)); 
    168162 
    169 /* From flags.c */ 
    170 extern const char *unparse_flags _((dbref thing, dbref player)); 
    171 extern const char *flag_description _((dbref player, dbref thing)); 
    172 extern object_flag_type find_flag 
    173 _((char *name, int type, int *toggle, int is_conf)); 
    174 extern int sees_flag _((dbref privs, dbref thing, char *name)); 
    175 extern int handle_flaglists _((dbref player, char *name, char *fstr, int type)); 
    176 extern void set_flag 
    177 _((dbref player, dbref thing, char *flag, int negate, int hear, int listener)); 
    178 extern const char *power_description _((dbref thing)); 
    179 extern object_flag_type find_power _((const char *name)); 
    180  
    181163/* From game.c */ 
    182164extern void report _((void)); 
     
    188170extern void fork_and_dump _((int forking)); 
    189171 
    190 /* From log.c */ 
    191 extern void start_all_logs _((void)); 
    192 extern void end_all_logs _((void)); 
    193 extern void WIN32_CDECL do_log 
    194 _((int logtype, dbref player, dbref object, const char *fmt, ...)) 
    195   __attribute__ ((__format__(__printf__, 4, 5))); 
    196 extern void WIN32_CDECL do_rawlog _((int logtype, const char *fmt, ...)) 
    197   __attribute__ ((__format__(__printf__, 2, 3))); 
    198  
    199 extern void do_logwipe _((dbref player, int logtype, char *str)); 
    200  
    201172/* From look.c */ 
    202173extern void look_room _((dbref player, dbref loc, int flag)); 
    203174extern void do_look_around _((dbref player)); 
    204175extern void do_look_at _((dbref player, const char *name, int key)); 
    205  
    206 #ifdef USE_MAILER 
    207 /* From mail.c */ 
    208 extern struct mail *maildb; 
    209 extern void do_mail_clear _((dbref player, char *msglist)); 
    210 extern void do_mail_purge _((dbref player)); 
    211 extern void set_player_folder _((dbref player, int fnum)); 
    212 extern void add_folder_name _((dbref player, int fld, const char *name)); 
    213 extern struct mail *find_exact_starting_point _((dbref player)); 
    214 extern void check_mail _((dbref player, int folder, int silent)); 
    215 extern int dump_mail _((FILE * fp)); 
    216 extern int load_mail _((FILE * fp)); 
    217 extern void mail_init _((void)); 
    218 extern int mdb_top; 
    219 #endif              /* USE_MAILER */ 
    220176 
    221177/* From move.c */ 
     
    239195extern int password_check _((dbref player, const char *password)); 
    240196extern dbref lookup_player _((const char *name)); 
     197/* from player.c */ 
     198extern dbref create_player _((const char *name, const char *password, 
     199                  const char *host, const char *ip)); 
     200extern dbref connect_player _((const char *name, const char *password, 
     201                   const char *host, const char *ip)); 
     202extern void check_last _((dbref player, const char *host, const char *ip)); 
     203extern void check_lastfailed _((dbref player, const char *host)); 
    241204 
    242205/* From plyrlist.c */ 
     
    254217              const char *def, const char *owhat, const char *odef, 
    255218              const char *awhat, dbref loc)); 
     219extern void real_did_it _((dbref player, dbref thing, const char *what, 
     220               const char *def, const char *owhat, const char *odef, 
     221               const char *awhat, dbref loc, char *myenv[10])); 
    256222extern int can_see _((dbref player, dbref thing, int can_see_loc)); 
    257223extern int controls _((dbref who, dbref what)); 
     
    279245/* From set.c */ 
    280246extern void do_edit _((dbref player, dbref thing, char *q, char **argv)); 
    281 extern void do_chzone _((dbref player, const char *name, const char *newobj)); 
    282 extern void do_parent _((dbref player, char *name, char *parent_name)); 
    283 extern int do_set _((dbref player, const char *name, char *flag)); 
    284 extern void do_name _((dbref player, const char *name, char *newname)); 
    285247extern void chown_object 
    286248_((dbref player, dbref thing, dbref newowner, int preserve)); 
    287 extern void do_wipe _((dbref player, char *name)); 
    288249 
    289250/* From speech.c */ 
     
    300261extern void notify_except2 
    301262_((dbref first, dbref exc1, dbref exc2, const char *msg)); 
    302 extern void do_pemit_list _((dbref player, char *list, const char *message)); 
    303263extern int filter_found _((dbref thing, const char *msg, int flag)); 
    304 extern void do_oemit_list _((dbref player, char *list, const char *message)); 
    305264 
    306265/* From strutil.c */ 
     
    417376_((dbref creator, const char *player_name, const char *player_password)); 
    418377extern void do_chownall _((dbref player, const char *name, const char *target)); 
    419 extern void do_teleport _((dbref player, const char *arg1, const char *arg2)); 
    420378 
    421379/* From function.