Skip to content

Commit

Permalink
Rename dir_file_count to dir_entry_count
Browse files Browse the repository at this point in the history
  • Loading branch information
colinleroy authored and oliverschmidt committed Nov 15, 2024
1 parent 40d9f3e commit 700c01f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion doc/apple2.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion doc/apple2enh.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions doc/funcref.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand All @@ -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">
Expand Down Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion include/apple2.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
;
; Colin Leroy-Mira <[email protected]>, 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

Expand Down

0 comments on commit 700c01f

Please sign in to comment.