Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: [atari] fgetpos/fsetpos using NOTE/POINT #355

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pfusik
Copy link
Contributor

@pfusik pfusik commented Aug 11, 2024

No description provided.

@pfusik
Copy link
Contributor Author

pfusik commented Aug 11, 2024

These are initial steps on #334 .
Comments welcome - especially on naming functions, fields, source filenames.


.globl __point

__point:
Copy link
Contributor

Choose a reason for hiding this comment

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

Add .section .text.__point,"ax",@progbits


.globl __note

__note:
Copy link
Contributor

@mlund mlund Aug 17, 2024

Choose a reason for hiding this comment

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

Add .section .text.__note,"ax",@progbits

#include <stdio.h>
#include <__stdio-internal.h>

char __note(int fd, fpos_t *pos);
Copy link
Contributor

Choose a reason for hiding this comment

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

Annotate function with __attribute__((leaf))

@@ -8,12 +8,13 @@
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <stdbool.h>
Copy link
Contributor

@mlund mlund Aug 17, 2024

Choose a reason for hiding this comment

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

stdbool.h is coming in #357.

Copy link
Member

Choose a reason for hiding this comment

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

We do already have <stdbool.h>; it just comes from clang, not the SDK.

Copy link
Member

@mysterymath mysterymath left a comment

Choose a reason for hiding this comment

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

Generally looks good overall; at least good enough to finish out the development.

@@ -8,12 +8,13 @@
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <stdbool.h>
Copy link
Member

Choose a reason for hiding this comment

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

We do already have <stdbool.h>; it just comes from clang, not the SDK.

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.

3 participants