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
This commit is contained in:
uz
2012-03-04 13:08:54 +00:00
parent bdeefe31e5
commit 285aaf8933
53 changed files with 65 additions and 169 deletions

View File

@@ -8,7 +8,7 @@
.include "atmos.inc"
; ------------------------------------------------------------------------
; void __fastcall__ clrscr (void);
; void clrscr (void);
.proc _clrscr

View File

@@ -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

View File

@@ -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 */
;
@@ -18,5 +18,3 @@
rts
.endproc

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 03.06.1999
;
; unsigned char __fastcall__ cbm_acptr (void);
; unsigned char cbm_acptr (void);
;
.export _cbm_acptr
@@ -12,5 +12,3 @@ _cbm_acptr:
jsr ACPTR
ldx #0
rts

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 03.06.1999
;
; unsigned char __fastcall__ cbm_k_basin (void);
; unsigned char cbm_k_basin (void);
;
.export _cbm_k_basin

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 03.06.1999
;
; void __fastcall__ cbm_clall (void);
; void cbm_clall (void);
;
.export _cbm_clall
@@ -9,5 +9,3 @@
_cbm_clall = CLALL

View File

@@ -1,11 +1,10 @@
;
; Ullrich von Bassewitz, 03.06.1999
;
; void __fastcall__ cbm_k_clrch (void);
; void cbm_k_clrch (void);
;
.export _cbm_k_clrch
.import CLRCH
_cbm_k_clrch = CLRCH

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 03.06.1999
;
; unsigned __fastcall__ cbm_iobase (void);
; unsigned cbm_iobase (void);
;
.export _cbm_iobase
@@ -15,5 +15,3 @@ _cbm_iobase:
tax
pla
rts

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 03.06.1999
;
; unsigned char __fastcall__ cbm_k_open (void);
; unsigned char cbm_k_open (void);
;
.export _cbm_k_open

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 03.06.1999
;
; unsigned char __fastcall__ cbm_k_readst (void);
; unsigned char cbm_k_readst (void);
;
.export _cbm_k_readst

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 03.06.1999
;
; void __fastcall__ cbm_unlsn (void);
; void cbm_unlsn (void);
;
.export _cbm_unlsn
@@ -9,8 +9,3 @@
_cbm_unlsn = UNLSN

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 03.06.1999
;
; void __fastcall__ cbm_untlk (void);
; void cbm_untlk (void);
;
.export _cbm_untlk
@@ -9,5 +9,3 @@
_cbm_untlk = UNTLK

View File

@@ -9,7 +9,7 @@
.include "extzp.inc"
; ------------------------------------------------------------------------
; void __fastcall__ clrscr (void);
; void clrscr (void);
.proc _clrscr

View File

@@ -1,7 +1,7 @@
;
; Stefan Haubenthal, 2009-08-02
;
; unsigned char __fastcall__ get_tv (void);
; unsigned char get_tv (void);
; /* Return the video mode the machine is using */
;

View File

@@ -3,7 +3,7 @@
;
; Return the size of the largest free block on the heap.
;
; size_t __fastcall__ _heapmaxavail (void);
; size_t _heapmaxavail (void);
;
;
@@ -74,4 +74,3 @@ __heapmaxavail:
@L3: lda ptr2
ldx ptr2+1
rts

View File

@@ -3,7 +3,7 @@
;
; Return the amount of free memory on the heap.
;
; size_t __fastcall__ _heapmemavail (void);
; size_t _heapmemavail (void);
;
;
@@ -76,6 +76,3 @@ __heapmemavail:
lda ptr2
rts

View File

@@ -84,7 +84,7 @@ copy: lda (ptr1),y
rts
;----------------------------------------------------------------------------
; unsigned char __fastcall__ em_uninstall (void);
; unsigned char em_uninstall (void);
; /* Uninstall the currently loaded driver and return an error code.
; * Note: This call does not free allocated memory.
; */
@@ -99,4 +99,3 @@ em_clear_ptr: ; External entry point
tax
rts ; Return zero

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 2002-12-01
;
; void __fastcall__ em_commit (void);
; void em_commit (void);
; /* Commit changes in the memory window to extended storage. If the contents
; * of the memory window have been changed, these changes may be lost if
; * em_map, em_copyfrom or em_copyto are called without calling em_commit
@@ -12,5 +12,3 @@
.include "em-kernel.inc"
_em_commit = emd_commit ; Use driver entry

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 2002-11-29
;
; unsigned char __fastcall__ em_unload (void);
; unsigned char em_unload (void);
; /* Unload the currently loaded driver. */
@@ -28,4 +28,3 @@ no_driver:
tax ; X = 0
lda #EM_ERR_NO_DRIVER
rts

View File

@@ -104,7 +104,7 @@ set: sta joy_vectors,x
rts
;----------------------------------------------------------------------------
; unsigned char __fastcall__ joy_uninstall (void);
; unsigned char joy_uninstall (void);
; /* Uninstall the currently loaded driver. Note: This call does not free
; * allocated memory.
; */
@@ -122,4 +122,3 @@ _joy_clear_ptr: ; External entry point
tax ; Return zero
rts

View File

@@ -1,12 +1,10 @@
;
; Ullrich von Bassewitz, 2002-12-20
;
; unsigned char __fastcall__ joy_count (void);
; unsigned char joy_count (void);
; /* Return the number of joysticks supported by the driver */
;
.include "joy-kernel.inc"
_joy_count = joy_count ; Use driver entry

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 2002-11-29
;
; unsigned char __fastcall__ joy_unload (void);
; unsigned char joy_unload (void);
; /* Unload the currently loaded driver. */
@@ -35,5 +35,3 @@ no_driver:
pla ; Remove pushed junk
lda #JOY_ERR_NO_DRIVER
rts

View File

@@ -156,7 +156,7 @@ copycb: lda (sreg),y
rts
;----------------------------------------------------------------------------
; unsigned char __fastcall__ mouse_uninstall (void);
; unsigned char mouse_uninstall (void);
; /* Uninstall the currently loaded driver. Returns an error code. */
_mouse_uninstall:
@@ -182,5 +182,3 @@ _mouse_clear_ptr: ; External entry point
tax
rts ; Return zero

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 2003-12-30
;
; unsigned char __fastcall__ mouse_buttons (void);
; unsigned char mouse_buttons (void);
; /* Return a bit mask encoding the states of the mouse buttons. Use the
; * MOUSE_BTN_XXX flags to decode a specific button.
; */
@@ -10,5 +10,3 @@
.include "mouse-kernel.inc"
_mouse_buttons = mouse_buttons ; Call driver directly

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 2003-12-30
;
; void __fastcall__ mouse_hide (void);
; void mouse_hide (void);
; /* Hide the mouse. The function manages a counter and may be called more than
; * once. For each call to mouse_hide there must be a call to mouse_show to make
; * the mouse visible again.
@@ -19,5 +19,3 @@
rts
.endproc

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 2003-12-30
;
; void __fastcall__ mouse_show (void);
; void mouse_show (void);
; /* Show the mouse. See mouse_hide for more information. */
;
@@ -17,5 +17,3 @@
@L1: rts
.endproc

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 2004-03-21
;
; unsigned char __fastcall__ mouse_unload (void);
; unsigned char mouse_unload (void);
; /* Uninstall, then unload the currently loaded driver. */
@@ -33,4 +33,3 @@ no_driver:
pla ; Remove pushed junk
lda #<MOUSE_ERR_NO_DRIVER
rts

View File

@@ -1,7 +1,7 @@
;
; Stefan Haubenthal, 2007-01-21
;
; unsigned char __fastcall__ get_tv (void);
; unsigned char get_tv (void);
; /* Return the video mode the machine is using */
;

View File

@@ -2,7 +2,7 @@
; Written by Groepaz/Hitmen <groepaz@gmx.net>
; Cleanup by Ullrich von Bassewitz <uz@cc65.org>
;
; void __fastcall__ waitvblank(void);
; void waitvblank(void);
;
.export _waitvblank
@@ -16,5 +16,3 @@ wait: lda PPU_STATUS
rts
.endproc

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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 #<SER_ERR_NO_DRIVER
rts

View File

@@ -186,7 +186,7 @@ tgi_set_ptr:
rts
;----------------------------------------------------------------------------
; void __fastcall__ tgi_uninstall (void);
; void tgi_uninstall (void);
; /* Uninstall the currently loaded driver but do not unload it. Will call
; * tgi_done if necessary.
; */
@@ -207,6 +207,3 @@ _tgi_uninstall:
sta _tgi_error
rts

View File

@@ -1,15 +1,9 @@
;
; Ullrich von Bassewitz, 21.06.2002
;
; void __fastcall__ tgi_clear (void);
; void tgi_clear (void);
; /* Clear the drawpage */
.include "tgi-kernel.inc"
_tgi_clear = tgi_clear ; Call the driver

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 21.06.2002
;
; void __fastcall__ tgi_done (void);
; void tgi_done (void);
; /* End graphics mode, switch back to text mode. Will NOT unload the driver! */
.include "tgi-kernel.inc"
@@ -17,4 +17,3 @@
@L1: rts
.endproc

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 2011-05-01
;
; unsigned __fastcall__ tgi_getaspectratio (void);
; unsigned tgi_getaspectratio (void);
; /* Returns the aspect ratio for the loaded driver. The aspect ratio is an
; * 8.8 fixed point value.
; */
@@ -16,4 +16,3 @@
rts
.endproc

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 22.06.2002
;
; unsigned char __fastcall__ tgi_getcolor (void);
; unsigned char tgi_getcolor (void);
; /* Return the current drawing color */

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 22.06.2002
;
; unsigned char __fastcall__ tgi_getcolorcount (void);
; unsigned char tgi_getcolorcount (void);
; /* Get the number of available colors */
.include "tgi-kernel.inc"
@@ -13,4 +13,3 @@
rts
.endproc

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 23.06.2002
;
; const unsigned char* __fastcall__ tgi_getdefpalette (void);
; const unsigned char* tgi_getdefpalette (void);
; /* Return the default palette. Will return NULL for drivers that do not
; * support palettes.
; */
@@ -10,5 +10,3 @@
.include "tgi-kernel.inc"
_tgi_getdefpalette = tgi_getdefpalette ; Call the driver

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 21.06.2002
;
; unsigned char __fastcall__ tgi_geterror (void);
; unsigned char tgi_geterror (void);
; /* Return the error code for the last operation. This will also clear the
; * error.
; */
@@ -22,4 +22,3 @@
@L2: rts
.endproc

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 22.06.2002
;
; unsigned char __fastcall__ tgi_getmaxcolor (void);
; unsigned char tgi_getmaxcolor (void);
; /* Return the maximum supported color number (the number of colors would
; * then be getmaxcolor()+1).
; */
@@ -18,4 +18,3 @@
rts
.endproc

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 21.06.2002
;
; unsigned __fastcall__ tgi_getmaxx (void);
; unsigned tgi_getmaxx (void);
; /* Return the maximum x coordinate. The resolution in x direction is
; * getmaxx() + 1
; */
@@ -16,5 +16,3 @@
rts
.endproc

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 21.06.2002
;
; unsigned __fastcall__ tgi_getmaxy (void);
; unsigned tgi_getmaxy (void);
; /* Return the maximum y coordinate. The resolution in y direction is
; * getmaxy() + 1
; */
@@ -15,4 +15,3 @@
rts
.endproc

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 23.06.2002
;
; unsigned __fastcall__ tgi_getpagecount (void);
; unsigned tgi_getpagecount (void);
; /* Returns the number of screen pages available. */
;
@@ -14,4 +14,3 @@
rts
.endproc

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 23.06.2002
;
; const unsigned char* __fastcall__ tgi_getpalette (void);
; const unsigned char* tgi_getpalette (void);
; /* Return the current palette. Will return NULL for drivers that do not
; * support palettes.
; */
@@ -10,5 +10,3 @@
.include "tgi-kernel.inc"
_tgi_getpalette = tgi_getpalette ; Call the driver

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 21.06.2002
;
; unsigned __fastcall__ tgi_getxres (void);
; unsigned tgi_getxres (void);
; /* Return the resolution in X direction */
@@ -14,4 +14,3 @@
rts
.endproc

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 21.06.2002
;
; unsigned __fastcall__ tgi_getyres (void);
; unsigned tgi_getyres (void);
; /* Return the resolution in Y direction */
@@ -14,4 +14,3 @@
rts
.endproc

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 21.06.2002
;
; void __fastcall__ tgi_init (void);
; void tgi_init (void);
; /* Initialize the already loaded graphics driver */
@@ -72,5 +72,3 @@
@L9: rts
.endproc

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 21.06.2002
;
; void __fastcall__ tgi_unload (void);
; void tgi_unload (void);
; /* Unload the currently loaded driver. */
@@ -32,5 +32,3 @@ no_driver:
lda #<TGI_ERR_NO_DRIVER
sta _tgi_error
rts

View File

@@ -2,7 +2,7 @@
; Stefan Haubenthal, 2004-10-07
; Based on code from Pu-239
;
; unsigned char __fastcall__ get_tv (void);
; unsigned char get_tv (void);
; /* Return the video mode the machine is using */
;