#define -> static const int. Also got rid of some big static buffers.
This commit is contained in:
@@ -30,8 +30,8 @@
|
||||
#include <ctype.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#define KILL 0
|
||||
#define KILLALL 1
|
||||
static const int KILL = 0;
|
||||
static const int KILLALL = 1;
|
||||
|
||||
struct signal_name {
|
||||
const char *name;
|
||||
|
@@ -40,7 +40,7 @@
|
||||
#define bb_need_help
|
||||
#include "messages.c"
|
||||
|
||||
#define TERMINAL_WIDTH 79 /* not 80 in case terminal has linefold bug */
|
||||
static const int TERMINAL_WIDTH = 79; /* not 80 in case terminal has linefold bug */
|
||||
|
||||
|
||||
|
||||
|
@@ -33,7 +33,7 @@
|
||||
#include <time.h>
|
||||
#include <errno.h>
|
||||
|
||||
#define FSHIFT 16 /* nr of bits of precision */
|
||||
static const int FSHIFT = 16; /* nr of bits of precision */
|
||||
#define FIXED_1 (1<<FSHIFT) /* 1.0 as fixed-point */
|
||||
#define LOAD_INT(x) ((x) >> FSHIFT)
|
||||
#define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100)
|
||||
|
Reference in New Issue
Block a user