Changeset 566
- Timestamp:
- 11/26/06 12:32:34 (2 years ago)
- Files:
-
- 1.8.2/trunk/src/command.c (modified) (1 diff)
- 1.8.2/trunk/src/cque.c (modified) (4 diffs)
- 1.8.2/trunk/src/db.c (modified) (1 diff)
- 1.8.2/trunk/src/extchat.c (modified) (2 diffs)
- 1.8.2/trunk/src/help.c (modified) (2 diffs)
- 1.8.2/trunk/src/look.c (modified) (2 diffs)
- 1.8.2/trunk/src/wild.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
1.8.2/trunk/src/command.c
r531 r566 1704 1704 { 1705 1705 int ok; 1706 c har *mess = NULL;1706 const char *mess = NULL; 1707 1707 int check_flags, check_powers; 1708 1708 1.8.2/trunk/src/cque.c
r523 r566 66 66 void free_qentry(BQUE *point); 67 67 static int pay_queue(dbref player, const char *command); 68 void wait_que(dbref player, int wait , char *command,68 void wait_que(dbref player, int waituntil, char *command, 69 69 dbref cause, dbref sem, const char *semattr, int until); 70 70 int que_next(void); … … 342 342 * to the back of the queue. 343 343 * \param player the enqueuing object. 344 * \param wait time to wait, or 0.344 * \param waittill time to wait, or 0. 345 345 * \param command command to enqueue. 346 346 * \param cause object that caused command to be enqueued. … … 350 350 */ 351 351 void 352 wait_que(dbref player, int wait , char *command, dbref cause, dbref sem,352 wait_que(dbref player, int waittill, char *command, dbref cause, dbref sem, 353 353 const char *semattr, int until) 354 354 { 355 355 BQUE *tmp; 356 356 int a; 357 if (wait == 0) {357 if (waittill == 0) { 358 358 if (sem != NOTHING) 359 359 add_to_sem(sem, -1, semattr); … … 386 386 387 387 if (until) { 388 tmp->left = wait ;388 tmp->left = waittill; 389 389 } else { 390 if (wait >= 0)391 tmp->left = mudtime + wait ;390 if (waittill >= 0) 391 tmp->left = mudtime + waittill; 392 392 else 393 393 tmp->left = 0; /* semaphore wait without a timeout */ 1.8.2/trunk/src/db.c
r557 r566 1014 1014 1015 1015 for (;;) { 1016 int c ;1017 1018 c = fgetc(f);1019 ungetc(c , f);1020 1021 if (c != ' ')1016 int ch; 1017 1018 ch = fgetc(f); 1019 ungetc(ch, f); 1020 1021 if (ch != ' ') 1022 1022 break; 1023 1023 1.8.2/trunk/src/extchat.c
r531 r566 156 156 list_partial_matches(player, name, PMATCH_ALL); \ 157 157 return; \ 158 case CMATCH_EXACT: \ 159 case CMATCH_PARTIAL: \ 158 160 default: \ 159 161 break; \ … … 3469 3471 } 3470 3472 3473 /* msg is a printf-style format that has exactly and only 2 %s specifiers 3474 in it. */ 3471 3475 static void 3472 3476 format_channel_broadcast(CHAN *chan, CHANUSER *u, 1.8.2/trunk/src/help.c
r531 r566 32 32 static const char *string_spitfile(help_file *help_dat, char *arg1); 33 33 static help_indx *help_find_entry(help_file *help_dat, const char *the_topic); 34 static c har *list_matching_entries(char *pattern, help_file *help_dat,35 const char *sep);34 static const char *list_matching_entries(char *pattern, help_file *help_dat, 35 const char *sep); 36 36 static const char *normalize_entry(help_file *help_dat, char *arg1); 37 37 … … 543 543 544 544 /** Return a string with all help entries that match a pattern */ 545 static c har *545 static const char * 546 546 list_matching_entries(char *pattern, help_file *help_dat, const char *sep) 547 547 { 1.8.2/trunk/src/look.c
r557 r566 51 51 int skipdef, const char *prefix); 52 52 static char *parent_chain(dbref player, dbref thing); 53 54 static void insert_spaces(int count, int dospace, char *buff, char **bp); 53 55 54 56 extern PRIV attr_privs_view[]; … … 1392 1394 extern char escaped_chars[UCHAR_MAX + 1]; 1393 1395 1394 void1396 static void 1395 1397 insert_spaces(int count, int dospace, char *buff, char **bp) 1396 1398 { 1.8.2/trunk/src/wild.c
r473 r566 588 588 /** Either an order comparison or a wildcard match with no memory. 589 589 * 590 * This routine will cause crashes if fed NULLs instead of strings.591 590 * 592 591 * \param s pattern to match against. … … 599 598 local_wild_match_case(const char *RESTRICT s, const char *RESTRICT d, int cs) 600 599 { 601 switch (*s) { 602 case '>': 603 s++; 604 if (is_number(s) && is_number(d)) 605 return (parse_number(s) < parse_number(d)); 606 else 607 return (strcoll(s, d) < 0); 608 case '<': 609 s++; 610 if (is_number(s) && is_number(d)) 611 return (parse_number(s) > parse_number(d)); 612 else 613 return (strcoll(s, d) > 0); 614 } 615 616 return quick_wild_new(s, d, cs); 600 if (s && *s) { 601 switch (*s) { 602 case '>': 603 s++; 604 if (is_number(s) && is_number(d)) 605 return (parse_number(s) < parse_number(d)); 606 else 607 return (strcoll(s, d) < 0); 608 case '<': 609 s++; 610 if (is_number(s) && is_number(d)) 611 return (parse_number(s) > parse_number(d)); 612 else 613 return (strcoll(s, d) > 0); 614 default: 615 return quick_wild_new(s, d, cs); 616 } 617 } else 618 return 0; 617 619 } 618 620
