mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
Changed KILOBYTE, MEGABYTE, and GIGABYTE from #define to enum.
This commit is contained in:
parent
ae5612ca6e
commit
4cc8f31ffe
@ -235,9 +235,11 @@ extern int sysinfo (struct sysinfo* info);
|
||||
#ifdef BB_FEATURE_HUMAN_READABLE
|
||||
const char *make_human_readable_str(unsigned long val, unsigned long hr);
|
||||
#endif
|
||||
#define KILOBYTE 1024
|
||||
#define MEGABYTE (KILOBYTE*1024)
|
||||
#define GIGABYTE (MEGABYTE*1024)
|
||||
enum {
|
||||
KILOBYTE = 1024,
|
||||
MEGABYTE = (KILOBYTE*1024),
|
||||
GIGABYTE = (MEGABYTE*1024)
|
||||
};
|
||||
|
||||
#ifdef BB_FEATURE_BUFFERS_GO_ON_STACK
|
||||
#define RESERVE_BB_BUFFER(buffer,len) char buffer[len]
|
||||
|
@ -235,9 +235,11 @@ extern int sysinfo (struct sysinfo* info);
|
||||
#ifdef BB_FEATURE_HUMAN_READABLE
|
||||
const char *make_human_readable_str(unsigned long val, unsigned long hr);
|
||||
#endif
|
||||
#define KILOBYTE 1024
|
||||
#define MEGABYTE (KILOBYTE*1024)
|
||||
#define GIGABYTE (MEGABYTE*1024)
|
||||
enum {
|
||||
KILOBYTE = 1024,
|
||||
MEGABYTE = (KILOBYTE*1024),
|
||||
GIGABYTE = (MEGABYTE*1024)
|
||||
};
|
||||
|
||||
#ifdef BB_FEATURE_BUFFERS_GO_ON_STACK
|
||||
#define RESERVE_BB_BUFFER(buffer,len) char buffer[len]
|
||||
|
Loading…
Reference in New Issue
Block a user