Major codebase cleanup and overhaul.
+ editor removes per-buffer fields. + switching from internal use of 'int' to 'size_t'. + deleting old code + double checking relevancy of comments. A lot has changed in 5 years, even more so in the past week. + fixing a few vestigal memory errors from the overhaul. + fixing search behavior
This commit is contained in:
13
core.c
13
core.c
@@ -35,19 +35,8 @@ strnstr(const char *s, const char *find, size_t slen)
|
||||
#endif
|
||||
|
||||
|
||||
char
|
||||
nibble_to_hex(char c)
|
||||
{
|
||||
c &= 0xf;
|
||||
if (c < 10) {
|
||||
return (char)('0' + c);
|
||||
}
|
||||
return (char)('A' + (c - 10));
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
swap_int(int *first, int *second)
|
||||
swap_size_t(size_t *first, size_t *second)
|
||||
{
|
||||
*first ^= *second;
|
||||
*second ^= *first;
|
||||
|
||||
Reference in New Issue
Block a user