Skip to content

Commit 4592a85

Browse files
committed
Fixed on the fly change log path and improved file naming
1 parent 25c1291 commit 4592a85

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+419
-340
lines changed

CMakeLists.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ add_library(xutils STATIC
5757
./src/data/jwt.c
5858
./src/data/list.c
5959
./src/data/map.c
60-
./src/data/xbuf.c
61-
./src/data/xjson.c
62-
./src/data/xstr.c
60+
./src/data/buf.c
61+
./src/data/json.c
62+
./src/data/str.c
6363
./src/net/addr.c
6464
./src/net/event.c
6565
./src/net/http.c
@@ -72,14 +72,14 @@ add_library(xutils STATIC
7272
./src/sys/sync.c
7373
./src/sys/pool.c
7474
./src/sys/thread.c
75-
./src/sys/xcli.c
76-
./src/sys/xcpu.c
75+
./src/sys/cli.c
76+
./src/sys/cpu.c
7777
./src/sys/xfs.c
78-
./src/sys/xlog.c
79-
./src/sys/xsig.c
78+
./src/sys/log.c
79+
./src/sys/sig.c
8080
./src/sys/xtime.c
81-
./src/sys/xtop.c
82-
./src/sys/xtype.c
81+
./src/sys/mon.c
82+
./src/sys/type.c
8383
)
8484

8585
install(TARGETS xutils DESTINATION lib)

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ OBJS = xver.$(OBJ) \
2222
sha1.$(OBJ) \
2323
array.$(OBJ) \
2424
hash.$(OBJ) \
25+
json.$(OBJ) \
2526
jwt.$(OBJ) \
2627
list.$(OBJ) \
2728
map.$(OBJ) \
28-
xbuf.$(OBJ) \
29-
xjson.$(OBJ) \
30-
xstr.$(OBJ) \
29+
buf.$(OBJ) \
30+
str.$(OBJ) \
3131
addr.$(OBJ) \
3232
event.$(OBJ) \
3333
http.$(OBJ) \
@@ -40,14 +40,14 @@ OBJS = xver.$(OBJ) \
4040
sync.$(OBJ) \
4141
pool.$(OBJ) \
4242
thread.$(OBJ) \
43-
xcli.$(OBJ) \
44-
xcpu.$(OBJ) \
43+
type.$(OBJ) \
44+
cli.$(OBJ) \
45+
cpu.$(OBJ) \
46+
mon.$(OBJ) \
47+
log.$(OBJ) \
48+
sig.$(OBJ) \
4549
xfs.$(OBJ) \
46-
xlog.$(OBJ) \
47-
xsig.$(OBJ) \
4850
xtime.$(OBJ) \
49-
xtop.$(OBJ) \
50-
xtype.$(OBJ) \
5151

5252
OBJECTS = $(patsubst %,$(ODIR)/%,$(OBJS))
5353
INSTALL_INC = /usr/local/include/xutils

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
#### Containrers:
1515
- [Dynamically allocated array with sort and search features](https://github.com/kala13x/libxutils/blob/main/src/data/array.h)
16-
- [Dynamically allocated byte and data buffers](https://github.com/kala13x/libxutils/blob/main/src/data/xbuf.h)
16+
- [Dynamically allocated byte and data buffers](https://github.com/kala13x/libxutils/blob/main/src/data/buf.h)
1717
- [Dynamically allocated key-value pair map](https://github.com/kala13x/libxutils/blob/main/src/data/map.h)
1818
- [Dynamically allocated hash map](https://github.com/kala13x/libxutils/blob/main/src/data/hash.h)
19-
- [Dynamically allocated C string](https://github.com/kala13x/libxutils/blob/main/src/data/xstr.h)
19+
- [Dynamically allocated C string](https://github.com/kala13x/libxutils/blob/main/src/data/str.h)
2020
- [Implementation of linked list](https://github.com/kala13x/libxutils/blob/main/src/data/list.h)
2121

2222
#### Network:
@@ -41,20 +41,20 @@
4141

4242
#### System:
4343
- [Cross-platform file and directory operations](https://github.com/kala13x/libxutils/blob/main/src/sys/xfs.h)
44-
- [Cross-platform CPU affinity manipulation](https://github.com/kala13x/libxutils/blob/main/src/sys/xcpu.h)
44+
- [Cross-platform CPU affinity manipulation](https://github.com/kala13x/libxutils/blob/main/src/sys/cpu.h)
4545
- [Implementation of advanced file search](https://github.com/kala13x/libxutils/blob/main/src/sys/xfs.h)
4646
- [System time manipulation library](https://github.com/kala13x/libxutils/blob/main/src/sys/xtime.h)
47-
- [Performance monitoring library](https://github.com/kala13x/libxutils/blob/main/src/sys/xtop.h)
47+
- [Performance monitoring library](https://github.com/kala13x/libxutils/blob/main/src/sys/mon.h)
4848
- [Simple and fast memory pool](https://github.com/kala13x/libxutils/blob/main/src/sys/pool.h)
49-
- [Advanced logging library](https://github.com/kala13x/libxutils/blob/main/src/sys/xlog.h)
49+
- [Advanced logging library](https://github.com/kala13x/libxutils/blob/main/src/sys/log.h)
5050

5151
#### Miscellaneous:
52-
- [JSON parser and writer library with lint and minify support](https://github.com/kala13x/libxutils/blob/main/src/data/xjson.h)
52+
- [JSON parser and writer library with lint and minify support](https://github.com/kala13x/libxutils/blob/main/src/data/json.h)
5353
- [Implementation of JSON Web Tokens with HS256 and RS256](https://github.com/kala13x/libxutils/blob/main/src/data/jwt.h)
5454
- [Cross-platform synchronization library](https://github.com/kala13x/libxutils/blob/main/src/sys/sync.h)
5555
- [Cross-platform multithreading library](https://github.com/kala13x/libxutils/blob/main/src/sys/thread.h)
56-
- [Command-Line interface operations](https://github.com/kala13x/libxutils/blob/main/src/sys/xcli.h)
57-
- [C String manipulation library](https://github.com/kala13x/libxutils/blob/main/src/data/xstr.h)
56+
- [Command-Line interface operations](https://github.com/kala13x/libxutils/blob/main/src/sys/cli.h)
57+
- [C String manipulation library](https://github.com/kala13x/libxutils/blob/main/src/data/str.h)
5858

5959
### Installation
6060
There are several ways to build and install the project.
@@ -186,7 +186,7 @@ cmake . && make
186186
#### XTOP and more
187187

188188
<p align="center">
189-
<img src="https://raw.githubusercontent.com/kala13x/libxutils/main/misc/xtop.png" alt="alternate text">
189+
<img src="https://raw.githubusercontent.com/kala13x/libxutils/main/misc/mon.png" alt="alternate text">
190190
</p>
191191

192192
`XTOP` is `HTOP` like performance monitor that supports to monitor CPU, memory, and network traffic into a single window. In addition, it has powerful `REST API` client/server mode and much more.

examples/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ set(SOURCE_FILES
5555
events.c
5656
files.c
5757
json.c
58-
xlog.c
58+
log.c
5959
list.c
6060
ntp.c
6161
jwt.c

examples/async-client.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
#include "xstd.h"
1212
#include "xver.h"
13-
#include "xlog.h"
14-
#include "xsig.h"
13+
#include "log.h"
14+
#include "sig.h"
1515
#include "xfs.h"
1616
#include "api.h"
1717

examples/async-server.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
#include "xstd.h"
1212
#include "xver.h"
13-
#include "xlog.h"
14-
#include "xsig.h"
13+
#include "log.h"
14+
#include "sig.h"
1515
#include "xfs.h"
1616
#include "api.h"
1717

examples/basic-server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include "xstd.h"
1010
#include "sock.h"
11-
#include "xlog.h"
11+
#include "log.h"
1212
#include "xtime.h"
1313

1414
int main(int argc, char *argv[])

examples/events.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
#include "xstd.h"
1212
#include "event.h"
13-
#include "xsig.h"
13+
#include "sig.h"
1414
#include "http.h"
1515
#include "sock.h"
16-
#include "xbuf.h"
17-
#include "xlog.h"
16+
#include "buf.h"
17+
#include "log.h"
1818
#include "xver.h"
1919

2020
static int g_nInterrupted = 0;

examples/files.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
#include "xstd.h"
10-
#include "xlog.h"
10+
#include "log.h"
1111
#include "xfs.h"
1212

1313
int main(int argc, char *argv[])

examples/http-server.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
#include "xstd.h"
1212
#include "xver.h"
13-
#include "xlog.h"
14-
#include "xsig.h"
13+
#include "log.h"
14+
#include "sig.h"
1515
#include "xfs.h"
1616
#include "api.h"
1717

0 commit comments

Comments
 (0)