libstl: fix minor code style issues
This commit is contained in:
parent
70e91ea437
commit
e2bdc6b891
@ -11,9 +11,9 @@
|
||||
struct foug_stream_fwd_iterator
|
||||
{
|
||||
foug_stream_t* stream;
|
||||
char* buffer;
|
||||
uint32_t buffer_offset;
|
||||
uint32_t buffer_size;
|
||||
char* buffer;
|
||||
uint32_t buffer_offset;
|
||||
uint32_t buffer_size;
|
||||
|
||||
void* cookie;
|
||||
void (*stream_read_hook)(struct foug_stream_fwd_iterator* it);
|
||||
@ -24,7 +24,7 @@ typedef struct foug_stream_fwd_iterator
|
||||
/* foug_string_buffer */
|
||||
struct foug_string_buffer
|
||||
{
|
||||
char* data;
|
||||
char* data;
|
||||
size_t max_len;
|
||||
size_t len;
|
||||
};
|
||||
@ -35,9 +35,9 @@ typedef struct foug_string_buffer
|
||||
struct foug_stream_fwd_iterator_stla_cookie
|
||||
{
|
||||
foug_task_control_t* task_control;
|
||||
size_t stream_data_size;
|
||||
size_t stream_offset;
|
||||
foug_bool_t is_stop_requested;
|
||||
size_t stream_data_size;
|
||||
size_t stream_offset;
|
||||
foug_bool_t is_stop_requested;
|
||||
};
|
||||
typedef struct foug_stream_fwd_iterator_stla_cookie
|
||||
foug_stream_fwd_iterator_stla_cookie_t;
|
||||
@ -64,7 +64,7 @@ typedef enum foug_stla_token foug_stla_token_t;
|
||||
struct foug_stla_parse_data
|
||||
{
|
||||
foug_stla_token_t token;
|
||||
foug_bool_t error;
|
||||
foug_bool_t error;
|
||||
foug_stream_fwd_iterator_t stream_iterator;
|
||||
foug_stream_fwd_iterator_stla_cookie_t stream_iterator_cookie;
|
||||
foug_string_buffer_t string_buffer;
|
||||
@ -479,7 +479,7 @@ int foug_stla_read(foug_stla_geom_input_t* geom,
|
||||
parse_data.stream_iterator_cookie.stream_offset = 0;
|
||||
parse_data.stream_iterator_cookie.is_stop_requested = 0;
|
||||
|
||||
parse_data.stream_iterator.stream = &(trsf->stream);
|
||||
parse_data.stream_iterator.stream = &trsf->stream;
|
||||
parse_data.stream_iterator.buffer = trsf->buffer;
|
||||
parse_data.stream_iterator.buffer_offset = 0;
|
||||
parse_data.stream_iterator.buffer_size = trsf->buffer_size;
|
||||
|
@ -19,8 +19,8 @@ struct foug_stla_geom_input
|
||||
/* foug_stla_read() */
|
||||
|
||||
FOUG_DATAX_LIBSTL_EXPORT int foug_stla_read(foug_stla_geom_input_t* geom,
|
||||
foug_transfer_t* trsf,
|
||||
size_t data_size_hint);
|
||||
foug_transfer_t* trsf,
|
||||
size_t data_size_hint);
|
||||
|
||||
/* Specific error codes returned by foug_stla_read() */
|
||||
#define FOUG_STLA_READ_PARSE_ERROR 1
|
||||
|
@ -9,7 +9,7 @@
|
||||
typedef struct foug_stla_geom_output foug_stla_geom_output_t;
|
||||
struct foug_stla_geom_output
|
||||
{
|
||||
void* cookie;
|
||||
void* cookie;
|
||||
size_t (*get_solid_count_func) (foug_stla_geom_output_t*); /* Optional */
|
||||
void (*get_solid_name) (foug_stla_geom_output_t*, size_t, char*); /* Optional */
|
||||
size_t (*get_triangle_count_func)(foug_stla_geom_output_t*, size_t);
|
||||
@ -18,8 +18,8 @@ struct foug_stla_geom_output
|
||||
|
||||
/* foug_stla_write() */
|
||||
FOUG_DATAX_LIBSTL_EXPORT int foug_stla_write(foug_stla_geom_output_t* geom,
|
||||
foug_transfer_t* trsf,
|
||||
uint8_t real32_precision);
|
||||
foug_transfer_t* trsf,
|
||||
uint8_t real32_precision);
|
||||
|
||||
/* Specific error codes returned by foug_stla_write() */
|
||||
#define FOUG_STLA_WRITE_NULL_GET_TRIANGLE_COUNT_FUNC 1
|
||||
|
@ -11,16 +11,16 @@ typedef struct foug_stlb_geom_input foug_stlb_geom_input_t;
|
||||
struct foug_stlb_geom_input
|
||||
{
|
||||
void* cookie;
|
||||
void (*process_header_func) (foug_stlb_geom_input_t*, const uint8_t*);
|
||||
void (*begin_triangles_func) (foug_stlb_geom_input_t*, uint32_t);
|
||||
void (*process_next_triangle_func)(foug_stlb_geom_input_t*, const foug_stlb_triangle_t*);
|
||||
void (*end_triangles_func) (foug_stlb_geom_input_t*);
|
||||
void (*process_header_func) (foug_stlb_geom_input_t*, const uint8_t*);
|
||||
void (*begin_triangles_func) (foug_stlb_geom_input_t*, uint32_t);
|
||||
void (*process_next_triangle_func)(foug_stlb_geom_input_t*, const foug_stlb_triangle_t*);
|
||||
void (*end_triangles_func) (foug_stlb_geom_input_t*);
|
||||
};
|
||||
|
||||
/* foug_stlb_read() */
|
||||
FOUG_DATAX_LIBSTL_EXPORT int foug_stlb_read(foug_stlb_geom_input_t* geom,
|
||||
foug_transfer_t* trsf,
|
||||
foug_endianness_t byte_order);
|
||||
foug_transfer_t* trsf,
|
||||
foug_endianness_t byte_order);
|
||||
|
||||
/* Specific error codes returned by foug_stlb_read() */
|
||||
#define FOUG_STLB_READ_HEADER_WRONG_SIZE_ERROR 1
|
||||
|
@ -10,7 +10,7 @@
|
||||
typedef struct foug_stlb_geom_output foug_stlb_geom_output_t;
|
||||
struct foug_stlb_geom_output
|
||||
{
|
||||
void* cookie;
|
||||
void* cookie;
|
||||
void (*get_header_func) (const foug_stlb_geom_output_t*, uint8_t*); /* Optional */
|
||||
uint32_t (*get_triangle_count_func)(const foug_stlb_geom_output_t*);
|
||||
void (*get_triangle_func) (const foug_stlb_geom_output_t*, uint32_t, foug_stlb_triangle_t*);
|
||||
@ -18,8 +18,8 @@ struct foug_stlb_geom_output
|
||||
|
||||
/* foug_stlb_write() */
|
||||
FOUG_DATAX_LIBSTL_EXPORT int foug_stlb_write(const foug_stlb_geom_output_t* geom,
|
||||
foug_transfer_t* trsf,
|
||||
foug_endianness_t byte_order);
|
||||
foug_transfer_t* trsf,
|
||||
foug_endianness_t byte_order);
|
||||
|
||||
/* Specific error codes returned by foug_stlb_write() */
|
||||
#define FOUG_STLB_WRITE_NULL_GET_TRIANGLE_COUNT_FUNC 1
|
||||
|
Loading…
Reference in New Issue
Block a user