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

Avoid invoking internal functions in the demo programs #9

Open
jserv opened this issue Jul 17, 2024 · 2 comments
Open

Avoid invoking internal functions in the demo programs #9

jserv opened this issue Jul 17, 2024 · 2 comments

Comments

@jserv
Copy link
Contributor

jserv commented Jul 17, 2024

Some of the demo applications are using internal functions such as _twin_widget_init, which should never be visible to Mado users. Sooner or later, the header twin_private.h should be moved from the include directory to the src directory, where the implementation parts are located. Known applications that should be changed include apps/clock.c, apps/line.c, and apps/spline.c.

@Damien-Chen
Copy link
Contributor

All file in /src directory can use functions declared in twin_private.h, but all source file in /apps are not allowed to use it. Is my understanding correct ?

@jserv
Copy link
Contributor Author

jserv commented Jul 18, 2024

All file in /src directory can use functions declared in twin_private.h, but all source file in /apps are not allowed to use it. Is my understanding correct ?

Yes, it is intentional.

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

No branches or pull requests

2 participants