aboutsummaryrefslogtreecommitdiff
path: root/elf/segment.lua
AgeCommit message (Collapse)Author
10 daysMove all the validations to correct place.Sunil Nimmagadda
11 daysHonor these segment options as well.Sunil Nimmagadda
11 daysGuard against invalid class.Sunil Nimmagadda
Though, class is validated in header normalize, make the code robust if used independently in pieces.
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-30Untangle segment vs segments.Sunil Nimmagadda
Let the elf module handle just a single segment/section while the wrapper does the iteration.
2026-10-29Move type checks to normalize.Sunil Nimmagadda
Let validate() check for valid values.
2026-10-27Make sure segment fields are all present.Sunil Nimmagadda
2026-10-24Segments: normalize and validate.Sunil Nimmagadda
While here mark mandatory and optional fields.
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.