#define -> static const int. Also got rid of some big static buffers.

This commit is contained in:
Mark Whitley
2001-01-23 22:30:04 +00:00
parent 2b8d07c590
commit 59ab025363
74 changed files with 670 additions and 620 deletions

View File

@@ -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;

View File

@@ -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 */

View File

@@ -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)