Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Fixed an underflow in Conn_rtrim. Oops! | dd361465e5f31adcc337b4eca9ebeec6c1713c42 | Catalin(ux) M. BOIE | 2009-05-20 14:10:28 |
Missed a '('. Oops! | 920f9fda5fecd14e1cfcdb8bd66164f3bd215b93 | Catalin(ux) M. BOIE | 2009-05-20 14:05:59 |
Try harder to respect the trigger interval; in the start fire after interval. | e7e5a52e7a6b7ad59da38bf660269e025f10ade4 | Catalin(ux) M. BOIE | 2009-05-06 11:19:09 |
Bump up the version. | e3723ad356330457959f6d9100be81d7eaacc57d | Catalin(ux) M. BOIE | 2009-04-17 14:33:30 |
Added reconnect executable to .gitignore. | 585adaa455a4ab751733bd872faf10c97a880d17 | Catalin(ux) M. BOIE | 2009-04-17 14:33:06 |
Made the server example (s.c) nicer and did more error checking. | 519cf83b2d28bee0d3bb25bbc962b3ef5677ee92 | Catalin(ux) M. BOIE | 2009-04-17 14:32:07 |
Added a reconnect example. | 59b8156a8c5d17c90b5b064b1e1043b365ddac0a | Catalin(ux) M. BOIE | 2009-04-17 14:31:47 |
Show a nicer value if the reconnect feat was never used. | f51cf254286f76721e517eb69aa00695bdb3b2f5 | Catalin(ux) M. BOIE | 2009-04-17 14:30:59 |
Reget the time, even if no events. Else, the expiration will not work. | a1167cc19d739d62d6a21fd238c701c60a64cf6d | Catalin(ux) M. BOIE | 2009-04-17 14:12:57 |
Be more verbose and show also the flags. | 377f288df5d1fbde5c14276e8256fb88216d8761 | Catalin(ux) M. BOIE | 2009-04-17 13:01:59 |
Changed split test to show that we can get past 4096 limit. | 8ae8fefc1f2d19dbc893a95818ecadcc5c3014e0 | Catalin(ux) M. BOIE | 2009-04-17 12:46:03 |
Improved Conn_split (and remove the limitation to 4096 'right' value. | ec46e3c94da65fe94ed109727fd3dcb50384a44e | Catalin(ux) M. BOIE | 2009-04-17 12:31:53 |
Removed an unsused variable. | 1fa664bac9482c6e053bb3ea1d06280b66dadfed | Catalin(ux) M. BOIE | 2009-04-17 12:04:46 |
Simplified expand_buf and also fixed an out-of-bounds wrinting. | a2a507f235f7847277c2a485af8efb8efaa1ffa7 | Catalin(ux) M. BOIE | 2009-04-17 12:03:34 |
Bump up the version. | b720ca953940baf51a3e8263e6ec5d397a1c1ff2 | Catalin(ux) M. BOIE | 2009-04-14 12:39:01 |
Fixed Conn_rtrim. | 5f12cd953b0b998db8530eaed30b91bb181b7b26 | Catalin(ux) M. BOIE | 2009-04-14 12:38:39 |
Really fixed Conn_split_get. | 5ab1e0a47574fc6776e014be3d8150a048866607 | Catalin(ux) M. BOIE | 2009-04-14 08:34:38 |
Added Conn_alphanum (test if a string is alpha numeric or not). | 0bb8d19eed947aa82640610a0d894141e466105a | Catalin(ux) M. BOIE | 2009-04-14 08:22:02 |
Reverse the meaning of Conn_split_get_e and Conn_split_get. | 836229353a26ecc1bac762ece6cf42319113f5b1 | Catalin(ux) M. BOIE | 2009-04-14 08:21:35 |
Before calling callback in Conn_for_every_line, just trim '\r'. | 51e532893e74c4bee9b6847732442536e79eb2a0 | Catalin(ux) M. BOIE | 2009-04-14 06:39:29 |
File | Lines added | Lines deleted |
---|---|---|
Conn_engine_core.c | 1 | 1 |
tests/Makefile | 4 | 1 |
tests/t3.c | 19 | 0 |
File Conn_engine_core.c changed (mode: 100644) (index d08ce8b..a160694) | |||
... | ... | void Conn_rtrim(char *s, const char *chars) | |
1001 | 1001 | return; | return; |
1002 | 1002 | ||
1003 | 1003 | e = s + strlen(s) - 1; | e = s + strlen(s) - 1; |
1004 | while (strchr(chars, *e)) { | ||
1004 | while ((e >= s) && (strchr(chars, *e))) { | ||
1005 | 1005 | *e = '\0'; | *e = '\0'; |
1006 | 1006 | e--; | e--; |
1007 | 1007 | } | } |
File tests/Makefile changed (mode: 100644) (index ee63f6a..0e29409) | |||
1 | TARGETS := t1.run t2.run | ||
1 | TARGETS := t1.run t2.run t3.run | ||
2 | 2 | ||
3 | 3 | all: $(TARGETS) | all: $(TARGETS) |
4 | 4 | ||
... | ... | t1.run: t1.c $(DEPS) | |
13 | 13 | t2.run: t2.c $(DEPS) | t2.run: t2.c $(DEPS) |
14 | 14 | gcc $(CFLAGS) $(INCS) t2.c -o $@ $(LIBS) | gcc $(CFLAGS) $(INCS) t2.c -o $@ $(LIBS) |
15 | 15 | ||
16 | t3.run: t3.c $(DEPS) | ||
17 | gcc $(CFLAGS) $(INCS) t3.c -o $@ $(LIBS) | ||
18 | |||
16 | 19 | .PHONY: clean | .PHONY: clean |
17 | 20 | clean: | clean: |
18 | 21 | @-rm -f $(TARGETS) *.log core | @-rm -f $(TARGETS) *.log core |
File tests/t3.c added (mode: 100644) (index 0000000..c6a7117) | |||
1 | /* | ||
2 | * Testing splitting functions | ||
3 | */ | ||
4 | |||
5 | #include <Conn.h> | ||
6 | |||
7 | int main(void) | ||
8 | { | ||
9 | char x[128]; | ||
10 | |||
11 | strcpy(x, "\n"); | ||
12 | |||
13 | Conn_rtrim(x, "\n\t \r"); | ||
14 | |||
15 | if (strcmp(x, "LOAD") != 0) | ||
16 | return 1; | ||
17 | |||
18 | return 0; | ||
19 | } |