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)
bputs("\b \b");
break;
case CTRL_I: /* Ctrl-I/TAB */
if(!(i%TABSIZE)) {
if(!(i%EDIT_TABSIZE)) {
if(ins) {
if(l<maxlen)
l++;
......@@ -225,7 +225,7 @@ size_t sbbs_t::getstr(char *strout, size_t maxlen, long mode)
str1[i++]=SP;
if(!(mode&K_NOECHO))
outchar(SP); }
while(i<maxlen && i%TABSIZE) {
while(i<maxlen && i%EDIT_TABSIZE) {
if(ins) {
if(l<maxlen)
l++;
......
......@@ -432,7 +432,7 @@ typedef enum { /* Values for xtrn_t.event */
#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 */
......@@ -949,8 +949,7 @@ typedef struct { /* Users information */
typedef struct { /* File (transfers) Data */
char name[13], /* Name of file FILENAME.EXT */
desc[LEN_FDESC+1], /* Uploader's Description */
uler[LEN_ALIAS+1], /* User who uploaded */
path[LEN_DIR+1]; /* Alternate DOS path */
uler[LEN_ALIAS+1]; /* User who uploaded */
uchar opencount; /* Times record is currently open */
time_t date, /* File date/time */
dateuled, /* Date/Time (Unix) Uploaded */
......
......@@ -581,7 +581,7 @@ ulong sbbs_t::msgeditor(char *buf, char *top, char *title)
menu("msgtabs");
else {
for(i=0;i<79;i++) {
if(i%TABSIZE || !i)
if(i%EDIT_TABSIZE || !i)
outchar('-');
else
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