mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-18 20:10:29 +01:00
WINGs: Moved declaration of extern variable to the global header
Having local extern declaration is dangerous because the compiler is not able to cross-check if the type of the variable was defined consistently.
This commit is contained in:
committed by
Carlos R. Mafra
parent
5c2a1ae1a1
commit
8a58c8b568
@@ -40,7 +40,9 @@ typedef struct _WINGsConfiguration {
|
||||
unsigned mouseWheelDown;
|
||||
} _WINGsConfiguration;
|
||||
|
||||
extern char *_WINGS_progname;
|
||||
extern _WINGsConfiguration WINGsConfiguration;
|
||||
extern struct W_Application WMApplication;
|
||||
|
||||
|
||||
/* ---[ drag*.c ]--------------------------------------------------------- */
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include <WUtil.h>
|
||||
#include <WINGsP.h>
|
||||
|
||||
extern char *_WINGS_progname;
|
||||
|
||||
void __wmessage(const char *func, const char *file, int line, int type, const char *msg, ...)
|
||||
{
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
|
||||
#include "GNUstep.h"
|
||||
|
||||
extern struct W_Application WMApplication;
|
||||
|
||||
void WMSetApplicationIconWindow(WMScreen * scr, Window window)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user