Skip to content

Commit b5996d2

Browse files
committed
update
1 parent 7d747d2 commit b5996d2

File tree

4 files changed

+0
-62
lines changed

4 files changed

+0
-62
lines changed

source/chtbl.c

-25
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414

1515
#pragma mark - Public
1616

17-
/*****************************************************************************
18-
* *
19-
* ------------------------------ chtbl_init ------------------------------ *
20-
* *
21-
*****************************************************************************/
2217

2318
int chtbl_init(CHTbl *htbl, int buckets,
2419
int (*h)(const void *key),
@@ -49,11 +44,6 @@ int chtbl_init(CHTbl *htbl, int buckets,
4944
return 0;
5045
}
5146

52-
/*****************************************************************************
53-
* *
54-
* ---------------------------- chtbl_destroy ----------------------------- *
55-
* *
56-
*****************************************************************************/
5747

5848
void chtbl_destroy(CHTbl *htbl)
5949
{
@@ -73,11 +63,6 @@ void chtbl_destroy(CHTbl *htbl)
7363
return;
7464
}
7565

76-
/*****************************************************************************
77-
* *
78-
* ----------------------------- chtbl_insert ----------------------------- *
79-
* *
80-
*****************************************************************************/
8166

8267
int chtbl_insert(CHTbl *htbl, const void *data)
8368
{
@@ -101,11 +86,6 @@ int chtbl_insert(CHTbl *htbl, const void *data)
10186
return retval;
10287
}
10388

104-
/*****************************************************************************
105-
* *
106-
* ----------------------------- chtbl_remove ----------------------------- *
107-
* *
108-
*****************************************************************************/
10989

11090
int chtbl_remove(CHTbl *htbl, void **data)
11191
{
@@ -138,11 +118,6 @@ int chtbl_remove(CHTbl *htbl, void **data)
138118
return -1;
139119
}
140120

141-
/*****************************************************************************
142-
* *
143-
* ----------------------------- chtbl_lookup ----------------------------- *
144-
* *
145-
*****************************************************************************/
146121

147122
int chtbl_lookup(const CHTbl *htbl, void **data) {
148123

source/hashpjw.c

-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010

1111
#pragma mark - Public
1212

13-
/*****************************************************************************
14-
* *
15-
* -------------------------------- hashpjw ------------------------------- *
16-
* *
17-
*****************************************************************************/
1813

1914
int hashpjw(const void *key)
2015
{

source/lex.c

-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616

1717
#pragma mark - Public
1818

19-
/*****************************************************************************
20-
* *
21-
* ---------------------------------- lex --------------------------------- *
22-
* *
23-
*****************************************************************************/
2419

2520
Token lex(const char *istream, CHTbl *symtbl)
2621
{

source/ohtbl.c

-27
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,9 @@
1515
/// 哨兵元素,用于指明新元素将要插入的槽位。
1616
static char vacated;
1717

18-
1918
#pragma mark - Public
2019

2120

22-
/*****************************************************************************
23-
* *
24-
* ------------------------------ ohtbl_init ------------------------------ *
25-
* *
26-
*****************************************************************************/
27-
2821
int ohtbl_init(OHTbl *htbl, int positions,
2922
int (*h1)(const void *key),
3023
int (*h2)(const void *key),
@@ -57,11 +50,6 @@ int ohtbl_init(OHTbl *htbl, int positions,
5750
return 0;
5851
}
5952

60-
/*****************************************************************************
61-
* *
62-
* ---------------------------- ohtbl_destroy ----------------------------- *
63-
* *
64-
*****************************************************************************/
6553

6654
void ohtbl_destroy(OHTbl *htbl)
6755
{
@@ -88,11 +76,6 @@ void ohtbl_destroy(OHTbl *htbl)
8876
return;
8977
}
9078

91-
/*****************************************************************************
92-
* *
93-
* ----------------------------- ohtbl_insert ----------------------------- *
94-
* *
95-
*****************************************************************************/
9679

9780
int ohtbl_insert(OHTbl *htbl, const void *data)
9881
{
@@ -125,11 +108,6 @@ int ohtbl_insert(OHTbl *htbl, const void *data)
125108

126109
}
127110

128-
/*****************************************************************************
129-
* *
130-
* ----------------------------- ohtbl_remove ----------------------------- *
131-
* *
132-
*****************************************************************************/
133111

134112
int ohtbl_remove(OHTbl *htbl, void **data)
135113
{
@@ -163,11 +141,6 @@ int ohtbl_remove(OHTbl *htbl, void **data)
163141
return -1;
164142
}
165143

166-
/*****************************************************************************
167-
* *
168-
* ----------------------------- ohtbl_lookup ----------------------------- *
169-
* *
170-
*****************************************************************************/
171144

172145
int ohtbl_lookup(const OHTbl *htbl, void **data)
173146
{

0 commit comments

Comments
 (0)