mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-18 20:10:29 +01:00
WINGs: Place prototype of functions in WINGsP.h instead of local definition
It is a bad idea to declare the prototype of an external function in a file as it won't allow the compiler to cross-check it.
This commit is contained in:
committed by
Carlos R. Mafra
parent
367d1f938d
commit
5c2a1ae1a1
@@ -268,6 +268,11 @@ typedef struct W_Screen {
|
||||
#define W_DRAWABLE(scr) (scr)->rcontext->drawable
|
||||
|
||||
|
||||
/* ---[ configuration.c ]------------------------------------------------- */
|
||||
|
||||
void W_ReadConfigurations(void);
|
||||
|
||||
|
||||
/* ---[ drag*.c ]--------------------------------------------------------- */
|
||||
|
||||
typedef struct W_DragOperationItem {
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "WUtil.h"
|
||||
#include "WINGsP.h"
|
||||
|
||||
|
||||
typedef struct W_Notification {
|
||||
const char *name;
|
||||
@@ -13,7 +15,6 @@ typedef struct W_Notification {
|
||||
int refCount;
|
||||
} Notification;
|
||||
|
||||
extern void W_FlushASAPNotificationQueue();
|
||||
|
||||
const char *WMGetNotificationName(WMNotification * notification)
|
||||
{
|
||||
|
||||
@@ -37,8 +37,6 @@ char *WMUserDefaultsDidChangeNotification = "WMUserDefaultsDidChangeNotification
|
||||
|
||||
static void synchronizeUserDefaults(void *foo);
|
||||
|
||||
extern char *WMGetApplicationName();
|
||||
|
||||
#define DEFAULTS_DIR "/Defaults"
|
||||
#ifndef HAVE_INOTIFY
|
||||
/* Check defaults database for changes every this many milliseconds */
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "WINGsP.h"
|
||||
#include "wconfig.h"
|
||||
|
||||
extern void W_InitNotificationCenter(void);
|
||||
|
||||
struct W_Application WMApplication;
|
||||
|
||||
|
||||
@@ -298,8 +298,6 @@ static char STIPPLE_BITS[] = {
|
||||
0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55
|
||||
};
|
||||
|
||||
extern void W_ReadConfigurations(void);
|
||||
|
||||
static int userWidgetCount = 0;
|
||||
|
||||
/***** end data ******/
|
||||
|
||||
Reference in New Issue
Block a user