New upstream version 1.1.0+dfsg
Bas Couwenberg
6 years ago
3 | 3 | |
4 | 4 | EXTRA_DIST = makefile.vc nmake.opt mainpage.doxy |
5 | 5 | |
6 | AUTOMAKE_OPTIONS = dist-zip | |
6 | AUTOMAKE_OPTIONS = dist-zip foreign | |
7 | 7 | |
8 | 8 | pkgconfigdir = $(libdir)/pkgconfig |
9 | 9 | pkgconfig_DATA = readosm.pc |
359 | 359 | ACLOCAL_AMFLAGS = -I m4 |
360 | 360 | SUBDIRS = headers src tests examples |
361 | 361 | EXTRA_DIST = makefile.vc nmake.opt mainpage.doxy |
362 | AUTOMAKE_OPTIONS = dist-zip | |
362 | AUTOMAKE_OPTIONS = dist-zip foreign | |
363 | 363 | pkgconfigdir = $(libdir)/pkgconfig |
364 | 364 | pkgconfig_DATA = readosm.pc |
365 | 365 | MOSTLYCLEANFILES = readosm_cov.info |
373 | 373 | @for dep in $?; do \ |
374 | 374 | case '$(am__configure_deps)' in \ |
375 | 375 | *$$dep*) \ |
376 | echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ | |
377 | $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ | |
376 | echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ | |
377 | $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ | |
378 | 378 | && exit 0; \ |
379 | 379 | exit 1;; \ |
380 | 380 | esac; \ |
381 | 381 | done; \ |
382 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ | |
382 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ | |
383 | 383 | $(am__cd) $(top_srcdir) && \ |
384 | $(AUTOMAKE) --gnu Makefile | |
384 | $(AUTOMAKE) --foreign Makefile | |
385 | 385 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
386 | 386 | @case '$?' in \ |
387 | 387 | *config.status*) \ |
621 | 621 | ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ |
622 | 622 | || chmod -R a+r "$(distdir)" |
623 | 623 | dist-gzip: distdir |
624 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
624 | tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz | |
625 | 625 | $(am__post_remove_distdir) |
626 | 626 | |
627 | 627 | dist-bzip2: distdir |
647 | 647 | @echo WARNING: "Support for shar distribution archives is" \ |
648 | 648 | "deprecated." >&2 |
649 | 649 | @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 |
650 | shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz | |
650 | shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz | |
651 | 651 | $(am__post_remove_distdir) |
652 | 652 | dist-zip: distdir |
653 | 653 | -rm -f $(distdir).zip |
664 | 664 | distcheck: dist |
665 | 665 | case '$(DIST_ARCHIVES)' in \ |
666 | 666 | *.tar.gz*) \ |
667 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ | |
667 | eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ | |
668 | 668 | *.tar.bz2*) \ |
669 | 669 | bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ |
670 | 670 | *.tar.lz*) \ |
674 | 674 | *.tar.Z*) \ |
675 | 675 | uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ |
676 | 676 | *.shar.gz*) \ |
677 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ | |
677 | eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ | |
678 | 678 | *.zip*) \ |
679 | 679 | unzip $(distdir).zip ;;\ |
680 | 680 | esac |
0 | 0 | #! /bin/sh |
1 | 1 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Generated by GNU Autoconf 2.69 for readosm 1.0.0e. | |
2 | # Generated by GNU Autoconf 2.69 for readosm 1.1.0. | |
3 | 3 | # |
4 | 4 | # Report bugs to <a.furieri@lqt.it>. |
5 | 5 | # |
589 | 589 | # Identity of this package. |
590 | 590 | PACKAGE_NAME='readosm' |
591 | 591 | PACKAGE_TARNAME='readosm' |
592 | PACKAGE_VERSION='1.0.0e' | |
593 | PACKAGE_STRING='readosm 1.0.0e' | |
592 | PACKAGE_VERSION='1.1.0' | |
593 | PACKAGE_STRING='readosm 1.1.0' | |
594 | 594 | PACKAGE_BUGREPORT='a.furieri@lqt.it' |
595 | 595 | PACKAGE_URL='' |
596 | 596 | |
1325 | 1325 | # Omit some internal or obsolete options to make the list less imposing. |
1326 | 1326 | # This message is too long to be a string in the A/UX 3.1 sh. |
1327 | 1327 | cat <<_ACEOF |
1328 | \`configure' configures readosm 1.0.0e to adapt to many kinds of systems. | |
1328 | \`configure' configures readosm 1.1.0 to adapt to many kinds of systems. | |
1329 | 1329 | |
1330 | 1330 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1331 | 1331 | |
1395 | 1395 | |
1396 | 1396 | if test -n "$ac_init_help"; then |
1397 | 1397 | case $ac_init_help in |
1398 | short | recursive ) echo "Configuration of readosm 1.0.0e:";; | |
1398 | short | recursive ) echo "Configuration of readosm 1.1.0:";; | |
1399 | 1399 | esac |
1400 | 1400 | cat <<\_ACEOF |
1401 | 1401 | |
1507 | 1507 | test -n "$ac_init_help" && exit $ac_status |
1508 | 1508 | if $ac_init_version; then |
1509 | 1509 | cat <<\_ACEOF |
1510 | readosm configure 1.0.0e | |
1510 | readosm configure 1.1.0 | |
1511 | 1511 | generated by GNU Autoconf 2.69 |
1512 | 1512 | |
1513 | 1513 | Copyright (C) 2012 Free Software Foundation, Inc. |
2051 | 2051 | This file contains any messages produced by compilers while |
2052 | 2052 | running configure, to aid debugging if configure makes a mistake. |
2053 | 2053 | |
2054 | It was created by readosm $as_me 1.0.0e, which was | |
2054 | It was created by readosm $as_me 1.1.0, which was | |
2055 | 2055 | generated by GNU Autoconf 2.69. Invocation command line was |
2056 | 2056 | |
2057 | 2057 | $ $0 $@ |
2922 | 2922 | |
2923 | 2923 | # Define the identity of the package. |
2924 | 2924 | PACKAGE='readosm' |
2925 | VERSION='1.0.0e' | |
2925 | VERSION='1.1.0' | |
2926 | 2926 | |
2927 | 2927 | |
2928 | 2928 | cat >>confdefs.h <<_ACEOF |
17675 | 17675 | # report actual input values of CONFIG_FILES etc. instead of their |
17676 | 17676 | # values after options handling. |
17677 | 17677 | ac_log=" |
17678 | This file was extended by readosm $as_me 1.0.0e, which was | |
17678 | This file was extended by readosm $as_me 1.1.0, which was | |
17679 | 17679 | generated by GNU Autoconf 2.69. Invocation command line was |
17680 | 17680 | |
17681 | 17681 | CONFIG_FILES = $CONFIG_FILES |
17741 | 17741 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17742 | 17742 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
17743 | 17743 | ac_cs_version="\\ |
17744 | readosm config.status 1.0.0e | |
17744 | readosm config.status 1.1.0 | |
17745 | 17745 | configured by $0, generated by GNU Autoconf 2.69, |
17746 | 17746 | with options \\"\$ac_cs_config\\" |
17747 | 17747 |
1 | 1 | # Process this file with autoconf to produce a configure script. |
2 | 2 | |
3 | 3 | AC_PREREQ(2.61) |
4 | AC_INIT(readosm, 1.0.0e, a.furieri@lqt.it) | |
4 | AC_INIT(readosm, 1.1.0, a.furieri@lqt.it) | |
5 | 5 | AC_LANG(C) |
6 | 6 | AC_CONFIG_AUX_DIR([.]) |
7 | 7 | AC_CONFIG_MACRO_DIR([m4]) |
22 | 22 | / |
23 | 23 | / The Initial Developer of the Original Code is Alessandro Furieri |
24 | 24 | / |
25 | / Portions created by the Initial Developer are Copyright (C) 2012 | |
25 | / Portions created by the Initial Developer are Copyright (C) 2012-2017 | |
26 | 26 | / the Initial Developer. All Rights Reserved. |
27 | 27 | / |
28 | 28 | / Contributor(s): |
68 | 68 | int i; |
69 | 69 | const readosm_tag *tag; |
70 | 70 | |
71 | if (user_data != NULL) | |
72 | user_data = NULL; /* silencing stupid compiler warnings */ | |
73 | ||
71 | 74 | #if defined(_WIN32) || defined(__MINGW32__) |
72 | 75 | /* CAVEAT - M$ runtime doesn't supports %lld for 64 bits */ |
73 | 76 | sprintf (buf, "%I64d", node->id); |
154 | 157 | char buf[128]; |
155 | 158 | int i; |
156 | 159 | const readosm_tag *tag; |
160 | ||
161 | if (user_data != NULL) | |
162 | user_data = NULL; /* silencing stupid compiler warnings */ | |
157 | 163 | |
158 | 164 | #if defined(_WIN32) || defined(__MINGW32__) |
159 | 165 | /* CAVEAT - M$ runtime doesn't supports %lld for 64 bits */ |
249 | 255 | int i; |
250 | 256 | const readosm_member *member; |
251 | 257 | const readosm_tag *tag; |
258 | ||
259 | if (user_data != NULL) | |
260 | user_data = NULL; /* silencing stupid compiler warnings */ | |
252 | 261 | |
253 | 262 | #if defined(_WIN32) || defined(__MINGW32__) |
254 | 263 | /* CAVEAT - M$ runtime doesn't supports %lld for 64 bits */ |
22 | 22 | / |
23 | 23 | / The Initial Developer of the Original Code is Alessandro Furieri |
24 | 24 | / |
25 | / Portions created by the Initial Developer are Copyright (C) 2012 | |
25 | / Portions created by the Initial Developer are Copyright (C) 2012-2017 | |
26 | 26 | / the Initial Developer. All Rights Reserved. |
27 | 27 | / |
28 | 28 | / Contributor(s): |
22 | 22 | / |
23 | 23 | / The Initial Developer of the Original Code is Alessandro Furieri |
24 | 24 | / |
25 | / Portions created by the Initial Developer are Copyright (C) 2012 | |
25 | / Portions created by the Initial Developer are Copyright (C) 2012-2017 | |
26 | 26 | / the Initial Developer. All Rights Reserved. |
27 | 27 | / |
28 | 28 | / Contributor(s): |
70 | 70 | /* casting the USER_DATA pointer to osm_helper */ |
71 | 71 | struct osm_helper *helper = (struct osm_helper *) user_data; |
72 | 72 | |
73 | if (node != NULL) | |
74 | node = NULL; /* silencing stupid compiler warnings */ | |
75 | ||
73 | 76 | helper->read_count++; |
74 | 77 | if (eval_abort (helper)) |
75 | 78 | return READOSM_ABORT; |
85 | 88 | /* casting the USER_DATA pointer to osm_helper */ |
86 | 89 | struct osm_helper *helper = (struct osm_helper *) user_data; |
87 | 90 | |
91 | if (way != NULL) | |
92 | way = NULL; /* silencing stupid compiler warnings */ | |
93 | ||
88 | 94 | helper->read_count++; |
89 | 95 | if (eval_abort (helper)) |
90 | 96 | return READOSM_ABORT; |
99 | 105 | |
100 | 106 | /* casting the USER_DATA pointer to osm_helper */ |
101 | 107 | struct osm_helper *helper = (struct osm_helper *) user_data; |
108 | ||
109 | if (relation != NULL) | |
110 | relation = NULL; /* silencing stupid compiler warnings */ | |
102 | 111 | |
103 | 112 | helper->read_count++; |
104 | 113 | if (eval_abort (helper)) |
2 | 2 | / |
3 | 3 | / public declarations |
4 | 4 | / |
5 | / version 1.0, 2012 April 10 | |
5 | / version 1.1.0, 2017 September 25 | |
6 | 6 | / |
7 | 7 | / Author: Sandro Furieri a.furieri@lqt.it |
8 | 8 | / |
24 | 24 | / |
25 | 25 | / The Initial Developer of the Original Code is Alessandro Furieri |
26 | 26 | / |
27 | / Portions created by the Initial Developer are Copyright (C) 2012 | |
27 | / Portions created by the Initial Developer are Copyright (C) 2012-2017 | |
28 | 28 | / the Initial Developer. All Rights Reserved. |
29 | 29 | / |
30 | 30 | / Contributor(s): |
282 | 282 | Close the .osm or .pbf file and release any allocated resource |
283 | 283 | |
284 | 284 | \param osm_handle the handle previously returned by readosm_open() |
285 | \param user_data pointer to some user-supplied data struct | |
285 | \param user_data pointer to some user-supplied data struct | |
286 | 286 | \param node_fnct pointer to callback function intended to consume NODE objects |
287 | 287 | (may be NULL if processing NODEs is not an interesting option) |
288 | 288 | \param way_fnct pointer to callback function intended to consume WAY objects |
302 | 302 | readosm_way_callback way_fnct, |
303 | 303 | readosm_relation_callback relation_fnct); |
304 | 304 | |
305 | /** | |
306 | Return the current ReadOSM version | |
307 | ||
308 | \return a text string corresponding the current ReadOSM version | |
309 | */ | |
310 | READOSM_DECLARE const char * readosm_version (void); | |
311 | ||
312 | /** | |
313 | Return the current libexpat version used by ReadOSM | |
314 | ||
315 | \return a text string corresponding the current Expat version | |
316 | */ | |
317 | READOSM_DECLARE const char * readosm_expat_version (void); | |
318 | ||
319 | /** | |
320 | Return the current zlib version used by ReadOSM | |
321 | ||
322 | \return a text string corresponding the current zlib version | |
323 | */ | |
324 | READOSM_DECLARE const char * readosm_zlib_version (void); | |
325 | ||
305 | 326 | #ifdef __cplusplus |
306 | 327 | } |
307 | 328 | #endif |
23 | 23 | link /debug /dll /out:$(READOSM_DLL) \ |
24 | 24 | /implib:readosm_i.lib $(LIBOBJ) \ |
25 | 25 | C:\OSGeo4w\lib\libexpat.lib C:\OSGeo4w\lib\zlib.lib |
26 | if exist $(FREEXL_DLL).manifest mt -manifest \ | |
27 | $(FREEXL_DLL).manifest -outputresource:$(FREEXL_DLL);2 | |
26 | if exist $(READOSM_DLL).manifest mt -manifest \ | |
27 | $(READOSM_DLL).manifest -outputresource:$(READOSM_DLL);2 | |
28 | 28 | |
29 | 29 | .c.obj: |
30 | 30 | $(CC) $(CFLAGS) /c $*.c /Fo$@ |
6 | 6 | libreadosm_la_SOURCES = readosm.c osm_objects.c osmxml.c protobuf.c |
7 | 7 | |
8 | 8 | libreadosm_la_CFLAGS = -fvisibility=hidden |
9 | libreadosm_la_LDFLAGS = -version-info 1:0:0 -no-undefined | |
9 | libreadosm_la_LDFLAGS = -version-info 1:1:0 -no-undefined | |
10 | 10 | |
11 | 11 | MOSTLYCLEANFILES = *.gcna *.gcno *.gcda |
328 | 328 | lib_LTLIBRARIES = libreadosm.la |
329 | 329 | libreadosm_la_SOURCES = readosm.c osm_objects.c osmxml.c protobuf.c |
330 | 330 | libreadosm_la_CFLAGS = -fvisibility=hidden |
331 | libreadosm_la_LDFLAGS = -version-info 1:0:0 -no-undefined | |
331 | libreadosm_la_LDFLAGS = -version-info 1:1:0 -no-undefined | |
332 | 332 | MOSTLYCLEANFILES = *.gcna *.gcno *.gcda |
333 | 333 | all: all-am |
334 | 334 |
2 | 2 | / |
3 | 3 | / OSM-XML (.osm) implementation |
4 | 4 | / |
5 | / version 1.0, 2012 April 21 | |
5 | / version 1.1.0, 2017 September 25 | |
6 | 6 | / |
7 | 7 | / Author: Sandro Furieri a.furieri@lqt.it |
8 | 8 | / |
24 | 24 | / |
25 | 25 | / The Initial Developer of the Original Code is Alessandro Furieri |
26 | 26 | / |
27 | / Portions created by the Initial Developer are Copyright (C) 2012 | |
27 | / Portions created by the Initial Developer are Copyright (C) 2012-2017 | |
28 | 28 | / the Initial Developer. All Rights Reserved. |
29 | 29 | / |
30 | 30 | / Contributor(s): |
522 | 522 | |
523 | 523 | return READOSM_OK; |
524 | 524 | } |
525 | ||
526 | READOSM_DECLARE const char * | |
527 | readosm_expat_version (void) | |
528 | { | |
529 | /* returning the current Expat version string */ | |
530 | XML_Expat_Version expat; | |
531 | static char version[64]; | |
532 | expat = XML_ExpatVersionInfo (); | |
533 | sprintf (version, "%d.%d.%d", expat.major, expat.minor, expat.micro); | |
534 | return version; | |
535 | } |
2 | 2 | / |
3 | 3 | / Protocol Buffer (.pbf) implementation |
4 | 4 | / |
5 | / version 1.0, 2012 April 21 | |
5 | / version 1.1.0, 2017 September 25 | |
6 | 6 | / |
7 | 7 | / Author: Sandro Furieri a.furieri@lqt.it |
8 | 8 | / |
24 | 24 | / |
25 | 25 | / The Initial Developer of the Original Code is Alessandro Furieri |
26 | 26 | / |
27 | / Portions created by the Initial Developer are Copyright (C) 2012 | |
27 | / Portions created by the Initial Developer are Copyright (C) 2012-2017 | |
28 | 28 | / the Initial Developer. All Rights Reserved. |
29 | 29 | / |
30 | 30 | / Contributor(s): |
2458 | 2458 | } |
2459 | 2459 | return READOSM_OK; |
2460 | 2460 | } |
2461 | ||
2462 | READOSM_DECLARE const char * | |
2463 | readosm_zlib_version (void) | |
2464 | { | |
2465 | /* returning the current zlib version string */ | |
2466 | return zlibVersion (); | |
2467 | } |
2 | 2 | / |
3 | 3 | / ReadOSM main implementation (externally visible API) |
4 | 4 | / |
5 | / version 1.0, 2012 April 10 | |
5 | / version 1.1.0, 2017 September 25 | |
6 | 6 | / |
7 | 7 | / Author: Sandro Furieri a.furieri@lqt.it |
8 | 8 | / |
24 | 24 | / |
25 | 25 | / The Initial Developer of the Original Code is Alessandro Furieri |
26 | 26 | / |
27 | / Portions created by the Initial Developer are Copyright (C) 2012 | |
27 | / Portions created by the Initial Developer are Copyright (C) 2012-2017 | |
28 | 28 | / the Initial Developer. All Rights Reserved. |
29 | 29 | / |
30 | 30 | / Contributor(s): |
49 | 49 | |
50 | 50 | #if defined(_WIN32) && !defined(__MINGW32__) |
51 | 51 | /* MSVC: avoiding to include at all config.h */ |
52 | #define VERSION 1.1.0 | |
52 | 53 | #else |
53 | 54 | #include "config.h" |
54 | 55 | #endif |
183 | 184 | |
184 | 185 | return ret; |
185 | 186 | } |
187 | ||
188 | READOSM_DECLARE const char * | |
189 | readosm_version (void) | |
190 | { | |
191 | /* returning the current ReadOSM version string */ | |
192 | return VERSION; | |
193 | } |