Skip to content
Snippets Groups Projects
Commit ec021a4c authored by rswindell's avatar rswindell
Browse files

Increase version to v3.15a.

Updated copyright date to 2008.
Better bounds-checking in SAVELINE macro.
parent 3d81f551
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2006 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2008 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -50,16 +50,16 @@
/* Constants */
/*************/
#define VERSION "3.14" /* Version: Major.minor */
#define REVISION 'b' /* Revision: lowercase letter */
#define VERSION_NUM (31400 + (tolower(REVISION)-'a'))
#define VERSION_HEX (0x31400 + (tolower(REVISION)-'a'))
#define VERSION "3.15" /* Version: Major.minor */
#define REVISION 'a' /* Revision: lowercase letter */
#define VERSION_NUM (31500 + (tolower(REVISION)-'a'))
#define VERSION_HEX (0x31500 + (tolower(REVISION)-'a'))
#define VERSION_NOTICE "Synchronet BBS for "PLATFORM_DESC\
" Version " VERSION
#define SYNCHRONET_CRC 0x9BCDD162
#define COPYRIGHT_NOTICE "Copyright 2006 Rob Swindell"
#define COPYRIGHT_CRC 0xE16A6CC1
#define COPYRIGHT_NOTICE "Copyright 2008 Rob Swindell"
#define COPYRIGHT_CRC 0x2AF13941
#define Y2K_2DIGIT_WINDOW 70
......@@ -814,11 +814,12 @@ enum { /* Values of mode for userlist function */
#define FLAG(x) (ulong)(1UL<<(x-'A'))
#define CLS outchar(FF)
#define WHERE __LINE__,__FILE__
#define SAVELINE { slatr[slcnt]=latr; \
#define SAVELINE { if(slcnt<SAVE_LINES) { \
slatr[slcnt]=latr; \
slcuratr[slcnt]=curatr; \
sprintf(slbuf[slcnt],"%.*s",lbuflen,lbuf); \
if(slcnt<SAVE_LINES) slcnt++; \
lbuflen=0; }
slcnt++; \
lbuflen=0; } }
#define RESTORELINE { lbuflen=0; if(slcnt) --slcnt; \
attr(slatr[slcnt]); \
rputs(slbuf[slcnt]); \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment