mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-06 09:31:16 -04:00
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:
parent
c94cfe4898
commit
1de6b336bb
8 changed files with 17 additions and 18 deletions
|
@ -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} };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue