Renaming mem_* identifiers from 'camelCase' to 'underscore_naming'.

This commit is contained in:
Ruben Ayrapetyan
2014-07-23 12:21:07 +04:00
parent 2d4ed154ee
commit b3b4c74cbe
13 changed files with 307 additions and 307 deletions
+6 -6
View File
@@ -30,7 +30,7 @@
* TODO:
* Compact the struct
*/
typedef struct mem_PoolState_t {
typedef struct mem_pool_state_t {
uint8_t *pPoolStart; /**< first address of pool space */
size_t PoolSize; /**< pool space size */
@@ -42,12 +42,12 @@ typedef struct mem_PoolState_t {
size_t ChunksNumber; /**< number of chunks */
size_t FreeChunksNumber; /**< number of free chunks */
struct mem_PoolState_t *pNextPool; /**< pointer to the next pool with same chunk size */
} mem_PoolState_t;
struct mem_pool_state_t *pNextPool; /**< pointer to the next pool with same chunk size */
} mem_pool_state_t;
extern void mem_PoolInit(mem_PoolState_t *pPool, size_t chunkSize, uint8_t *poolStart, size_t poolSize);
extern uint8_t* mem_PoolAllocChunk(mem_PoolState_t *pPool);
extern void mem_PoolFreeChunk(mem_PoolState_t *pPool, uint8_t *pChunk);
extern void mem_pool_init(mem_pool_state_t *pPool, size_t chunkSize, uint8_t *poolStart, size_t poolSize);
extern uint8_t* mem_pool_alloc_chunk(mem_pool_state_t *pPool);
extern void mem_pool_free_chunk(mem_pool_state_t *pPool, uint8_t *pChunk);
#endif /* JERRY_MEM_POOL_H */