mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 04:20:27 +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
|
#define W_DRAWABLE(scr) (scr)->rcontext->drawable
|
||||||
|
|
||||||
|
|
||||||
|
/* ---[ configuration.c ]------------------------------------------------- */
|
||||||
|
|
||||||
|
void W_ReadConfigurations(void);
|
||||||
|
|
||||||
|
|
||||||
/* ---[ drag*.c ]--------------------------------------------------------- */
|
/* ---[ drag*.c ]--------------------------------------------------------- */
|
||||||
|
|
||||||
typedef struct W_DragOperationItem {
|
typedef struct W_DragOperationItem {
|
||||||
|
|||||||
@@ -5,6 +5,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "WUtil.h"
|
#include "WUtil.h"
|
||||||
|
#include "WINGsP.h"
|
||||||
|
|
||||||
|
|
||||||
typedef struct W_Notification {
|
typedef struct W_Notification {
|
||||||
const char *name;
|
const char *name;
|
||||||
@@ -13,7 +15,6 @@ typedef struct W_Notification {
|
|||||||
int refCount;
|
int refCount;
|
||||||
} Notification;
|
} Notification;
|
||||||
|
|
||||||
extern void W_FlushASAPNotificationQueue();
|
|
||||||
|
|
||||||
const char *WMGetNotificationName(WMNotification * notification)
|
const char *WMGetNotificationName(WMNotification * notification)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -37,8 +37,6 @@ char *WMUserDefaultsDidChangeNotification = "WMUserDefaultsDidChangeNotification
|
|||||||
|
|
||||||
static void synchronizeUserDefaults(void *foo);
|
static void synchronizeUserDefaults(void *foo);
|
||||||
|
|
||||||
extern char *WMGetApplicationName();
|
|
||||||
|
|
||||||
#define DEFAULTS_DIR "/Defaults"
|
#define DEFAULTS_DIR "/Defaults"
|
||||||
#ifndef HAVE_INOTIFY
|
#ifndef HAVE_INOTIFY
|
||||||
/* Check defaults database for changes every this many milliseconds */
|
/* Check defaults database for changes every this many milliseconds */
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
#include "WINGsP.h"
|
#include "WINGsP.h"
|
||||||
#include "wconfig.h"
|
#include "wconfig.h"
|
||||||
|
|
||||||
extern void W_InitNotificationCenter(void);
|
|
||||||
|
|
||||||
struct W_Application WMApplication;
|
struct W_Application WMApplication;
|
||||||
|
|
||||||
|
|||||||
@@ -298,8 +298,6 @@ static char STIPPLE_BITS[] = {
|
|||||||
0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55
|
0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55
|
||||||
};
|
};
|
||||||
|
|
||||||
extern void W_ReadConfigurations(void);
|
|
||||||
|
|
||||||
static int userWidgetCount = 0;
|
static int userWidgetCount = 0;
|
||||||
|
|
||||||
/***** end data ******/
|
/***** end data ******/
|
||||||
|
|||||||
Reference in New Issue
Block a user