Commit Graph

418 Commits

Author SHA1 Message Date
Hugues Delorme
47123e2d26 Replace some sprintf() calls with snprintf() 2016-03-10 15:23:01 +01:00
Hugues Delorme
fb04b67308 gmio_core: fix compilation errors with fallback gmio_snprintf() 2016-03-08 18:22:12 +01:00
Hugues Delorme
10e2102b29 gmio_core/internal: add portable snprintf() wrapper 2016-03-08 17:28:43 +01:00
Hugues Delorme
480c0fbf11 gmio_stl: use snprintf() instead of sprintf() in stla_error_token_expected() 2016-03-08 15:24:33 +01:00
Hugues Delorme
37c4a2a576 Introduce GMIO_STL_FORMAT_TAG_BINARY 2016-03-08 10:29:49 +01:00
Hugues Delorme
43a296656d Fix minor code style issues 2016-03-07 16:43:51 +01:00
Hugues Delorme
bdb3b1e7e6 Hopefully fix newly detected coverity defects 2016-03-03 17:34:20 +01:00
Hugues Delorme
ffb980ae63 Fix warnings about integer comparisons 2016-03-02 18:05:19 +01:00
Hugues Delorme
74ae9ba752 gmio_stl: change API to use pointer arguments instead of confusing value 2016-03-01 14:50:31 +01:00
Hugues Delorme
77c65947bb Add support of multi STL solids loading 2016-02-24 16:46:48 +01:00
Hugues Delorme
31f07a07ca gmio_stla: copy token string on next_token error 2016-02-22 17:14:47 +01:00
Hugues Delorme
706fc26b0e gmio_support: iterate on all StlMesh_Mesh's domains 2016-02-18 18:20:23 +01:00
Hugues Delorme
b42e2b36ee Fix Clang compiler error and warnings 2016-02-12 11:45:46 +01:00
Hugues Delorme
afbe34cc91 Fix doc 2016-02-05 12:20:49 +01:00
Hugues Delorme
f6b71695c0 gmio_stl: add utility function gmio_stl_triangle_compute_normal() 2016-02-05 12:20:14 +01:00
Hugues Delorme
07fdbb81f3 Minor doc fixes 2016-02-03 11:44:06 +01:00
Hugues Delorme
b7bceff748 gmio_stl: simplify code of gmio_stla_infos_get() 2016-02-03 11:43:52 +01:00
Hugues Delorme
f8e73f5747 gmio_stl: simplify API of gmio_stl_mesh_creator 2016-02-01 16:53:45 +01:00
Hugues Delorme
cdcc407071 gmio_stl: fix build error 2016-02-01 10:47:54 +01:00
Hugues Delorme
75cd51398e gmio_stl: improve API 2016-01-29 12:47:01 +01:00
Hugues Delorme
9ae18d1b9e Replace gmio_bool_t with bool 2016-01-26 17:03:58 +01:00
Hugues Delorme
0c15f9f325 Get rid of gmio_floatXX_t typedefs 2016-01-26 16:00:36 +01:00
Hugues Delorme
8a5f626663 gmio_stl: get rif of gmio_stlb_readwrite_helper 2016-01-26 15:54:06 +01:00
Hugues Delorme
5969cad14b tests: add new tests for gmio_stlb_header functions 2016-01-26 11:50:29 +01:00
Hugues Delorme
5605934628 gmio_stl: faster(2x) version of gmio_stla_infos_get() 2016-01-22 12:42:34 +01:00
Hugues Delorme
78ecd577dc gmio_stl: extract some STL ascii parsing functions to be reusable 2016-01-22 10:52:37 +01:00
Hugues Delorme
3619a43992 gmio_core: remove needless gmio_streampos_null() 2016-01-20 18:23:09 +01:00
Hugues Delorme
523cd028b8 gmio_stl: rename gmio_stl_triangle::normal -> gmio_stl_triangle::n 2016-01-20 17:47:30 +01:00
Hugues Delorme
62715a3822 gmio_stl: minor code simplification in stlb_byte_swap.c 2016-01-20 17:42:24 +01:00
Hugues Delorme
431bdf5bb1 gmio_stl: improve scoping of local variables in gmio_stla_write() 2016-01-20 12:17:38 +01:00
Hugues Delorme
d0b213a652 tests: move gmio_stlb_header_to_printable_str() to gmio_stl/stlb_header.h 2016-01-13 15:25:18 +01:00
Hugues Delorme
0d7eb270bc gmio_stl: make use of gmio_stl_read_args::func_stla_get_streamsize 2016-01-13 15:00:08 +01:00
Hugues Delorme
f84eba82fb gmio_stl: fix minor typos 2016-01-13 14:59:35 +01:00
Hugues Delorme
9dc842a35d tests: enable fast_atof() benchmark check only for release builds 2016-01-13 10:55:59 +01:00
Hugues Delorme
775c756818 gmio_core: rename GMIO_STRINGUTILS_CTYPE_H -> GMIO_STRING_ASCII_UTILS_CTYPE_H 2016-01-13 10:37:04 +01:00
Hugues Delorme
4a34063af9 gmio_core: rename string_utils.h -> string_ascii_utils.h 2016-01-13 10:21:27 +01:00
Hugues Delorme
a6dff8a150 More doc 2016-01-13 10:15:04 +01:00
Hugues Delorme
f2a1665493 gmio_core: rename gmio_stringstream_init() to gmio_stringstream_init_pos() 2016-01-13 10:04:41 +01:00
Hugues Delorme
38bfdb6e72 gmio_core: add gmio_stringstream() constructor 2016-01-12 16:29:31 +01:00
Hugues Delorme
b0803b0a7b gmio_stl: refactor gmio_stlb_infos_get() 2016-01-07 17:12:58 +01:00
Hugues Delorme
bdb02a9d8b gmio_stl: use gmio_ascii_stricmp() in gmio_stla_infos_get() 2016-01-07 17:11:56 +01:00
Hugues Delorme
a26008be93 gmio_core: add utility macro GMIO_ARRAY_SIZE() 2016-01-05 11:50:17 +01:00
Hugues Delorme
56241d22f6 gmio_core: fix spacing issues 2016-01-05 11:44:53 +01:00
Hugues Delorme
9d9d65bbd5 gmio_core: rename member gmio_rwargs::memblock -> stream_memblock 2016-01-05 11:44:10 +01:00
Hugues Delorme
0298cf3c89 gmio_stl: restore stream pos at exit of gmio_stl_infos_get() 2015-12-18 15:30:50 +01:00
Hugues Delorme
b8299e38ac gmio_stl: more docs 2015-12-18 10:45:51 +01:00
Hugues Delorme
ce50f76ef0 gmio_stl: add function gmio_stlb_header_str 2015-12-18 10:38:18 +01:00
Hugues Delorme
b514f12cc3 gmio_stl: rename STL write option for binary header 2015-12-17 19:02:24 +01:00
Hugues Delorme
bc986080d6 gmio_core: fix compilation error with GCC-4.6 2015-12-17 12:41:34 +01:00
Hugues Delorme
71bc14b6dc gmio_stl: API change in stl_io 2015-12-17 12:31:30 +01:00
Hugues Delorme
0f04b296fb gmio_stl: separate implementations for ASCII/binary gmio_stl_infos_get() 2015-12-17 12:03:45 +01:00
Hugues Delorme
5aa0b38f5a gmio_stl: major revamp of API 2015-12-09 18:51:03 +01:00
Hugues Delorme
ac93858dbd Fix C90 compilation issues 2015-12-03 18:29:23 +01:00
Hugues Delorme
9d08aa82ca Fix code style issue 2015-12-03 18:17:42 +01:00
Hugues Delorme
a2c071369b gmio_core: rename gmio_stream_pos -> gmio_streampos 2015-12-03 18:03:46 +01:00
Hugues Delorme
fb81b25407 Several changes
* Remove typedefs on struct and enums
* First working version of gmio_stla_stats_get()
2015-12-03 18:00:25 +01:00
Hugues Delorme
82270193e6 gmio_core/internal: fix error in code example 2015-11-23 16:51:02 +01:00
Hugues Delorme
f686f35207 gmio_core/internal: embed gmio_stream inside gmio_stringstream 2015-11-23 16:44:45 +01:00
Hugues Delorme
5e32375553 gmio_stl: delete unused functions 2015-11-23 16:35:43 +01:00
Hugues Delorme
c1db98e8c3 gmio_core/internal: rename gmio_string_stream_fwd_iterator -> gmio_stringstream 2015-11-20 11:53:57 +01:00
Hugues Delorme
083a885d0f gmio_stl: reorganize stla_read.c 2015-11-20 11:20:06 +01:00
Hugues Delorme
be5c1cd65d gmio_core/internal: add gmio_parse_float32() 2015-11-20 11:19:32 +01:00
Hugues Delorme
3afcde257d gmio_core/internal: make distinction between fast_strtof() and fast_atof() 2015-11-19 17:45:29 +01:00
Hugues Delorme
efe3e64648 gmio_core: safer int types when no <stdint.h> 2015-11-19 17:43:07 +01:00
Hugues Delorme
efeb15f36a gmio_core/internal: more doc in string.h, also add gmio_const_string() 2015-11-19 15:35:20 +01:00
Hugues Delorme
2db6415405 gmio_core: simplify strtof10() 2015-11-10 12:25:56 +01:00
Hugues Delorme
516242b9ba gmio_stl: fix some defects reported by coverity scan 2015-11-06 15:33:01 +01:00
Hugues Delorme
108acf2ccd gmio_core: layout code with brief /* */ comments 2015-11-06 14:15:22 +01:00
Hugues Delorme
978770c161 Fix more MSVC and GCC compilation warnings 2015-11-06 13:56:16 +01:00
Hugues Delorme
b356ced118 Introduce typedefs gmio_streamsize_t and gmio_streamoffset_t 2015-11-06 13:43:03 +01:00
Hugues Delorme
5a6ef8366c gmio_core: add typedef for 64b integers 2015-11-06 12:40:57 +01:00
Hugues Delorme
6988b777e9 gmio_stl: improve speed of STL ascii read operations 2015-11-02 10:47:11 +01:00
Hugues Delorme
620930b33f gmio_core/internal: add gmio_to_float32() which is faster than gmio_get_float32() 2015-11-02 10:46:42 +01:00
Hugues Delorme
4be2c0b3fc gmio_core/internal: micro-optimizations in gmio_ascii_stricmp() 2015-11-02 10:45:55 +01:00
Hugues Delorme
72e4660dfa gmio_core/internal: minor optimizations in string_parse 2015-10-30 12:38:57 +01:00
Hugues Delorme
28dd6de941 gmio_core/internal: give <ctype.h> implementations for tolower/toupper functions 2015-10-30 11:51:31 +01:00
Hugues Delorme
2f282d6c29 gmio_core/internal: rename gmio_clocale_xxx() -> gmio_ascii_xxx() 2015-10-29 15:23:21 +01:00
Hugues Delorme
e4b7753fea gmio_core/internal: separate declaration/definition in string_utils.h 2015-10-29 11:45:21 +01:00
Hugues Delorme
0981f63658 gmio_core/internal: rename buffer->str for gmio_string_t variables 2015-10-29 11:25:04 +01:00
Hugues Delorme
64e2456728 gmio_stl/internal: improve STL ascii output implementation 2015-10-28 16:38:57 +01:00
Hugues Delorme
39132c0b3f gmio_core/internal: fix strlen in GMIO_CONST_STRING_FROM_ARRAY() 2015-10-28 16:13:23 +01:00
Hugues Delorme
6d8d694806 gmio_core/internal: fix GCC "char subscripts" warnings in string_utils.h 2015-10-28 16:12:23 +01:00
Hugues Delorme
b7dc8335dd gmio_core/internal: fix GCC compilation error 2015-10-28 16:11:31 +01:00
Hugues Delorme
7a63ad86aa gmio_core/internal: create string.h for string objects 2015-10-22 09:58:38 +02:00
Hugues Delorme
7aeb74ef40 fast_atof: use gmio_clocale_isdigit() 2015-10-21 18:38:04 +02:00
Hugues Delorme
88252c8f8d gmio_core/internal: add gmio_clocale_isdigit()
Also use tables for islower/isupper conversions
2015-10-21 18:37:21 +02:00
Hugues Delorme
d7d51fa210 gmio_stl: faster parsing of STL ascii contents
Don't try to qualify each eaten word from the text stream.
Instead str compare the next word with the expected token string
2015-10-21 18:35:09 +02:00
Hugues Delorme
a66370a76a gmio_stl: cache add/get triangle function pointers 2015-10-14 18:17:03 +02:00
Hugues Delorme
83725f4201 gmio_support: cache OCC triangles and vertices arrays 2015-10-14 12:06:47 +02:00
Hugues Delorme
f5c93e70fe gmio_stl: µ optimizations in gmio_stlb_read_facets() 2015-10-06 11:30:36 +02:00
Hugues Delorme
0e7e0f9ff9 gmio_stl: fix compilation errors in stla_stats.* 2015-09-25 20:13:43 +02:00
Hugues Delorme
bfc38e58b8 gmio_stl: add stla_stats API(no implementation yet) 2015-09-25 16:26:08 +02:00
Hugues Delorme
598123ca47 Rename gmio_buffer -> gmio_memblock 2015-09-25 13:16:41 +02:00
Hugues Delorme
53002389e1 gmio_support: add gmio_[i/o]stream_cpp() functions 2015-09-21 15:58:44 +02:00
Hugues Delorme
ff2368e053 support: add (broken) support of C++ standard streams 2015-09-20 22:58:56 +02:00
Hugues Delorme
215fd68c2b gmio_core: more doc 2015-09-19 23:15:06 +02:00
Hugues Delorme
f6e5f8937b Fix minor code styles issues 2015-09-19 23:14:42 +02:00
Hugues Delorme
b0517b2f39 gmio: add get/set_pos functions to gmio_stream 2015-09-18 14:33:23 +02:00
Hugues Delorme
5ecb401bc0 core_internal: disable unsused function 2015-09-14 11:27:27 +02:00
Hugues Delorme
ac7fd554f8 stla: fix two potential bugs in gmio_stla_read()
* more tolerant read of solid name (can even include "solid")
* set the attribute_byte_count to 0 (triangle passed to callback)
2015-09-11 16:34:18 +02:00