zxbox: make source files include their header file and make function static where possible
Change-Id: I0c87563ee29f46948e3a559c27b1b22d4404cec1
This commit is contained in:
parent
f7fdf13468
commit
b193b75f62
7 changed files with 7 additions and 5 deletions
|
@ -19,6 +19,7 @@
|
|||
*/
|
||||
|
||||
#include "zxconfig.h"
|
||||
#include "zxmisc.h"
|
||||
#include "interf.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -30,7 +30,7 @@ extern char *spcf_init_tapefile;
|
|||
extern int spcf_init_tapefile_type;
|
||||
|
||||
|
||||
/*extern int spcf_read_conf_file(const char *filename);*/
|
||||
extern int spcf_read_conf_file(const char *filename);
|
||||
extern void spcf_read_command_line(const void* parameter);
|
||||
extern void spcf_read_xresources(void);
|
||||
extern int spcf_find_file_type(char *filename, int *ftp, int *ftsubp);
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
|
||||
#include "z80_type.h"
|
||||
|
||||
extern int scrmul;
|
||||
extern volatile int screen_visible;
|
||||
|
||||
extern void init_spect_scr(void);
|
||||
|
|
|
@ -189,7 +189,7 @@ void autoclose_sound(void)
|
|||
}
|
||||
#endif
|
||||
}
|
||||
void get_more(unsigned char** start, size_t* size)
|
||||
static void get_more(unsigned char** start, size_t* size)
|
||||
{
|
||||
doneplay = 1;
|
||||
rb->pcm_play_stop();
|
||||
|
@ -199,7 +199,7 @@ void get_more(unsigned char** start, size_t* size)
|
|||
|
||||
/* sp_sound_buf is Unsigned 8 bit, Rate 8000 Hz, Mono */
|
||||
|
||||
void write_buf(void){
|
||||
static void write_buf(void){
|
||||
int i,j;
|
||||
|
||||
/* still not sure what is the best way to do this */
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
#include "zxconfig.h"
|
||||
#include "spkey_p.h"
|
||||
#include "spkey.h"
|
||||
|
||||
spkeyboard kb_mkey;
|
||||
bool exit_requested=false;
|
||||
|
@ -28,7 +29,6 @@ bool clear_kbd=0;
|
|||
extern bool zxbox_menu(void);
|
||||
|
||||
/* DUMMIES ... to clean */
|
||||
unsigned int scrmul=0;
|
||||
int privatemap;
|
||||
int use_shm = 0;
|
||||
int small_screen,pause_on_iconify;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include "zxconfig.h"
|
||||
#include "zxbox_keyb.h"
|
||||
|
||||
//#define ZX_WRITE_OUT_TEXT
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#endif
|
||||
|
||||
#include "spscr_p.h"
|
||||
#include "spscr.h"
|
||||
#include "spmain.h"
|
||||
#include "spperif.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue