Skip to content

Header updates 2025#3

Open
johnbaumann wants to merge 8 commits into
masterfrom
header_updates_2025
Open

Header updates 2025#3
johnbaumann wants to merge 8 commits into
masterfrom
header_updates_2025

Conversation

@johnbaumann
Copy link
Copy Markdown
Owner

No description provided.

@johnbaumann johnbaumann requested a review from Copilot March 28, 2025 20:14
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the README file to document header fixes and improvements for version 2025.

  • Clarifies and fixes header description for gte bytecode/macros.
  • Redirects duplicate header entries to the sys directory.
  • Updates definitions for L3/R3, stddef.h usage, and enhances the strdup macro.
Files not reviewed (19)
  • include/errno.h: Language not supported
  • include/fcntl.h: Language not supported
  • include/file.h: Language not supported
  • include/fs.h: Language not supported
  • include/inline_n.h: Language not supported
  • include/ioctl.h: Language not supported
  • include/kernel.h: Language not supported
  • include/libetc.h: Language not supported
  • include/libgs.h: Language not supported
  • include/libmcx.h: Language not supported
  • include/libpad.h: Language not supported
  • include/libsn.h: Language not supported
  • include/libsnd.h: Language not supported
  • include/malloc.h: Language not supported
  • include/memory.h: Language not supported
  • include/qsort.h: Language not supported
  • include/stddef.h: Language not supported
  • include/stdio.h: Language not supported
  • include/strings.h: Language not supported

Comment thread README.md
# Bug Fixes
- libgpu.h Protect against possible alignment issues in DISPENV, fix contributed by StiNKz
- stdarg.h Deleted, as this is a compiler specific implementation and gcc has its own
- Fix error in gte bytecode/macros for gte_gpl0 and gte_gpl0_b where an extra byte was included, identified by <vini> cius
Copy link

Copilot AI Mar 28, 2025

Choose a reason for hiding this comment

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

The term 'cius' appears to be a typo. Please verify and correct it if necessary.

Suggested change
- Fix error in gte bytecode/macros for gte_gpl0 and gte_gpl0_b where an extra byte was included, identified by <vini> cius
- Fix error in gte bytecode/macros for gte_gpl0 and gte_gpl0_b where an extra byte was included, identified by <vini>

Copilot uses AI. Check for mistakes.
Comment thread include/strings.h
#endif

#define strdup(p) ( strcpy(malloc(strlen(p)+1),p); )
#define strdup(p) do { strcpy(malloc(strlen(p) + 1), p); } while (0)
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Need to re-examine this macro, strcpy returns a char*, but wrapping the function like so will not return the value.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Oh, yeah, that's actually broken. Might be better doing this with a static inline.

@nicolasnoble
Copy link
Copy Markdown

Yep, looks all good from here.

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.

4 participants