Declare file local variables static
(cherry picked from commit ad5b7fce74a3b7b0ed726620c81ea552c643cdad)
Этот коммит содержится в:
родитель
53e5080d9a
Коммит
84834ff370
@ -34,7 +34,7 @@
|
|||||||
static FILE *stream;
|
static FILE *stream;
|
||||||
|
|
||||||
/* Stack of device IDs, also used to keep track of the level of nesting */
|
/* Stack of device IDs, also used to keep track of the level of nesting */
|
||||||
struct stack {
|
static struct stack {
|
||||||
uint64_t *list;
|
uint64_t *list;
|
||||||
int size, top;
|
int size, top;
|
||||||
} stack;
|
} stack;
|
||||||
|
@ -59,7 +59,7 @@ int dir_import_active = 0;
|
|||||||
|
|
||||||
|
|
||||||
/* Use a struct for easy batch-allocation and deallocation of state data. */
|
/* Use a struct for easy batch-allocation and deallocation of state data. */
|
||||||
struct ctx {
|
static struct ctx {
|
||||||
FILE *stream;
|
FILE *stream;
|
||||||
|
|
||||||
int line;
|
int line;
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#include <fnmatch.h>
|
#include <fnmatch.h>
|
||||||
|
|
||||||
|
|
||||||
struct exclude {
|
static struct exclude {
|
||||||
char *pattern;
|
char *pattern;
|
||||||
struct exclude *next;
|
struct exclude *next;
|
||||||
} *excludes = NULL;
|
} *excludes = NULL;
|
||||||
|
@ -29,11 +29,11 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
int page, start;
|
static int page, start;
|
||||||
|
|
||||||
|
|
||||||
#define KEYS 19
|
#define KEYS 19
|
||||||
const char *keys[KEYS*2] = {
|
static const char *keys[KEYS*2] = {
|
||||||
/*|----key----| |----------------description----------------|*/
|
/*|----key----| |----------------description----------------|*/
|
||||||
"up, k", "Move cursor up",
|
"up, k", "Move cursor up",
|
||||||
"down, j", "Move cursor down",
|
"down, j", "Move cursor down",
|
||||||
|
@ -38,7 +38,7 @@ int uic_theme;
|
|||||||
int winrows, wincols;
|
int winrows, wincols;
|
||||||
int subwinr, subwinc;
|
int subwinr, subwinc;
|
||||||
int si;
|
int si;
|
||||||
char thou_sep;
|
static char thou_sep;
|
||||||
|
|
||||||
|
|
||||||
char *cropstr(const char *from, int s) {
|
char *cropstr(const char *from, int s) {
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user