Commit 46a46b2b authored by rswindell's avatar rswindell
Browse files

Changed TABSIZE macro name to EDIT_TABSIZE (to solve conflict with curses.h).

parent 825a7913
...@@ -214,7 +214,7 @@ size_t sbbs_t::getstr(char *strout, size_t maxlen, long mode) ...@@ -214,7 +214,7 @@ size_t sbbs_t::getstr(char *strout, size_t maxlen, long mode)
bputs("\b \b"); bputs("\b \b");
break; break;
case CTRL_I: /* Ctrl-I/TAB */ case CTRL_I: /* Ctrl-I/TAB */
if(!(i%TABSIZE)) { if(!(i%EDIT_TABSIZE)) {
if(ins) { if(ins) {
if(l<maxlen) if(l<maxlen)
l++; l++;
...@@ -225,7 +225,7 @@ size_t sbbs_t::getstr(char *strout, size_t maxlen, long mode) ...@@ -225,7 +225,7 @@ size_t sbbs_t::getstr(char *strout, size_t maxlen, long mode)
str1[i++]=SP; str1[i++]=SP;
if(!(mode&K_NOECHO)) if(!(mode&K_NOECHO))
outchar(SP); } outchar(SP); }
while(i<maxlen && i%TABSIZE) { while(i<maxlen && i%EDIT_TABSIZE) {
if(ins) { if(ins) {
if(l<maxlen) if(l<maxlen)
l++; l++;
......
...@@ -432,7 +432,7 @@ typedef enum { /* Values for xtrn_t.event */ ...@@ -432,7 +432,7 @@ typedef enum { /* Values for xtrn_t.event */
#define LINE_BUFSIZE 512 /* Size of line output buffer */ #define LINE_BUFSIZE 512 /* Size of line output buffer */
#define TABSIZE 4 /* Tab Size */ #define EDIT_TABSIZE 4 /* Tab size for internal message/line editor */
#define SWAP_NONE 0x80 /* Allow no swapping for executables */ #define SWAP_NONE 0x80 /* Allow no swapping for executables */
...@@ -949,8 +949,7 @@ typedef struct { /* Users information */ ...@@ -949,8 +949,7 @@ typedef struct { /* Users information */
typedef struct { /* File (transfers) Data */ typedef struct { /* File (transfers) Data */
char name[13], /* Name of file FILENAME.EXT */ char name[13], /* Name of file FILENAME.EXT */
desc[LEN_FDESC+1], /* Uploader's Description */ desc[LEN_FDESC+1], /* Uploader's Description */
uler[LEN_ALIAS+1], /* User who uploaded */ uler[LEN_ALIAS+1]; /* User who uploaded */
path[LEN_DIR+1]; /* Alternate DOS path */
uchar opencount; /* Times record is currently open */ uchar opencount; /* Times record is currently open */
time_t date, /* File date/time */ time_t date, /* File date/time */
dateuled, /* Date/Time (Unix) Uploaded */ dateuled, /* Date/Time (Unix) Uploaded */
......
...@@ -581,7 +581,7 @@ ulong sbbs_t::msgeditor(char *buf, char *top, char *title) ...@@ -581,7 +581,7 @@ ulong sbbs_t::msgeditor(char *buf, char *top, char *title)
menu("msgtabs"); menu("msgtabs");
else { else {
for(i=0;i<79;i++) { for(i=0;i<79;i++) {
if(i%TABSIZE || !i) if(i%EDIT_TABSIZE || !i)
outchar('-'); outchar('-');
else else
outchar('+'); outchar('+');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment