PennMUSH Community

Changeset 905

Show
Ignore:
Timestamp:
06/09/07 16:37:37 (1 year ago)
Author:
shawnw
Message:

Have indent convert tabs to spaces

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.3/branches/devel/hdrs/access.h

    r521 r905  
    77 */ 
    88struct access { 
    9   char host[BUFFER_LEN];   /**< The host pattern */ 
    10   char comment[BUFFER_LEN];    /**< A comment about the rule */ 
    11   dbref who;           /**< Who created this rule if sitelock used */ 
    12   int can;         /**< Bitflags of what the host can do */ 
    13   int cant;            /**< Bitflags of what the host can't do */ 
    14   struct access *next;     /**< Pointer to next rule in the list */ 
     9  char host[BUFFER_LEN];        /**< The host pattern */ 
     10  char comment[BUFFER_LEN];     /**< A comment about the rule */ 
     11  dbref who;                    /**< Who created this rule if sitelock used */ 
     12  int can;                      /**< Bitflags of what the host can do */ 
     13  int cant;                     /**< Bitflags of what the host can't do */ 
     14  struct access *next;          /**< Pointer to next rule in the list */ 
    1515}; 
    1616 
    1717 
    1818/* These flags are can/can't - a site may or may not be allowed to do them */ 
    19 #define ACS_CONNECT     0x1    /* Connect to non-guests */ 
    20 #define ACS_CREATE      0x2    /* Create new players */ 
    21 #define ACS_GUEST       0x4    /* Connect to guests */ 
    22 #define ACS_REGISTER    0x8    /* Site can use the 'register' command */ 
     19#define ACS_CONNECT     0x1     /* Connect to non-guests */ 
     20#define ACS_CREATE      0x2     /* Create new players */ 
     21#define ACS_GUEST       0x4     /* Connect to guests */ 
     22#define ACS_REGISTER    0x8     /* Site can use the 'register' command */ 
    2323/* These flags are set in the 'can' bit, but they mark special processing */ 
    24 #define ACS_SITELOCK    0x10   /* Marker for where to insert @sitelock */ 
    25 #define ACS_SUSPECT     0x20   /* All players from this site get SUSPECT */ 
    26 #define ACS_DENY_SILENT 0x40   /* Don't log failed attempts */ 
    27 #define ACS_REGEXP      0x80   /* Treat the host pattern as a regexp */ 
     24#define ACS_SITELOCK    0x10    /* Marker for where to insert @sitelock */ 
     25#define ACS_SUSPECT     0x20    /* All players from this site get SUSPECT */ 
     26#define ACS_DENY_SILENT 0x40    /* Don't log failed attempts */ 
     27#define ACS_REGEXP      0x80    /* Treat the host pattern as a regexp */ 
    2828 
    29 #define ACS_GOD         0x100  /* God can connect from this site */ 
    30 #define ACS_WIZARD      0x200  /* Wizards can connect from this site */ 
    31 #define ACS_ADMIN       0x400  /* Admins can connect from this site */ 
     29#define ACS_GOD         0x100   /* God can connect from this site */ 
     30#define ACS_WIZARD      0x200   /* Wizards can connect from this site */ 
     31#define ACS_ADMIN       0x400   /* Admins can connect from this site */ 
    3232 
    3333/* This is the usual default access */ 
     
    5050struct access *site_check_access(const char *hname, dbref who, int *rulenum); 
    5151int format_access(struct access *ap, int rulenum, 
    52          dbref who 
    53          __attribute__ ((__unused__)), char *buff, char **bp); 
     52                  dbref who 
     53                  __attribute__ ((__unused__)), char *buff, char **bp); 
    5454int add_access_sitelock(dbref player, const char *host, dbref who, int can, 
    55            int cant); 
     55                        int cant); 
    5656int remove_access_sitelock(const char *pattern); 
    5757void do_list_access(dbref player); 
     
    5959  (const char *opts, dbref *who, int *can, int *cant, dbref player); 
    6060 
    61 #endif             /* __ACCESS_H */ 
     61#endif                          /* __ACCESS_H */ 
  • 1.8.3/branches/devel/hdrs/ansi.h

    r841 r905  
    9292 
    9393int write_raw_ansi_data(struct ansi_data *old, struct ansi_data *cur, 
    94            char *buff, char **bp); 
     94                        char *buff, char **bp); 
    9595 
    9696 
     
    117117/** A string, with ansi attributes broken out from the text */ 
    118118typedef struct _ansi_string { 
    119   char text[BUFFER_LEN];   /**< Text of the string */ 
     119  char text[BUFFER_LEN];        /**< Text of the string */ 
    120120  markup_information markup[BUFFER_LEN]; /**< The markup_information list */ 
    121121  int nmarkups; 
    122   int len;     /**< Length of text */ 
    123   int optimized;         /**< Has this ansi-string been optimized? */ 
     122  int len;              /**< Length of text */ 
     123  int optimized;              /**< Has this ansi-string been optimized? */ 
    124124} ansi_string; 
    125125 
     
    139139   account. */ 
    140140    extern int safe_ansi_string(ansi_string *as, int start, int len, 
    141                char *buff, char **bp); 
     141                                char *buff, char **bp); 
    142142 
    143143/* Modifying ansi strings */ 
    144144    int ansi_string_delete(ansi_string *as, int start, int count); 
    145145    int ansi_string_insert(ansi_string *dst, int loc, 
    146               ansi_string *src, int start, int count); 
     146                           ansi_string *src, int start, int count); 
    147147 
    148148    int ansi_string_replace(ansi_string *dst, int loc, int size, 
    149                ansi_string *src, int start, int count); 
     149                            ansi_string *src, int start, int count); 
    150150    void optimize_ansi_string(ansi_string *as); 
    151151 
     
    154154 
    155155    int ansi_pcre_copy_substring(ansi_string *as, int *ovector, int stringcount, 
    156                 int stringnumber, int nonempty, char *buffer, 
    157                 char **bp); 
     156                                int stringnumber, int nonempty, char *buffer, 
     157                                char **bp); 
    158158 
    159159    int ansi_pcre_copy_named_substring(const pcre * code, ansi_string *as, 
    160                       int *ovector, int stringcount, 
    161                       const char *stringname, int nonempty, 
    162                       char *buffer, char **bp); 
     160                                       int *ovector, int stringcount, 
     161                                       const char *stringname, int nonempty, 
     162                                       char *buffer, char **bp); 
    163163 
    164164/* Pueblo stuff */ 
     
    171171    int safe_tag_cancel(char const *a_tag, char *buf, char **bp); 
    172172    int safe_tag_wrap(char const *a_tag, char const *params, 
    173              char const *data, char *buf, char **bp, dbref player); 
     173                      char const *data, char *buf, char **bp, dbref player); 
    174174 
    175 #endif             /* __ANSI_H */ 
     175#endif                          /* __ANSI_H */ 
  • 1.8.3/branches/devel/hdrs/atr_tab.h

    r874 r905  
    255255}; 
    256256 
    257 #endif             /* __ATR_TAB_H */ 
     257#endif                          /* __ATR_TAB_H */ 
  • 1.8.3/branches/devel/hdrs/attrib.h

    r892 r905  
    1616 */ 
    1717struct attr { 
    18   char const *name;        /**< Name of attribute */ 
    19   uint32_t flags;      /**< Attribute flags */ 
    20   chunk_reference_t data;  /**< The attribute's value, compressed */ 
    21   dbref creator;       /**< The attribute's creator's dbref */ 
    22   ATTR *next;          /**< Pointer to next attribute in list */ 
     18  char const *name;             /**< Name of attribute */ 
     19  uint32_t flags;               /**< Attribute flags */ 
     20  chunk_reference_t data;       /**< The attribute's value, compressed */ 
     21  dbref creator;                /**< The attribute's creator's dbref */ 
     22  ATTR *next;                   /**< Pointer to next attribute in list */ 
    2323}; 
    2424 
     
    4242  AE_OKAY = 0, /**< Success */ 
    4343  AE_ERROR = -1, /**< general failure */ 
    44   AE_SAFE = -2,    /**< attempt to overwrite a safe attribute */ 
     44  AE_SAFE = -2, /**< attempt to overwrite a safe attribute */ 
    4545  AE_BADNAME = -3, /**< invalid name */ 
    4646  AE_TOOMANY = -4, /**< too many attribs */ 
    47   AE_TREE = -5,    /**< unable to delete/create entire tree */ 
     47  AE_TREE = -5, /**< unable to delete/create entire tree */ 
    4848  AE_NOTFOUND = -6 /** No such attribute */ 
    4949} atr_err; 
     
    5353extern ATTR *atr_sub_branch(ATTR *branch); 
    5454extern void atr_new_add(dbref thing, char const *RESTRICT atr, 
    55            char const *RESTRICT s, dbref player, uint32_t flags, 
    56            uint8_t derefs); 
     55                        char const *RESTRICT s, dbref player, uint32_t flags, 
     56                        uint8_t derefs); 
    5757extern atr_err atr_add(dbref thing, char const *RESTRICT atr, 
    58               char const *RESTRICT s, dbref player, uint32_t flags); 
     58                       char const *RESTRICT s, dbref player, uint32_t flags); 
    5959extern atr_err atr_clr(dbref thing, char const *atr, dbref player); 
    6060extern atr_err wipe_atr(dbref thing, char const *atr, dbref player); 
     
    6363typedef int (*aig_func) (dbref, dbref, dbref, const char *, ATTR *, void *); 
    6464extern int atr_iter_get(dbref player, dbref thing, char const *name, 
    65            int mortal, aig_func func, void *args); 
     65                        int mortal, aig_func func, void *args); 
    6666extern int atr_iter_get_parent(dbref player, dbref thing, char const *name, 
    67                   int mortal, aig_func func, void *args); 
     67                               int mortal, aig_func func, void *args); 
    6868extern int atr_pattern_count(dbref player, dbref thing, const char *name, 
    69                 int doparent, int mortal); 
     69                             int doparent, int mortal); 
    7070extern ATTR *atr_complete_match(dbref player, char const *atr, dbref privs); 
    7171extern void atr_free_all(dbref thing); 
     
    7373extern char const *convert_atr(int oldatr); 
    7474extern int atr_comm_match(dbref thing, dbref player, int type, int end, 
    75              char const *str, int just_match, char *atrname, 
    76              char **abp, dbref *errobj); 
     75                          char const *str, int just_match, char *atrname, 
     76                          char **abp, dbref *errobj); 
    7777extern int one_comm_match(dbref thing, dbref player, const char *atr, 
    78              const char *str); 
     78                          const char *str); 
    7979extern int do_set_atr(dbref thing, char const *RESTRICT atr, 
    80              char const *RESTRICT s, dbref player, uint32_t flags); 
     80                      char const *RESTRICT s, dbref player, uint32_t flags); 
    8181extern void do_atrlock(dbref player, char const *arg1, char const *arg2); 
    8282extern void do_atrchown(dbref player, char const *arg1, char const *arg2); 
    8383int string_to_atrflag(dbref player, const char *p, privbits * bits); 
    8484int string_to_atrflagsets(dbref player, const char *p, privbits * setbits, 
    85              privbits * clrbits); 
     85                          privbits * clrbits); 
    8686extern const char *atrflag_to_string(privbits mask); 
    8787extern void init_atr_name_tree(void); 
     
    8989extern int can_read_attr_internal(dbref player, dbref obj, ATTR *attr); 
    9090extern int can_write_attr_internal(dbref player, dbref obj, ATTR *attr, 
    91                   int safe); 
     91                                   int safe); 
    9292extern unsigned const char *atr_get_compressed_data(ATTR *atr); 
    9393extern char *atr_value(ATTR *atr); 
     
    9797 
    9898/* possible attribute flags */ 
    99 #define AF_ODARK        0x1U   /**< OBSOLETE! Leave here but don't use */ 
    100 #define AF_INTERNAL     0x2U   /**< no one can see it or set it */ 
    101 #define AF_WIZARD       0x4U   /**< Wizard only can change it */ 
    102 #define AF_NUKED        0x8U   /**< OBSOLETE! Leave here but don't use */ 
    103 #define AF_LOCKED       0x10U  /**< Only creator of attrib can change it. */ 
    104 #define AF_NOPROG       0x20U  /**< won't be searched for $ commands. */ 
    105 #define AF_MDARK        0x40U  /**< Only wizards can see it */ 
    106 #define AF_PRIVATE      0x80U  /**< Children don't inherit it */ 
    107 #define AF_NOCOPY       0x100U /**< atr_cpy (for @clone) doesn't copy it */ 
    108 #define AF_VISUAL       0x200U /**< Everyone can see this attribute */ 
    109 #define AF_REGEXP       0x400U /**< Match $/^ patterns using regexps */ 
    110 #define AF_CASE         0x800U /**< Match $/^ patterns case-sensitive */ 
    111 #define AF_SAFE         0x1000U    /**< This attribute may not be modified */ 
    112 #define AF_ROOT         0x2000U    /**< Root of an attribute tree */ 
    113 #define AF_UNDEF1       0x4000U    /**< Undefined; reserved for a future flag */ 
    114 #define AF_UNDEF2       0x8000U    /**< Undefined; reserved for a future flag */ 
    115 #define AF_STATIC       0x10000U   /**< OBSOLETE! Leave here but don't use */ 
    116 #define AF_COMMAND      0x20000U   /**< INTERNAL: value starts with $ */ 
    117 #define AF_LISTEN       0x40000U   /**< INTERNAL: value starts with ^ */ 
    118 #define AF_NODUMP       0x80000U   /**< INTERNAL: attribute is not saved */ 
    119 #define AF_LISTED       0x100000U  /**< INTERNAL: Used in @list attribs */ 
    120 #define AF_PREFIXMATCH  0x200000U  /**< Subject to prefix-matching */ 
    121 #define AF_VEILED       0x400000U  /**< On ex, show presence, not value */ 
    122 #define AF_DEBUG        0x800000U  /**< Show debug when evaluated */ 
    123 #define AF_NEARBY       0x1000000U /**< Override AF_VISUAL if remote */ 
    124 #define AF_PUBLIC       0x2000000U /**< Override SAFER_UFUN */ 
    125 #define AF_ANON         0x4000000U /**< INTERNAL: Attribute doesn't really 
     99#define AF_ODARK        0x1U    /**< OBSOLETE! Leave here but don't use */ 
     100#define AF_INTERNAL     0x2U    /**< no one can see it or set it */ 
     101#define AF_WIZARD       0x4U    /**< Wizard only can change it */ 
     102#define AF_NUKED        0x8U    /**< OBSOLETE! Leave here but don't use */ 
     103#define AF_LOCKED       0x10U   /**< Only creator of attrib can change it. */ 
     104#define AF_NOPROG       0x20U   /**< won't be searched for $ commands. */ 
     105#define AF_MDARK        0x40U   /**< Only wizards can see it */ 
     106#define AF_PRIVATE      0x80U   /**< Children don't inherit it */ 
     107#define AF_NOCOPY       0x100U  /**< atr_cpy (for @clone) doesn't copy it */ 
     108#define AF_VISUAL       0x200U  /**< Everyone can see this attribute */ 
     109#define AF_REGEXP       0x400U  /**< Match $/^ patterns using regexps */ 
     110#define AF_CASE         0x800U  /**< Match $/^ patterns case-sensitive */ 
     111#define AF_SAFE         0x1000U /**< This attribute may not be modified */ 
     112#define AF_ROOT         0x2000U /**< Root of an attribute tree */ 
     113#define AF_UNDEF1       0x4000U /**< Undefined; reserved for a future flag */ 
     114#define AF_UNDEF2       0x8000U /**< Undefined; reserved for a future flag */ 
     115#define AF_STATIC       0x10000U        /**< OBSOLETE! Leave here but don't use */ 
     116#define AF_COMMAND      0x20000U        /**< INTERNAL: value starts with $ */ 
     117#define AF_LISTEN       0x40000U        /**< INTERNAL: value starts with ^ */ 
     118#define AF_NODUMP       0x80000U        /**< INTERNAL: attribute is not saved */ 
     119#define AF_LISTED       0x100000U       /**< INTERNAL: Used in @list attribs */ 
     120#define AF_PREFIXMATCH  0x200000U       /**< Subject to prefix-matching */ 
     121#define AF_VEILED       0x400000U       /**< On ex, show presence, not value */ 
     122#define AF_DEBUG        0x800000U       /**< Show debug when evaluated */ 
     123#define AF_NEARBY       0x1000000U      /**< Override AF_VISUAL if remote */ 
     124#define AF_PUBLIC       0x2000000U      /**< Override SAFER_UFUN */ 
     125#define AF_ANON         0x4000000U      /**< INTERNAL: Attribute doesn't really 
    126126                       exist in the database */ 
    127 #define AF_NONAME       0x8000000U /**< No name in did_it */ 
    128 #define AF_NOSPACE      0x10000000U    /**< No space in did_it */ 
    129 #define AF_MHEAR        0x20000000U    /**< ^-listens can be triggered by %! */ 
    130 #define AF_AHEAR        0x40000000U    /**< ^-listens can be triggered by anyone */ 
    131 #define AF_UNDEF3       0x80000000U    /**< Undefined; reserved for a future flag */ 
     127#define AF_NONAME       0x8000000U      /**< No name in did_it */ 
     128#define AF_NOSPACE      0x10000000U     /**< No space in did_it */ 
     129#define AF_MHEAR        0x20000000U     /**< ^-listens can be triggered by %! */ 
     130#define AF_AHEAR        0x40000000U     /**< ^-listens can be triggered by anyone */ 
     131#define AF_UNDEF3       0x80000000U     /**< Undefined; reserved for a future flag */ 
    132132 
    133133#define AF_MAXVALUE          0x100000000U     /**< Largest attribute flag value. */ 
    134134 
    135135    extern ATTR attr[]; 
    136            /**< external predefined attributes. */ 
     136                    /**< external predefined attributes. */ 
    137137 
    138138#define AL_ATTR(alist)          (alist) 
     
    154154#define OPAE_NULL       -3 
    155155 
    156 #endif             /* __ATTRIB_H */ 
     156#endif                          /* __ATTRIB_H */ 
  • 1.8.3/branches/devel/hdrs/boolexp.h

    r477 r905  
    2323extern boolexp parse_boolexp(dbref player, const char *buf, lock_type ltype); 
    2424extern boolexp parse_boolexp_d(dbref player, const char *buf, lock_type ltype, 
    25                   int derefs); 
     25                               int derefs); 
    2626extern void free_boolexp(boolexp b); 
    2727boolexp getboolexp(FILE * f, const char *ltype); 
     
    3434}; 
    3535extern char *unparse_boolexp(dbref player, boolexp b, enum u_b_f flag); 
    36 #endif             /* BOOLEXP_H */ 
     36#endif                          /* BOOLEXP_H */ 
  • 1.8.3/branches/devel/hdrs/bufferq.h

    r803 r905  
    1212 
    1313struct bufferq { 
    14   char *buffer;        /**< Pointer to start of buffer */ 
    15   char *buffer_end;    /**< Pointer to insertion point in buffer */ 
    16   int buffer_size; /**< Size allocated to buffer, in bytes */ 
    17   int num_buffered;    /**< Number of strings in the buffer */ 
    18   char last_string[BUFFER_LEN];    /**< Cache of last string inserted */ 
    19   char last_type;  /**< Cache of type of last string inserted */ 
     14  char *buffer;         /**< Pointer to start of buffer */ 
     15  char *buffer_end;     /**< Pointer to insertion point in buffer */ 
     16  int buffer_size;      /**< Size allocated to buffer, in bytes */ 
     17  int num_buffered;     /**< Number of strings in the buffer */ 
     18  char last_string[BUFFER_LEN]; /**< Cache of last string inserted */ 
     19  char last_type;       /**< Cache of type of last string inserted */ 
    2020}; 
    2121 
     
    2929extern void free_bufferq(BUFFERQ *bq); 
    3030extern void add_to_bufferq(BUFFERQ *bq, int type, dbref player, 
    31               const char *msg); 
     31                           const char *msg); 
    3232extern char *iter_bufferq(BUFFERQ *bq, char **p, dbref *player, int *type, 
    33              time_t * timestamp); 
     33                          time_t * timestamp); 
    3434extern int bufferq_lines(BUFFERQ *bq); 
    3535extern int isempty_bufferq(BUFFERQ *bq); 
  • 1.8.3/branches/devel/hdrs/case.h

    r817 r905  
    1111#define UPCASE(x)   (islower((unsigned char)x) ? toupper((unsigned char)x) : (x)) 
    1212#endif 
    13 #endif             /* CASE_H */ 
     13#endif                          /* CASE_H */ 
  • 1.8.3/branches/devel/hdrs/chunk.h

    r822 r905  
    1313 
    1414chunk_reference_t chunk_create(unsigned char const *data, uint16_t len, 
    15                   uint8_t derefs); 
     15                               uint8_t derefs); 
    1616void chunk_delete(chunk_reference_t reference); 
    1717uint16_t chunk_fetch(chunk_reference_t reference, 
    18             unsigned char *buffer, uint16_t buffer_len); 
     18                     unsigned char *buffer, uint16_t buffer_len); 
    1919uint16_t chunk_len(chunk_reference_t reference); 
    2020uint8_t chunk_derefs(chunk_reference_t reference); 
     
    3333void chunk_fork_done(void); 
    3434 
    35 #endif             /* _CHUNK_H_ */ 
     35#endif                          /* _CHUNK_H_ */ 
  • 1.8.3/branches/devel/hdrs/command.h

    r763 r905  
    109109typedef struct command_info COMMAND_INFO; 
    110110typedef void (*command_func) (COMMAND_INFO *, dbref, dbref, switch_mask, char *, 
    111                  const char *, char *, char *, char *[MAX_ARG], 
    112                  char *, char *[MAX_ARG]); 
     111                              const char *, char *, char *, char *[MAX_ARG], 
     112                              char *, char *[MAX_ARG]); 
    113113 
    114114/** A hook specification. 
    115115 */ 
    116116struct hook_data { 
    117   dbref obj;       /**< Object where the hook attribute is stored. */ 
    118   char *attrname;  /**< Attribute name of the hook attribute */ 
     117  dbref obj;            /**< Object where the hook attribute is stored. */ 
     118  char *attrname;       /**< Attribute name of the hook attribute */ 
    119119}; 
    120120 
     
    123123 */ 
    124124struct command_info { 
    125   const char *name;    /**< Canonical name of the command */ 
    126   const char *restrict_message;    /**< Message sent when command is restricted */ 
    127   command_func func;   /**< Function to call when command is run */ 
    128   unsigned int type;   /**< Types of objects that can use the command */ 
    129   object_flag_type flagmask;   /**< Flags to which the command is restricted */ 
    130   object_flag_type powers; /**< Powers to which the command is restricted */ 
    131   switch_mask sw;  /**< Bitflags of switches this command can take */ 
     125  const char *name;     /**< Canonical name of the command */ 
     126  const char *restrict_message; /**< Message sent when command is restricted */ 
     127  command_func func;    /**< Function to call when command is run */ 
     128  unsigned int type;    /**< Types of objects that can use the command */ 
     129  object_flag_type flagmask;    /**< Flags to which the command is restricted */ 
     130  object_flag_type powers;      /**< Powers to which the command is restricted */ 
     131  switch_mask sw;       /**< Bitflags of switches this command can take */ 
    132132  /** Hooks on this command. 
    133133   */ 
    134134  struct { 
    135     struct hook_data before;   /**< Hook to evaluate before command */ 
    136     struct hook_data after;    /**< Hook to evaluate after command */ 
    137     struct hook_data ignore;   /**< Hook to evaluate to decide if we should ignore hardcoded command */ 
    138     struct hook_data override; /**< Hook to override command with $command */ 
     135    struct hook_data before;    /**< Hook to evaluate before command */ 
     136    struct hook_data after;     /**< Hook to evaluate after command */ 
     137    struct hook_data ignore;    /**< Hook to evaluate to decide if we should ignore hardcoded command */ 
     138    struct hook_data override;  /**< Hook to override command with $command */ 
    139139  } hooks; 
    140140}; 
     
    147147 */ 
    148148struct command_list { 
    149   const char *name;    /**< Command name */ 
    150   const char *switches;    /**< Space-separated list of switch names */ 
    151   command_func func;   /**< Function to call when command is run */ 
    152   unsigned int type;   /**< Types of objects that can use the command */ 
    153   const char *flagstr; /**< Space-separated list of flags that can use */ 
    154   const char *powers;  /**< Powers to which the command is restricted */ 
     149  const char *name;     /**< Command name */ 
     150  const char *switches; /**< Space-separated list of switch names */ 
     151  command_func func;    /**< Function to call when command is run */ 
     152  unsigned int type;    /**< Types of objects that can use the command */ 
     153  const char *flagstr;  /**< Space-separated list of flags that can use */ 
     154  const char *powers;   /**< Powers to which the command is restricted */ 
    155155}; 
    156156 
     
    162162 */ 
    163163struct switch_value { 
    164   const char *name;    /**< Name of the switch */ 
    165   int value;       /**< Number of the switch */ 
     164  const char *name;     /**< Name of the switch */ 
     165  int value;            /**< Number of the switch */ 
    166166}; 
    167167 
     
    173173 */ 
    174174struct com_sort_struc { 
    175   struct com_sort_struc *next; /**< Pointer to next in list */ 
    176   COMMAND_INFO *cmd;       /**< Command data */ 
     175  struct com_sort_struc *next;  /**< Pointer to next in list */ 
     176  COMMAND_INFO *cmd;            /**< Command data */ 
    177177}; 
    178178 
     
    182182 */ 
    183183struct command_perms_t { 
    184   const char *name;    /**< Permission name */ 
    185   unsigned int type;   /**< Bitmask for this permission */ 
     184  const char *name;     /**< Permission name */ 
     185  unsigned int type;    /**< Bitmask for this permission */ 
    186186}; 
    187187 
     
    199199   object_flag_type powers, switch_mask *sw, command_func func); 
    200200extern COMMAND_INFO *command_modify(const char *name, int type, 
    201                    object_flag_type flagmask, 
    202                    object_flag_type powers, switch_mask *sw, 
    203                    command_func func); 
     201                                    object_flag_type flagmask, 
     202                                    object_flag_type powers, switch_mask *sw, 
     203                                    command_func func); 
    204204extern void reserve_alias(const char *a); 
    205205extern int alias_command(const char *command, const char *alias); 
     
    224224 
    225225 
    226 #endif             /* __COMMAND_H */ 
     226#endif                          /* __COMMAND_H */ 
  • 1.8.3/branches/devel/hdrs/compile.h

    r790 r905  
    5757#endif 
    5858 
    59 #endif             /* __COMPILE_H */ 
     59#endif                          /* __COMPILE_H */ 
  • 1.8.3/branches/devel/hdrs/conf.h

    r790 r905  
    6969#define SPILLOVER_THRESHOLD     0 
    7070/* #define SPILLOVER_THRESHOLD  (MAX_OUTPUT / 2) */ 
    71 #define COMMAND_TIME_MSEC 1000 /* time slice length in milliseconds */ 
    72 #define COMMAND_BURST_SIZE 100 /* commands allowed per user in a burst */ 
    73 #define COMMANDS_PER_TIME 1    /* commands per time slice after burst */ 
     71#define COMMAND_TIME_MSEC 1000  /* time slice length in milliseconds */ 
     72#define COMMAND_BURST_SIZE 100  /* commands allowed per user in a burst */ 
     73#define COMMANDS_PER_TIME 1     /* commands per time slice after burst */ 
    7474 
    7575 
     
    8383 
    8484typedef int (*config_func) (const char *opt, const char *val, void *loc, 
    85                int maxval, int source); 
     85                            int maxval, int source); 
    8686 
    8787/** Runtime configuration parameter. 
     
    8989 */ 
    9090typedef struct confparm { 
    91   const char *name;        /**< name of option. */ 
     91  const char *name;             /**< name of option. */ 
    9292  /** the function handler. */ 
    9393  config_func handler; 
    94   void *loc;           /**< place to put this option. */ 
    95   int max;         /**< max: string length, integer value. */ 
    96   int overridden;      /**< Has the default been overridden? */ 
    97   const char *group;       /**< The option's group name */ 
     94  void *loc;                    /**< place to put this option. */ 
     95  int max;                      /**< max: string length, integer value. */ 
     96  int overridden;               /**< Has the default been overridden? */ 
     97  const char *group;            /**< The option's group name */ 
    9898} PENNCONF; 
    9999 
     
    103103 */ 
    104104struct options_table { 
    105   char mud_name[128];  /**< The name of the mush */ 
    106   int port;        /**< The port to listen for connections */ 
    107   int ssl_port;        /**< The port to listen for SSL connections */ 
    108   char input_db[256];  /**< Name of the input database file */ 
    109   char output_db[256]; /**< Name of the output database file */ 
    110   char crash_db[256];  /**< Name of the panic database file */ 
    111   char mail_db[256];   /**< Name of the mail database file */ 
    112   dbref player_start;  /**< The room in which new players are created */ 
    113   dbref master_room;   /**< The master room for global commands/exits */ 
    114   dbref ancestor_room; /**< The ultimate parent room */ 
    115   dbref ancestor_exit; /**< The ultimate parent exit */ 
    116   dbref ancestor_thing;    /**< The ultimate parent thing */ 
     105  char mud_name[128];   /**< The name of the mush */ 
     106  int port;             /**< The port to listen for connections */ 
     107  int ssl_port;         /**< The port to listen for SSL connections */ 
     108  char input_db[256];   /**< Name of the input database file */ 
     109  char output_db[256];  /**< Name of the output database file */ 
     110  char crash_db[256];   /**< Name of the panic database file */ 
     111  char mail_db[256];    /**< Name of the mail database file */ 
     112  dbref player_start;   /**< The room in which new players are created */ 
     113  dbref master_room;    /**< The master room for global commands/exits */ 
     114  dbref ancestor_room;  /**< The ultimate parent room */ 
     115  dbref ancestor_exit;  /**< The ultimate parent exit */ 
     116  dbref ancestor_thing; /**< The ultimate parent thing */ 
    117117  dbref ancestor_player; /**< The ultimate parent player */ 
    118   int idle_timeout;    /**< Maximum idle time allowed, in minutes */ 
    119   int unconnected_idle_timeout;    /**< Maximum idle time for connections without dbrefs, in minutes */ 
     118  int idle_timeout;     /**< Maximum idle time allowed, in minutes */ 
     119  int unconnected_idle_timeout; /**< Maximum idle time for connections without dbrefs, in minutes */ 
    120120  int keepalive_timeout; /**< Number of seconds between TCP keepalive pings */ 
    121   int dump_interval;   /**< Interval between database dumps, in seconds */ 
     121  int dump_interval;    /**< Interval between database dumps, in seconds */ 
    122122  char dump_message[256]; /**< Message shown at start of nonforking dump */ 
    123123  char dump_complete[256]; /**< Message shown at end of nonforking dump */ 
    124   time_t dump_counter; /**< Time since last dump */ 
    125   int ident_timeout;   /**< Timeout for ident lookups */ 
    126   int max_logins;  /**< Maximum total logins allowed at once */ 
    127   int max_guests;  /**< Maximum guests logins allowed at once */ 
    128   int whisper_loudness;    /**< % chance that a noisy whisper is overheard */ 
    129   int blind_page;  /**< Does page default to page/blind? */ 
    130   int page_aliases;    /**< Does page include aliases? */ 
    131   int paycheck;        /**< Number of pennies awarded each day of connection */ 
    132   int guest_paycheck;  /**< Paycheck for guest connections */ 
    133   int starting_money;  /**< Number of pennies for newly created players */ 
    134   int starting_quota;  /**< Object quota for newly created players */ 
     124  time_t dump_counter;  /**< Time since last dump */ 
     125  int ident_timeout;    /**< Timeout for ident lookups */ 
     126  int max_logins;       /**< Maximum total logins allowed at once */ 
     127  int max_guests;       /**< Maximum guests logins allowed at once */&nbs