aboutsummaryrefslogtreecommitdiff
path: root/elf/section.lua
AgeCommit message (Collapse)Author
5 daysLet luafmt win.Sunil Nimmagadda
6 daysUse table.concat() here.Sunil Nimmagadda
10 daysMove all the validations to correct place.Sunil Nimmagadda
10 daysSections owns the content.Sunil Nimmagadda
12 daysConsistent comma.Sunil Nimmagadda
12 daysRefactor normalize() to prevent in-place mutation.Sunil Nimmagadda
We would need to distinguish user configuration options from normalization. Let normalize() return a new table instead of in-place update. Split annotations into xxxOptions and xxx for header, segments and sections, delineating optional vs normalized table. Leave header, segments and sections as just a data table for now and stop trying to make them objects. Leave data alone.
2026-10-30Better place to check them is loadconfig.Sunil Nimmagadda
Can't setmetatable() in loadconfig without the type check. These are redundant here now.
2026-10-30section: Normalize and have stub name to index function.Sunil Nimmagadda
2026-10-30Untangle segment vs segments.Sunil Nimmagadda
Let the elf module handle just a single segment/section while the wrapper does the iteration.
2026-10-29Start packing sections.Sunil Nimmagadda
2026-10-24Attach the respective metatables to loaded the config.Sunil Nimmagadda
This simplifies calling pack() on respective tables.
2026-10-23Refactor: Move to an elf module.Sunil Nimmagadda
While here, define a elf.d.lua to help author type check configuration file.