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

Merge functionality from zig-ar #4

Merged
merged 2 commits into from
Sep 27, 2021
Merged

Conversation

iddev5
Copy link
Collaborator

@iddev5 iddev5 commented Sep 27, 2021

This PR adds ability to write, extract, print and delete (r, x, p, d)

The contents field is heap allocated for now, it is to be optimized later.
The finalize() function expects the file has been opened in write mode.
All the added functions has been designed to be worked with multiple file inputs.

The write function would break if a file name larger than 15 bytes is entered. Is it a todo to add string table, which would be done in a separate PR.

Symbol table writing is not present either.

The generates .a files are usable for actual linking by compilers if ran with ranlib, so its technically working...

@iddev5 iddev5 changed the title Merge with zig ar Merge functionality from zig-ar Sep 27, 2021
@iddev5 iddev5 marked this pull request as ready for review September 27, 2021 07:42
@moosichu
Copy link
Owner

Just resolving the conflicts then will merge!

@moosichu moosichu merged commit 7399459 into moosichu:master Sep 27, 2021
@moosichu moosichu mentioned this pull request Sep 27, 2021
@iddev5 iddev5 deleted the merge-zig-ar branch September 27, 2021 08:53
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.

2 participants