Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
46a46b2b
Commit
46a46b2b
authored
May 14, 2003
by
rswindell
Browse files
Changed TABSIZE macro name to EDIT_TABSIZE (to solve conflict with curses.h).
parent
825a7913
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
src/sbbs3/getstr.cpp
src/sbbs3/getstr.cpp
+2
-2
src/sbbs3/sbbsdefs.h
src/sbbs3/sbbsdefs.h
+2
-3
src/sbbs3/writemsg.cpp
src/sbbs3/writemsg.cpp
+1
-1
No files found.
src/sbbs3/getstr.cpp
View file @
46a46b2b
...
...
@@ -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
++
;
...
...
src/sbbs3/sbbsdefs.h
View file @
46a46b2b
...
...
@@ -432,7 +432,7 @@ typedef enum { /* Values for xtrn_t.event */
#define LINE_BUFSIZE 512
/* Size of line output buffer */
#define TABSIZE
4
/* Tab
S
ize
*/
#define
EDIT_
TABSIZE
4
/* Tab
s
ize
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 */
...
...
src/sbbs3/writemsg.cpp
View file @
46a46b2b
...
...
@@ -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
(
'+'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment