mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 03:23:46 +08:00
tune code for 64b (MiniGUI-Processes runmode)
This commit is contained in:
+27
-7
@@ -1883,17 +1883,26 @@ int init_minigui_printf (int (*output_char) (int ch),
|
||||
#endif /* _MGUSE_OWN_STDIO */
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#ifdef _DEBUG
|
||||
# define _MG_PRINTF(fmt...) fprintf (stderr, fmt)
|
||||
# define _DBG_PRINTF(fmt...) fprintf (stdout, fmt)
|
||||
#else
|
||||
# define _MG_PRINTF(fmt...)
|
||||
# define _DBG_PRINTF(fmt...)
|
||||
#endif
|
||||
# define _ERR_PRINTF(fmt...) fprintf (stderr, fmt)
|
||||
# ifdef _DEBUG
|
||||
# define _MG_PRINTF(fmt...) fprintf (stderr, fmt)
|
||||
# define _DBG_PRINTF(fmt...) fprintf (stdout, fmt)
|
||||
# else
|
||||
# define _MG_PRINTF(fmt...)
|
||||
# define _DBG_PRINTF(fmt...)
|
||||
# endif
|
||||
#else /* __GNUC__ */
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
static inline void _ERR_PRINTF(const char* fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, fmt);
|
||||
vfprintf(stderr, fmt, ap);
|
||||
fprintf(stderr, "\n");
|
||||
va_end(ap);
|
||||
}
|
||||
static inline void _MG_PRINTF(const char* fmt, ...)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
@@ -1904,6 +1913,17 @@ static inline void _MG_PRINTF(const char* fmt, ...)
|
||||
va_end(ap);
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void _DBG_PRINTF(const char* fmt, ...)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
va_list ap;
|
||||
va_start(ap, fmt);
|
||||
vfprintf(stdout, fmt, ap);
|
||||
fprintf(stdout, "\n");
|
||||
va_end(ap);
|
||||
#endif
|
||||
}
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#ifdef _MGRM_THREADS
|
||||
|
||||
+2
-2
@@ -2443,7 +2443,7 @@ MG_EXPORT void GUIAPI SetAutoRepeatMessage (HWND hwnd, UINT msg,
|
||||
#define CLIENT_ACTIVE -4
|
||||
|
||||
/**
|
||||
* \fn int Send2Client (MSG* msg, int cli)
|
||||
* \fn int Send2Client (const MSG* msg, int cli)
|
||||
* \brief Sends a message to a client.
|
||||
*
|
||||
* This function sends a message to the specified client \a cli.
|
||||
@@ -2472,7 +2472,7 @@ MG_EXPORT void GUIAPI SetAutoRepeatMessage (HWND hwnd, UINT msg,
|
||||
*
|
||||
* \sa Send2TopMostClients, Send2ActiveWindow
|
||||
*/
|
||||
int GUIAPI Send2Client (MSG* msg, int cli);
|
||||
int GUIAPI Send2Client (const MSG* msg, int cli);
|
||||
|
||||
/**
|
||||
* \fn BOOL Send2TopMostClients (UINT nMsg, WPARAM wParam, LPARAM lParam)
|
||||
|
||||
Reference in New Issue
Block a user