Move Eexec() and friends to util.h
Seems more appropriate. And add missing __PRINTF__ on Espawn() prototype.
This commit is contained in:
parent
50e6b76395
commit
93b8da7e8a
8
src/E.h
8
src/E.h
|
@ -442,14 +442,6 @@ typedef struct {
|
|||
/* about.c */
|
||||
void About(void);
|
||||
|
||||
/* actions.c */
|
||||
#define EXEC_SET_LANG 0x01
|
||||
#define EXEC_SET_STARTUP_ID 0x02
|
||||
void Eexec(const char *cmd);
|
||||
int EspawnApplication(const char *params, int flags);
|
||||
void Espawn(const char *fmt, ...);
|
||||
int __PRINTF__ Esystem(const char *fmt, ...);
|
||||
|
||||
/* config.c */
|
||||
#define FILE_TYPE_CONFIG 0
|
||||
#define FILE_TYPE_BACKGROUND 1
|
||||
|
|
|
@ -45,7 +45,7 @@ _sound_player_Destroy(Sample * s)
|
|||
static void
|
||||
_sound_player_Play(Sample * s)
|
||||
{
|
||||
Espawn(SOUND_PLAYER_FMT, s);
|
||||
Espawn(SOUND_PLAYER_FMT, (char *)s);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
@ -117,6 +117,14 @@ void __PRINTF__ Eprintf(const char *fmt, ...);
|
|||
#define Evsnprintf vsnprintf
|
||||
#define Esnprintf snprintf
|
||||
|
||||
#define EXEC_SET_LANG 0x01
|
||||
#define EXEC_SET_STARTUP_ID 0x02
|
||||
|
||||
void Eexec(const char *cmd);
|
||||
int EspawnApplication(const char *params, int flags);
|
||||
void __PRINTF__ Espawn(const char *fmt, ...);
|
||||
int __PRINTF__ Esystem(const char *fmt, ...);
|
||||
|
||||
#if USE_MODULES
|
||||
/* Dynamic loading */
|
||||
const void *ModLoadSym(const char *lib, const char *sym,
|
||||
|
|
Loading…
Reference in New Issue