Rename dir_file_count to dir_entry_count
This commit is contained in:
committed by
Oliver Schmidt
parent
40d9f3eed5
commit
700c01fa8b
@@ -332,7 +332,7 @@ usage.
|
|||||||
<item>_datetime
|
<item>_datetime
|
||||||
<item>allow_lowercase
|
<item>allow_lowercase
|
||||||
<item>beep
|
<item>beep
|
||||||
<item>dir_file_count
|
<item>dir_entry_count
|
||||||
<item>get_ostype
|
<item>get_ostype
|
||||||
<item>gmtime_dt
|
<item>gmtime_dt
|
||||||
<item>mktime_dt
|
<item>mktime_dt
|
||||||
|
|||||||
@@ -332,7 +332,7 @@ usage.
|
|||||||
<item>_filetype
|
<item>_filetype
|
||||||
<item>_datetime
|
<item>_datetime
|
||||||
<item>beep
|
<item>beep
|
||||||
<item>dir_file_count
|
<item>dir_entry_count
|
||||||
<item>get_ostype
|
<item>get_ostype
|
||||||
<item>gmtime_dt
|
<item>gmtime_dt
|
||||||
<item>mktime_dt
|
<item>mktime_dt
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ function.
|
|||||||
<item>_dos_type
|
<item>_dos_type
|
||||||
<item>allow_lowercase
|
<item>allow_lowercase
|
||||||
<item><ref id="beep" name="beep">
|
<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="get_ostype" name="get_ostype">
|
||||||
<item><ref id="gmtime_dt" name="gmtime_dt">
|
<item><ref id="gmtime_dt" name="gmtime_dt">
|
||||||
<item><ref id="mktime_dt" name="mktime_dt">
|
<item><ref id="mktime_dt" name="mktime_dt">
|
||||||
@@ -110,7 +110,7 @@ function.
|
|||||||
<itemize>
|
<itemize>
|
||||||
<item>_dos_type
|
<item>_dos_type
|
||||||
<item><ref id="beep" name="beep">
|
<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="get_ostype" name="get_ostype">
|
||||||
<item><ref id="gmtime_dt" name="gmtime_dt">
|
<item><ref id="gmtime_dt" name="gmtime_dt">
|
||||||
<item><ref id="mktime_dt" name="mktime_dt">
|
<item><ref id="mktime_dt" name="mktime_dt">
|
||||||
@@ -3526,16 +3526,16 @@ used in presence of a prototype.
|
|||||||
</quote>
|
</quote>
|
||||||
|
|
||||||
|
|
||||||
<sect1>dir_file_count<label id="dir_file_count"><p>
|
<sect1>dir_entry_count<label id="dir_entry_count"><p>
|
||||||
|
|
||||||
<quote>
|
<quote>
|
||||||
<descrip>
|
<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/Header/<tt/<ref id="apple2.h" name="apple2.h">/
|
||||||
<tag/Declaration/<tt/unsigned int __fastcall__ dir_file_count(DIR *dir);/
|
<tag/Declaration/<tt/unsigned int __fastcall__ dir_entry_count(DIR *dir);/
|
||||||
<tag/Description/<tt/dir_file_count/ is machine dependent and does not exist for
|
<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
|
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>
|
<tag/Notes/<itemize>
|
||||||
<item>The function does not exist on all platforms.
|
<item>The function does not exist on all platforms.
|
||||||
</itemize>
|
</itemize>
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ time_t __fastcall__ mktime_dt (const struct datetime* dt);
|
|||||||
|
|
||||||
typedef struct DIR DIR;
|
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 */
|
/* Returns the number of active files in a ProDOS directory */
|
||||||
|
|
||||||
#if !defined(__APPLE2ENH__)
|
#if !defined(__APPLE2ENH__)
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
;
|
;
|
||||||
; Colin Leroy-Mira <colin@colino.net>, 2024
|
; 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
|
.importzp ptr1
|
||||||
|
|
||||||
.include "apple2.inc"
|
.include "apple2.inc"
|
||||||
.include "dir.inc"
|
.include "dir.inc"
|
||||||
|
|
||||||
.proc _dir_file_count
|
.proc _dir_entry_count
|
||||||
sta ptr1
|
sta ptr1
|
||||||
stx ptr1+1
|
stx ptr1+1
|
||||||
|
|
||||||
Reference in New Issue
Block a user