all: Make file-scope variables internally linked where applicable (#57)
Narrows the scope of visible symbols to where they're actually used. Also makes it easier to see true globals in source files (ones used from multiple translation units)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include "interrupt.h"
|
||||
|
||||
/* Global of registered handlers. */
|
||||
struct {
|
||||
static struct {
|
||||
unsigned int id;
|
||||
void (*handler)(void);
|
||||
} g_registered_interrupts[MAX_REGISTERED_INTERRUPTS] = { {0, NULL}, {0, NULL}, {0, NULL}, {0, NULL} };
|
||||
|
||||
Reference in New Issue
Block a user