Changeset 840
- Timestamp:
- 05/15/07 11:43:08 (2 years ago)
- Files:
-
- 1.8.2/branches/devel/CHANGES.182 (modified) (1 diff)
- 1.8.2/branches/devel/src/funlist.c (modified) (1 diff)
- 1.8.2/branches/devel/src/funmath.c (modified) (1 diff)
- 1.8.2/branches/devel/src/funtime.c (modified) (3 diffs)
- 1.8.2/branches/devel/src/notify.c (modified) (6 diffs)
- 1.8.2/branches/devel/src/services.c (modified) (1 diff)
- 1.8.2/branches/devel/src/set.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
1.8.2/branches/devel/CHANGES.182
r839 r840 19 19 Minor changes: 20 20 * Removed the gmalloc malloc option. [SW] 21 * Assorted gcc warning fixes. [SW] 21 22 22 23 Version 1.8.2 patchlevel 4 May ??, 2007 1.8.2/branches/devel/src/funlist.c
r816 r840 3121 3121 /* string, regexp, replacement string. Acts like sed or perl's s///g, 3122 3122 * with an ig version */ 3123 // int re_subpatterns = -1; /**< Number of subpatterns in regexp */3124 // int *re_offsets; /**< Array of offsets to subpatterns */3125 // char *re_from = NULL; /**< Pointer to last match position */3126 3123 FUNCTION(fun_regreplace) 3127 3124 { 1.8.2/branches/devel/src/funmath.c
r604 r840 1273 1273 1274 1274 if (fabs(denom - 1) < 1.0e-10) 1275 safe_format(buff, bp, "%.0 lf", num);1275 safe_format(buff, bp, "%.0f", num); 1276 1276 else 1277 safe_format(buff, bp, "%.0 lf/%.0lf", num, denom);1277 safe_format(buff, bp, "%.0f/%.0f", num, denom); 1278 1278 } 1279 1279 1.8.2/branches/devel/src/funtime.c
r814 r840 221 221 } 222 222 if (i == 0) { 223 safe_str(T("#-1 INVALID TIMESTRING"), buff, bp); / / no numbers223 safe_str(T("#-1 INVALID TIMESTRING"), buff, bp); /* no numbers */ 224 224 return; 225 225 } 226 226 str2[i] = '\0'; 227 227 if (!*str1) { 228 secs += parse_integer(str2); / / no more chars, just add seconds and stop228 secs += parse_integer(str2); /* no more chars, just add seconds and stop */ 229 229 break; 230 230 } … … 232 232 case 'd': 233 233 case 'D': 234 secs += (parse_integer(str2) * 86400); / / days234 secs += (parse_integer(str2) * 86400); /* days */ 235 235 break; 236 236 case 'h': 237 237 case 'H': 238 secs += (parse_integer(str2) * 3600); / / hours238 secs += (parse_integer(str2) * 3600); /* hours */ 239 239 break; 240 240 case 'm': 241 241 case 'M': 242 secs += (parse_integer(str2) * 60); / / minutes242 secs += (parse_integer(str2) * 60); /* minutes */ 243 243 break; 244 244 case 's': 245 245 case 'S': 246 246 case ' ': 247 secs += parse_integer(str2); / / seconds247 secs += parse_integer(str2); /* seconds */ 248 248 break; 249 249 default: … … 251 251 return; 252 252 } 253 str1++; / / move past the time char253 str1++; /* move past the time char */ 254 254 } 255 255 safe_integer(secs, buff, bp); 1.8.2/branches/devel/src/notify.c
r527 r840 331 331 bp = tbuf; 332 332 safe_str((char *) messages[type].message, tbuf, &bp); 333 safe_chr( IAC, tbuf, &bp);334 safe_chr( GOAHEAD, tbuf, &bp);333 safe_chr((char)IAC, tbuf, &bp); 334 safe_chr((char)GOAHEAD, tbuf, &bp); 335 335 *bp = '\0'; 336 336 return (unsigned char *) tbuf; … … 371 371 bp = tbuf; 372 372 safe_str((char *) messages[type].message, tbuf, &bp); 373 safe_chr( IAC, tbuf, &bp);374 safe_chr( GOAHEAD, tbuf, &bp);373 safe_chr((char)IAC, tbuf, &bp); 374 safe_chr((char)GOAHEAD, tbuf, &bp); 375 375 *bp = '\0'; 376 376 return (unsigned char *) tbuf; … … 388 388 case IAC: 389 389 if (type == NA_TPASCII) 390 safe_str ("\xFF\xFF", t, &o);390 safe_strl("\xFF\xFF", 2, t, &o); 391 391 else if (strip) 392 392 safe_str(accent_table[IAC].base, t, &o); … … 405 405 break; 406 406 case '\n': 407 safe_str ("\r\n", t, &o);407 safe_strl("\r\n", 2, t, &o); 408 408 break; 409 409 default: … … 421 421 bp = tbuf; 422 422 safe_str((char *) messages[type].message, tbuf, &bp); 423 safe_chr( IAC, tbuf, &bp);424 safe_chr( GOAHEAD, tbuf, &bp);423 safe_chr((char)IAC, tbuf, &bp); 424 safe_chr((char)GOAHEAD, tbuf, &bp); 425 425 *bp = '\0'; 426 426 return (unsigned char *) tbuf; … … 533 533 bp = tbuf; 534 534 safe_str((char *) messages[type].message, tbuf, &bp); 535 safe_chr( IAC, tbuf, &bp);536 safe_chr( GOAHEAD, tbuf, &bp);535 safe_chr((char)IAC, tbuf, &bp); 536 safe_chr((char)GOAHEAD, tbuf, &bp); 537 537 *bp = '\0'; 538 538 return (unsigned char *) tbuf; 1.8.2/branches/devel/src/services.c
r477 r840 1 /* Win32 services routines */ 2 3 /* Author: Nick Gammon */ 4 5 #ifdef WIN32 1 /** \file services.c 2 * \brief Win32 services routines 3 * 4 * Original author: Nick Gammon 5 */ 6 6 7 7 8 #include "copyrite.h" 8 9 #include "config.h" 10 11 #ifdef WIN32 9 12 10 13 #include <windows.h> /* for service and thread routines */ 1.8.2/branches/devel/src/set.c
r816 r840 876 876 } 877 877 } else { 878 / / We don't do it - we just pemit it.878 /* We don't do it - we just pemit it. */ 879 879 if (!ansi_long_flag && ShowAnsi(player)) 880 880 notify_format(player, "%s - Set: %s", AL_NAME(a), tbuf_ansi);
