Fix indentation issues

This commit is contained in:
Hugues Delorme 2015-03-30 16:43:26 +02:00
parent 31c5e6888d
commit 8c92dc2e76
5 changed files with 30 additions and 32 deletions

View File

@ -16,14 +16,11 @@ static void bench_occ_RWStl_ReadFile(const char* filepath)
static void bench_gmio_stl_read(const char* filepath)
{
gmio_buffer_t buffer = gmio_buffer_malloc(256 * 1024);
Handle_StlMesh_Mesh mesh = new StlMesh_Mesh;
gmio_stl_mesh_creator_t mesh_creator = gmio_stl_occmesh_creator(mesh);
int error = gmio_stl_read_file(filepath, &buffer, &mesh_creator);
if (error != GMIO_NO_ERROR)
printf("GeomIO error: 0x%X\n", error);
gmio_buffer_deallocate(&buffer);
}

View File

@ -35,7 +35,6 @@ struct gmio_buffer
/*! Optional pointer on function that deallocates the memory block \p ptr */
void (*deallocate_func)(void* ptr);
};
typedef struct gmio_buffer gmio_buffer_t;

View File

@ -18,10 +18,12 @@
#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);
/*! 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*);
#endif /* GMIO_MEMORY_H */