PennMUSH Community

Changeset 1267

Show
Ignore:
Timestamp:
09/14/08 04:37:38 (3 months ago)
Author:
shawnw
Message:

Ran a make indent

Files:

Legend:

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

    r1231 r1267  
    2828BUFFERQ *reallocate_bufferq(BUFFERQ *bq, int lines); 
    2929void free_bufferq(BUFFERQ *bq); 
    30 void add_to_bufferq(BUFFERQ *bq, int type, dbref player, 
    31                     const char *msg); 
     30void add_to_bufferq(BUFFERQ *bq, int type, dbref player, const char *msg); 
    3231char *iter_bufferq(BUFFERQ *bq, char **p, dbref *player, int *type, 
    3332                   time_t * timestamp); 
  • 1.8.3/branches/devel/src/Makefile.in

    r1208 r1267  
    148148    (set +e; for file in *.dst *.c  ../hdrs/*.h ; do echo $$file; \ 
    149149    @INDENT@ -npro -kr -ci2 -ss -psl -ip4 -i2 -cs -l80 -lc75 -nut \ 
    150     -T _Bool -T accent_info -T acsflag -T aig_func -T ALIST \ 
    151         -T ansi_data -T ansi_string -T atr_err -T ATRALIAS -T ATTR \ 
    152         -T BOOL -T boolexp -T boolexp_type -T BQUE -T branch_chain \ 
    153         -T BUFFERQ -T bvm_opcode -T BYTE -T CHAN -T CHANLIST -T CHANUSER \ 
    154         -T chunk_reference_t -T CNode -T COMLIST -T command_func \ 
    155         -T COMMAND_INFO -T comp_func -T compile_data -T COMSORTSTRUC \ 
    156         -T config_func -T CType -T dbref -T Debug_Info -T DESC \ 
    157         -T dfa_match_data -T eptrblock -T EVAL_CONTEXT -T FBLOCK \ 
    158         -T fd_type -T FLAG -T FLAG_ALIAS -T FLAGSPACE -T folder_array \ 
    159         -T Free_t -T FUN -T function_func -T FUNTAB -T GLOBALTAB \ 
    160         -T hash_func -T HASHENT -T HASHTAB -T heapframe -T help_file \ 
    161         -T help_indx -T ident_t -T imaxdiv_t -T IVAL -T list_type_list \ 
    162         -T lock_list -T lock_type -T LOCKMSGINFO -T LONG -T ltype -T MAIL \ 
    163         -T mail_flag -T makerecord -T Malloc_t -T markup_information \ 
    164         -T match_data -T MATH -T MEM -T na_lookup -T NVAL \ 
    165         -T object_flag_type -T OPTTAB -T pcre_study_data -T pcre_uint16 \ 
    166         -T pcre_uint32 -T PE_Info -T PENNCONF -T PENNCONFGROUP -T Port_t \ 
    167         -T PRIV -T privbits -T PTAB -T ptab_entry -T qsort_func \ 
    168         -T real_pcre -T recursion_info -T Region -T RegionHeader -T s_rec \ 
    169         -T SHS_INFO -T slab -T sqlplatform -T StrNode -T StrTree \ 
    170         -T switch_mask -T SWITCH_VALUE -T tcheck -T tlist \ 
    171         -T ucp_type_table -T UIVAL -T uschar -T UsedAttr -T USERFN_ENTRY \ 
    172         -T WAIT_TYPE -T warn_type -T Word \ 
     150    -T accent_info -T acsflag -T aig_func -T ALIST -T ansi_data \ 
     151    -T ansi_string -T atr_err -T ATRALIAS -T ATTR -T BOOL -T boolexp \ 
     152    -T boolexp_type -T BQUE -T branch_chain -T BUFFERQ -T bvm_opcode \ 
     153    -T BYTE -T CDESC -T CHAN -T CHANLIST -T CHANUSER \ 
     154    -T chunk_reference_t -T CNode -T COMLIST -T command_func \ 
     155    -T COMMAND_INFO -T comp_func -T compile_data -T COMSORTSTRUC \ 
     156    -T config_func -T CType -T dbref -T Debug_Info -T DESC \ 
     157    -T dfa_match_data -T eptrblock -T EVAL_CONTEXT -T FBLOCK \ 
     158    -T fd_type -T FLAG -T FLAG_ALIAS -T FLAGSPACE -T folder_array \ 
     159    -T FUN -T function_func -T FUNTAB -T GLOBALTAB -T hash_func \ 
     160    -T HASHENT -T HASHTAB -T heapframe -T help_file -T help_indx \ 
     161    -T ident_t -T im_key -T imaxdiv_t -T intmap -T IVAL \ 
     162    -T list_type_list -T lock_list -T lock_type -T LOCKMSGINFO \ 
     163    -T LONG -T ltype -T MAIL -T mail_flag -T makerecord \ 
     164    -T markup_information -T match_data -T MATH -T MEM -T na_lookup \ 
     165    -T NVAL -T object_flag_type -T OPTTAB -T patricia \ 
     166    -T pcre_study_data -T pcre_uint16 -T pcre_uint32 -T PE_Info \ 
     167    -T PENNCONF -T PENNCONFGROUP -T Port_t -T PRIV -T privbits \ 
     168    -T PTAB -T ptab_entry -T qsort_func -T real_pcre \ 
     169    -T recursion_info -T Region -T RegionHeader -T s_rec -T SHS_INFO \ 
     170    -T slab -T sqlplatform -T STFunc -T StrNode -T StrTree \ 
     171    -T switch_mask -T SWITCH_VALUE -T tcheck -T tlist \ 
     172    -T ucp_type_table -T UIVAL -T uschar -T UsedAttr -T USERFN_ENTRY \ 
     173    -T WAIT_TYPE -T warn_type -T Word \ 
    173174    $$file ; done) 
    174175 
  • 1.8.3/branches/devel/src/bsd.c

    r1253 r1267  
    10701070 
    10711071      if (FD_ISSET(sock, &input_set)) { 
    1072    if (!info_slave_halted) { 
    1073      addr_len = sizeof(addr); 
    1074      newsock = accept(sock, (struct sockaddr *) &addr, &addr_len); 
    1075      if (newsock < 0) { 
    1076        if (test_connection(newsock) < 0) 
    1077          continue;           /* this should _not_ be return. */ 
    1078      } 
    1079      ndescriptors++; 
    1080      query_info_slave(newsock); 
    1081      if (newsock >= maxd) 
    1082        maxd = newsock + 1; 
    1083     } else  
    1084      setup_desc(sock, false); 
     1072        if (!info_slave_halted) { 
     1073          addr_len = sizeof(addr); 
     1074          newsock = accept(sock, (struct sockaddr *) &addr, &addr_len); 
     1075          if (newsock < 0) { 
     1076            if (test_connection(newsock) < 0) 
     1077              continue;         /* this should _not_ be return. */ 
     1078          } 
     1079          ndescriptors++; 
     1080          query_info_slave(newsock); 
     1081          if (newsock >= maxd) 
     1082            maxd = newsock + 1; 
     1083        } else 
     1084          setup_desc(sock, false); 
    10851085      } 
    10861086#ifdef HAS_OPENSSL 
    10871087      if (sslsock && FD_ISSET(sslsock, &input_set)) { 
    1088    if (!info_slave_halted) { 
    1089      addr_len = sizeof(addr); 
    1090      newsock = accept(sslsock, (struct sockaddr *) &addr, &addr_len); 
    1091      if (newsock < 0) { 
    1092        if (test_connection(newsock) < 0) 
    1093          continue;           /* this should _not_ be return. */ 
    1094      } 
    1095      ndescriptors++; 
    1096      query_info_slave(newsock); 
    1097      if (newsock >= maxd) 
    1098        maxd = newsock + 1; 
    1099    } else 
    1100      setup_desc(sslsock, true); 
     1088        if (!info_slave_halted) { 
     1089          addr_len = sizeof(addr); 
     1090          newsock = accept(sslsock, (struct sockaddr *) &addr, &addr_len); 
     1091          if (newsock < 0) { 
     1092            if (test_connection(newsock) < 0) 
     1093              continue;         /* this should _not_ be return. */ 
     1094          } 
     1095          ndescriptors++; 
     1096          query_info_slave(newsock); 
     1097          if (newsock >= maxd) 
     1098            maxd = newsock + 1; 
     1099        } else 
     1100          setup_desc(sslsock, true); 
    11011101      } 
    11021102#endif 
    11031103#else                           /* INFO_SLAVE */ 
    1104       if (FD_ISSET(sock, &input_set))  
    1105    setup_desc(sock, false); 
     1104      if (FD_ISSET(sock, &input_set)) 
     1105        setup_desc(sock, false); 
    11061106#ifdef HAS_OPENSSL 
    1107       if (sslsock && FD_ISSET(sslsock, &input_set))  
    1108    setup_desc(sslsock, true); 
     1107      if (sslsock && FD_ISSET(sslsock, &input_set)) 
     1108        setup_desc(sslsock, true); 
    11091109#endif 
    11101110#endif 
     
    21262126{ 
    21272127  if (*userstring) { 
    2128     mush_free((Malloc_t) *userstring, "userstring"); 
     2128    mush_free((Malloc_t) * userstring, "userstring"); 
    21292129    *userstring = NULL; 
    21302130  } 
  • 1.8.3/branches/devel/src/cque.c

    r1235 r1267  
    262262  uint32_t pid = top_pid; 
    263263 
    264   if (im_count(queue_map) >= (int)MAX_PID) { 
     264  if (im_count(queue_map) >= (int) MAX_PID) { 
    265265    do_rawlog(LT_ERR, 
    266               T("There are %ld queue entries! That's too many. Failing to add another."), 
    267               (long)im_count(queue_map)); 
     266              T 
     267              ("There are %ld queue entries! That's too many. Failing to add another."), 
     268              (long) im_count(queue_map)); 
    268269    return 0; 
    269270  } 
  • 1.8.3/branches/devel/src/csrimalloc.c

    r1159 r1267  
    729729 */ 
    730730Word *_malloc_rovers[MAXBINS + 1] = { NULL }; 
     731 
    731732const size_t _malloc_binmax[MAXBINS] = { 
    732733  8, 16, 32, 64, 128, 256, 512, 1024 
    733734}; 
     735 
    734736int _malloc_firstbin = 0; 
    735737int _malloc_lastbin = 0; 
     
    9981000univptr_t 
    9991001erealloc(univptr_t ptr, size_t nbytes); 
    1000     Free_t 
    1001      free(univptr_t cp); 
    1002     Free_t 
    1003      cfree(univptr_t cp); 
     1002Free_t 
     1003free(univptr_t cp); 
     1004Free_t 
     1005cfree(univptr_t cp); 
    10041006#endif                          /* CSRI_TRACE */ 
    10051007 
  • 1.8.3/branches/devel/src/extchat.c

    r1260 r1267  
    103103CHAN *channels;    /**< Pointer to channel list */ 
    104104 
    105 extern int rhs_present; /* from command.c */ 
     105extern int rhs_present;         /* from command.c */ 
    106106 
    107107static PRIV priv_table[] = { 
     
    20342034    return; 
    20352035  } 
    2036    
     2036 
    20372037  test_channel(player, name, c); 
    20382038  u = onchannel(player, c); 
     
    20412041    return; 
    20422042  } 
    2043    
     2043 
    20442044  if (!rhs_present) { 
    2045       if (strlen(CUtitle(u)) == 0)  
    2046         notify_format(player, T("You have no title set on <%s>."), ChanName(c)); 
    2047       else 
    2048         notify_format(player, T("Your title on <%s> is '%s'."), ChanName(c), CUtitle(u)); 
    2049       return; 
    2050   } 
    2051    
     2045    if (strlen(CUtitle(u)) == 0) 
     2046      notify_format(player, T("You have no title set on <%s>."), ChanName(c)); 
     2047    else 
     2048      notify_format(player, T("Your title on <%s> is '%s'."), ChanName(c), 
     2049                    CUtitle(u)); 
     2050    return; 
     2051  } 
     2052 
    20522053  if (!title) 
    20532054    title = (const char *) ""; 
     
    22732274 
    22742275/* ARGSUSED */ 
    2275 FUNCTION(fun_cbufferadd) { 
     2276FUNCTION(fun_cbufferadd) 
     2277
    22762278  CHAN *c; 
    22772279  dbref victim; 
    22782280 
    22792281  // Person must be able to do nospoof cemits. 
    2280   if (!command_check_byname(executor, "@cemit") || 
    2281       fun->flags & FN_NOSIDEFX) { 
     2282  if (!command_check_byname(executor, "@cemit") || fun->flags & FN_NOSIDEFX) { 
    22822283    safe_str(T(e_perm), buff, bp); 
    22832284    return; 
    22842285  } 
    2285  
    22862286  // Find the channel. 
    22872287  if (!args[0] || !*args[0]) { 
     
    22892289    return; 
    22902290  } 
    2291  
    22922291  // Make sure we have text. 
    22932292  if (!args[1] || !*args[1]) { 
     
    23002299  if (nargs == 3 && parse_boolean(args[2])) { 
    23012300    // Person must be able to do nospoof cemits. 
    2302     if (!command_check_byname(executor, "@nscemit") || 
    2303         fun->flags & FN_NOSIDEFX) { 
     2301    if (!command_check_byname(executor, "@nscemit") || fun->flags & FN_NOSIDEFX) { 
    23042302      safe_str(T(e_perm), buff, bp); 
    23052303      return; 
     
    23072305    victim = enactor; 
    23082306  } 
    2309  
    23102307  // Get the message. 
    23112308  switch (find_channel(args[0], &c, executor)) { 
     
    35313528  u = onchannel(player, chan); 
    35323529  if (!u && !Chan_Can_Join(chan, player)) { 
    3533     notify(player, T("CHAT: You must be able to join a channel to recall from it.")); 
     3530    notify(player, 
     3531           T("CHAT: You must be able to join a channel to recall from it.")); 
    35343532    return; 
    35353533  } 
  • 1.8.3/branches/devel/src/fundb.c

    r1240 r1267  
    3838                        char const *pattern, ATTR *atr, void *args); 
    3939static dbref 
    40  dbwalk(char *buff, char **bp, dbref executor, dbref enactor, 
    41         int type, dbref loc, dbref after, int skipdark, 
    42         int start, int count, int *retcount); 
     40 
     41 
     42dbwalk(char *buff, char **bp, dbref executor, dbref enactor, 
     43       int type, dbref loc, dbref after, int skipdark, 
     44       int start, int count, int *retcount); 
    4345 
    4446 
     
    200202  char *attr; 
    201203  ATTR *a; 
    202    
     204 
    203205  if (nargs == 1) { 
    204      attr = strchr(args[0], '/'); 
    205      if (!attr) { 
    206          safe_format(buff, bp, T("#-1 BAD ARGUMENT FORMAT TO %s"), called_as); 
    207          return; 
    208      } 
    209      *attr++ = '\0'; 
     206    attr = strchr(args[0], '/'); 
     207    if (!attr) { 
     208      safe_format(buff, bp, T("#-1 BAD ARGUMENT FORMAT TO %s"), called_as); 
     209      return; 
     210    } 
     211    *attr++ = '\0'; 
    210212  } else { 
    211      attr = args[1]; 
     213    attr = args[1]; 
    212214  } 
    213215 
  • 1.8.3/branches/devel/src/funmath.c

    r1258 r1267  
    17991799  char *ptr; 
    18001800  char numbuff[BUFFER_LEN], *nbp; 
    1801    
     1801 
    18021802 
    18031803  // Base 36 by default. 
     
    18301830    tobase = to_base_64; 
    18311831  } 
    1832  
    18331832  // Parse it. 
    18341833  ptr = trim_space_sep(args[0], ' '); 
  • 1.8.3/branches/devel/src/game.c

    r1227 r1267  
    8484/* declarations */ 
    8585GLOBALTAB globals = { 0, "", 0, 0, 0, 0, 0, 0, 0, 0 }; 
     86 
    8687static int epoch = 0; 
    8788static int reserved;                    /**< Reserved file descriptor */ 
     
    934935        db_close(f); 
    935936      } 
    936     } else  /* Close the panicdb file handle */ 
     937    } else                      /* Close the panicdb file handle */ 
    937938      db_close(f); 
    938939 
  • 1.8.3/branches/devel/src/info_master.c

    r1224 r1267  
    130130    } 
    131131  } 
    132  
    133  
    134132#ifndef AF_LOCAL 
    135133  /* Use Posix.1g names. */ 
     
    210208    if (FD_ISSET(n, &info_pending)) 
    211209      query_info_slave(n); 
    212    
     210 
    213211  return true; 
    214212} 
     
    231229    if (!make_info_slave()) { 
    232230      FD_CLR(fd, &info_pending); 
    233       closesocket(fd); /* Just drop the connection if the slave gets halted. 
    234              A subsequent reconnect will work. */ 
     231      closesocket(fd);          /* Just drop the connection if the slave gets halted. 
     232                                   A subsequent reconnect will work. */ 
    235233    } 
    236234    return; 
  • 1.8.3/branches/devel/src/intmap.c

    r1216 r1267  
    8181    (Passing a NULL pointer instead of a map). */ 
    8282int64_t 
    83 im_count(intmap * im) 
     83im_count(intmap *im) 
    8484{ 
    8585  if (im) 
     
    105105 
    106106static void 
    107 pat_destroy(patricia * node) 
     107pat_destroy(patricia *node) 
    108108{ 
    109109  int n; 
     
    125125 */ 
    126126void 
    127 im_destroy(intmap * im) 
     127im_destroy(intmap *im) 
    128128{ 
    129129  if (im) { 
     
    141141/* Returns the node matching the key or its prefix */ 
    142142static patricia * 
    143 pat_search(patricia * node, im_key key, int bit) 
     143pat_search(patricia *node, im_key key, int bit) 
    144144{ 
    145145  assert(node); 
     
    157157 */ 
    158158void * 
    159 im_find(intmap * im, im_key key) 
     159im_find(intmap *im, im_key key) 
    160160{ 
    161161  patricia *node; 
     
    178178 */ 
    179179bool 
    180 im_exists(intmap * im, im_key key) 
     180im_exists(intmap *im, im_key key) 
    181181{ 
    182182  patricia *node; 
     
    195195 */ 
    196196bool 
    197 im_insert(intmap * im, im_key key, void *data) 
     197im_insert(intmap *im, im_key key, void *data) 
    198198{ 
    199199  patricia *here, *newnode, *prev = NULL; 
     
    270270 */ 
    271271bool 
    272 im_delete(intmap * im, im_key key) 
     272im_delete(intmap *im, im_key key) 
    273273{ 
    274274  patricia *parent = NULL, *firstparent = NULL, *grandparent = NULL; 
     
    376376 
    377377static void 
    378 pat_list_nodes(patricia * node, FILE * fp) 
     378pat_list_nodes(patricia *node, FILE * fp) 
    379379{ 
    380380  int n; 
     
    407407 
    408408static void 
    409 pat_list_links(patricia * node, FILE * fp) 
     409pat_list_links(patricia *node, FILE * fp) 
    410410{ 
    411411  int i; 
     
    442442 */ 
    443443void 
    444 im_dump_graph(intmap * im, const char *filename) 
     444im_dump_graph(intmap *im, const char *filename) 
    445445{ 
    446446  FILE *fp; 
     
    473473/** @stats/tables line */ 
    474474void 
    475 im_stats(dbref player, intmap * im, const char *name) 
    476 { 
    477   notify_format(player, "%-11s %7lld %7u", name, im->count, 
     475im_stats(dbref player, intmap *im, const char *name) 
     476{ 
     477  notify_format(player, "%-11s %7lld %7u", name, (long long) im->count, 
    478478                (unsigned int) (sizeof(*im) + (sizeof(patricia) * im->count))); 
    479479} 
  • 1.8.3/branches/devel/src/notify.c

    r1159 r1267  
    822822 
    823823          if (!((flags & NA_NOENTER) || ((flags & NA_PROMPT) 
    824                                          && !(d-> 
    825                                               conn_flags & 
     824                                         && !(d->conn_flags & 
    826825                                              CONN_PROMPT_NEWLINES)))) { 
    827826            if ((poutput == NA_PUEBLO) || (poutput == NA_NPUEBLO)) { 
  • 1.8.3/branches/devel/src/parse.c

    r1238 r1267  
    805805      } 
    806806      break; 
    807     case ESC_CHAR:                 /* ANSI escapes. */ 
     807    case ESC_CHAR:             /* ANSI escapes. */ 
    808808      /* Skip over until the 'm' that matches the end. */ 
    809809      for (; *str && **str && **str != 'm'; (*str)++) 
  • 1.8.3/branches/devel/src/pcre.c

    r1151 r1267  
    12531253 
    12541254int 
    1255  pcre_get_substring_list(const char *subject, int *ovector, int stringcount, 
    1256                          const char ***listptr); 
     1255 
     1256 
     1257pcre_get_substring_list(const char *subject, int *ovector, int stringcount, 
     1258                        const char ***listptr); 
    12571259 
    12581260int 
     
    13371339 
    13381340int 
    1339  pcre_get_substring(const char *subject, int *ovector, int stringcount, 
    1340                     int stringnumber, const char **stringptr); 
     1341 
     1342 
     1343pcre_get_substring(const char *subject, int *ovector, int stringcount, 
     1344                   int stringnumber, const char **stringptr); 
    13411345 
    13421346int 
     
    13881392 
    13891393int 
    1390  pcre_get_named_substring(const pcre * code, const char *subject, int *ovector, 
    1391                           int stringcount, const char *stringname, 
    1392                           const char **stringptr); 
     1394 
     1395 
     1396pcre_get_named_substring(const pcre * code, const char *subject, int *ovector, 
     1397                         int stringcount, const char *stringname, 
     1398                         const char **stringptr); 
    13931399 
    13941400int 
     
    22692275 
    22702276static BOOL 
    2271  compile_regex(int, int, int *, uschar **, const uschar **, int *, BOOL, int, 
    2272                int *, int *, branch_chain *, compile_data *); 
     2277 
     2278 
     2279compile_regex(int, int, int *, uschar **, const uschar **, int *, BOOL, int, 
     2280              int *, int *, branch_chain *, compile_data *); 
    22732281 
    22742282 
  • 1.8.3/branches/devel/src/set.c

    r1241 r1267  
    6464{ 
    6565  dbref thing; 
    66   char *eon; /* End Of Name */ 
     66  char *eon;                    /* End Of Name */ 
    6767  char *myenv[10]; 
    6868  int i; 
     
    7979    if (IsPlayer(thing)) { 
    8080      if (*newname == '"') { 
    81     for (; *newname && ((*newname == '"') 
    82                 || isspace((unsigned char) *newname)); 
    83          newname++) ; 
    84     eon = newname; 
    85     while (*eon && (*eon != '"')) { 
    86       while (*eon && (*eon != '"')) 
    87         eon++; 
    88       if (*eon == '"') { 
    89         *eon++ = '\0'; 
    90         while (*eon && isspace((unsigned char) *eon)) 
    91           eon++; 
    92         break; 
    93             } 
     81        for (; *newname && ((*newname == '"') 
     82                            || isspace((unsigned char) *newname)); newname++) ; 
     83        eon = newname; 
     84        while (*eon && (*eon != '"')) { 
     85          while (*eon && (*eon != '"')) 
     86            eon++; 
     87          if (*eon == '"') { 
     88            *eon++ = '\0'; 
     89            while (*eon && isspace((unsigned char) *eon)) 
     90              eon++; 
     91            break; 
    9492          } 
     93        } 
    9594      } else { 
    96    eon = newname; 
    97    while (*eon && !isspace((unsigned char) *eon)) 
    98      eon++; 
    99     if (*eon)  
    100      *eon++ = '\0'; 
     95        eon = newname; 
     96        while (*eon && !isspace((unsigned char) *eon)) 
     97          eon++; 
     98        if (*eon) 
     99          *eon++ = '\0'; 
    101100      } 
    102101      if (!ok_player_name(newname, player, thing)) { 
  • 1.8.3/branches/devel/src/ssl_slave.c

    r1177 r1267  
    216216 
    217217static int 
    218  parse_arguments(int argc, char **argv, char *elog, char *mhost, 
    219                  Port_t *mport, Port_t *lport, char *kfile, char *cafl); 
    220 static void logout_sock(CDESC * d); 
    221 static void shutdownsock(CDESC * d); 
     218 
     219 
     220parse_arguments(int argc, char **argv, char *elog, char *mhost, 
     221                Port_t *mport, Port_t *lport, char *kfile, char *cafl); 
     222static void logout_sock(CDESC *d); 
     223static void shutdownsock(CDESC *d); 
    222224static CDESC *initializesock(int s, char *addr, char *ip, int use_ssl); 
    223 int process_output(CDESC * d); 
    224 static int process_input(CDESC * d, int output_ready); 
    225 static void process_input_helper(CDESC * d, char *tbuf1, int got); 
     225int process_output(CDESC *d); 
     226static int process_input(CDESC *d, int output_ready); 
     227static void process_input_helper(CDESC *d, char *tbuf1, int got); 
    226228static void close_sockets(void); 
    227229static CDESC *connect_to_mush(const char *mush_host, Port_t mport); 
     
    229231static int test_connection(int newsock); 
    230232static CDESC *new_connection(int oldsock, int *result, int use_ssl); 
    231 static int queue_newwrite(CDESC * d, const unsigned char *b, int n); 
    232 static int send_text(CDESC * d, const unsigned char *b); 
    233 static int send_concentor_command(CDESC * d, const unsigned char *b); 
    234 static int send_concentor_text(CDESC * d, int player_id, 
    235                                const unsigned char *b); 
     233static int queue_newwrite(CDESC *d, const unsigned char *b, int n); 
     234static int send_text(CDESC *d, const unsigned char *b); 
     235static int send_concentor_command(CDESC *d, const unsigned char *b); 
     236static int send_concentor_text(CDESC *d, int player_id, const unsigned char *b); 
    236237static void process_commands(void); 
    237238 
     
    408409/* Send text to the MUSH from a player */ 
    409410static int 
    410 send_concentor_message(CDESC * d, int player_id, const unsigned char *b) 
     411send_concentor_message(CDESC *d, int player_id, const unsigned char *b) 
    411412{ 
    412413  unsigned char *message = 
     
    418419/* Send text with a player_id of -1 */ 
    419420static int 
    420 send_concentor_command(CDESC * d, const unsigned char *b) 
     421send_concentor_command(CDESC *d, const unsigned char *b) 
    421422{ 
    422423  return send_concentrator_message(d, -1, b); 
     
    530531 
    531532static void 
    532 queue_to_player(CDESC * d) 
     533queue_to_player(CDESC *d) 
    533534{ 
    534535  /* Parse a concentrator message from the MUSH in text blocks on 
     
    539540 
    540541static void 
    541 queue_to_mush(CDESC * d) 
     542queue_to_mush(CDESC *d) 
    542543{ 
    543544  /* Parse some text from a player and queue it to the MUSH as 
     
    634635 */ 
    635636static void 
    636 shutdownsock(CDESC * d) 
     637shutdownsock(CDESC *d) 
    637638{ 
    638639 
     
    722723 */ 
    723724int 
    724 process_output(CDESC * d) 
     725process_output(CDESC *d) 
    725726{ 
    726727  struct text_block **qp, *cur; 
     
    815816 
    816817static void 
    817 save_command(CDESC * d, const unsigned char *command) 
     818save_command(CDESC *d, const unsigned char *command) 
    818819{ 
    819820  add_to_queue(&d->input, command, u_strlen(command) + 1); 
     
    822823 
    823824static void 
    824 process_input_helper(CDESC * d, char *tbuf1, int got) 
     825process_input_helper(CDESC *d, char *tbuf1, int got) 
    825826{ 
    826827  unsigned char *p, *pend, *q, *qend; 
     
    871872/* ARGSUSED */ 
    872873static int 
    873 process_input(CDESC * d, int output_ready) 
     874process_input(CDESC *d, int output_ready) 
    874875{ 
    875876  int got = 0; 
     
    10531054 
    10541055static int 
    1055 send_text(CDESC * d, const unsigned char *b) 
     1056send_text(CDESC *d, const unsigned char *b) 
    10561057{ 
    10571058  int l = u_strlen(b); 
     
    10661067 */ 
    10671068static int 
    1068 queue_newwrite(CDESC * d, const unsigned char *b, int n) 
     1069queue_newwrite(CDESC *d, const unsigned char *b, int n) 
    10691070{ 
    10701071  int space; 
  • 1.8.3/branches/devel/src/tables.c

    r1243 r1267  
    4242 
    4343char to_base_64[] = 
    44     "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"; 
     44  "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"; 
    4545 
    4646char from_base_36[256] = {