Skip to content

Add wildcard support to file and directory functions#119

Open
HeathenUK wants to merge 1 commit intobreakintoprogram:mainfrom
HeathenUK:featue_wildcards
Open

Add wildcard support to file and directory functions#119
HeathenUK wants to merge 1 commit intobreakintoprogram:mainfrom
HeathenUK:featue_wildcards

Conversation

@HeathenUK
Copy link
Contributor

Adds wildcard support to MOS DIR, COPY, MOVE/RENAME and DELETE commands.

As a consequence (and similar to MOS's own strtok implementation there are some basic strdup and strndup functions added to avoid lots of malloc spam.

This also requires FF_USE_FIND to be switched to 1, but this has had no measurable impact on performance or memory use.


//Alternative to missing strnlen() in ZDS libraries
size_t mos_strnlen(const char *s, size_t maxlen) {
size_t len = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect your editor isn't set up to match the general style for C code in MOS...

these files generally use tabs rather than spaces. for the most part, I believe a tab size of 4 works for the C files; the assembler files seem to be written assuming a tab size of 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants