Sat, 01 Nov 2025 19:31:48 +0100
add cxCollectionCompareFunc() macro
| 
753
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
1 | # Copyright 2023 Mike Becker. All rights reserved. | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
2 | # | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
3 | # Redistribution and use in source and binary forms, with or without | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
4 | # modification, are permitted provided that the following conditions are met: | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
5 | # | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
6 | # 1. Redistributions of source code must retain the above copyright | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
7 | # notice, this list of conditions and the following disclaimer. | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
8 | # | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
9 | # 2. Redistributions in binary form must reproduce the above copyright | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
10 | # notice, this list of conditions and the following disclaimer in the | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
11 | # documentation and/or other materials provided with the distribution. | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
12 | # | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
13 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
14 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
15 | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
16 | # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
17 | # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
18 | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
19 | # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
20 | # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
21 | # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
22 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
23 | |
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
24 | include ../config.mk | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
25 | |
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
26 | SRC = allocator.c array_list.c buffer.c compare.c hash_key.c hash_map.c \ | 
| 
1348
 
a1da355ed3b8
roll out the function stubs for the kv-list
 
Mike Becker <universe@uap-core.de> 
parents: 
1319 
diff
changeset
 | 
27 | iterator.c linked_list.c list.c map.c kv_list.c tree.c \ | 
| 
 
a1da355ed3b8
roll out the function stubs for the kv-list
 
Mike Becker <universe@uap-core.de> 
parents: 
1319 
diff
changeset
 | 
28 | mempool.c printf.c string.c streams.c szmul.c properties.c json.c | 
| 
753
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
29 | |
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
30 | OBJ_EXT=.o | 
| 
754
 
4bc7d966c9db
add an uwproj based install target
 
Mike Becker <universe@uap-core.de> 
parents: 
753 
diff
changeset
 | 
31 | OBJ=$(SRC:%.c=$(build_dir)/%$(OBJ_EXT)) | 
| 
753
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
32 | |
| 
754
 
4bc7d966c9db
add an uwproj based install target
 
Mike Becker <universe@uap-core.de> 
parents: 
753 
diff
changeset
 | 
33 | static: $(build_dir)/libucx_static$(STLIB_EXT) | 
| 
753
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
34 | |
| 
754
 
4bc7d966c9db
add an uwproj based install target
 
Mike Becker <universe@uap-core.de> 
parents: 
753 
diff
changeset
 | 
35 | shared: $(build_dir)/libucx$(SHLIB_EXT) | 
| 
753
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
36 | |
| 
1153
 
8e4f46349e23
put coverage report into a subdir
 
Mike Becker <universe@uap-core.de> 
parents: 
1133 
diff
changeset
 | 
37 | check-coverage: $(SRC:%.c=$(build_dir)/%.gcda) $(build_dir)/coverage | 
| 
 
8e4f46349e23
put coverage report into a subdir
 
Mike Becker <universe@uap-core.de> 
parents: 
1133 
diff
changeset
 | 
38 | gcovr --html-details $(build_dir)/coverage/ucx.html \ | 
| 
1064
 
f3b04cd60776
change coverage tool from gcov to gcovr
 
Mike Becker <universe@uap-core.de> 
parents: 
1050 
diff
changeset
 | 
39 | --object-directory $(build_dir) \ | 
| 
 
f3b04cd60776
change coverage tool from gcov to gcovr
 
Mike Becker <universe@uap-core.de> 
parents: 
1050 
diff
changeset
 | 
40 | --root $(root_dir)/src \ | 
| 
 
f3b04cd60776
change coverage tool from gcov to gcovr
 
Mike Becker <universe@uap-core.de> 
parents: 
1050 
diff
changeset
 | 
41 | --exclude-directories $(build_dir)/tests \ | 
| 
 
f3b04cd60776
change coverage tool from gcov to gcovr
 
Mike Becker <universe@uap-core.de> 
parents: 
1050 
diff
changeset
 | 
42 | $(build_dir) | 
| 
774
 
4fd4e0c6107a
add make target to automatically gather coverage info
 
Mike Becker <universe@uap-core.de> 
parents: 
766 
diff
changeset
 | 
43 | |
| 
1153
 
8e4f46349e23
put coverage report into a subdir
 
Mike Becker <universe@uap-core.de> 
parents: 
1133 
diff
changeset
 | 
44 | $(build_dir)/coverage: | 
| 
 
8e4f46349e23
put coverage report into a subdir
 
Mike Becker <universe@uap-core.de> 
parents: 
1133 
diff
changeset
 | 
45 | $(MKDIR) $@ | 
| 
 
8e4f46349e23
put coverage report into a subdir
 
Mike Becker <universe@uap-core.de> 
parents: 
1133 
diff
changeset
 | 
46 | |
| 
1064
 
f3b04cd60776
change coverage tool from gcov to gcovr
 
Mike Becker <universe@uap-core.de> 
parents: 
1050 
diff
changeset
 | 
47 | $(build_dir)/%.gcda: | 
| 
774
 
4fd4e0c6107a
add make target to automatically gather coverage info
 
Mike Becker <universe@uap-core.de> 
parents: 
766 
diff
changeset
 | 
48 | test -f "$@" | 
| 
 
4fd4e0c6107a
add make target to automatically gather coverage info
 
Mike Becker <universe@uap-core.de> 
parents: 
766 
diff
changeset
 | 
49 | |
| 
754
 
4bc7d966c9db
add an uwproj based install target
 
Mike Becker <universe@uap-core.de> 
parents: 
753 
diff
changeset
 | 
50 | $(build_dir)/libucx_static$(STLIB_EXT): $(OBJ) | 
| 
753
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
51 | $(AR) $(ARFLAGS) $@ $^ | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
52 | |
| 
754
 
4bc7d966c9db
add an uwproj based install target
 
Mike Becker <universe@uap-core.de> 
parents: 
753 
diff
changeset
 | 
53 | $(build_dir)/libucx$(SHLIB_EXT): $(OBJ) | 
| 
753
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
54 | $(CC) $(LDFLAGS) -o $@ $^ | 
| 
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
55 | |
| 
1234
 
6cdf81367b93
improve Makefile for users who want to build and install in one step
 
Mike Becker <universe@uap-core.de> 
parents: 
1153 
diff
changeset
 | 
56 | rebuild_if_missing: | 
| 
 
6cdf81367b93
improve Makefile for users who want to build and install in one step
 
Mike Becker <universe@uap-core.de> 
parents: 
1153 
diff
changeset
 | 
57 | if test -f $(build_dir)/libucx_static$(STLIB_EXT) && test -f $(build_dir)/libucx$(SHLIB_EXT); \ | 
| 
 
6cdf81367b93
improve Makefile for users who want to build and install in one step
 
Mike Becker <universe@uap-core.de> 
parents: 
1153 
diff
changeset
 | 
58 | then : ; else cd $(root_dir); $(MAKE) compile; fi | 
| 
 
6cdf81367b93
improve Makefile for users who want to build and install in one step
 
Mike Becker <universe@uap-core.de> 
parents: 
1153 
diff
changeset
 | 
59 | |
| 
 
6cdf81367b93
improve Makefile for users who want to build and install in one step
 
Mike Becker <universe@uap-core.de> 
parents: 
1153 
diff
changeset
 | 
60 | install: rebuild_if_missing | 
| 1457 | 61 | $(MKDIR) $(libdir) $(includedir)/cx $(libdir)/pkgconfig | 
| 
754
 
4bc7d966c9db
add an uwproj based install target
 
Mike Becker <universe@uap-core.de> 
parents: 
753 
diff
changeset
 | 
62 | $(RMFILE) $(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION_MAJOR) | 
| 
 
4bc7d966c9db
add an uwproj based install target
 
Mike Becker <universe@uap-core.de> 
parents: 
753 
diff
changeset
 | 
63 | $(RMFILE) $(libdir)/libucx$(SHLIB_EXT) | 
| 
 
4bc7d966c9db
add an uwproj based install target
 
Mike Becker <universe@uap-core.de> 
parents: 
753 
diff
changeset
 | 
64 | $(COPYFILE) $(build_dir)/libucx_static$(STLIB_EXT) $(libdir)/libucx_static$(STLIB_EXT) | 
| 
 
4bc7d966c9db
add an uwproj based install target
 
Mike Becker <universe@uap-core.de> 
parents: 
753 
diff
changeset
 | 
65 | $(COPYFILE) $(build_dir)/libucx$(SHLIB_EXT) $(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION) | 
| 
1064
 
f3b04cd60776
change coverage tool from gcov to gcovr
 
Mike Becker <universe@uap-core.de> 
parents: 
1050 
diff
changeset
 | 
66 | $(COPYALL) $(root_dir)/src/cx $(includedir) | 
| 
1455
 
1686f692178b
fix that the symlinks for the libraries are not relative
 
Mike Becker <universe@uap-core.de> 
parents: 
1448 
diff
changeset
 | 
67 | $(SYMLINK) libucx$(SHLIB_EXT).$(LIBVERSION) $(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION_MAJOR) | 
| 
 
1686f692178b
fix that the symlinks for the libraries are not relative
 
Mike Becker <universe@uap-core.de> 
parents: 
1448 
diff
changeset
 | 
68 | $(SYMLINK) libucx$(SHLIB_EXT).$(LIBVERSION_MAJOR) $(libdir)/libucx$(SHLIB_EXT) | 
| 1457 | 69 | $(SHELL) $(root_dir)/make/install-pc-file.sh "$(VERSION)" "$(libdir)" "$(includedir)" | 
| 
753
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
70 | |
| 755 | 71 | FORCE: | 
| 72 | ||
| 970 | 73 | $(build_dir)/allocator$(OBJ_EXT): allocator.c cx/allocator.h cx/common.h | 
| 755 | 74 | @echo "Compiling $<" | 
| 
988
 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 
Mike Becker <universe@uap-core.de> 
parents: 
971 
diff
changeset
 | 
75 | $(CC) -o $@ $(CFLAGS) -c $< | 
| 
753
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
76 | |
| 
754
 
4bc7d966c9db
add an uwproj based install target
 
Mike Becker <universe@uap-core.de> 
parents: 
753 
diff
changeset
 | 
77 | $(build_dir)/array_list$(OBJ_EXT): array_list.c cx/array_list.h cx/list.h \ | 
| 
854
 
fe0d69d72bcd
fix members inherited by macro or include are not documented
 
Mike Becker <universe@uap-core.de> 
parents: 
850 
diff
changeset
 | 
78 | cx/common.h cx/collection.h cx/allocator.h cx/iterator.h cx/compare.h \ | 
| 
 
fe0d69d72bcd
fix members inherited by macro or include are not documented
 
Mike Becker <universe@uap-core.de> 
parents: 
850 
diff
changeset
 | 
79 | cx/compare.h | 
| 755 | 80 | @echo "Compiling $<" | 
| 
988
 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 
Mike Becker <universe@uap-core.de> 
parents: 
971 
diff
changeset
 | 
81 | $(CC) -o $@ $(CFLAGS) -c $< | 
| 
753
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
82 | |
| 755 | 83 | $(build_dir)/buffer$(OBJ_EXT): buffer.c cx/buffer.h cx/common.h \ | 
| 970 | 84 | cx/allocator.h | 
| 755 | 85 | @echo "Compiling $<" | 
| 
988
 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 
Mike Becker <universe@uap-core.de> 
parents: 
971 
diff
changeset
 | 
86 | $(CC) -o $@ $(CFLAGS) -c $< | 
| 
753
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
87 | |
| 
754
 
4bc7d966c9db
add an uwproj based install target
 
Mike Becker <universe@uap-core.de> 
parents: 
753 
diff
changeset
 | 
88 | $(build_dir)/compare$(OBJ_EXT): compare.c cx/compare.h cx/common.h | 
| 755 | 89 | @echo "Compiling $<" | 
| 
988
 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 
Mike Becker <universe@uap-core.de> 
parents: 
971 
diff
changeset
 | 
90 | $(CC) -o $@ $(CFLAGS) -c $< | 
| 
753
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
91 | |
| 
1050
 
3df63e95921a
make cx_strcast() also support cxstring
 
Mike Becker <universe@uap-core.de> 
parents: 
1031 
diff
changeset
 | 
92 | $(build_dir)/hash_key$(OBJ_EXT): hash_key.c cx/hash_key.h cx/common.h \ | 
| 
1448
 
0f0fe7311b76
add tests for cxMapDifference() and cxMapListDifference()
 
Mike Becker <universe@uap-core.de> 
parents: 
1350 
diff
changeset
 | 
93 | cx/string.h cx/allocator.h cx/compare.h | 
| 755 | 94 | @echo "Compiling $<" | 
| 
988
 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 
Mike Becker <universe@uap-core.de> 
parents: 
971 
diff
changeset
 | 
95 | $(CC) -o $@ $(CFLAGS) -c $< | 
| 
753
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
96 | |
| 755 | 97 | $(build_dir)/hash_map$(OBJ_EXT): hash_map.c cx/hash_map.h cx/map.h \ | 
| 
854
 
fe0d69d72bcd
fix members inherited by macro or include are not documented
 
Mike Becker <universe@uap-core.de> 
parents: 
850 
diff
changeset
 | 
98 | cx/common.h cx/collection.h cx/allocator.h cx/iterator.h cx/compare.h \ | 
| 
962
 
cd418898af5c
remove cx_for_n() macro - fixes #467
 
Mike Becker <universe@uap-core.de> 
parents: 
958 
diff
changeset
 | 
99 | cx/string.h cx/hash_key.h | 
| 755 | 100 | @echo "Compiling $<" | 
| 
988
 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 
Mike Becker <universe@uap-core.de> 
parents: 
971 
diff
changeset
 | 
101 | $(CC) -o $@ $(CFLAGS) -c $< | 
| 
753
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
102 | |
| 
850
 
b2bc48c2b251
add iterator over raw C arrays - closes #389
 
Mike Becker <universe@uap-core.de> 
parents: 
833 
diff
changeset
 | 
103 | $(build_dir)/iterator$(OBJ_EXT): iterator.c cx/iterator.h cx/common.h | 
| 
 
b2bc48c2b251
add iterator over raw C arrays - closes #389
 
Mike Becker <universe@uap-core.de> 
parents: 
833 
diff
changeset
 | 
104 | @echo "Compiling $<" | 
| 
988
 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 
Mike Becker <universe@uap-core.de> 
parents: 
971 
diff
changeset
 | 
105 | $(CC) -o $@ $(CFLAGS) -c $< | 
| 
850
 
b2bc48c2b251
add iterator over raw C arrays - closes #389
 
Mike Becker <universe@uap-core.de> 
parents: 
833 
diff
changeset
 | 
106 | |
| 
1000
 
1aecddf7e209
simplify how the json parser works
 
Mike Becker <universe@uap-core.de> 
parents: 
988 
diff
changeset
 | 
107 | $(build_dir)/json$(OBJ_EXT): json.c cx/json.h cx/common.h cx/allocator.h \ | 
| 
1007
 
81b2986d2b04
fix that cxBufferSeek() cannot move pos past the end - fixes #523
 
Mike Becker <universe@uap-core.de> 
parents: 
1000 
diff
changeset
 | 
108 | cx/string.h cx/buffer.h cx/array_list.h cx/list.h cx/collection.h \ | 
| 
1133
 
0aecb9fda851
fix duplicate dependency
 
Mike Becker <universe@uap-core.de> 
parents: 
1067 
diff
changeset
 | 
109 | cx/iterator.h cx/compare.h | 
| 
937
 
10123f4d5618
add first draft of json implementation - relates to #431
 
Mike Becker <universe@uap-core.de> 
parents: 
924 
diff
changeset
 | 
110 | @echo "Compiling $<" | 
| 
988
 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 
Mike Becker <universe@uap-core.de> 
parents: 
971 
diff
changeset
 | 
111 | $(CC) -o $@ $(CFLAGS) -c $< | 
| 
937
 
10123f4d5618
add first draft of json implementation - relates to #431
 
Mike Becker <universe@uap-core.de> 
parents: 
924 
diff
changeset
 | 
112 | |
| 
1348
 
a1da355ed3b8
roll out the function stubs for the kv-list
 
Mike Becker <universe@uap-core.de> 
parents: 
1319 
diff
changeset
 | 
113 | $(build_dir)/kv_list$(OBJ_EXT): kv_list.c cx/kv_list.h cx/common.h \ | 
| 
 
a1da355ed3b8
roll out the function stubs for the kv-list
 
Mike Becker <universe@uap-core.de> 
parents: 
1319 
diff
changeset
 | 
114 | cx/list.h cx/collection.h cx/allocator.h cx/iterator.h cx/compare.h \ | 
| 
1350
 
189756516eaa
implement kv-list to a point where it correctly behaves like a list
 
Mike Becker <universe@uap-core.de> 
parents: 
1348 
diff
changeset
 | 
115 | cx/map.h cx/string.h cx/hash_key.h cx/hash_map.h cx/linked_list.h | 
| 
1348
 
a1da355ed3b8
roll out the function stubs for the kv-list
 
Mike Becker <universe@uap-core.de> 
parents: 
1319 
diff
changeset
 | 
116 | @echo "Compiling $<" | 
| 
 
a1da355ed3b8
roll out the function stubs for the kv-list
 
Mike Becker <universe@uap-core.de> 
parents: 
1319 
diff
changeset
 | 
117 | $(CC) -o $@ $(CFLAGS) -c $< | 
| 
 
a1da355ed3b8
roll out the function stubs for the kv-list
 
Mike Becker <universe@uap-core.de> 
parents: 
1319 
diff
changeset
 | 
118 | |
| 755 | 119 | $(build_dir)/linked_list$(OBJ_EXT): linked_list.c cx/linked_list.h \ | 
| 120 | cx/common.h cx/list.h cx/collection.h cx/allocator.h cx/iterator.h \ | |
| 
962
 
cd418898af5c
remove cx_for_n() macro - fixes #467
 
Mike Becker <universe@uap-core.de> 
parents: 
958 
diff
changeset
 | 
121 | cx/compare.h cx/compare.h | 
| 755 | 122 | @echo "Compiling $<" | 
| 
988
 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 
Mike Becker <universe@uap-core.de> 
parents: 
971 
diff
changeset
 | 
123 | $(CC) -o $@ $(CFLAGS) -c $< | 
| 
753
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
124 | |
| 
754
 
4bc7d966c9db
add an uwproj based install target
 
Mike Becker <universe@uap-core.de> 
parents: 
753 
diff
changeset
 | 
125 | $(build_dir)/list$(OBJ_EXT): list.c cx/list.h cx/common.h cx/collection.h \ | 
| 
854
 
fe0d69d72bcd
fix members inherited by macro or include are not documented
 
Mike Becker <universe@uap-core.de> 
parents: 
850 
diff
changeset
 | 
126 | cx/allocator.h cx/iterator.h cx/compare.h | 
| 755 | 127 | @echo "Compiling $<" | 
| 
988
 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 
Mike Becker <universe@uap-core.de> 
parents: 
971 
diff
changeset
 | 
128 | $(CC) -o $@ $(CFLAGS) -c $< | 
| 
753
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
129 | |
| 
754
 
4bc7d966c9db
add an uwproj based install target
 
Mike Becker <universe@uap-core.de> 
parents: 
753 
diff
changeset
 | 
130 | $(build_dir)/map$(OBJ_EXT): map.c cx/map.h cx/common.h cx/collection.h \ | 
| 
1448
 
0f0fe7311b76
add tests for cxMapDifference() and cxMapListDifference()
 
Mike Becker <universe@uap-core.de> 
parents: 
1350 
diff
changeset
 | 
131 | cx/allocator.h cx/iterator.h cx/compare.h cx/string.h cx/hash_key.h \ | 
| 
 
0f0fe7311b76
add tests for cxMapDifference() and cxMapListDifference()
 
Mike Becker <universe@uap-core.de> 
parents: 
1350 
diff
changeset
 | 
132 | cx/list.h | 
| 755 | 133 | @echo "Compiling $<" | 
| 
988
 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 
Mike Becker <universe@uap-core.de> 
parents: 
971 
diff
changeset
 | 
134 | $(CC) -o $@ $(CFLAGS) -c $< | 
| 
753
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
135 | |
| 755 | 136 | $(build_dir)/mempool$(OBJ_EXT): mempool.c cx/mempool.h cx/common.h \ | 
| 970 | 137 | cx/allocator.h | 
| 755 | 138 | @echo "Compiling $<" | 
| 
988
 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 
Mike Becker <universe@uap-core.de> 
parents: 
971 
diff
changeset
 | 
139 | $(CC) -o $@ $(CFLAGS) -c $< | 
| 
753
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
140 | |
| 755 | 141 | $(build_dir)/printf$(OBJ_EXT): printf.c cx/printf.h cx/common.h \ | 
| 142 | cx/string.h cx/allocator.h | |
| 143 | @echo "Compiling $<" | |
| 
988
 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 
Mike Becker <universe@uap-core.de> 
parents: 
971 
diff
changeset
 | 
144 | $(CC) -o $@ $(CFLAGS) -c $< | 
| 
753
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
145 | |
| 
924
 
3c90dfc35f06
add implementation for the properties parser
 
Mike Becker <universe@uap-core.de> 
parents: 
923 
diff
changeset
 | 
146 | $(build_dir)/properties$(OBJ_EXT): properties.c cx/properties.h \ | 
| 
937
 
10123f4d5618
add first draft of json implementation - relates to #431
 
Mike Becker <universe@uap-core.de> 
parents: 
924 
diff
changeset
 | 
147 | cx/common.h cx/string.h cx/allocator.h cx/map.h cx/collection.h \ | 
| 
1031
 
8a90552bba29
rework of properties parser - fixes #529 and resolves #458
 
Mike Becker <universe@uap-core.de> 
parents: 
1007 
diff
changeset
 | 
148 | cx/iterator.h cx/compare.h cx/hash_key.h cx/buffer.h | 
| 
923
 
45da884269c8
add ucx2.1 style interface for a properties parser
 
Mike Becker <universe@uap-core.de> 
parents: 
922 
diff
changeset
 | 
149 | @echo "Compiling $<" | 
| 
988
 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 
Mike Becker <universe@uap-core.de> 
parents: 
971 
diff
changeset
 | 
150 | $(CC) -o $@ $(CFLAGS) -c $< | 
| 
923
 
45da884269c8
add ucx2.1 style interface for a properties parser
 
Mike Becker <universe@uap-core.de> 
parents: 
922 
diff
changeset
 | 
151 | |
| 
1319
 
aa1f580f8f59
add convenience macros for using the default allocator - relates to #669
 
Mike Becker <universe@uap-core.de> 
parents: 
1234 
diff
changeset
 | 
152 | $(build_dir)/streams$(OBJ_EXT): streams.c cx/streams.h cx/common.h \ | 
| 
 
aa1f580f8f59
add convenience macros for using the default allocator - relates to #669
 
Mike Becker <universe@uap-core.de> 
parents: 
1234 
diff
changeset
 | 
153 | cx/allocator.h | 
| 
971
 
cc204fc56c9c
rename utils.h to streams.h
 
Mike Becker <universe@uap-core.de> 
parents: 
970 
diff
changeset
 | 
154 | @echo "Compiling $<" | 
| 
988
 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 
Mike Becker <universe@uap-core.de> 
parents: 
971 
diff
changeset
 | 
155 | $(CC) -o $@ $(CFLAGS) -c $< | 
| 
971
 
cc204fc56c9c
rename utils.h to streams.h
 
Mike Becker <universe@uap-core.de> 
parents: 
970 
diff
changeset
 | 
156 | |
| 755 | 157 | $(build_dir)/string$(OBJ_EXT): string.c cx/string.h cx/common.h \ | 
| 
962
 
cd418898af5c
remove cx_for_n() macro - fixes #467
 
Mike Becker <universe@uap-core.de> 
parents: 
958 
diff
changeset
 | 
158 | cx/allocator.h | 
| 755 | 159 | @echo "Compiling $<" | 
| 
988
 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 
Mike Becker <universe@uap-core.de> 
parents: 
971 
diff
changeset
 | 
160 | $(CC) -o $@ $(CFLAGS) -c $< | 
| 755 | 161 | |
| 
971
 
cc204fc56c9c
rename utils.h to streams.h
 
Mike Becker <universe@uap-core.de> 
parents: 
970 
diff
changeset
 | 
162 | $(build_dir)/szmul$(OBJ_EXT): szmul.c cx/common.h | 
| 755 | 163 | @echo "Compiling $<" | 
| 
988
 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 
Mike Becker <universe@uap-core.de> 
parents: 
971 
diff
changeset
 | 
164 | $(CC) -o $@ $(CFLAGS) -c $< | 
| 
753
 
24dc84788dee
replace most of the build system with uwproj
 
Mike Becker <universe@uap-core.de> 
parents:  
diff
changeset
 | 
165 | |
| 
899
 
303a981e6834
more prototypes for tree functions
 
Mike Becker <universe@uap-core.de> 
parents: 
854 
diff
changeset
 | 
166 | $(build_dir)/tree$(OBJ_EXT): tree.c cx/tree.h cx/common.h cx/collection.h \ | 
| 
 
303a981e6834
more prototypes for tree functions
 
Mike Becker <universe@uap-core.de> 
parents: 
854 
diff
changeset
 | 
167 | cx/allocator.h cx/iterator.h cx/compare.h cx/array_list.h cx/list.h | 
| 
816
 
425234b05dff
add first basic low level tree functions
 
Mike Becker <universe@uap-core.de> 
parents: 
794 
diff
changeset
 | 
168 | @echo "Compiling $<" | 
| 
988
 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 
Mike Becker <universe@uap-core.de> 
parents: 
971 
diff
changeset
 | 
169 | $(CC) -o $@ $(CFLAGS) -c $< | 
| 
816
 
425234b05dff
add first basic low level tree functions
 
Mike Becker <universe@uap-core.de> 
parents: 
794 
diff
changeset
 | 
170 |