mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
src/main.c: Moved local prototype for global function to header 'funcs.h'
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
017e6a84a0
commit
a3281b1e89
@@ -55,6 +55,7 @@
|
|||||||
#include "actions.h"
|
#include "actions.h"
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
#include "funcs.h"
|
||||||
#include "keybind.h"
|
#include "keybind.h"
|
||||||
#include "application.h"
|
#include "application.h"
|
||||||
#include "stacking.h"
|
#include "stacking.h"
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ void StartWindozeCycle(WWindow *wwin, XEvent *event, Bool next, Bool class_only)
|
|||||||
|
|
||||||
/* ---[ event.c ]--------------------------------------------------------- */
|
/* ---[ event.c ]--------------------------------------------------------- */
|
||||||
|
|
||||||
|
void EventLoop(void);
|
||||||
void DispatchEvent(XEvent *event);
|
void DispatchEvent(XEvent *event);
|
||||||
WMagicNumber wAddDeathHandler(pid_t pid, WDeathHandler *callback, void *cdata);
|
WMagicNumber wAddDeathHandler(pid_t pid, WDeathHandler *callback, void *cdata);
|
||||||
Bool IsDoubleClick(WScreen *scr, XEvent *event);
|
Bool IsDoubleClick(WScreen *scr, XEvent *event);
|
||||||
@@ -49,6 +50,11 @@ Bool IsDoubleClick(WScreen *scr, XEvent *event);
|
|||||||
int getWVisualID(int screen);
|
int getWVisualID(int screen);
|
||||||
|
|
||||||
|
|
||||||
|
/* ---[ monitor.c ]------------------------------------------------------- */
|
||||||
|
|
||||||
|
int MonitorLoop(int argc, char **argv);
|
||||||
|
|
||||||
|
|
||||||
/* ---[ osdep_*.c ]------------------------------------------------------- */
|
/* ---[ osdep_*.c ]------------------------------------------------------- */
|
||||||
|
|
||||||
Bool GetCommandForPid(int pid, char ***argv, int *argc);
|
Bool GetCommandForPid(int pid, char ***argv, int *argc);
|
||||||
@@ -56,6 +62,8 @@ Bool GetCommandForPid(int pid, char ***argv, int *argc);
|
|||||||
|
|
||||||
/* ---[ startup.c ]------------------------------------------------------- */
|
/* ---[ startup.c ]------------------------------------------------------- */
|
||||||
|
|
||||||
|
void StartUp(Bool defaultScreenOnly);
|
||||||
|
|
||||||
void wHackedGrabButton(unsigned int button, unsigned int modifiers,
|
void wHackedGrabButton(unsigned int button, unsigned int modifiers,
|
||||||
Window grab_window, Bool owner_events,
|
Window grab_window, Bool owner_events,
|
||||||
unsigned int event_mask, int pointer_mode,
|
unsigned int event_mask, int pointer_mode,
|
||||||
|
|||||||
@@ -169,10 +169,6 @@ static char **Arguments;
|
|||||||
|
|
||||||
static int ArgCount;
|
static int ArgCount;
|
||||||
|
|
||||||
extern void EventLoop(void);
|
|
||||||
extern void StartUp(Bool defaultScreenOnly);
|
|
||||||
extern int MonitorLoop(int argc, char **argv);
|
|
||||||
|
|
||||||
static Bool multiHead = True;
|
static Bool multiHead = True;
|
||||||
|
|
||||||
static int *wVisualID = NULL;
|
static int *wVisualID = NULL;
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
#include "window.h"
|
#include "window.h"
|
||||||
#include "dialog.h"
|
#include "dialog.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
#include "funcs.h"
|
||||||
|
|
||||||
/****** Global Variables ******/
|
/****** Global Variables ******/
|
||||||
extern WPreferences wPreferences;
|
extern WPreferences wPreferences;
|
||||||
|
|||||||
@@ -56,6 +56,7 @@
|
|||||||
#include "actions.h"
|
#include "actions.h"
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
#include "funcs.h"
|
||||||
#include "dock.h"
|
#include "dock.h"
|
||||||
#include "workspace.h"
|
#include "workspace.h"
|
||||||
#include "keybind.h"
|
#include "keybind.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user