fwrite_le.*: make use of const
for ptr
This commit is contained in:
parent
2ddc87b226
commit
bbb7b2a476
@ -18,7 +18,11 @@
|
|||||||
#define ifeq_b32_ret(lhs, rhs, value) if (!memcmp(lhs, rhs, 4)) return value;
|
#define ifeq_b32_ret(lhs, rhs, value) if (!memcmp(lhs, rhs, 4)) return value;
|
||||||
|
|
||||||
int detect_endianness(void);
|
int detect_endianness(void);
|
||||||
size_t fwrite_le(void* ptr, size_t size, size_t count, FILE* stream);
|
size_t fwrite_le(
|
||||||
|
#if FWRITE_LE_NO_MODIFICATION
|
||||||
|
const
|
||||||
|
#endif
|
||||||
|
void* ptr, size_t size, size_t count, FILE* stream);
|
||||||
void reorder_le_be(
|
void reorder_le_be(
|
||||||
#if FWRITE_LE_NO_MODIFICATION
|
#if FWRITE_LE_NO_MODIFICATION
|
||||||
uint8_t* dest, uint8_t* src,
|
uint8_t* dest, uint8_t* src,
|
||||||
|
@ -37,7 +37,11 @@ void reorder_le_be(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t fwrite_le(void* ptr, size_t size, size_t count, FILE* stream) {
|
size_t fwrite_le(
|
||||||
|
#if FWRITE_LE_NO_MODIFICATION
|
||||||
|
const
|
||||||
|
#endif
|
||||||
|
void* ptr, size_t size, size_t count, FILE* stream) {
|
||||||
/*
|
/*
|
||||||
* warning: this function modifies `void* ptr` by default!
|
* warning: this function modifies `void* ptr` by default!
|
||||||
* (if FWRITE_LE_NO_MODIFICATION in the header is 0)
|
* (if FWRITE_LE_NO_MODIFICATION in the header is 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user