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

Mark functions and variables as static #185

Merged
merged 15 commits into from May 7, 2024

Conversation

MaddTheSane
Copy link
Contributor

@MaddTheSane MaddTheSane commented Apr 25, 2024

These are variables and functions that are only used in their own source file.

This also moves some extern declarations in source files to relevant headers.
I also marked functions that I couldn't find any place it was used in Descent 3 (mostly light map generation) but might be used elsewhere (The editor, perhaps?).

@MaddTheSane MaddTheSane force-pushed the staticFuncs branch 3 times, most recently from d4560ca to 01a7f76 Compare April 28, 2024 20:34
2dlib/font.cpp Outdated Show resolved Hide resolved
@MaddTheSane MaddTheSane marked this pull request as ready for review May 1, 2024 08:45
Copy link
Contributor

@Jayman2000 Jayman2000 left a comment

Choose a reason for hiding this comment

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

I can confirm that this PR builds and runs fine on NixOS 23.11.

scripts/osiris_common.h Outdated Show resolved Hide resolved
@MaddTheSane

This comment was marked as duplicate.

Copy link
Collaborator

@Lgt2x Lgt2x left a comment

Choose a reason for hiding this comment

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

Good work. I went through the diff and it looks good.

Note to the merger to squash commits

@Lgt2x Lgt2x merged commit c6da74b into DescentDevelopers:main May 7, 2024
10 checks passed
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.

None yet

4 participants