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

Make defaultatoms.h/.c easier to maintain #1413

Merged
merged 4 commits into from
Dec 26, 2024

Conversation

bettio
Copy link
Collaborator

@bettio bettio commented Dec 24, 2024

Just keep one list of atoms, and use the old good X macro trick https://en.wikipedia.org/wiki/X_macro

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

src/libAtomVM/defaultatoms.h Outdated Show resolved Hide resolved
@bettio bettio force-pushed the make-defaultatoms-maintainable branch 5 times, most recently from 7e64af8 to 14b1b29 Compare December 26, 2024 17:01
Just keep one list of atoms, and use the old good X macro trick
https://en.wikipedia.org/wiki/X_macro

Signed-off-by: Davide Bettio <davide@uninstall.it>
No need to make a lot of checks: default atoms insertion is not error
prone anymore.

Signed-off-by: Davide Bettio <davide@uninstall.it>
Using same approach used in defaultatoms also for ESP32 platform ones.

Signed-off-by: Davide Bettio <davide@uninstall.it>
Using same approach used in defaultatoms also for generic_unix platform ones.

Signed-off-by: Davide Bettio <davide@uninstall.it>
@bettio bettio force-pushed the make-defaultatoms-maintainable branch from 14b1b29 to 5363c44 Compare December 26, 2024 17:18
@bettio bettio merged commit ba76d77 into atomvm:main Dec 26, 2024
104 checks passed
bettio added a commit that referenced this pull request Dec 27, 2024
CodeQL: Fix _ATOM handling in non-term-to-term-func

After #1413, CodeQL was reporting a lot of noise.

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
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.

1 participant