Commit Graph

444 Commits

Author SHA1 Message Date
Hugues Delorme
9091d714b2 gmio_stl: fix doc about filepath argument in stl_io.h 2015-06-10 15:05:49 +02:00
Hugues Delorme
02f083e02e gmio_core: simplify implementation of toupper() and tolower() in string_utils.h
Also activate GMIO_STRINGUTILS_DIRECT_TESTS
2015-06-09 16:55:06 +02:00
Hugues Delorme
602b4c74d0 gmio_core: fix minor indentation issue 2015-06-09 16:53:42 +02:00
Hugues Delorme
3508eaa236 gmio_stl: fix regression in gmio_stlb_read() 2015-05-28 17:32:05 +02:00
Hugues Delorme
304e1c39bb gmio_core,stl: add new error code GMIO_ERROR_STDIO 2015-05-28 17:31:36 +02:00
Hugues Delorme
62401d5655 gmio_core: fix bug in gmio_eat_word() 2015-05-28 16:20:27 +02:00
Hugues Delorme
3511859908 Hexadecimal error codes 2015-05-28 16:19:31 +02:00
Hugues Delorme
742de300fe gmio_stl: for passing STL binary header data, replace uint8_t* with new gmio_stlb_header 2015-05-28 16:19:07 +02:00
Hugues Delorme
3bd7ec8782 gmio_core: introduce ctype.h code alternative in string_utils.h 2015-05-28 13:57:18 +02:00
Hugues Delorme
37dcad8e5e gmio_core: fix bug in gmio_clocale_char_iequals() 2015-05-28 11:04:41 +02:00
Hugues Delorme
28d133dfa0 gmio_stl: fix doc 2015-05-28 09:52:56 +02:00
Hugues Delorme
fec6742698 GeomIO -> gmio 2015-05-28 09:40:24 +02:00
Hugues Delorme
fcf5e1b5bd cmake: add doc target 2015-05-28 09:36:24 +02:00
Hugues Delorme
ac0c7e2215 cmake: add generation of version.h and gmio.rc (DLL information) 2015-05-27 18:57:00 +02:00
Hugues Delorme
6eb38fcd8b gmio_stl: add option "stl_write_triangles_only" and function gmio_stlb_write_header() 2015-05-27 17:29:48 +02:00
Hugues Delorme
cad2a28f65 gmio_core: more doc in string_parse.h 2015-05-26 18:25:14 +02:00
Hugues Delorme
e79341ec26 gmio_core: more inlining in string_parse.h 2015-05-26 18:20:07 +02:00
Hugues Delorme
f677dc8f4f gmio_core: micro-optimization in gmio_next_char() 2015-05-26 17:59:03 +02:00
Hugues Delorme
4d1dd420fc gmio_core: remove NULL tests on input string in fast_atof.h 2015-05-26 17:57:53 +02:00
Hugues Delorme
3452545b76 gmio_core: micro-optimizations in implementation of string_parse.h 2015-05-07 15:56:44 +02:00
Hugues Delorme
0702632c95 gmio_core: optimize gmio_clocale_isspace() with table of chars 2015-05-07 15:55:54 +02:00
Hugues Delorme
4ee7981615 Fix FougSys -> Fougue 2015-05-06 09:39:37 +02:00
Hugues Delorme
5be4715046 gmio_core: fix copyright 2015-05-06 09:02:12 +02:00
Hugues Delorme
47f3724b3c gmio_stl: fix minor code style issue 2015-05-06 09:01:56 +02:00
Hugues Delorme
19316bc3ee gmio_stl: remove GMIO_LIBSTL_EXPORT from internal function decl 2015-05-06 09:01:38 +02:00
Hugues Delorme
25df817b82 Update copyright 2015-04-30 18:19:45 +02:00
Hugues Delorme
b0fdde43da gmio_stl: rename error GMIO_STL_ERROR_INVALID_REAL32_PREC to GMIO_STL_ERROR_INVALID_FLOAT32_PREC 2015-04-15 17:14:34 +02:00
Hugues Delorme
d3fb4132fb gmio_stl: add option stla_float32_format 2015-04-15 17:11:15 +02:00
Hugues Delorme
cf4961e359 gmio_core: add GMIO_RESTRICT macro wrapper around C99 restrict keyword 2015-04-10 15:07:22 +02:00
Hugues Delorme
e6aa381bad gmio_core: fix possible crashes in fast_atof.h 2015-04-10 14:26:32 +02:00
Hugues Delorme
b7aa93bcfa gmio_core: add conversion routines for float32/int32 2015-04-10 14:25:57 +02:00
Hugues Delorme
d2026aacb4 gmio_core: fix linking error when fast_atof.h get included more than once 2015-04-10 10:11:21 +02:00
Hugues Delorme
cc28eb9d54 gmio_core: inline functions in convert.h 2015-04-10 10:10:25 +02:00
Hugues Delorme
b92c0502e9 Merge branch 'master' of https://github.com/fougsys/gmio 2015-04-03 15:16:18 +02:00
Hugues Delorme
85839abf00 gmio_core: get rid of alloca() support 2015-04-03 15:15:01 +02:00
Hugues Delorme
0f5141979a cmake: on UNIX systems force 64b overrides of stat(), fstat(), ... 2015-04-03 15:12:58 +02:00
Hugues Delorme
32ef47c0d3 gmio_stl: remove needless #include 2015-04-03 11:16:25 +02:00
Hugues Delorme
4fe921c11a gmio_stl: simplify API for write operation 2015-04-02 18:05:01 +02:00
Hugues Delorme
8d8cff6f0e gmio_stl: fix constness of the mesh param in stl_io.h 2015-04-02 17:09:02 +02:00
Hugues Delorme
f0e4c41ed3 gmio_stl: move stl_io options into stl_io_options.h 2015-04-02 17:00:49 +02:00
Hugues Delorme
38c444e7b0 gmio_stl: add gmio_stl_write() and gmio_stl_write_file() 2015-04-02 16:38:14 +02:00
Hugues Delorme
9ee0abfdc6 gmio_core: add doc for task_iface 2015-04-02 16:14:46 +02:00
Hugues Delorme
560ca7c28b gmio_core: in string_parse.c, enable GMIO_USE_FAST_ATOF by default 2015-04-02 16:09:49 +02:00
Hugues Delorme
5302ff1ac6 gmio_stl: let gmio_stl_read_file() accept a gmio_task_iface object 2015-04-02 16:09:08 +02:00
Hugues Delorme
ef3beb2b50 gmio_core: add gmio_task_iface structure 2015-04-02 16:08:11 +02:00
Hugues Delorme
06bf919a3a gmio_stl: minor optimizations in stla_write.c 2015-04-02 15:38:50 +02:00
Hugues Delorme
6a5ac600bd gmio_core: fix bug in gmio_next_char_from_stream() 2015-04-02 15:38:06 +02:00
Hugues Delorme
69d68a4ba9 gmio_stl: simplify façade API for stl_io.h 2015-04-02 15:36:57 +02:00
Hugues Delorme
692c2d7f58 gmio_core: add "default gmio_buffer constructor function" 2015-04-02 15:36:30 +02:00
Hugues Delorme
7fc0836c2b gmio_stl: prefix enum values of gmio_stl_format with GMIO_STL_FORMAT 2015-04-02 10:58:10 +02:00
Hugues Delorme
027f9bfc2a gmio_core: rename GMIO_ENDIANNESS_OTHER to GMIO_ENDIANNESS_UNKNOWN 2015-04-02 10:53:59 +02:00
Hugues Delorme
2af6e06380 gmio_stl,support: better consistency of double-inclusion guard macros 2015-04-02 10:53:58 +02:00
Hugues Delorme
cdda49e7b3 cmake: protect GMIO_HAVE_STDINT_H and GMIO_HAVE_STDBOOL_H from multiple definitions 2015-04-02 10:53:56 +02:00
Hugues Delorme
9649f47188 doc: fix doxygen warnings 2015-04-02 10:53:55 +02:00
Hugues Delorme
8ed353ac0e gmio_stl: fix minor header licenses issues 2015-04-02 10:53:54 +02:00
Hugues Delorme
d36be934aa gmio_support: rename files for better consistency 2015-04-02 10:53:52 +02:00
Hugues Delorme
306916327d gmio_core,stl: change prefix of enum values for gmio_error and gmio_stl_error 2015-04-02 10:53:51 +02:00
Hugues Delorme
f09fcaec53 gmio_core: prefix values of gmio_endianness with GMIO_ENDIANNESS 2015-04-02 10:53:40 +02:00
Hugues Delorme
2929ea45c5 gmio_core: in gmio_stream_stdio_size(), use fstat64() when available 2015-04-02 09:39:11 +02:00
Hugues Delorme
6df6299036 cmake: rename GMIO_HAVE_WIN_ALLOCA_FUNC to GMIO_HAVE_WIN__ALLOCA_FUNC 2015-04-01 15:43:03 +02:00
Hugues Delorme
c0db993f05 gmio_core: fix compilation warning in gmio_buffer_alloca() 2015-04-01 15:39:53 +02:00
Hugues Delorme
76ee571cd5 gmio_core: provide a POSIX implementation for gmio_stream_stdio_size() 2015-04-01 15:39:00 +02:00
Hugues Delorme
a04b9b2cda gmio_core/internal: make gmio_next_char() easier to maintain 2015-03-31 17:09:36 +02:00
Hugues Delorme
45fd39dd7f gmio_stl: fix some cases where STL ascii format won't be detected
New cases:
  * mixed-case <solid> token like Solid, SOLID, ...
  * <solid> token not followed by space char, like solid\n
2015-03-31 16:18:35 +02:00
Hugues Delorme
f58b6e56b4 gmio_core: add string_utils.h 2015-03-31 16:16:04 +02:00
Hugues Delorme
047f24c6dc gmio_stla: improve error report for input operation, accept mixed-case text 2015-03-31 15:56:36 +02:00
Hugues Delorme
5d379980f6 gmio_core: use internal C-locale isspace() + bug fixes 2015-03-31 15:53:58 +02:00
Hugues Delorme
a099b94cf2 gmio_core: fix GCC compilation error in fast_atof.h 2015-03-31 15:51:59 +02:00
Hugues Delorme
0f3b8d1e59 Improve use of inlined functions 2015-03-31 10:10:26 +02:00
Hugues Delorme
82f6386256 gmio_core: add more doc for gmio_stream::rewind_func() 2015-03-30 17:50:27 +02:00
Hugues Delorme
5acf65d5f8 gmio_support: remove useless gmio_stream_set_qiodevice() function 2015-03-30 17:42:46 +02:00
Hugues Delorme
d55fdbb612 gmio_core: remove useless memory.h header file 2015-03-30 17:42:13 +02:00
Hugues Delorme
cb39f6e8e6 gmio_stl: fix minor doc issues in stl_io.h 2015-03-30 17:26:38 +02:00
Hugues Delorme
e9ed4b511e gmio_core: remove useless gmio_stream utility functions 2015-03-30 17:26:11 +02:00
Hugues Delorme
55a985d3ee gmio_core: let gmio_buffer() initialized the deallocate_func field 2015-03-30 17:25:23 +02:00
Hugues Delorme
ca43839585 gmio_core: force size to 0 for NULL buffer 2015-03-30 16:48:05 +02:00
Hugues Delorme
8c92dc2e76 Fix indentation issues 2015-03-30 16:43:26 +02:00
Hugues Delorme
d3f4062bc8 gmio_core: add utility functions for gmio_buffer 2015-03-30 16:37:47 +02:00
Hugues Delorme
9f5cbf6297 Make all inline functions declared as "static" 2015-03-30 10:53:34 +02:00
Hugues Delorme
ac56054988 gmio_core: make error functions internal and inline 2015-03-30 10:26:39 +02:00
Hugues Delorme
922367f3b1 gmio_stl: add helper functions for gmio_stl_mesh_creator 2015-03-30 10:18:18 +02:00
Hugues Delorme
762ca148cb gmio_stl: minor optimizations 2015-03-30 09:57:48 +02:00
Hugues Delorme
ae82134463 gmio_stl: simplify options in stl_io.h 2015-03-30 09:30:55 +02:00
Hugues Delorme
d73515e9fe gmio_core: make GMIO_HOST_ENDIANNESS a value of gmio_endianness 2015-03-30 09:15:20 +02:00
Hugues Delorme
e15e3f8142 Direct link to the license file 2015-03-30 09:05:25 +02:00
Hugues Delorme
ded90344f4 cmake: detect availability of powf() 2015-03-26 12:04:17 +01:00
Hugues Delorme
b49357024b gmio_core: fix C4127 warnings in fast_atof.h 2015-03-26 11:47:10 +01:00
Hugues Delorme
83a8b004f1 gmio_core: adapt fast_atof.h for ISO-C90 2015-03-23 18:27:57 +01:00
Hugues Delorme
ba87db052f gmio_core: add original fast_atof.h from IrrLicht 2015-03-23 18:25:43 +01:00
Hugues Delorme
b91b5ad196 gmio_stl: simpler API for gmio_stl_get_format() 2015-03-23 18:21:52 +01:00
Hugues Delorme
6fd9399fdd gmio_stl: new STL read facade functions 2015-03-23 18:21:04 +01:00
Hugues Delorme
4fcfbab5e0 gmio_core: add gmio_buffer structure 2015-03-23 18:18:28 +01:00
Hugues Delorme
cc9e0b2546 gmio_core: add size_func and rewind_func function pointers to gmio_stream 2015-03-23 18:15:31 +01:00
Hugues Delorme
47d5700157 gmio_core: add error code GMIO_UNKNOWN_ERROR 2015-03-23 18:13:07 +01:00
Hugues Delorme
6de7891d88 Improve doc 2015-03-20 11:42:59 +01:00
Hugues Delorme
1c9ccb6b61 gmio_stl: fix GCC -Wenum-compare warnings 2015-03-20 11:42:57 +01:00
Hugues Delorme
a5eef58d83 gmio_core: remove non-supported GMIO_MIDDLE_ENDIAN byte order 2015-03-20 11:42:56 +01:00
Hugues Delorme
828f970da5 Use configure-time constant for the host's endianness 2015-03-20 11:42:55 +01:00
Hugues Delorme
d4019706a8 gmio_stla: fix bug that would leave stream_size to 0 in gmio_transfer::handle_progress_func() 2015-03-20 11:42:53 +01:00
Hugues Delorme
6b7ead1f24 Improve indentation 2015-03-20 11:42:38 +01:00
Hugues Delorme
e78c398026 gmio_stl: fix crash in case input gmio_transfer is null in gmio_stlb_read() 2015-03-19 16:40:50 +01:00
Hugues Delorme
9b44fcf6dd gmio_core: simplify if statements in gmio_host_endianness() 2015-03-19 16:36:02 +01:00
Hugues Delorme
e7757fcbda Add some utility variant API functions 2015-03-19 16:34:53 +01:00
Hugues Delorme
a0fa9bb206 gmio_support: make qt_stream.* compatible with Qt in namespace 2015-03-18 16:28:25 +01:00
Hugues Delorme
71b9faff4f gmio_stl: fix sprintf() format issue 2015-03-18 16:27:43 +01:00
Hugues Delorme
d137aac506 gmio_stl: more doc 2015-03-13 12:49:35 +01:00
Hugues Delorme
5d29d48de0 Move GMIO_C_LINKAGE_BEGIN where really useful 2015-03-13 11:07:07 +01:00
Hugues Delorme
86a05d38bb gmio_core: move some helper functions into internal/
This applies to gmio_stream and gmio_transfer helper functions
2015-03-13 11:04:14 +01:00
Hugues Delorme
9ecdd222ea Extend API to support progress handling 2015-03-13 10:32:18 +01:00
Hugues Delorme
8d81cf5922 gmio_core: merge gmio_task_control into gmio_transfer 2015-03-12 17:46:40 +01:00
Hugues Delorme
85481e2e89 doc: effort to make it complete 2015-03-05 10:06:22 +01:00
Hugues Delorme
bb236cad3b gmio_support: add license headers 2015-03-04 17:41:07 +01:00
Hugues Delorme
c0cdd90f96 Rename some internal implementation stuff 2015-03-03 16:54:13 +01:00
Hugues Delorme
e27d79b2e3 gmio_core/internal: fix constness in API of string_parse.h 2015-03-03 16:44:14 +01:00
Hugues Delorme
31e8daca93 Removed needless comment lines and doxygen tags 2015-03-03 11:37:38 +01:00
Hugues Delorme
0b0152dbb3 Rename gmio_realXX_t to gmio_floatXX_t (XX = 32,64) 2015-03-03 10:44:45 +01:00
Hugues Delorme
97923e2dfe Two spaces indentation for macros 2015-03-03 10:38:49 +01:00
Hugues Delorme
ae25e86825 Four spaces indentation 2015-03-03 10:35:36 +01:00
Hugues Delorme
7e32cf99d5 Fix Visual C++ C4267 warnings (conversion from size_t to uint32_t) 2015-03-03 10:29:47 +01:00
Hugues Delorme
d7a4e3b1b6 cmake: detection of the targer architecture bit size 2015-03-03 10:27:39 +01:00
Hugues Delorme
819aec00d4 gmio_core: add utility file min_max.h 2015-03-02 18:00:10 +01:00
Hugues Delorme
edf3beca79 gmio_core: rename _ascii_ functions and files to _string_ 2015-03-02 17:54:57 +01:00
Hugues Delorme
1518324fba Add licence files and headers 2015-03-02 17:38:33 +01:00
Hugues Delorme
4f8bdc4a6f Minor doc improvements 2015-03-02 16:49:52 +01:00
Hugues Delorme
0a98161182 gmio_stl: use anonymous enum instead of #define for constants 2015-03-02 16:43:42 +01:00
Hugues Delorme
15518d5a0d stl: consider FLOAT_token as an alias of ID_token 2015-01-29 13:27:07 +01:00
Hugues Delorme
0d43396116 Minor code improvement 2015-01-29 13:25:50 +01:00
Hugues Delorme
3350d8936f Minor doc and indentation improvements 2015-01-28 22:39:03 +01:00
Hugues Delorme
550cccba79 Fix minor code style issues 2014-11-21 11:41:52 +01:00
Hugues Delorme
72228a82dc gmio_stl: new API for read/write functions 2014-11-21 11:41:29 +01:00
Hugues Delorme
e284d9c7c8 gmio_core: add utility macro GMIO_UNUSED() 2014-11-21 11:40:49 +01:00
Hugues Delorme
d2380c7b37 Improve generated documentation 2014-11-21 11:39:23 +01:00
Hugues Delorme
666f90857a gmio_core: limit task_control to interruption request (no progress report feature) 2014-11-20 09:25:43 +01:00
Hugues Delorme
60db7e397a gmio_stl: case insensitive comparison on the first letter in parsing_find_token() 2014-11-20 09:23:03 +01:00
Hugues Delorme
4fa3e7f380 Use = {0} init instead of memset() where applicable 2014-11-19 09:41:10 +01:00
Hugues Delorme
5c959616aa Minor doc improvements 2014-11-19 09:39:56 +01:00
Hugues Delorme
3775dca27c When available, use <stdbool.h> for boolean types 2014-11-10 18:31:44 +01:00
Hugues Delorme
7d853cc3b1 Fix remaining compiler errors since renaming the library to 'gmio' 2014-04-17 10:19:23 +02:00
Hugues Delorme
675e95583a gmio_support: fix missing code adaptations 2014-04-04 16:00:43 +02:00
Hugues Delorme
33ed203983 gmio_core: there was still old FOUG_ prefixes in config.h.cmake 2014-04-04 15:50:42 +02:00
Hugues Delorme
f1e0b1a169 Rename gmio_stl_geom->gmio_stl_mesh and gmio_stl_geom_creator->gmio_stl_mesh_creator 2014-03-31 15:52:04 +02:00
Hugues Delorme
121181bf15 Fix minor code style issues 2014-03-31 15:39:21 +02:00
Hugues Delorme
085644a5e5 Rename FougDataX to gmio (GeoMetry Input/Output) 2014-03-28 16:33:35 +01:00
Hugues Delorme
db04be340a Improve doc 2014-03-27 17:36:18 +01:00
Hugues Delorme
b41d0d4f77 stl: fix constness of input param for foug_stla_write() 2014-03-27 17:35:40 +01:00
Hugues Delorme
8540248028 support: fix minor include issue 2014-03-13 22:56:59 +01:00
Hugues Delorme
37af93feab stl: get rid of FOUG_SLTB_READ_WRITE_ALIGN_SAFE 2014-03-13 22:55:55 +01:00
Hugues Delorme
ab794ded78 Major reorganization of source files into a better source tree 2014-03-13 17:49:39 +01:00
Hugues Delorme
c4bb9015d6 libstl: fix minor code style issue 2014-03-13 17:03:04 +01:00
Hugues Delorme
52fea697cb Surround declaration of functions with FOUG_C_LINKAGE_BEGIN and FOUG_C_LINKAGE_END
This avoids linking errors with use of FougDataX in C++ programs
2014-03-13 15:57:04 +01:00
Hugues Delorme
381dd0d9b7 libstl: rename foug_stl_rw_error to foug_stl_error 2014-03-13 14:41:05 +01:00
Hugues Delorme
41eec9b1b5 Add more doc 2014-03-13 14:37:55 +01:00
Hugues Delorme
01d9e3a3f7 Separate detection of GCC builtin bswap() functions for 16b and 32b 2014-02-25 09:53:36 +01:00
Hugues Delorme
e8b169d79d libstl: replace stl{a,b}_{read,write}.h files by stl_io.h 2014-02-13 17:02:18 +01:00
Hugues Delorme
3b6b1f631e Add more documentation 2014-02-13 16:39:59 +01:00
Hugues Delorme
660c2699e7 Don't declare anonymous enum/struct in the public API 2014-02-13 16:18:09 +01:00
Hugues Delorme
c4c08b1e5c Add more documentation for global header files (just below src/ folder) 2014-02-13 11:51:42 +01:00
Hugues Delorme
3ccd118545 libstl: minor improvement in stla_read hook 2014-02-11 11:18:59 +01:00
Hugues Delorme
6f1d3ac97e libstl: check string iterator limit before access in foug_stl_get_format() 2014-02-11 11:14:49 +01:00
Hugues Delorme
e5b19fb151 occ_support: remove unused attributes in foug_OccStlMeshDomain 2014-02-04 16:29:38 +01:00
Hugues Delorme
bdf97c30e3 Fix buggy foug_decode_uint32_me() 2014-02-04 15:45:31 +01:00
Hugues Delorme
56ab56b0e8 foug_stl_get_format: fix potential bug where read_size is less than fixed_buffer size 2014-01-30 10:32:28 +01:00
Hugues Delorme
fecc9fb478 Revamp error checking 2014-01-30 10:19:22 +01:00
Hugues Delorme
6abac58deb Considerable simplify libstl API 2014-01-29 16:59:19 +01:00
Hugues Delorme
a2f39de890 Fix minor code style issues 2014-01-29 11:34:10 +01:00
Hugues Delorme
55a6837c76 occ_libstl.cpp: adapt to API changes 2014-01-29 11:33:55 +01:00
Hugues Delorme
cb9428c87d stla_read.h: remove typedefs to function pointers 2014-01-29 11:33:19 +01:00
Hugues Delorme
7f13b9248f stlb_read: remove typedef for function pointers, also simplify hookds 2014-01-29 11:32:47 +01:00
Hugues Delorme
966359881e stream: error_func() returns int instead of int32_t 2014-01-29 11:31:44 +01:00
Hugues Delorme
e548e342b9 stl_format.c: fix case that would return FOUG_STL_ASCII_FORMAT instead of FOUG_STL_UNKNOWN_FORMAT 2014-01-29 11:29:55 +01:00
Hugues Delorme
36594dc120 global.h: alais foug_bool_t to int (instead of int8_t) 2014-01-29 11:28:36 +01:00
Hugues Delorme
59e5daf983 Major reorganization to improve performance 2014-01-28 19:06:24 +01:00
Hugues Delorme
dbe36c0eb1 libstl: add stl_format.h,c 2014-01-28 19:05:18 +01:00
Hugues Delorme
c11804fcea libstl: put all error codes in stl_error.h 2014-01-28 19:04:32 +01:00
Hugues Delorme
b41817fcad ascii_parse: add function foug_checked_next_chars() 2014-01-28 10:11:26 +01:00
Hugues Delorme
340ed4f117 ascii_parse: simplify cookie function 2014-01-27 22:57:10 +01:00
Hugues Delorme
6ae2de4985 Move convert.* into internal/ folder 2014-01-27 15:30:46 +01:00
Hugues Delorme
fb9985855a libstl: put ASCII text parsing into separated header/source files 2014-01-27 15:28:12 +01:00
Hugues Delorme
11d5668d4b Simplify cookie mechanism 2014-01-27 15:03:50 +01:00
Hugues Delorme
90f5f084f6 libstl: use strtof() if available (in stla_read.c)
strtof() is faster than strtod(), see:
http://www.gnu.org/software/libc/manual/html_node/Parsing-of-Floats.html
"(...) strtof can be substantially faster than strtod, but has less precision"

strtof() was added in C99 so BUILD_STRICT_C90 must be disabled to have any
chance to use it (MSVC does not provide strtof(), GCC does).
2014-01-23 17:30:23 +01:00
Hugues Delorme
5f0f9f9273 global: improve byte swapping functions (endian.h)
Use platform's builtin byte swapping functions when available
2014-01-23 17:28:59 +01:00
Hugues Delorme
0539a111fd cmake: many improvements about build options and platform checks
* Add option BUILD_STRICT_C90
* Rename options WITH_* by BUILD_WITH_*
* Detect if platform provides builtin byte swap functions
2014-01-23 17:24:50 +01:00
Hugues Delorme
5720614cdc libstl: use field instead of function pointer where possible 2014-01-22 19:17:19 +01:00
Hugues Delorme
6f7d8c4121 stlb: add define to control whether to use memcpy() or safe-align copy 2014-01-22 18:29:57 +01:00
Hugues Delorme
4750e2c989 Add convert.h/convert.c 2014-01-22 18:28:58 +01:00
Hugues Delorme
450c3fd1af Rename qt4_support to qt_support 2014-01-21 16:19:27 +01:00
Hugues Delorme
d0e9c44ae6 Add doxygen file 2014-01-21 16:18:17 +01:00
Hugues Delorme
23587a905e Reorganize source files 2014-01-21 11:59:40 +01:00
Hugues Delorme
3e7b8546eb Remove out-dated C++ stuff 2014-01-21 11:07:00 +01:00
Hugues Delorme
4f6ed17071 occ_support: minor performance improvement 2014-01-21 10:52:53 +01:00
Hugues Delorme
e3915c0bc7 Add more doxygen documentation 2014-01-21 10:51:23 +01:00
Hugues Delorme
b9f3c71d24 Fix minor indentation issues 2014-01-21 10:49:24 +01:00
Hugues Delorme
db509d6863 Fix indentation issues 2014-01-09 22:22:57 +01:00
Hugues Delorme
5467ff633f Merge branch 'master' of ssh://slave.lautre.net:22/home/projects/fougsys/fougdataex 2013-04-29 15:48:45 +02:00
Hugues Delorme
9d20aa9569 Fix warnings in occ_libstl.cpp with Visual C++ 2013-04-29 15:47:44 +02:00
Hugues Delorme
4e7049ae02 stla: fix typo error in grammar documentation 2013-04-29 13:21:39 +02:00
Hugues Delorme
d46de3ea86 stla: document grammar for STL ASCII 2013-04-29 12:24:51 +02:00
Hugues Delorme
e2bdc6b891 libstl: fix minor code style issues 2013-04-29 11:47:15 +02:00
Hugues Delorme
d55f1831e1 occ_support: fix minor code style issues 2013-04-27 00:20:12 +02:00
Hugues Delorme
4924de91cb stlb: introduce 'byte_order' parameter (for now only little-endian is supported) 2013-04-27 00:16:38 +02:00
Hugues Delorme
e983afe159 stla: implement writing 2013-04-27 00:11:53 +02:00
Hugues Delorme
f866df2127 stla: implement a recursive-descent parser for reading 2013-04-27 00:10:28 +02:00
Hugues Delorme
baf2859cca libstl: remove parameter names for cookie functions in stla_read.h 2013-04-02 12:07:35 +02:00
Hugues Delorme
1e56476821 STLb: Minor code improvement in foug_stlb_write_facets() 2013-03-27 13:11:00 +01:00
Hugues Delorme
8b5b6d5247 Fix indentation issues 2013-03-27 13:00:48 +01:00
Hugues Delorme
27f320012b Fix potential collisions on HAVE_STDINT_H (renamed to FOUG_HAVE_STDINT_H) 2013-03-27 12:49:57 +01:00
Hugues Delorme
0b2424570e endian.h: add foug_encode_uint32_be() 2013-03-06 18:30:02 +01:00
Hugues Delorme
a6128da7d2 Modular all-in-one QMake build script (foug_datax.pro) 2013-03-06 17:02:19 +01:00
Hugues Delorme
174fe74939 Refactor API of libSTL 2013-03-06 11:49:53 +01:00
Hugues Delorme
ed1a9f8bb8 Normalize inclusion guards 2013-03-06 10:27:37 +01:00
Hugues Delorme
a11ae5157c libstl: reorganize declarations of read/write functions 2013-03-05 16:46:42 +01:00
Hugues Delorme
1401860c83 stlb: localize variables in their direct scope 2013-03-05 16:22:26 +01:00
Hugues Delorme
fb89b4ddcb stla: add support of task interrupt (stop) 2013-03-05 14:54:11 +01:00
Hugues Delorme
d128eb92fd Easier and simpler task control 2013-03-05 01:04:29 +01:00
Hugues Delorme
85b616e84b Rename foug_dataex to foug_datax 2013-03-04 22:04:21 +01:00
Hugues Delorme
dbdb45bd24 Add first working impl of STL ASCII reading 2013-03-02 22:05:17 +01:00
Hugues Delorme
6353cbbb46 Merge manip structs in their respective 'main' struct 2013-03-02 21:51:08 +01:00
Hugues Delorme
7daa164a8b * Simplify syntax used to call function with pointers
* Some documentation for foug_stream functions
2013-03-01 21:37:31 +01:00
Hugues Delorme
f71c061328 libstl: improve rapidity by using C style cast to decode memory 2013-02-21 14:53:41 +01:00
Hugues Delorme
aebea13385 Fix minor C code style issues 2013-02-21 14:51:29 +01:00
Hugues Delorme
d74f67dad6 Fix minor issue with name of inclusion guard 2013-02-21 14:44:44 +01:00
Hugues Delorme
7f76079f80 Add cmake build script 2013-02-21 14:44:35 +01:00
Hugues Delorme
58fdac010b c-libstl: add foug_stlb_triangle struct 2013-02-05 12:26:41 +01:00
Hugues Delorme
24495d6655 c-libstl: add _set_cookie() functions and buffer parameter 2013-02-05 12:24:13 +01:00
Hugues Delorme
dc832d3f81 c-lib: in endian.c, move union types outside functions 2013-02-05 12:19:24 +01:00
Hugues Delorme
903d98d565 Fix definition of FOUG_DECL macros 2013-01-25 15:37:06 +01:00
Hugues Delorme
f73c2c37ad c-lib: fix warnings with Visual C++ 2010 2013-01-24 18:51:26 +01:00
Hugues Delorme
33b4d7f2e8 c-lib: strict conformance to C90 2013-01-24 18:38:43 +01:00
Hugues Delorme
2cae8b387c c-libstl: don't check argument buffer_size 2013-01-24 12:46:10 +01:00
Hugues Delorme
ff8a6fe6e5 libc++: adapt to core libc 2013-01-24 11:31:38 +01:00
Hugues Delorme
867cdc0098 libc: improve handling of stream error 2013-01-24 11:29:51 +01:00
Hugues Delorme
d3c56f7a52 libc: improve encoding routines 2013-01-24 11:28:59 +01:00
Hugues Delorme
2eeef375c7 c-lib: improve file name consistency 2013-01-15 17:56:24 +01:00
Hugues Delorme
8db6c9d077 c-lib: add DLL import/export directives 2013-01-15 16:45:01 +01:00
Hugues Delorme
1f0f4a311f c-lib: workable binary STL writing function 2013-01-15 13:10:44 +01:00
Hugues Delorme
6e513f6d68 c-lib: put STL binary reading code in stlb_read.* files 2013-01-15 10:40:35 +01:00
Hugues Delorme
8cbb5a0007 c-lib: workable reading of binary STL files 2013-01-14 19:31:12 +01:00
Hugues Delorme
5f4ed36e9f c-lib: initial work about base C library of FougDataEx 2013-01-10 18:48:46 +01:00
Hugues Delorme
598c376eb4 Reorganize source code file structure
Inroduce c++ language folder
2013-01-08 00:21:50 +01:00
Hugues Delorme
075077b4e1 Enhance interface of AbstractTaskProgress
* Rename handleTaskProgress() to taskProgressEvent()
* Add task control features (asyncStop() + taskStopEvent())
2012-07-12 09:50:42 +02:00
Hugues Delorme
19b790f61e stlb: change namespaces to stlb and stla (were stl::bin / stl::asc) 2012-07-05 12:56:25 +02:00
Hugues Delorme
5478c2c0a7 Fix for C++ std streams 2012-06-25 17:31:18 +02:00
Hugues Delorme
98176be41d libstl: add buffered reading of triangle data (binary format) 2012-02-28 20:32:00 +01:00
Hugues Delorme
6f7bfd31e6 Initial import 2012-02-28 20:27:32 +01:00