Skip to content

Commit 7d1a108

Browse files
committed
Remove parts of the bts library which aren't used.
1 parent 61193a0 commit 7d1a108

File tree

7 files changed

+3
-193
lines changed

7 files changed

+3
-193
lines changed

modules/src/string/ack_string.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,9 @@
77
#ifndef __ACK_STRING_INCLUDED__
88
#define __ACK_STRING_INCLUDED__
99

10-
//char *strzero(char *s);
11-
char *str2bts(char *s, char *b, int *n);
1210
char *long2str(long l, int b);
1311
long str2long(char *s, int b);
1412
char *btscpy(char *b1, char *b2, int n);
15-
char *btscat(char *b1, int n1, char *b2, int n2);
16-
int btscmp(char *b1, int n1, char *b2, int n2);
17-
char *btszero(char *b, int n);
1813
char *bts2str(char *b, int n, char *s);
1914

2015
#endif /* __ACK_STRING_INCLUDED__ */

modules/src/string/btscat.c

Lines changed: 0 additions & 18 deletions
This file was deleted.

modules/src/string/btscmp.c

Lines changed: 0 additions & 20 deletions
This file was deleted.

modules/src/string/btszero.c

Lines changed: 0 additions & 19 deletions
This file was deleted.

modules/src/string/build.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
clibrary {
22
name = "lib",
33
srcs = {
4-
"./bts2str.c", "./btscat.c", "./btscmp.c",
5-
"./btscpy.c", "./btszero.c", "./long2str.c",
6-
"./str2bts.c", "./str2long.c",
4+
"./bts2str.c",
5+
"./btscpy.c","./long2str.c",
6+
"./str2long.c",
77
},
88
hdrs = { "./ack_string.h", },
99
}

modules/src/string/str2bts.c

Lines changed: 0 additions & 68 deletions
This file was deleted.

modules/src/string/string.3

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,12 @@ conversions between strings and row of bytes
99
.nf
1010
.B #include <ack_string.h>
1111
.PP
12-
.B char *str2bts(char *s, char *b, int *n)
13-
.PP
1412
.B char *long2str(long l, int b)
1513
.PP
1614
.B long str2long(char *s, int b)
1715
.PP
1816
.B char *btscpy(char *b1, char *b2, int n)
1917
.PP
20-
.B char *btscat(char *b1, int n1, char *b2, int n2)
21-
.PP
22-
.B int btscmp(char *b1, int n1, char *b2, int n2)
23-
.PP
24-
.B char *btszero(char *b, int n)
25-
.PP
2618
.B char *bts2str(char *b, int n, char *s)
2719
.fi
2820
.SH DESCRIPTION
@@ -58,22 +50,6 @@ is turned into the string consisting of the following characters
5850
.RE
5951
The latter string could be represented in C as "\e\e000\e\en".
6052
.PP
61-
.I str2bts
62-
turns string
63-
.I s
64-
into a sequence of bytes pointed by
65-
.IR b .
66-
It has the inverse effect to
67-
.IR bts2str .
68-
The length of the resulting byte sequence is returned in
69-
.RI *n .
70-
.br
71-
Both the functions
72-
.I bts2str
73-
and
74-
.I str2bts
75-
return a pointer to the result.
76-
.PP
7753
.I long2str
7854
converts a long value
7955
.I l
@@ -99,42 +75,6 @@ to
9975
.I b1
10076
and returns
10177
.IR b1 .
102-
.PP
103-
.I btscat
104-
appends a copy of
105-
.I n2
106-
bytes from
107-
.I b2
108-
to the end of
109-
.IR b1 ,
110-
consisting of
111-
.I n1
112-
bytes.
113-
.I b1
114-
is returned.
115-
.PP
116-
.I btscmp
117-
compares row of bytes
118-
.I b1
119-
with length
120-
.I n1
121-
and
122-
.I b2
123-
with length
124-
.I n2
125-
and returns an integer greater than, equal to, or less than 0, if
126-
.I b1
127-
is lexicographically greater then, equal to, or less than
128-
.IR b2 ,
129-
respectively.
130-
.PP
131-
.I btszero
132-
places
133-
.I n
134-
null bytes in the string
135-
.IR b .
136-
.I b
137-
is returned.
13878
.SH FILES
13979
~em/modules/lib/libstring.a
14080
.SH "SEE ALSO"

0 commit comments

Comments
 (0)