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

Removed unused code.

Added macros for ctrl key constants.
parent 8cba3df6
No related branches found
No related tags found
No related merge requests found
......@@ -108,7 +108,7 @@ int bstrlen(char *str)
int i=0;
while(*str) {
if(*str==1) /* ctrl-a */
if(*str==CTRL_A)
str++;
else
i++;
......@@ -124,7 +124,7 @@ void strip_ctrl(char *str)
k=strlen(str);
for(i=j=0;i<k;i++)
if(str[i]==1) /* Ctrl-a */
if(str[i]==CTRL_A)
i++;
else if(j && str[i]<=SP && tmp[j-1]==SP)
continue;
......@@ -178,9 +178,6 @@ void truncsp(char *str)
{
uint c;
#if 0 /* no longer terminates at first tab OCT-09-2000 rswindell */
str[strcspn(str,"\t")]=0;
#endif
c=strlen(str);
while(c && (uchar)str[c-1]<=SP) c--;
str[c]=0;
......
......@@ -179,7 +179,7 @@ ulong sbbs_t::msgtoqwk(smbmsg_t* msg, FILE *qwk_fp, long mode, int subnum
if((uchar)ch==0xE3) /* funky char */
ch='*';
if(ch==1) { /* ctrl-a */
if(ch==CTRL_A) {
ch=buf[++l];
if(!ch)
break;
......
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