Use #pragma once
This commit is contained in:
parent
f4d5402ca9
commit
39ffae94c5
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef BENCHMARK_TOOLS_H
|
||||
#define BENCHMARK_TOOLS_H
|
||||
#pragma once
|
||||
|
||||
#include "../../src/gmio_core/global.h"
|
||||
#include <stddef.h>
|
||||
@ -117,5 +116,3 @@ void benchmark_print_results(
|
||||
struct benchmark_cmp_result_array result_array);
|
||||
|
||||
GMIO_C_LINKAGE_END
|
||||
|
||||
#endif /* BENCHMARK_TOOLS_H */
|
||||
|
@ -1,5 +1,4 @@
|
||||
#ifndef GMIO_EXAMPLES_3D_MESH_H
|
||||
#define GMIO_EXAMPLES_3D_MESH_H
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
@ -22,5 +21,3 @@ struct my_3d_mesh
|
||||
size_t triangle_array_count;
|
||||
size_t triangle_array_capacity;
|
||||
};
|
||||
|
||||
#endif /* GMIO_EXAMPLES_3D_MESH_H */
|
||||
|
5
src/3rdparty/base64/b64.h
vendored
5
src/3rdparty/base64/b64.h
vendored
@ -1,9 +1,6 @@
|
||||
#ifndef BASE64_B64_H
|
||||
#define BASE64_B64_H
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
void b64_encodeblock(const unsigned char* in, unsigned char* out, size_t len);
|
||||
void b64_decodeblock(const unsigned char* in, unsigned char* out);
|
||||
|
||||
#endif /* BASE64_B64_H */
|
||||
|
5
src/3rdparty/miloyip_itoa/branchlut.h
vendored
5
src/3rdparty/miloyip_itoa/branchlut.h
vendored
@ -1,5 +1,4 @@
|
||||
#ifndef MILOYIP_ITOA_BRANCHLUT_H
|
||||
#define MILOYIP_ITOA_BRANCHLUT_H
|
||||
#pragma once
|
||||
|
||||
#include "../../gmio_core/global.h"
|
||||
|
||||
@ -9,5 +8,3 @@ char* i32toa_branchlut(int32_t value, char* buffer);
|
||||
char* u64toa_branchlut(uint64_t value, char* buffer);
|
||||
char* i64toa_branchlut(int64_t value, char* buffer);
|
||||
#endif
|
||||
|
||||
#endif /* MILOYIP_ITOA_BRANCHLUT_H */
|
||||
|
@ -34,8 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_AMF_DOCUMENT_H
|
||||
#define GMIO_AMF_DOCUMENT_H
|
||||
#pragma once
|
||||
|
||||
#include "amf_global.h"
|
||||
|
||||
@ -376,5 +375,4 @@ struct gmio_amf_document
|
||||
struct gmio_amf_metadata* ptr_metadata);
|
||||
};
|
||||
|
||||
#endif /* GMIO_AMF_DOCUMENT_H */
|
||||
/*! @} */
|
||||
|
@ -34,8 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_AMF_ERROR_H
|
||||
#define GMIO_AMF_ERROR_H
|
||||
#pragma once
|
||||
|
||||
/*! \c GMIO_AMF_ERROR_TAG
|
||||
* Byte-mask to tag(identify) AMF-specific error codes */
|
||||
@ -83,5 +82,4 @@ enum gmio_amf_error
|
||||
GMIO_AMF_ERROR_NULL_FUNC_GET_OBJECT_MESH_VOLUME_METADATA
|
||||
};
|
||||
|
||||
#endif /* GMIO_AMF_ERROR_H */
|
||||
/*! @} */
|
||||
|
@ -57,10 +57,8 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_AMF_GLOBAL_H
|
||||
#define GMIO_AMF_GLOBAL_H
|
||||
#pragma once
|
||||
|
||||
#include "../gmio_core/global.h"
|
||||
|
||||
#endif /* GMIO_AMF_GLOBAL_H */
|
||||
/*! @} */
|
||||
|
@ -34,8 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_AMF_IO_H
|
||||
#define GMIO_AMF_IO_H
|
||||
#pragma once
|
||||
|
||||
#include "amf_global.h"
|
||||
#include "amf_document.h"
|
||||
@ -81,5 +80,4 @@ GMIO_API int gmio_amf_write_file(
|
||||
|
||||
GMIO_C_LINKAGE_END
|
||||
|
||||
#endif /* GMIO_AMF_IO_H */
|
||||
/*! @} */
|
||||
|
@ -34,8 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_AMF_IO_OPTIONS_H
|
||||
#define GMIO_AMF_IO_OPTIONS_H
|
||||
#pragma once
|
||||
|
||||
#include "amf_global.h"
|
||||
#include "../gmio_core/memblock.h"
|
||||
@ -89,5 +88,4 @@ struct gmio_amf_write_options
|
||||
struct gmio_zlib_compress_options z_compress_options;
|
||||
};
|
||||
|
||||
#endif /* GMIO_AMF_IO_OPTIONS_H */
|
||||
/*! @} */
|
||||
|
@ -29,8 +29,7 @@
|
||||
|
||||
/* Generated by CMake */
|
||||
|
||||
#ifndef GMIO_CONFIG_H_CMAKE
|
||||
#define GMIO_CONFIG_H_CMAKE
|
||||
#pragma once
|
||||
|
||||
/* Build type */
|
||||
#cmakedefine GMIO_DEBUG_BUILD
|
||||
@ -107,5 +106,3 @@
|
||||
|
||||
/* Header: gmio_core/internal/string_ascii_utils.h */
|
||||
/*#define GMIO_STRING_ASCII_UTILS_CTYPE_H*/
|
||||
|
||||
#endif /* GMIO_CONFIG_H_CMAKE */
|
||||
|
@ -34,8 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_ENDIAN_H
|
||||
#define GMIO_ENDIAN_H
|
||||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
|
||||
@ -72,5 +71,4 @@ GMIO_API enum gmio_endianness gmio_host_endianness();
|
||||
|
||||
GMIO_C_LINKAGE_END
|
||||
|
||||
#endif /* GMIO_ENDIAN_H */
|
||||
/*! @} */
|
||||
|
@ -34,8 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_ERROR_H
|
||||
#define GMIO_ERROR_H
|
||||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
|
||||
@ -129,5 +128,4 @@ GMIO_INLINE bool gmio_no_error(int code)
|
||||
GMIO_INLINE bool gmio_error(int code)
|
||||
{ return code != GMIO_ERROR_OK ? true : false; }
|
||||
|
||||
#endif /* GMIO_ERROR_H */
|
||||
/*! @} */
|
||||
|
@ -38,8 +38,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_GLOBAL_H
|
||||
#define GMIO_GLOBAL_H
|
||||
#pragma once
|
||||
|
||||
/* "config.h" is generated by cmake, it should reside in the out-of-source
|
||||
* build dir.
|
||||
@ -237,5 +236,4 @@ enum gmio_bool_value
|
||||
/*! Expands to the size(item count) of an array */
|
||||
#define GMIO_ARRAY_SIZE(array) sizeof(array) / sizeof(*array)
|
||||
|
||||
#endif /* GMIO_GLOBAL_H */
|
||||
/*! @} */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_BYTE_CODEC_H
|
||||
#define GMIO_INTERNAL_BYTE_CODEC_H
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
|
||||
@ -275,5 +274,3 @@ void gmio_adv_encode_uint64_be(uint64_t val, uint8_t** bytes)
|
||||
}
|
||||
|
||||
#endif /* GMIO_HAVE_INT64_TYPE */
|
||||
|
||||
#endif /* GMIO_INTERNAL_BYTE_CODEC_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_BYTE_SWAP_H
|
||||
#define GMIO_INTERNAL_BYTE_SWAP_H
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
|
||||
@ -64,5 +63,3 @@ GMIO_INLINE uint32_t gmio_uint32_bswap(uint32_t val)
|
||||
| ((val >> 24) & 0x000000FF);
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif /* GMIO_INTERNAL_BYTE_SWAP_H */
|
||||
|
@ -27,10 +27,9 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_C99_MATH_COMPAT_H
|
||||
#define GMIO_INTERNAL_C99_MATH_COMPAT_H
|
||||
#include "../global.h"
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
#include <math.h>
|
||||
|
||||
#ifdef GMIO_HAVE_POWF_FUNC
|
||||
@ -68,5 +67,3 @@ GMIO_INLINE float gmio_sqrtf(float x)
|
||||
/* No isnan() symbol */
|
||||
# define gmio_isnan(x) ((x) == NAN)
|
||||
#endif
|
||||
|
||||
#endif /* GMIO_INTERNAL_C99_MATH_COMPAT_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_C99_STDIO_COMPAT_H
|
||||
#define GMIO_INTERNAL_C99_STDIO_COMPAT_H
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
|
||||
@ -78,5 +77,3 @@ GMIO_INLINE int gmio_snprintf(char* buf, size_t bufn, const char* fmt, ...)
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* GMIO_INTERNAL_C99_STDIO_COMPAT_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_C99_STDLIB_COMPAT_H
|
||||
#define GMIO_INTERNAL_C99_STDLIB_COMPAT_H
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
|
||||
@ -41,5 +40,3 @@
|
||||
GMIO_INLINE float gmio_strtof(const char* str, char** endptr)
|
||||
{ return (float)strtod(str, endptr); }
|
||||
#endif
|
||||
|
||||
#endif /* GMIO_INTERNAL_C99_STDLIB_COMPAT_H */
|
||||
|
@ -27,11 +27,9 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_CONST_STRING_H
|
||||
#define GMIO_INTERNAL_CONST_STRING_H
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
/*! Stores a read-only string of 8-bit chars.
|
||||
@ -82,5 +80,3 @@ bool gmio_const_string_is_empty(const struct gmio_const_string* str)
|
||||
{
|
||||
return str->ptr == NULL || str->len == 0;
|
||||
}
|
||||
|
||||
#endif /* GMIO_INTERNAL_CONST_STRING_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_CONVERT_H
|
||||
#define GMIO_INTERNAL_CONVERT_H
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
|
||||
@ -71,5 +70,3 @@ GMIO_INLINE int32_t gmio_convert_int32(float val)
|
||||
conv.as_float32 = val;
|
||||
return conv.as_int32;
|
||||
}
|
||||
|
||||
#endif /* GMIO_INTERNAL_CONVERT_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_ERROR_CHECK_H
|
||||
#define GMIO_INTERNAL_ERROR_CHECK_H
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
#include <stddef.h>
|
||||
@ -42,5 +41,3 @@ bool gmio_check_memblock_size(
|
||||
/*! Checks gmio_lc_numeric_is_C(), if false sets \p *error to
|
||||
* \c GMIO_ERROR_BAD_LC_NUMERIC*/
|
||||
bool gmio_check_lc_numeric(int* error);
|
||||
|
||||
#endif /* GMIO_INTERNAL_ERROR_CHECK_H */
|
||||
|
@ -6,8 +6,7 @@
|
||||
|
||||
/* Adapted to ISO-C90 */
|
||||
|
||||
#ifndef GMIO_INTERNAL_FAST_ATOF_H
|
||||
#define GMIO_INTERNAL_FAST_ATOF_H
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
#include "c99_math_compat.h"
|
||||
@ -406,5 +405,3 @@ GMIO_INLINE float fast_atof(const char* str)
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* GMIO_INTERNAL_FAST_ATOF_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_FILE_UTILS_H
|
||||
#define GMIO_INTERNAL_FILE_UTILS_H
|
||||
#pragma once
|
||||
|
||||
#include "const_string.h"
|
||||
|
||||
@ -36,5 +35,3 @@
|
||||
* The base name consists of all characters in the file up to (but not including)
|
||||
* the last '.' character. */
|
||||
struct gmio_const_string gmio_fileutils_find_basefilename(const char* filepath);
|
||||
|
||||
#endif /* GMIO_INTERNAL_FILE_UTILS_H */
|
||||
|
@ -27,9 +27,9 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_FLOAT_FORMAT_UTILS_H
|
||||
#define GMIO_INTERNAL_FLOAT_FORMAT_UTILS_H
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
#include "../text_format.h"
|
||||
|
||||
char gmio_float_text_format_to_stdio_specifier(
|
||||
@ -41,5 +41,3 @@ char* gmio_write_stdio_float_format(
|
||||
struct gmio_string_16 { char array[16]; };
|
||||
struct gmio_string_16 gmio_to_stdio_float_format(
|
||||
enum gmio_float_text_format format, uint8_t prec);
|
||||
|
||||
#endif /* GMIO_INTERNAL_FLOAT_FORMAT_UTILS_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_GOOGLE_DOUBLECONVERSION_H
|
||||
#define GMIO_INTERNAL_GOOGLE_DOUBLECONVERSION_H
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
#include "../text_format.h"
|
||||
@ -41,6 +40,7 @@
|
||||
*/
|
||||
|
||||
GMIO_C_LINKAGE_BEGIN
|
||||
|
||||
float gmio_str2float_googledoubleconversion(const char* num, size_t numlen);
|
||||
double gmio_str2double_googledoubleconversion(const char* num, size_t numlen);
|
||||
|
||||
@ -56,6 +56,5 @@ int gmio_double2str_googledoubleconversion(
|
||||
size_t bufflen,
|
||||
enum gmio_float_text_format textformat,
|
||||
uint8_t prec);
|
||||
GMIO_C_LINKAGE_END
|
||||
|
||||
#endif /* GMIO_INTERNAL_GOOGLE_DOUBLECONVERSION_H */
|
||||
GMIO_C_LINKAGE_END
|
||||
|
@ -27,11 +27,9 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_HELPER_MEMBLOCK_H
|
||||
#define GMIO_INTERNAL_HELPER_MEMBLOCK_H
|
||||
#pragma once
|
||||
|
||||
#include "../memblock.h"
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
struct gmio_memblock_helper
|
||||
@ -76,5 +74,3 @@ void gmio_memblock_helper_release(struct gmio_memblock_helper* helper)
|
||||
helper->was_allocated = false;
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* GMIO_INTERNAL_HELPER_MEMBLOCK_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_HELPER_STREAM_H
|
||||
#define GMIO_INTERNAL_HELPER_STREAM_H
|
||||
#pragma once
|
||||
|
||||
#include "../stream.h"
|
||||
|
||||
@ -152,5 +151,3 @@ int gmio_stream_set_pos(
|
||||
return stream->func_set_pos(stream->cookie, pos);
|
||||
return -1;
|
||||
}
|
||||
|
||||
#endif /* GMIO_INTERNAL_HELPER_STREAM_H */
|
||||
|
@ -27,11 +27,9 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_HELPER_TASK_IFACE_H
|
||||
#define GMIO_INTERNAL_HELPER_TASK_IFACE_H
|
||||
#pragma once
|
||||
|
||||
#include "../task_iface.h"
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
/*! Safe and convenient function for gmio_task_iface::func_is_stop_requested() */
|
||||
@ -50,5 +48,3 @@ GMIO_INLINE void gmio_task_iface_handle_progress(
|
||||
if (itask != NULL && itask->func_handle_progress != NULL)
|
||||
itask->func_handle_progress(itask->cookie, value, max_value);
|
||||
}
|
||||
|
||||
#endif /* GMIO_INTERNAL_HELPER_TASK_IFACE_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_ITOA_H
|
||||
#define GMIO_INTERNAL_ITOA_H
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
|
||||
@ -72,5 +71,3 @@ char* gmio_i64toa(int64_t value, char* str)
|
||||
return i64toa_branchlut(value, str);
|
||||
}
|
||||
#endif /* GMIO_HAVE_INT64_TYPE */
|
||||
|
||||
#endif /* GMIO_INTERNAL_ITOA_H */
|
||||
|
@ -27,6 +27,8 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
|
||||
const char* gmio_lc_numeric();
|
||||
|
@ -27,10 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_MIN_MAX_H
|
||||
#define GMIO_INTERNAL_MIN_MAX_H
|
||||
#pragma once
|
||||
|
||||
#define GMIO_MIN(v1, v2) ((v1) < (v2) ? (v1) : (v2))
|
||||
#define GMIO_MAX(v1, v2) ((v1) > (v2) ? (v1) : (v2))
|
||||
|
||||
#endif /* GMIO_INTERNAL_MIN_MAX_H */
|
||||
|
@ -27,12 +27,10 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_NUMERIC_UTILS_H
|
||||
#define GMIO_INTERNAL_NUMERIC_UTILS_H
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
#include "convert.h"
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
/*! Does \p a and \p b compares equals by ULP (Units in the Last Place) ?
|
||||
@ -75,5 +73,3 @@ int gmio_float32_sign(float v)
|
||||
{
|
||||
return gmio_int32_sign(gmio_convert_int32(v));
|
||||
}
|
||||
|
||||
#endif /* GMIO_INTERNAL_NUMERIC_UTILS_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_OSTRINGSTREAM_H
|
||||
#define GMIO_INTERNAL_OSTRINGSTREAM_H
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
#include "../stream.h"
|
||||
@ -176,5 +175,3 @@ void gmio_ostringstream_write_xmlcdata_close(struct gmio_ostringstream *sstream)
|
||||
{
|
||||
gmio_ostringstream_write_chararray(sstream, "]]>");
|
||||
}
|
||||
|
||||
#endif /* GMIO_INTERNAL_OSTRINGSTREAM_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_SAFE_CAST_H
|
||||
#define GMIO_INTERNAL_SAFE_CAST_H
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
#include "../stream.h"
|
||||
@ -61,5 +60,3 @@ GMIO_INLINE size_t gmio_streamsize_to_size(gmio_streamsize_t val)
|
||||
return (size_t)val;
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif /* GMIO_INTERNAL_SAFE_CAST_H */
|
||||
|
@ -27,11 +27,9 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_STRING_H
|
||||
#define GMIO_INTERNAL_STRING_H
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
/*! Stores a mutable string of chars.
|
||||
@ -109,5 +107,3 @@ char* gmio_cstr_copy(
|
||||
}
|
||||
return dst + copy_len;
|
||||
}
|
||||
|
||||
#endif /* GMIO_INTERNAL_STRING_H */
|
||||
|
@ -27,11 +27,9 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_STRING_ASCII_UTILS_H
|
||||
#define GMIO_INTERNAL_STRING_ASCII_UTILS_H
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
/*! Returns non-zero if \p c is a space, zero otherwise */
|
||||
@ -207,5 +205,3 @@ bool gmio_ascii_istarts_with(const char* str, const char* begin)
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif /* GMIO_INTERNAL_STRING_ASCII_UTILS_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_STRINGSTREAM_H
|
||||
#define GMIO_INTERNAL_STRINGSTREAM_H
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
#include "../stream.h"
|
||||
@ -254,5 +253,3 @@ float gmio_stringstream_parse_float32(struct gmio_stringstream* sstream)
|
||||
return gmio_str2float_googledoubleconversion(num, strnum.len);
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif /* GMIO_INTERNAL_STRINGSTREAM_H */
|
||||
|
@ -6,8 +6,7 @@
|
||||
|
||||
/* Adapted to ISO-C90 */
|
||||
|
||||
#ifndef GMIO_INTERNAL_STRINGSTREAM_FAST_ATOF_H
|
||||
#define GMIO_INTERNAL_STRINGSTREAM_FAST_ATOF_H
|
||||
#pragma once
|
||||
|
||||
#include "fast_atof.h"
|
||||
#include "c99_math_compat.h"
|
||||
@ -110,5 +109,3 @@ GMIO_INLINE float gmio_stringstream_fast_atof(struct gmio_stringstream* sstream)
|
||||
}
|
||||
return negative ? -value : value;
|
||||
}
|
||||
|
||||
#endif /* GMIO_INTERNAL_STRINGSTREAM_FAST_ATOF_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_VECGEOM_UTILS_H
|
||||
#define GMIO_INTERNAL_VECGEOM_UTILS_H
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
|
||||
@ -120,5 +119,3 @@ void gmio_vec3d_normalize(struct gmio_vec3d* v)
|
||||
v->z /= d;
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* GMIO_INTERNAL_VECGEOM_UTILS_H */
|
||||
|
@ -27,11 +27,9 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_ZIP_UTILS_H
|
||||
#define GMIO_INTERNAL_ZIP_UTILS_H
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
|
||||
#include "../stream.h"
|
||||
#include <time.h>
|
||||
|
||||
@ -351,5 +349,3 @@ bool gmio_zip_write_single_file(
|
||||
struct gmio_stream* stream,
|
||||
const struct gmio_zip_file_entry* file_entry,
|
||||
int* ptr_error);
|
||||
|
||||
#endif /* GMIO_INTERNAL_ZIP_UTILS_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_ZLIB_UTILS_H
|
||||
#define GMIO_INTERNAL_ZLIB_UTILS_H
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
#include "../zlib_compress.h"
|
||||
@ -63,5 +62,3 @@ uint32_t gmio_zlib_crc32_initial();
|
||||
/*! Updates a running CRC-32 with the bytes from \p buff */
|
||||
uint32_t gmio_zlib_crc32_update(
|
||||
uint32_t crc, const uint8_t* buff, size_t buff_len);
|
||||
|
||||
#endif /* GMIO_INTERNAL_ZLIB_UTILS_H */
|
||||
|
@ -34,11 +34,9 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_MEMBLOCK_H
|
||||
#define GMIO_MEMBLOCK_H
|
||||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
/*! Basic memory block
|
||||
@ -130,5 +128,4 @@ GMIO_API struct gmio_memblock gmio_memblock_default();
|
||||
|
||||
GMIO_C_LINKAGE_END
|
||||
|
||||
#endif /* GMIO_MEMBLOCK_H */
|
||||
/*! @} */
|
||||
|
@ -34,8 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_STREAM_H
|
||||
#define GMIO_STREAM_H
|
||||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
#include "memblock.h"
|
||||
@ -160,5 +159,4 @@ GMIO_API struct gmio_stream gmio_stream_stdio(FILE* file);
|
||||
|
||||
GMIO_C_LINKAGE_END
|
||||
|
||||
#endif /* GMIO_STREAM_H */
|
||||
/*! @} */
|
||||
|
@ -34,8 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_STREAMPOS_H
|
||||
#define GMIO_STREAMPOS_H
|
||||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
|
||||
@ -58,5 +57,4 @@ struct gmio_streampos
|
||||
uint8_t cookie[GMIO_STREAMPOS_COOKIE_SIZE];
|
||||
};
|
||||
|
||||
#endif /* GMIO_STREAMPOS_H */
|
||||
/*! @} */
|
||||
|
@ -34,8 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_TASK_IFACE_H
|
||||
#define GMIO_TASK_IFACE_H
|
||||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
|
||||
@ -65,5 +64,4 @@ struct gmio_task_iface
|
||||
void* cookie, intmax_t value, intmax_t max_value);
|
||||
};
|
||||
|
||||
#endif /* GMIO_TASK_IFACE_H */
|
||||
/*! @} */
|
||||
|
@ -34,10 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_TEXT_FORMAT_H
|
||||
#define GMIO_TEXT_FORMAT_H
|
||||
|
||||
#include "global.h"
|
||||
#pragma once
|
||||
|
||||
/*! Various formats to textually represent a float(single/double precision) */
|
||||
enum gmio_float_text_format
|
||||
@ -56,5 +53,4 @@ enum gmio_float_text_format
|
||||
GMIO_FLOAT_TEXT_FORMAT_SHORTEST_UPPERCASE
|
||||
};
|
||||
|
||||
#endif /* GMIO_TEXT_FORMAT_H */
|
||||
/*! @} */
|
||||
|
@ -34,8 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_CORE_VECGEOM_H
|
||||
#define GMIO_CORE_VECGEOM_H
|
||||
#pragma once
|
||||
|
||||
/*! Vector of three float coords */
|
||||
struct gmio_vec3f
|
||||
@ -53,5 +52,4 @@ struct gmio_vec3d
|
||||
double z;
|
||||
};
|
||||
|
||||
#endif /* GMIO_CORE_VECGEOM_H */
|
||||
/*! @} */
|
||||
|
@ -29,13 +29,11 @@
|
||||
|
||||
/* Generated by CMake */
|
||||
|
||||
#ifndef GMIO_VERSION_H_CMAKE
|
||||
#define GMIO_VERSION_H_CMAKE
|
||||
#pragma once
|
||||
|
||||
# define GMIO_VERSION_MAJOR @GMIO_VERSION_MAJOR@
|
||||
# define GMIO_VERSION_MINOR @GMIO_VERSION_MINOR@
|
||||
# define GMIO_VERSION_PATCH @GMIO_VERSION_PATCH@
|
||||
# define GMIO_VERSION_STR "@GMIO_VERSION@"
|
||||
# define GMIO_VERSION 0x0@GMIO_VERSION_MAJOR@0@GMIO_VERSION_MINOR@0@GMIO_VERSION_PATCH@
|
||||
#define GMIO_VERSION_MAJOR @GMIO_VERSION_MAJOR@
|
||||
#define GMIO_VERSION_MINOR @GMIO_VERSION_MINOR@
|
||||
#define GMIO_VERSION_PATCH @GMIO_VERSION_PATCH@
|
||||
#define GMIO_VERSION_STR "@GMIO_VERSION@"
|
||||
#define GMIO_VERSION 0x0@GMIO_VERSION_MAJOR@0@GMIO_VERSION_MINOR@0@GMIO_VERSION_PATCH@
|
||||
|
||||
#endif /* GMIO_VERSION_H_CMAKE */
|
||||
|
@ -34,8 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_ZLIB_COMPRESS_H
|
||||
#define GMIO_ZLIB_COMPRESS_H
|
||||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
|
||||
@ -97,5 +96,4 @@ struct gmio_zlib_compress_options
|
||||
void* opaque;
|
||||
};
|
||||
|
||||
#endif /* GMIO_ZLIB_COMPRESS_H */
|
||||
/*! @} */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_HELPER_STL_MESH_CREATOR_H
|
||||
#define GMIO_INTERNAL_HELPER_STL_MESH_CREATOR_H
|
||||
#pragma once
|
||||
|
||||
#include "../stl_mesh_creator.h"
|
||||
|
||||
@ -61,5 +60,3 @@ GMIO_INLINE void gmio_stl_mesh_creator_end_solid(
|
||||
if (creator != NULL && creator->func_end_solid != NULL)
|
||||
creator->func_end_solid(creator->cookie);
|
||||
}
|
||||
|
||||
#endif /* GMIO_INTERNAL_HELPER_STL_MESH_CREATOR_H */
|
||||
|
@ -29,8 +29,7 @@
|
||||
|
||||
/* TODO : documentation */
|
||||
|
||||
#ifndef GMIO_INTERNAL_STL_ERROR_CHECK_H
|
||||
#define GMIO_INTERNAL_STL_ERROR_CHECK_H
|
||||
#pragma once
|
||||
|
||||
#include "../../gmio_core/global.h"
|
||||
#include "../../gmio_core/endian.h"
|
||||
@ -40,5 +39,3 @@ struct gmio_stl_mesh;
|
||||
bool gmio_stl_check_mesh(int* error, const struct gmio_stl_mesh* mesh);
|
||||
bool gmio_stla_check_float32_precision(int* error, uint8_t prec);
|
||||
bool gmio_stlb_check_byteorder(int* error, enum gmio_endianness byte_order);
|
||||
|
||||
#endif /* GMIO_INTERNAL_STL_ERROR_CHECK_H */
|
||||
|
@ -27,11 +27,9 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_STL_FUNPTR_TYPEDEFS_H
|
||||
#define GMIO_INTERNAL_STL_FUNPTR_TYPEDEFS_H
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include "../stl_mesh.h"
|
||||
#include "../stl_mesh_creator.h"
|
||||
|
||||
@ -50,5 +48,3 @@ typedef void (*gmio_stl_mesh_creator_func_binary_begin_solid_t)(
|
||||
typedef void (*gmio_stl_mesh_creator_func_add_triangle_t)(
|
||||
void*, uint32_t, const struct gmio_stl_triangle*);
|
||||
typedef void (*gmio_stl_mesh_creator_func_end_solid_t)(void*);
|
||||
|
||||
#endif /* GMIO_INTERNAL_STL_FUNPTR_TYPEDEFS_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_STLA_INFOS_PROBE_H
|
||||
#define GMIO_INTERNAL_STLA_INFOS_PROBE_H
|
||||
#pragma once
|
||||
|
||||
#include "../stl_infos.h"
|
||||
|
||||
@ -38,5 +37,3 @@ int gmio_stla_infos_probe(
|
||||
struct gmio_stream* stream,
|
||||
unsigned flags,
|
||||
const struct gmio_stl_infos_probe_options* opts);
|
||||
|
||||
#endif /* GMIO_INTERNAL_STLA_INFOS_PROBE_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_STLA_PARSING_H
|
||||
#define GMIO_INTERNAL_STLA_PARSING_H
|
||||
#pragma once
|
||||
|
||||
#include "../../gmio_core/global.h"
|
||||
#include "../../gmio_core/stream.h"
|
||||
@ -123,5 +122,3 @@ int gmio_stla_eat_next_token_inplace(
|
||||
*/
|
||||
int gmio_stla_eat_until_token(
|
||||
struct gmio_stla_parse_data* data, const enum gmio_stla_token* end_tokens);
|
||||
|
||||
#endif /* GMIO_INTERNAL_STLA_PARSING_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_STLA_WRITE_H
|
||||
#define GMIO_INTERNAL_STLA_WRITE_H
|
||||
#pragma once
|
||||
|
||||
#include "../../gmio_core/stream.h"
|
||||
#include "../stl_io_options.h"
|
||||
@ -44,5 +43,3 @@ int gmio_stla_write(
|
||||
struct gmio_stream* stream,
|
||||
const struct gmio_stl_mesh* mesh,
|
||||
const struct gmio_stl_write_options* options);
|
||||
|
||||
#endif /* GMIO_INTERNAL_STLA_WRITE_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_STLB_BYTE_SWAP_H
|
||||
#define GMIO_INTERNAL_STLB_BYTE_SWAP_H
|
||||
#pragma once
|
||||
|
||||
#include "../../gmio_core/global.h"
|
||||
#include "../stl_triangle.h"
|
||||
@ -39,5 +38,3 @@
|
||||
* the "attribute byte count" member.
|
||||
*/
|
||||
void gmio_stl_triangle_bswap(struct gmio_stl_triangle* triangle);
|
||||
|
||||
#endif /* GMIO_INTERNAL_STLB_BYTE_SWAP_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_STLB_INFOS_PROBE_H
|
||||
#define GMIO_INTERNAL_STLB_INFOS_PROBE_H
|
||||
#pragma once
|
||||
|
||||
#include "../stl_infos.h"
|
||||
#include "../../gmio_core/endian.h"
|
||||
@ -43,5 +42,3 @@ int gmio_stlb_infos_probe(
|
||||
/*! Returns the size(in bytes) of the whole STL binary data given some facet
|
||||
* count */
|
||||
gmio_streamsize_t gmio_stlb_infos_size(uint32_t facet_count);
|
||||
|
||||
#endif /* GMIO_INTERNAL_STLB_INFOS_PROBE_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_INTERNAL_STLB_WRITE_H
|
||||
#define GMIO_INTERNAL_STLB_WRITE_H
|
||||
#pragma once
|
||||
|
||||
#include "../../gmio_core/endian.h"
|
||||
#include "../../gmio_core/stream.h"
|
||||
@ -46,5 +45,3 @@ int gmio_stlb_write(
|
||||
struct gmio_stream* stream,
|
||||
const struct gmio_stl_mesh* mesh,
|
||||
const struct gmio_stl_write_options* opts);
|
||||
|
||||
#endif /* GMIO_INTERNAL_STLB_WRITE_H */
|
||||
|
@ -34,8 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_STL_CONSTANTS_H
|
||||
#define GMIO_STL_CONSTANTS_H
|
||||
#pragma once
|
||||
|
||||
#include "../gmio_core/global.h"
|
||||
|
||||
@ -58,5 +57,4 @@ enum gmio_stl_constants
|
||||
GMIO_STLB_MIN_CONTENTS_SIZE = 284
|
||||
};
|
||||
|
||||
#endif /* GMIO_STL_CONSTANTS_H */
|
||||
/*! @} */
|
||||
|
@ -34,8 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_STL_ERROR_H
|
||||
#define GMIO_STL_ERROR_H
|
||||
#pragma once
|
||||
|
||||
/*! \c GMIO_STL_ERROR_TAG
|
||||
* Byte-mask to tag(identify) STL-specific error codes */
|
||||
@ -72,5 +71,4 @@ enum gmio_stl_error
|
||||
GMIO_STL_ERROR_FACET_COUNT = GMIO_STL_ERROR_TAG + 0x1002
|
||||
};
|
||||
|
||||
#endif /* GMIO_STL_ERROR_H */
|
||||
/*! @} */
|
||||
|
@ -34,8 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_STL_FORMAT_H
|
||||
#define GMIO_STL_FORMAT_H
|
||||
#pragma once
|
||||
|
||||
#include "stl_global.h"
|
||||
#include "../gmio_core/stream.h"
|
||||
@ -82,5 +81,4 @@ GMIO_API enum gmio_stl_format gmio_stl_format_probe_file(const char* filepath);
|
||||
|
||||
GMIO_C_LINKAGE_END
|
||||
|
||||
#endif /* GMIO_STL_FORMAT_H */
|
||||
/*! @} */
|
||||
|
@ -105,10 +105,8 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_STL_GLOBAL_H
|
||||
#define GMIO_STL_GLOBAL_H
|
||||
#pragma once
|
||||
|
||||
#include "../gmio_core/global.h"
|
||||
|
||||
#endif /* GMIO_STL_GLOBAL_H */
|
||||
/*! @} */
|
||||
|
@ -34,8 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_STL_INFOS_H
|
||||
#define GMIO_STL_INFOS_H
|
||||
#pragma once
|
||||
|
||||
#include "stl_global.h"
|
||||
#include "stl_format.h"
|
||||
@ -168,5 +167,4 @@ GMIO_API gmio_streamsize_t gmio_stla_infos_probe_streamsize(
|
||||
|
||||
GMIO_C_LINKAGE_END
|
||||
|
||||
#endif /* GMIO_STL_INFOS_H */
|
||||
/*! @} */
|
||||
|
@ -34,8 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_STL_IO_H
|
||||
#define GMIO_STL_IO_H
|
||||
#pragma once
|
||||
|
||||
#include "stl_global.h"
|
||||
|
||||
@ -184,5 +183,4 @@ GMIO_API int gmio_stlb_header_write(
|
||||
|
||||
GMIO_C_LINKAGE_END
|
||||
|
||||
#endif /* GMIO_STL_IO_H */
|
||||
/*! @} */
|
||||
|
@ -34,8 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_STL_IO_OPTIONS_H
|
||||
#define GMIO_STL_IO_OPTIONS_H
|
||||
#pragma once
|
||||
|
||||
#include "stl_global.h"
|
||||
#include "stlb_header.h"
|
||||
@ -160,5 +159,4 @@ struct gmio_stl_write_options
|
||||
struct gmio_stlb_header stlb_header;
|
||||
};
|
||||
|
||||
#endif /* GMIO_STL_IO_OPTIONS_H */
|
||||
/*! @} */
|
||||
|
@ -34,8 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_STL_MESH_H
|
||||
#define GMIO_STL_MESH_H
|
||||
#pragma once
|
||||
|
||||
#include "stl_global.h"
|
||||
#include "stl_triangle.h"
|
||||
@ -58,5 +57,4 @@ struct gmio_stl_mesh
|
||||
struct gmio_stl_triangle* triangle);
|
||||
};
|
||||
|
||||
#endif /* GMIO_STL_MESH_H */
|
||||
/*! @} */
|
||||
|
@ -34,8 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_STL_MESH_CREATOR_H
|
||||
#define GMIO_STL_MESH_CREATOR_H
|
||||
#pragma once
|
||||
|
||||
#include "stl_global.h"
|
||||
#include "stl_format.h"
|
||||
@ -115,5 +114,4 @@ struct gmio_stl_mesh_creator
|
||||
void (*func_end_solid)(void* cookie);
|
||||
};
|
||||
|
||||
#endif /* GMIO_STL_MESH_CREATOR_H */
|
||||
/*! @} */
|
||||
|
@ -34,8 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_STL_TRIANGLE_H
|
||||
#define GMIO_STL_TRIANGLE_H
|
||||
#pragma once
|
||||
|
||||
#include "stl_global.h"
|
||||
#include "../gmio_core/vecgeom.h"
|
||||
@ -57,5 +56,4 @@ GMIO_API void gmio_stl_triangle_compute_normal(struct gmio_stl_triangle* tri);
|
||||
|
||||
GMIO_C_LINKAGE_END
|
||||
|
||||
#endif /* GMIO_STL_TRIANGLE_H */
|
||||
/*! @} */
|
||||
|
@ -34,8 +34,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_STLB_HEADER_H
|
||||
#define GMIO_STLB_HEADER_H
|
||||
#pragma once
|
||||
|
||||
#include "stl_global.h"
|
||||
#include "stl_constants.h"
|
||||
@ -71,5 +70,4 @@ GMIO_API void gmio_stlb_header_to_printable_str(
|
||||
|
||||
GMIO_C_LINKAGE_END
|
||||
|
||||
#endif /* GMIO_STLB_HEADER_H */
|
||||
/*! @} */
|
||||
|
@ -47,8 +47,7 @@
|
||||
# error C++ compiler required
|
||||
#endif
|
||||
|
||||
#ifndef GMIO_SUPPORT_STL_OCC_BREP_H
|
||||
#define GMIO_SUPPORT_STL_OCC_BREP_H
|
||||
#pragma once
|
||||
|
||||
#include "support_global.h"
|
||||
#include "../gmio_stl/stl_mesh.h"
|
||||
@ -100,5 +99,4 @@ private:
|
||||
const TopoDS_Shape* m_shape;
|
||||
};
|
||||
|
||||
#endif /* GMIO_SUPPORT_STL_OCC_BREP_H */
|
||||
/*! @} */
|
||||
|
@ -47,8 +47,7 @@
|
||||
# error C++ compiler required
|
||||
#endif
|
||||
|
||||
#ifndef GMIO_SUPPORT_STL_OCC_MESH_H
|
||||
#define GMIO_SUPPORT_STL_OCC_MESH_H
|
||||
#pragma once
|
||||
|
||||
#include "support_global.h"
|
||||
#include "../gmio_stl/stl_mesh.h"
|
||||
@ -142,5 +141,4 @@ private:
|
||||
BRepBuilderAPI_VertexInspector m_inspector;
|
||||
};
|
||||
|
||||
#endif /* GMIO_SUPPORT_STL_OCC_MESH_H */
|
||||
/*! @} */
|
||||
|
@ -47,8 +47,7 @@
|
||||
# error C++ compiler required
|
||||
#endif
|
||||
|
||||
#ifndef GMIO_SUPPORT_STL_OCC_MESHVS_H
|
||||
#define GMIO_SUPPORT_STL_OCC_MESHVS_H
|
||||
#pragma once
|
||||
|
||||
#include "support_global.h"
|
||||
#include "../gmio_stl/stl_mesh.h"
|
||||
@ -91,5 +90,4 @@ private:
|
||||
mutable TColStd_Array1OfReal m_element_coords;
|
||||
};
|
||||
|
||||
#endif /* GMIO_SUPPORT_STL_OCC_MESHVS_H */
|
||||
/*! @} */
|
||||
|
@ -34,11 +34,9 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef GMIO_SUPPORT_STL_OCC_UTILS_H
|
||||
#define GMIO_SUPPORT_STL_OCC_UTILS_H
|
||||
#pragma once
|
||||
|
||||
#include <gmio_support/support_global.h>
|
||||
|
||||
#include <gmio_core/vecgeom.h>
|
||||
#include <gp_XYZ.hxx>
|
||||
|
||||
@ -56,5 +54,4 @@ GMIO_INLINE void gmio_stl_occ_copy_xyz(
|
||||
gmio_stl_occ_copy_xyz(vec, coords.X(), coords.Y(), coords.Z());
|
||||
}
|
||||
|
||||
#endif /* GMIO_SUPPORT_STL_OCC_UTILS_H */
|
||||
/*! @} */
|
||||
|
@ -38,12 +38,10 @@
|
||||
# error C++ compiler required
|
||||
#endif
|
||||
|
||||
#ifndef GMIO_SUPPORT_STREAM_CPP_H
|
||||
#define GMIO_SUPPORT_STREAM_CPP_H
|
||||
#pragma once
|
||||
|
||||
#include "support_global.h"
|
||||
#include "../gmio_core/stream.h"
|
||||
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
|
||||
@ -205,5 +203,4 @@ gmio_stream gmio_ostream_cpp(std::basic_ostream<CHAR, TRAITS>* s)
|
||||
|
||||
#endif // !DOXYGEN
|
||||
|
||||
#endif /* GMIO_SUPPORT_STREAM_CPP_H */
|
||||
/*! @} */
|
||||
|
@ -38,8 +38,7 @@
|
||||
# error C++ compiler required
|
||||
#endif
|
||||
|
||||
#ifndef GMIO_SUPPORT_STREAM_QT_H
|
||||
#define GMIO_SUPPORT_STREAM_QT_H
|
||||
#pragma once
|
||||
|
||||
#include "support_global.h"
|
||||
#include "../gmio_core/stream.h"
|
||||
@ -58,5 +57,4 @@ struct gmio_stream gmio_stream_qiodevice(
|
||||
#endif /* !DOXYGEN */
|
||||
);
|
||||
|
||||
#endif /* GMIO_SUPPORT_STREAM_QT_H */
|
||||
/*! @} */
|
||||
|
@ -112,10 +112,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef GMIO_SUPPORT_GLOBAL_H
|
||||
#define GMIO_SUPPORT_GLOBAL_H
|
||||
#pragma once
|
||||
|
||||
#include "../gmio_core/global.h"
|
||||
|
||||
#endif /* GMIO_SUPPORT_GLOBAL_H */
|
||||
/*! @} */
|
||||
|
@ -27,12 +27,10 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_TESTS_CORE_UTILS_H
|
||||
#define GMIO_TESTS_CORE_UTILS_H
|
||||
#pragma once
|
||||
|
||||
#include "../src/gmio_core/global.h"
|
||||
#include "../src/gmio_core/vecgeom.h"
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
/*! Trim whitespaces in string \p str from end */
|
||||
@ -43,5 +41,3 @@ bool gmio_vec3f_equal(
|
||||
const struct gmio_vec3f* lhs,
|
||||
const struct gmio_vec3f* rhs,
|
||||
uint32_t max_ulp_diff);
|
||||
|
||||
#endif /* GMIO_TESTS_CORE_UTILS_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_TESTS_STL_TESTCASES_H
|
||||
#define GMIO_TESTS_STL_TESTCASES_H
|
||||
#pragma once
|
||||
|
||||
#include "../src/gmio_core/error.h"
|
||||
#include "../src/gmio_core/stream.h"
|
||||
@ -54,5 +53,3 @@ extern const char filepath_stlb_header_nofacets[];
|
||||
extern const char filepath_stlb_empty[];
|
||||
extern const char filepath_stla_4meshs[];
|
||||
extern const char filepath_stlb_4meshs[];
|
||||
|
||||
#endif /* GMIO_TESTS_STL_TESTCASES_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_TESTS_STL_UTILS_H
|
||||
#define GMIO_TESTS_STL_UTILS_H
|
||||
#pragma once
|
||||
|
||||
#include "../src/gmio_core/global.h"
|
||||
#include "../src/gmio_stl/stl_mesh.h"
|
||||
@ -86,5 +85,3 @@ struct gmio_stl_data
|
||||
|
||||
struct gmio_stl_mesh_creator gmio_stl_data_mesh_creator(struct gmio_stl_data* data);
|
||||
struct gmio_stl_mesh gmio_stl_data_mesh(const struct gmio_stl_data* data);
|
||||
|
||||
#endif /* GMIO_TESTS_STL_UTILS_H */
|
||||
|
@ -27,8 +27,7 @@
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GMIO_STREAM_BUFFER_H
|
||||
#define GMIO_STREAM_BUFFER_H
|
||||
#pragma once
|
||||
|
||||
#include "../src/gmio_core/stream.h"
|
||||
|
||||
@ -53,5 +52,3 @@ struct gmio_rw_buffer gmio_rw_buffer(void* ptr, size_t len, size_t pos);
|
||||
|
||||
struct gmio_stream gmio_istream_buffer(struct gmio_ro_buffer* buff);
|
||||
struct gmio_stream gmio_stream_buffer(struct gmio_rw_buffer* buff);
|
||||
|
||||
#endif /* GMIO_STREAM_BUFFER_H */
|
||||
|
Loading…
Reference in New Issue
Block a user