Skip to content

Commit 8e37d9d

Browse files
authored
Remove all duplicate headers and create universal headers (FujiNetWIFI#141)
1 parent f2edc49 commit 8e37d9d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+826
-3095
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,4 @@ fujinet-lib/*
6767

6868
# IDE files
6969
.vscode/*
70+
*.o

Makefile.apple2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Space or comma separated list of cc65 supported target platforms to build for.
1111
# Default: c64 (lowercase!)
1212
TARGETS := apple2
13-
FUJINET_LIB_VERSION = 4.7.5
13+
FUJINET_LIB_VERSION = 4.7.9
1414
FUJINET_LIB = fujinet-lib
1515
FUJINET_LIB_VERSION_DIR = $(FUJINET_LIB)/$(FUJINET_LIB_VERSION)-$(TARGETS)
1616

Makefile.c64

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# Default: c64 (lowercase!)
1212
TARGETS := c64
1313

14-
FUJINET_LIB_VERSION = 4.6.2
14+
FUJINET_LIB_VERSION = 4.7.9
1515
FUJINET_LIB = fujinet-lib
1616
FUJINET_LIB_VERSION_DIR = $(FUJINET_LIB)/$(FUJINET_LIB_VERSION)-$(TARGETS)
1717

@@ -264,7 +264,7 @@ CFLAGS += --include-dir $(FUJINET_LIB_VERSION_DIR) -DUSING_FUJINET_LIB
264264
.SUFFIXES:
265265
.PHONY: all test clean get_fujinet_lib zap r2r
266266

267-
all: get_fujinet_lib $(PROGRAM)
267+
all: get_fujinet_lib $(R2R_BIN)
268268

269269
-include $(DEPENDS)
270270
-include $(STATEFILE)

src/adam/bar.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* Bar routines
44
*/
55

6+
#include "../screen.h"
67
#include <video/tms99x8.h>
78
#include <stdbool.h>
8-
#include "bar.h"
99

1010
#define DISPLAY_ROWS 17
1111
#define DISPLAY_LENGTH 60
@@ -95,7 +95,7 @@ void bar_down()
9595
/**
9696
* Jump to bar slot
9797
*/
98-
void bar_jump(unsigned char i)
98+
void bar_jump(uint_fast8_t i)
9999
{
100100
bar_oldi=bar_i;
101101
bar_i=i;
@@ -106,7 +106,7 @@ void bar_jump(unsigned char i)
106106
* Get current bar position
107107
* @return bar index
108108
*/
109-
unsigned char bar_get()
109+
uint_fast8_t bar_get()
110110
{
111111
return bar_i;
112112
}

src/adam/bar.h

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/adam/globals.h

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/adam/input.c

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,21 @@
33
* Input routines
44
*/
55

6-
#include <video/tms99x8.h>
7-
#include <eos.h>
8-
#include <smartkeys.h>
9-
#include <conio.h>
10-
#include <stdbool.h>
11-
#include <stdlib.h>
12-
#include "input.h"
6+
#include "../input.h"
137
#include "cursor.h"
14-
#include "globals.h"
15-
#include "bar.h"
8+
#include "../globals.h"
9+
#include "../screen.h"
1610
#include "../set_wifi.h"
1711
#include "../die.h"
1812
#include "../hosts_and_devices.h"
1913
#include "../select_file.h"
2014
#include "../select_slot.h"
21-
#include "io.h"
15+
#include "../io.h"
16+
17+
#include <video/tms99x8.h>
18+
#include <eos.h>
19+
#include <smartkeys.h>
20+
#include <conio.h>
2221

2322
static GameControllerData cont;
2423
static unsigned char key=0;
@@ -327,7 +326,7 @@ HDSubState input_hosts_and_devices_devices(void)
327326
}
328327
}
329328

330-
void input_line_hosts_and_devices_host_slot(unsigned char i, unsigned char o, char *c)
329+
void input_line_hosts_and_devices_host_slot(uint_fast8_t i, uint_fast8_t o, char *c)
331330
{
332331
input_line(1,i+1,o,c,32,false);
333332
}

src/adam/input.h

Lines changed: 0 additions & 103 deletions
This file was deleted.

0 commit comments

Comments
 (0)