clean includes
This commit is contained in:
parent
493c6df450
commit
36cf9a1aac
14 changed files with 25 additions and 15 deletions
|
@ -1,4 +1,5 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "types.h"
|
||||
#include "rom.h"
|
||||
#include "ram.h"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include "color.h"
|
||||
|
||||
#define RESERVED_LCD 128
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
#include <stdio.h>
|
||||
|
||||
#include "types.h"
|
||||
#include "emulator.h"
|
||||
#include "bus.h"
|
||||
#include "opcodes.h"
|
||||
#include "cpu.h"
|
||||
#include <stdio.h>
|
||||
|
||||
Cpu cpu;
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL2/SDL_image.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "types.h"
|
||||
#include "bus.h"
|
||||
#include "pcalc.h"
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define __DISPLAY_H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <SDL2/SDL.h>
|
||||
|
||||
#include "types.h"
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL2/SDL_image.h>
|
||||
#include <SDL2/SDL_ttf.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "color.h"
|
||||
#include "pcalc.h"
|
||||
#include "pfiles.h"
|
||||
|
|
10
src/main.c
10
src/main.c
|
@ -1,10 +1,14 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL2/SDL_image.h>
|
||||
#include <SDL2/SDL_ttf.h>
|
||||
|
||||
#include "types.h"
|
||||
#include "emulator.h"
|
||||
#include "gui.h"
|
||||
#include "color.h"
|
||||
|
||||
#include "display.h"
|
||||
#include "gui.h"
|
||||
#include "timers.h"
|
||||
|
@ -12,10 +16,6 @@
|
|||
#include "pcalc.h"
|
||||
#include "pfiles.h"
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL2/SDL_image.h>
|
||||
#include <SDL2/SDL_ttf.h>
|
||||
|
||||
const int SCREEN_WIDTH = 524;
|
||||
const int SCREEN_HEIGHT = 750;
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "types.h"
|
||||
#include "cpu.h"
|
||||
#include "bus.h"
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#define __OPINLINE_H
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "emulator.h"
|
||||
#include "cpu.h"
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include "color.h"
|
||||
#include "display.h"
|
||||
#include "keyboard.h"
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <libgen.h> // dirname
|
||||
#include <unistd.h> // readlink
|
||||
#include <linux/limits.h> // PATH_MAX
|
||||
|
||||
#include "color.h"
|
||||
#include "gui.h"
|
||||
#include "rpl.h"
|
||||
#include "pfiles.h"
|
||||
|
||||
#include <libgen.h> // dirname
|
||||
#include <unistd.h> // readlink
|
||||
#include <linux/limits.h> // PATH_MAX
|
||||
|
||||
char WorkingPath[ 512 ];
|
||||
|
||||
void getExePath()
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include "types.h"
|
||||
#include "bus.h"
|
||||
#include "ports.h"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "types.h"
|
||||
#include "bus.h"
|
||||
#include "ram.h"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include "types.h"
|
||||
#include "bus.h"
|
||||
#include "opinline.h"
|
||||
|
|
Loading…
Reference in a new issue