Fix indentation issues
This commit is contained in:
parent
31c5e6888d
commit
8c92dc2e76
@ -16,14 +16,11 @@ static void bench_occ_RWStl_ReadFile(const char* filepath)
|
|||||||
static void bench_gmio_stl_read(const char* filepath)
|
static void bench_gmio_stl_read(const char* filepath)
|
||||||
{
|
{
|
||||||
gmio_buffer_t buffer = gmio_buffer_malloc(256 * 1024);
|
gmio_buffer_t buffer = gmio_buffer_malloc(256 * 1024);
|
||||||
|
|
||||||
Handle_StlMesh_Mesh mesh = new StlMesh_Mesh;
|
Handle_StlMesh_Mesh mesh = new StlMesh_Mesh;
|
||||||
gmio_stl_mesh_creator_t mesh_creator = gmio_stl_occmesh_creator(mesh);
|
gmio_stl_mesh_creator_t mesh_creator = gmio_stl_occmesh_creator(mesh);
|
||||||
|
|
||||||
int error = gmio_stl_read_file(filepath, &buffer, &mesh_creator);
|
int error = gmio_stl_read_file(filepath, &buffer, &mesh_creator);
|
||||||
if (error != GMIO_NO_ERROR)
|
if (error != GMIO_NO_ERROR)
|
||||||
printf("GeomIO error: 0x%X\n", error);
|
printf("GeomIO error: 0x%X\n", error);
|
||||||
|
|
||||||
gmio_buffer_deallocate(&buffer);
|
gmio_buffer_deallocate(&buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,6 @@ struct gmio_buffer
|
|||||||
|
|
||||||
/*! Optional pointer on function that deallocates the memory block \p ptr */
|
/*! Optional pointer on function that deallocates the memory block \p ptr */
|
||||||
void (*deallocate_func)(void* ptr);
|
void (*deallocate_func)(void* ptr);
|
||||||
|
|
||||||
};
|
};
|
||||||
typedef struct gmio_buffer gmio_buffer_t;
|
typedef struct gmio_buffer gmio_buffer_t;
|
||||||
|
|
||||||
|
@ -18,10 +18,12 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
/*! Type alias for "pointer on function that allocates memory" (like standard malloc()) */
|
/*! Type alias for "pointer on function that allocates memory" (like standard
|
||||||
|
* malloc()) */
|
||||||
typedef void* (*gmio_malloc_func_t)(size_t);
|
typedef void* (*gmio_malloc_func_t)(size_t);
|
||||||
|
|
||||||
/*! Type alias for "pointer on function that frees memory" (like standard free()) */
|
/*! Type alias for "pointer on function that frees memory" (like standard
|
||||||
|
* free()) */
|
||||||
typedef void (*gmio_free_func_t)(void*);
|
typedef void (*gmio_free_func_t)(void*);
|
||||||
|
|
||||||
#endif /* GMIO_MEMORY_H */
|
#endif /* GMIO_MEMORY_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user