Commit graph

53 commits

Author SHA1 Message Date
Alexander Cederblad
7c057a7159 Add stddef.h for size_t in header file
Got an error that size_t was not defined. I am no expert, but I suppose
this is the way to fix it.

Probably not an issue in most cases, but I ran into this, so someone
else might and then they will not have to think about it. I assume folks
usually will have this defined as a happy coincidence before including
the header.
2023-01-18 22:54:50 +01:00
Bertold Van den Bergh
0e7c2729c1
Merge pull request #37 from Edouard59/fix_strcat
replaces strcat by strcat_s to remove compiler error when using ms compiler
2022-04-11 09:42:55 +02:00
Bertold Van den Bergh
b98c5106d9
Fix whitespace 2022-04-11 09:42:31 +02:00
Edouard Charvet
75620a594d replaces strcat by strcat_s to remove compiler error when using ms compiler on windows 2022-04-11 09:02:59 +02:00
Edouard Charvet
8541dace7d add API function to free memory dynamically allocated by function ZDHelperSimpleLookupString 2022-04-11 08:53:26 +02:00
Will Barnard
0fed129ada Handle memory allocation errors 2021-02-24 15:10:26 +08:00
will
c60ac66207 Explicitly define long long integer literal types 2021-02-18 15:18:36 +08:00
will
c4b608dcac Ensure C90 compliance 2021-02-18 15:18:36 +08:00
will
880f563d17 Support non-Posix toolchain 2021-02-18 15:18:30 +08:00
Hanno Böck
d583247235
properly check error for mmap 2020-05-20 14:55:17 +02:00
Nicholas Bishop
b8400b71b9 Include stddef.h for size_t 2020-01-24 17:00:10 -05:00
Bertold Van den Bergh
44fc1ab2ee Fix edge case for points on border 2019-12-13 17:50:39 +01:00
Bertold Van den Bergh
2f1bfdebe2 Update makefile and add margin to border detection to cover rounding 2019-12-13 16:15:25 +00:00
flederwiesel
95cfc5e39b Add version suffix to library for non-Windows build. 2019-11-19 12:19:56 +01:00
flederwiesel
8a2852bb86 Fix error: "-fPIC ignored for target (all code is position independent)" for Windows build. 2019-11-19 12:19:49 +01:00
flederwiesel
2ee7048144 Add GNU hash to library for non-Windows build. 2019-11-19 12:18:18 +01:00
flederwiesel
f936f63aa0 Use install's --strip option. 2019-11-19 10:53:25 +01:00
Bertold Van den Bergh
cff7b191f7 Initialize point to zero 2019-11-11 11:53:49 +01:00
flederwiesel
dc2311d87d Compile with debug info and do not strip if DEBUG is set (not evaluating its value...). 2019-11-11 10:10:51 +01:00
flederwiesel
1c16caf956 Add DESTDIR as well as target directory specifiers as is common with autotools. Use install program instead of cp. Execute ldconfig only if DESTDIR is not set -- assuming DESTDIR is set for cross compile only. 2019-11-11 10:05:55 +01:00
flederwiesel
dafa4c6358 Add libzoneinfo.{dll,so} and zonedetect.o to '.gitignore'. 2019-11-11 10:04:36 +01:00
flederwiesel
5bd300c407 Make phony targets .PHONY 2019-11-11 09:59:47 +01:00
Bertold Van den Bergh
be3fb27712 Add simple string lookup function 2019-09-27 18:32:28 +02:00
Bertold Van den Bergh
1eb2a136e9 Add functions for opening a database from memory and a helper function that just returns the most important string from each database. 2019-09-27 18:11:38 +02:00
Bertold Van den Bergh
1c9f9917af Do not call CloseHandle and UnmapViewOfFile with invalid parameters if opening the db failed. 2019-09-25 20:59:06 +02:00
Bertold Van den Bergh
41e3c595ac Performance improvement 2019-08-26 15:37:08 +02:00
Bertold Van den Bergh
80ff6a8af0 Merge branch 'master' of http://github.com/BertoldVdb/ZoneDetect 2019-08-25 15:56:11 +02:00
Bertold Van den Bergh
62365d381f Correctly cast malloc parameter 2019-08-25 15:55:38 +02:00
Bertold Van den Bergh
bcdcfacb75 Add install target to makefile, edit demo to not print coordinate list by default 2019-08-18 16:27:26 +02:00
Bertold Van den Bergh
29d52cebe2 Merge branch 'master' of http://github.com/BertoldVdb/ZoneDetect 2019-08-14 21:56:41 +02:00
Bertold Van den Bergh
25b4da4f97 Avoid reading too large filex 2019-08-14 21:56:22 +02:00
Bertold Van den Bergh
79da7aae0a Format library 2019-08-14 18:52:24 +02:00
Bertold Van den Bergh
b0c3fd928f Update builder to support generating v1 and v0 database 2019-08-14 18:02:36 +02:00
Bertold Van den Bergh
a6188bb59f Remove unneeded check 2019-08-14 14:54:07 +02:00
Bertold Van den Bergh
1cc05dbac3 Split up point reading and polygon checking. Add function to get list of points 2019-08-14 14:51:57 +02:00
Bertold Van den Bergh
061055d229 Allow specifying external CC 2019-08-14 11:06:13 +02:00
Bertold Van den Bergh
a1460b4578 Do not read past the end of the buffer 2019-08-14 10:51:46 +02:00
Bertold Van den Bergh
541d59b445 Fix small bug, readd support for reading version 0 db 2019-08-14 01:46:49 +02:00
Bertold Van den Bergh
71a5187802 Reduce filesize further by not encoding points multiple times (not well tested, do not use) 2019-08-14 00:54:40 +02:00
Bertold Van den Bergh
4269644520 Avoid encoding useless tuples, change format for more efficient diff encoding. 2019-08-13 16:40:31 +02:00
zed
46c7fa777d Fixes to build with MinGW-w64 2019-04-19 09:38:19 +03:00
poum
78406e2e45 added support for MSVC toolchain (VS 15.x) 2019-04-04 11:40:36 +02:00
poum
9711716922 added opt-in refined error handling (not thread-safe!) 2019-04-04 11:40:12 +02:00
poum
9ed4e8f4da replaced potentially reserved name used as include guard 2019-04-04 11:39:36 +02:00
poum
265df8599d removed cast of malloc result 2019-04-04 11:39:15 +02:00
poum
bdda8a5c85 enforced const-correctness 2019-04-04 11:38:54 +02:00
poum
7d0b7e8832 added cc flags and enforced stricter compliance to C99 2019-04-04 11:38:12 +02:00
poum
36126a8b96 updated 'clean' makefile rule to ignore errors 2019-04-04 11:37:48 +02:00
Bertold Van den Bergh
3fabc6398b Coding style update 2018-07-21 23:25:14 +02:00
Wolfram Manthey
341d31b883 Fixed macOS build issue and integer precision warning 2018-07-03 00:20:50 +08:00