aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
3 daysPoint to the jkoshy's project link.HEADmainSunil Nimmagadda
5 daysHow to use.Sunil Nimmagadda
5 daysGrammar.Sunil Nimmagadda
5 daysAdd a README.mdSunil Nimmagadda
5 daysIt's customary to require without parentheses.Sunil Nimmagadda
5 daysSuppress lsp diagnostics for these negative testcases.Sunil Nimmagadda
5 daysWhitespace.Sunil Nimmagadda
5 daysLeave a todo.Sunil Nimmagadda
5 daysExpose ipairs in the config environment.Sunil Nimmagadda
Let's the user specify repeated chunks succinctly.
5 daysCall it sample_elf.luaSunil Nimmagadda
5 daysuse table.concat() here too for consistency.Sunil Nimmagadda
5 daysLet luafmt win.Sunil Nimmagadda
6 daysUse table.concat() here.Sunil Nimmagadda
6 dayssection.normalize() tests.Sunil Nimmagadda
While here, move into tests/ sub-directory.
7 daysSome segment.pack tests.Sunil Nimmagadda
7 daysSome segment.normalize tests.Sunil Nimmagadda
7 daysConsistently collect the parts.Sunil Nimmagadda
7 daysnil is better here? let's see.Sunil Nimmagadda
7 daysLet's fix that trailing comma.Sunil Nimmagadda
7 daysConsistent name.Sunil Nimmagadda
7 daysAlign comments.Sunil Nimmagadda
7 daysDo a flat table.concat.Sunil Nimmagadda
7 daysAdd some big endian testcases.Sunil Nimmagadda
7 daysIndent properly.Sunil Nimmagadda
7 daysAdd a test case for ELF32.Sunil Nimmagadda
7 daysFormat it for visual inspection.Sunil Nimmagadda
While check, assert the header length against expected value too.
7 daysSome header methods tests.Sunil Nimmagadda
Use table.concat and try to to retain line order for quick visual check between pack() and testcases.
8 daysStart with some tests.Sunil Nimmagadda
8 daysThese need not be annotated as nodiscard.Sunil Nimmagadda
9 daysCheck close() error.Sunil Nimmagadda
While here leave a TODO to write to a tmp and atomic rename to outfn.
10 daysNeed to improve comments, wip.Sunil Nimmagadda
10 daysMake it inspection friendly.Sunil Nimmagadda
10 daysSection index in error message.Sunil Nimmagadda
10 daysMove all the validations to correct place.Sunil Nimmagadda
10 dayslayout scaffolding.Sunil Nimmagadda
Make room for layout calculations. Prioritize user specified options first for layout calculations so that layout gets first hand decision if an option was specified or missing. This makes current normalize() just a dumb defaults setter that are not layout calculated or fell through.
10 daysWill be handled in the upcoming layout function.Sunil Nimmagadda
10 daysWrap pack inside a pack and simplify error reporting.Sunil Nimmagadda
10 daysSections owns the content.Sunil Nimmagadda
10 daysClose the Lua state.Sunil Nimmagadda
11 daysShorter loop variable name. Avoid repetition.Sunil Nimmagadda
11 daysMove header check to loadconfig.Sunil Nimmagadda
11 daysPack first in memory and then write.Sunil Nimmagadda
11 daysHonor these segment options as well.Sunil Nimmagadda
11 daysPack before opening the file for write.Sunil Nimmagadda
Any pack errors shouldn't cause partial writes. Assemble binary in memory before opening the out file.
11 daysDisable this for now.Sunil Nimmagadda
11 daysMake it a proper module and call main accordingly.Sunil Nimmagadda
11 daysMake the sample recognizable.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.
11 daysInitialize it to nil.Sunil Nimmagadda
11 daysHonor these user specified header fields.Sunil Nimmagadda