From: Marco van den Heuvel Date: Fri, 27 Apr 2018 16:16:25 +0000 (-0700) Subject: Removed extern keyword from function prototypes. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F631%2Fhead;p=cc65 Removed extern keyword from function prototypes. --- diff --git a/include/accelerator.h b/include/accelerator.h index 5797cb36c..d29b73467 100644 --- a/include/accelerator.h +++ b/include/accelerator.h @@ -77,7 +77,7 @@ extern unsigned char __fastcall__ set_scpu_speed (unsigned char speed); * make sure you use 'detect_scpu();' before using. */ -extern unsigned char get_scpu_speed (void); +unsigned char get_scpu_speed (void); /* Get the speed of the SuperCPU cartridge. * @@ -89,7 +89,7 @@ extern unsigned char get_scpu_speed (void); * make sure you use 'detect_scpu();' before using. */ -extern unsigned char detect_scpu (void); +unsigned char detect_scpu (void); /* Check for the presence of the SuperCPU cartridge. * @@ -101,7 +101,7 @@ extern unsigned char detect_scpu (void); /* C64DTV */ -extern unsigned char __fastcall__ set_c64dtv_speed (unsigned char speed); +unsigned char __fastcall__ set_c64dtv_speed (unsigned char speed); /* Set the speed of the C64DTV, using SPEED_SLOW will switch to * slow mode, SPEED_2X or SPEED_FAST will switch to fast mode. @@ -115,7 +115,7 @@ extern unsigned char __fastcall__ set_c64dtv_speed (unsigned char speed); * make sure you use 'detect_c64dtv();' before using. */ -extern unsigned char get_c64dtv_speed (void); +unsigned char get_c64dtv_speed (void); /* Get the speed of the C64DTV. * @@ -127,7 +127,7 @@ extern unsigned char get_c64dtv_speed (void); * make sure you use 'detect_c64dtv();' before using. */ -extern unsigned char detect_c64dtv (void); +unsigned char detect_c64dtv (void); /* Check for the presence of the C64DTV. * @@ -139,7 +139,7 @@ extern unsigned char detect_c64dtv (void); /* C128 8502 CPU */ -extern unsigned char __fastcall__ set_c128_speed (unsigned char speed); +unsigned char __fastcall__ set_c128_speed (unsigned char speed); /* Set the speed of the C128 8502 CPU, using SPEED_SLOW will switch to * 1 Mhz (slow) mode, SPEED_2X or SPEED_FAST will switch to 2Mhz (fast) mode. @@ -153,7 +153,7 @@ extern unsigned char __fastcall__ set_c128_speed (unsigned char speed); * you use 'detect_c128();' before using. */ -extern unsigned char get_c128_speed (void); +unsigned char get_c128_speed (void); /* Get the speed of the C128 8502 CPU. * @@ -165,7 +165,7 @@ extern unsigned char get_c128_speed (void); * you use 'detect_c128();' before using. */ -extern unsigned char detect_c128 (void); +unsigned char detect_c128 (void); /* Check if the C128 CPU is the current CPU. * @@ -177,7 +177,7 @@ extern unsigned char detect_c128 (void); /* C64 Chameleon cartridge */ -extern unsigned char __fastcall__ set_chameleon_speed (unsigned char speed); +unsigned char __fastcall__ set_chameleon_speed (unsigned char speed); /* Set the speed of the C64 Chameleon cartridge, the following inputs * are accepted: @@ -200,7 +200,7 @@ extern unsigned char __fastcall__ set_chameleon_speed (unsigned char speed); * make sure you use 'detect_chameleon();' before using. */ -extern unsigned char get_chameleon_speed (void); +unsigned char get_chameleon_speed (void); ;/* Get the speed of the C64 Chameleon cartridge. ; * @@ -217,7 +217,7 @@ extern unsigned char get_chameleon_speed (void); ; * make sure you use 'detect_chameleon();' before using. ; */ -extern unsigned char detect_chameleon (void); +unsigned char detect_chameleon (void); /* Check for the presence of the C64 Chameleon cartridge. * diff --git a/libsrc/c128/acc_c128_speed.s b/libsrc/c128/acc_c128_speed.s index c3012b2c8..3f2017de9 100755 --- a/libsrc/c128/acc_c128_speed.s +++ b/libsrc/c128/acc_c128_speed.s @@ -2,7 +2,7 @@ ; Marco van den Heuvel, 2018-04-23 ; -; extern unsigned char __fastcall__ set_c128_speed (unsigned char speed); +; unsigned char __fastcall__ set_c128_speed (unsigned char speed); ; ;/* Set the speed of the C128 8502 CPU, using SPEED_SLOW will switch to ; * 1 Mhz (slow) mode, SPEED_2X or SPEED_FAST will switch to 2Mhz (fast) mode. @@ -18,7 +18,7 @@ ; * For C128 programs no detect function call is needed. ; */ -; extern unsigned char get_c128_speed (void); +; unsigned char get_c128_speed (void); ; ;/* Get the speed of the C128 8502 CPU. ; * diff --git a/libsrc/c128/acc_scpu_speed.s b/libsrc/c128/acc_scpu_speed.s index 4bd142bbb..9f932aecd 100755 --- a/libsrc/c128/acc_scpu_speed.s +++ b/libsrc/c128/acc_scpu_speed.s @@ -2,7 +2,7 @@ ; Marco van den Heuvel, 2018-04-09 ; -; extern unsigned char __fastcall__ set_scpu_speed (unsigned char speed); +; unsigned char __fastcall__ set_scpu_speed (unsigned char speed); ; ;/* Set the speed of the SuperCPU cartridge, using SPEED_SLOW will switch to ; * 1 Mhz mode, SPEED_20X or SPEED_FAST will switch to 20 Mhz mode. @@ -19,7 +19,7 @@ ; * make sure you use 'detect_scpu();' before using. ; */ -; extern unsigned char get_scpu_speed (void); +; unsigned char get_scpu_speed (void); ; ;/* Get the speed of the SuperCPU cartridge. ; * diff --git a/libsrc/c64/acc_c64dtv_speed.s b/libsrc/c64/acc_c64dtv_speed.s index 6a8371a9c..d6cf8b994 100755 --- a/libsrc/c64/acc_c64dtv_speed.s +++ b/libsrc/c64/acc_c64dtv_speed.s @@ -2,7 +2,7 @@ ; Marco van den Heuvel, 2018-04-14 ; -; extern unsigned char __fastcall__ set_c64dtv_speed (unsigned char speed); +; unsigned char __fastcall__ set_c64dtv_speed (unsigned char speed); ; ;/* Set the speed of the C64DTV, using SPEED_SLOW will switch to ; * slow mode, SPEED_2X or SPEED_FAST will switch to fast mode. @@ -16,7 +16,7 @@ ; * make sure you use 'detect_c64dtv();' before using. ; */ -; extern unsigned char get_c64dtv_speed (void); +; unsigned char get_c64dtv_speed (void); ; ;/* Get the speed of the C64DTV. ; * diff --git a/libsrc/c64/acc_chameleon_speed.s b/libsrc/c64/acc_chameleon_speed.s index 0e3e1320f..ce51b9dde 100755 --- a/libsrc/c64/acc_chameleon_speed.s +++ b/libsrc/c64/acc_chameleon_speed.s @@ -2,7 +2,7 @@ ; Marco van den Heuvel, 2018-04-25 ; -; extern unsigned char __fastcall__ set_chameleon_speed (unsigned char speed); +; unsigned char __fastcall__ set_chameleon_speed (unsigned char speed); ; ;/* Set the speed of the Chameleon cartridge, the following inputs ; * are accepted: @@ -25,7 +25,7 @@ ; * make sure you use 'detect_chameleon();' before using. ; */ -; extern unsigned char get_chameleon_speed (void); +; unsigned char get_chameleon_speed (void); ; ;/* Get the speed of the Chameleon cartridge. ; * diff --git a/libsrc/c64/acc_scpu_speed.s b/libsrc/c64/acc_scpu_speed.s index 4bd142bbb..9f932aecd 100644 --- a/libsrc/c64/acc_scpu_speed.s +++ b/libsrc/c64/acc_scpu_speed.s @@ -2,7 +2,7 @@ ; Marco van den Heuvel, 2018-04-09 ; -; extern unsigned char __fastcall__ set_scpu_speed (unsigned char speed); +; unsigned char __fastcall__ set_scpu_speed (unsigned char speed); ; ;/* Set the speed of the SuperCPU cartridge, using SPEED_SLOW will switch to ; * 1 Mhz mode, SPEED_20X or SPEED_FAST will switch to 20 Mhz mode. @@ -19,7 +19,7 @@ ; * make sure you use 'detect_scpu();' before using. ; */ -; extern unsigned char get_scpu_speed (void); +; unsigned char get_scpu_speed (void); ; ;/* Get the speed of the SuperCPU cartridge. ; *