Another cleanup run.

This commit is contained in:
waltje
2017-10-17 01:59:09 -04:00
parent 483ebc17d7
commit 7f24ba9fe9
218 changed files with 642 additions and 470 deletions

View File

@@ -8,7 +8,7 @@
*
* Define the various platform support functions.
*
* Version: @(#)plat.h 1.0.8 2017/10/15
* Version: @(#)plat.h 1.0.9 2017/10/16
*
* Authors: Miran Grca, <mgrca8@gmail.com>
* Fred N. van Kempen, <decwiz@yahoo.com>
@@ -19,13 +19,21 @@
#ifndef EMU_PLAT_H
# define EMU_PLAT_H
#ifndef GLOBAL
# define GLOBAL extern
#endif
/* A hack (GCC-specific) to allow us to ignore unused parameters. */
#define UNUSED(arg) __attribute__((unused))arg
#ifdef __cplusplus
extern "C" {
#endif
/* Global variables residing in the platform module. */
extern int dopause;
GLOBAL int dopause;
/* System-related functions. */
@@ -33,13 +41,16 @@ extern FILE *plat_fopen(wchar_t *path, wchar_t *mode);
extern void plat_remove(wchar_t *path);
extern int plat_getcwd(wchar_t *bufp, int max);
extern int plat_chdir(wchar_t *path);
extern void get_executable_name(wchar_t *s, int size);
extern wchar_t *set_window_title(wchar_t *s);
extern int dir_check_exist(wchar_t *path);
extern int dir_create(wchar_t *path);
extern void leave_fullscreen(void);
extern void plat_pc_reset(int hard);
extern void plat_get_exe_name(wchar_t *s, int size);
extern wchar_t *plat_get_filename(wchar_t *s);
extern wchar_t *plat_get_extension(wchar_t *s);
extern void plat_append_filename(wchar_t *dest, wchar_t *s1, wchar_t *s2, int size);
extern void plat_put_backslash(wchar_t *s);
extern int plat_dir_check(wchar_t *path);
extern int plat_dir_create(wchar_t *path);
extern uint64_t plat_timer_read(void);
extern uint32_t plat_get_ticks(void);
extern void plat_delay_ms(uint32_t count);
extern void plat_pause(int p);
@@ -98,13 +109,11 @@ extern int thread_release_mutex(mutex_t *mutex);
/* Other stuff. */
extern void startblit(void);
extern void endblit(void);
extern void updatewindowsize(int x, int y);
extern void uws_natural(void);
extern void leave_fullscreen(void);
extern void take_screenshot(void);
extern uint32_t get_ticks(void);
extern void delay_ms(uint32_t count);
#ifdef __cplusplus
}
#endif