1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 02:29:52 +00:00

Rename dir_file_count to dir_entry_count

This commit is contained in:
Colin Leroy-Mira 2024-11-14 21:57:43 +01:00 committed by Oliver Schmidt
parent 40d9f3eed5
commit 700c01fa8b
5 changed files with 13 additions and 13 deletions

View File

@ -332,7 +332,7 @@ usage.
<item>_datetime
<item>allow_lowercase
<item>beep
<item>dir_file_count
<item>dir_entry_count
<item>get_ostype
<item>gmtime_dt
<item>mktime_dt

View File

@ -332,7 +332,7 @@ usage.
<item>_filetype
<item>_datetime
<item>beep
<item>dir_file_count
<item>dir_entry_count
<item>get_ostype
<item>gmtime_dt
<item>mktime_dt

View File

@ -97,7 +97,7 @@ function.
<item>_dos_type
<item>allow_lowercase
<item><ref id="beep" name="beep">
<item><ref id="dir_file_count" name="dir_file_count">
<item><ref id="dir_entry_count" name="dir_entry_count">
<item><ref id="get_ostype" name="get_ostype">
<item><ref id="gmtime_dt" name="gmtime_dt">
<item><ref id="mktime_dt" name="mktime_dt">
@ -110,7 +110,7 @@ function.
<itemize>
<item>_dos_type
<item><ref id="beep" name="beep">
<item><ref id="dir_file_count" name="dir_file_count">
<item><ref id="dir_entry_count" name="dir_entry_count">
<item><ref id="get_ostype" name="get_ostype">
<item><ref id="gmtime_dt" name="gmtime_dt">
<item><ref id="mktime_dt" name="mktime_dt">
@ -3526,16 +3526,16 @@ used in presence of a prototype.
</quote>
<sect1>dir_file_count<label id="dir_file_count"><p>
<sect1>dir_entry_count<label id="dir_entry_count"><p>
<quote>
<descrip>
<tag/Function/Returns the number of files in the directory.
<tag/Function/Returns the number of entries in the directory.
<tag/Header/<tt/<ref id="apple2.h" name="apple2.h">/
<tag/Declaration/<tt/unsigned int __fastcall__ dir_file_count(DIR *dir);/
<tag/Description/<tt/dir_file_count/ is machine dependent and does not exist for
<tag/Declaration/<tt/unsigned int __fastcall__ dir_entry_count(DIR *dir);/
<tag/Description/<tt/dir_entry_count/ is machine dependent and does not exist for
all supported targets. If it exists, it returns the number of active
(non-deleted) files in the directory.
(non-deleted) files and directories in the directory.
<tag/Notes/<itemize>
<item>The function does not exist on all platforms.
</itemize>

View File

@ -234,7 +234,7 @@ time_t __fastcall__ mktime_dt (const struct datetime* dt);
typedef struct DIR DIR;
unsigned int __fastcall__ dir_file_count(DIR *dir);
unsigned int __fastcall__ dir_entry_count(DIR *dir);
/* Returns the number of active files in a ProDOS directory */
#if !defined(__APPLE2ENH__)

View File

@ -1,17 +1,17 @@
;
; Colin Leroy-Mira <colin@colino.net>, 2024
;
; unsigned int __fastcall__ dir_file_count(DIR *dir);
; unsigned int __fastcall__ dir_entry_count(DIR *dir);
;
.export _dir_file_count
.export _dir_entry_count
.importzp ptr1
.include "apple2.inc"
.include "dir.inc"
.proc _dir_file_count
.proc _dir_entry_count
sta ptr1
stx ptr1+1