From 285aaf8933f8f46a200d509279967eaa668bbc9f Mon Sep 17 00:00:00 2001 From: uz Date: Sun, 4 Mar 2012 13:08:54 +0000 Subject: [PATCH] Patch by Stefan Haubenthal: Remove __fastcall__ in comments and/or the function description for functions that don't take any parameters. git-svn-id: svn://svn.cc65.org/cc65/trunk@5573 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- doc/funcref.sgml | 52 +++++++++------------------------ libsrc/atmos/clrscr.s | 2 +- libsrc/c128/get_tv.s | 4 +-- libsrc/c64/get_tv.s | 4 +-- libsrc/cbm/c_acptr.s | 4 +-- libsrc/cbm/c_basin.s | 2 +- libsrc/cbm/c_clall.s | 4 +-- libsrc/cbm/c_clrch.s | 3 +- libsrc/cbm/c_iobase.s | 4 +-- libsrc/cbm/c_open.s | 2 +- libsrc/cbm/c_readst.s | 2 +- libsrc/cbm/c_unlsn.s | 7 +---- libsrc/cbm/c_untlk.s | 4 +-- libsrc/cbm510/clrscr.s | 2 +- libsrc/cbm610/get_tv.s | 2 +- libsrc/common/_heapmaxavail.s | 3 +- libsrc/common/_heapmemavail.s | 5 +--- libsrc/em/em-kernel.s | 3 +- libsrc/em/em_commit.s | 4 +-- libsrc/em/em_unload.s | 3 +- libsrc/joystick/joy-kernel.s | 3 +- libsrc/joystick/joy_count.s | 4 +-- libsrc/joystick/joy_unload.s | 4 +-- libsrc/mouse/mouse-kernel.s | 4 +-- libsrc/mouse/mouse_buttons.s | 4 +-- libsrc/mouse/mouse_hide.s | 4 +-- libsrc/mouse/mouse_show.s | 4 +-- libsrc/mouse/mouse_unload.s | 3 +- libsrc/nes/get_tv.s | 2 +- libsrc/nes/waitvblank.s | 4 +-- libsrc/pet/get_tv.s | 4 +-- libsrc/plus4/get_tv.s | 4 +-- libsrc/serial/ser-kernel.s | 3 +- libsrc/serial/ser_close.s | 4 +-- libsrc/serial/ser_unload.s | 3 +- libsrc/tgi/tgi-kernel.s | 5 +--- libsrc/tgi/tgi_clear.s | 8 +---- libsrc/tgi/tgi_done.s | 3 +- libsrc/tgi/tgi_getaspectratio.s | 3 +- libsrc/tgi/tgi_getcolor.s | 2 +- libsrc/tgi/tgi_getcolorcount.s | 3 +- libsrc/tgi/tgi_getdefpalette.s | 4 +-- libsrc/tgi/tgi_geterror.s | 3 +- libsrc/tgi/tgi_getmaxcolor.s | 3 +- libsrc/tgi/tgi_getmaxx.s | 4 +-- libsrc/tgi/tgi_getmaxy.s | 3 +- libsrc/tgi/tgi_getpagecount.s | 3 +- libsrc/tgi/tgi_getpalette.s | 4 +-- libsrc/tgi/tgi_getxres.s | 3 +- libsrc/tgi/tgi_getyres.s | 3 +- libsrc/tgi/tgi_init.s | 4 +-- libsrc/tgi/tgi_unload.s | 4 +-- libsrc/vic20/get_tv.s | 2 +- 53 files changed, 65 insertions(+), 169 deletions(-) diff --git a/doc/funcref.sgml b/doc/funcref.sgml index 45a282d9e..a0759c5c6 100644 --- a/doc/funcref.sgml +++ b/doc/funcref.sgml @@ -728,7 +728,7 @@ allocation functions, or that has been free'd will give unpredicable results. / -/. / -/, /, @@ -2015,7 +2015,7 @@ loaded. / - @@ -2036,7 +2036,7 @@ by the driver in 256 byte pages. / - @@ -2044,8 +2044,6 @@ driver but doesn't remove it from memory. name="em_load_driver">/, / should be used instead of The function is only available as fastcall function, so it may only be -used in presence of a prototype. / - @@ -3008,7 +3006,7 @@ used in presence of a prototype. / - @@ -3016,8 +3014,6 @@ by the current joystick driver. name="joy_load_driver"> before calling this function. The function returns the number of joysticks supported by the driver. There's no way to check for the number of actually connected joysticks. -The function is only available as fastcall function, so it may only be -used in presence of a prototype. / - A joystick driver must be installed using before calling this function. -The function is only available as fastcall function, so it may only be -used in presence of a prototype. / - A joystick driver must be loaded using before calling this function. -The function is only available as fastcall function, so it may only be -used in presence of a prototype. / - -The function is only available as fastcall function, so it may only be -used in presence of a prototype. - , @@ -3588,16 +3576,12 @@ used in presence of a prototype. / -/ and / to make the mouse cursor visible. - -The function is only available as fastcall function, so it may only be -used in presence of a prototype. - @@ -3777,15 +3761,11 @@ used in presence of a prototype. / -/ and /. - -The function is only available as fastcall function, so it may only be -used in presence of a prototype. - @@ -3800,7 +3780,7 @@ used in presence of a prototype. / - @@ -3808,8 +3788,6 @@ don't removes it from memory. name="mouse_load_driver">/, / should be used instead of The function is only available as fastcall function, so it may only be -used in presence of a prototype. / - -The function is only available as fastcall function, so it may only -be used in presence of a prototype. - ; Cleanup by Ullrich von Bassewitz ; -; void __fastcall__ waitvblank(void); +; void waitvblank(void); ; .export _waitvblank @@ -16,5 +16,3 @@ wait: lda PPU_STATUS rts .endproc - - diff --git a/libsrc/pet/get_tv.s b/libsrc/pet/get_tv.s index 07e1fccad..8ac4377dc 100644 --- a/libsrc/pet/get_tv.s +++ b/libsrc/pet/get_tv.s @@ -1,7 +1,7 @@ ; ; Ullrich von Bassewitz, 2004-10-26 ; -; unsigned char __fastcall__ get_tv (void); +; unsigned char get_tv (void); ; /* Return the video mode the machine is using */ ; @@ -18,5 +18,3 @@ rts .endproc - - diff --git a/libsrc/plus4/get_tv.s b/libsrc/plus4/get_tv.s index 84f09b12c..fb696020f 100644 --- a/libsrc/plus4/get_tv.s +++ b/libsrc/plus4/get_tv.s @@ -1,7 +1,7 @@ ; ; Ullrich von Bassewitz, 2002-12-03 ; -; unsigned char __fastcall__ get_tv (void); +; unsigned char get_tv (void); ; /* Return the video mode the machine is using */ ; @@ -23,5 +23,3 @@ pal: txa rts .endproc - - diff --git a/libsrc/serial/ser-kernel.s b/libsrc/serial/ser-kernel.s index d666e9452..d96f8306a 100644 --- a/libsrc/serial/ser-kernel.s +++ b/libsrc/serial/ser-kernel.s @@ -92,7 +92,7 @@ copy: lda (ptr1),y rts ;---------------------------------------------------------------------------- -; unsigned char __fastcall__ ser_uninstall (void); +; unsigned char ser_uninstall (void); ; /* Uninstall the currently loaded driver and return an error code. ; * Note: This call does not free allocated memory. ; */ @@ -110,4 +110,3 @@ _ser_clear_ptr: ; External entry point tax rts ; Return zero - diff --git a/libsrc/serial/ser_close.s b/libsrc/serial/ser_close.s index b49419a49..0fcc24c60 100644 --- a/libsrc/serial/ser_close.s +++ b/libsrc/serial/ser_close.s @@ -1,12 +1,10 @@ ; ; Ullrich von Bassewitz, 2003-08-22 ; -; unsigned char __fastcall__ ser_close (void); +; unsigned char ser_close (void); ; /* "Close" the port. Clear buffers and and disable interrupts. */ .include "ser-kernel.inc" _ser_close = ser_close - - diff --git a/libsrc/serial/ser_unload.s b/libsrc/serial/ser_unload.s index 325c3d667..c97a4b3d3 100644 --- a/libsrc/serial/ser_unload.s +++ b/libsrc/serial/ser_unload.s @@ -1,7 +1,7 @@ ; ; Ullrich von Bassewitz, 2003-04-15 ; -; unsigned char __fastcall__ ser_unload (void); +; unsigned char ser_unload (void); ; /* Unload the currently loaded driver. */ @@ -35,4 +35,3 @@ no_driver: pla ; Remove pushed junk lda #