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

pdf_new_name #89

Merged
merged 1 commit into from Sep 21, 2019
Merged

pdf_new_name #89

merged 1 commit into from Sep 21, 2019

Conversation

burrbull
Copy link
Collaborator

No description provided.

@@ -1156,31 +1129,40 @@ pub unsafe extern "C" fn pdf_set_string(
};
}
/* Name does *not* include the /. */
#[no_mangle]
pub unsafe extern "C" fn pdf_new_name(mut name: *const i8) -> *mut pdf_obj {
pub unsafe fn pdf_new_name(name: &str) -> *mut pdf_obj {
Copy link
Collaborator Author

@burrbull burrbull Sep 21, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pdf_new_name splitted on pdf_new_name(name: &str) and pdf_copy_name(name: *const i8).
Use Rust allocator.

@cormacrelf
Copy link
Collaborator

Generally pdfobj stuff would be superseded by #73

@cormacrelf
Copy link
Collaborator

This moves call sites in the right direction so good, but probably don’t go too far down the pdfobj rabbit hole

@burrbull
Copy link
Collaborator Author

burrbull commented Sep 21, 2019

rabbit hole

That's why I I do it by small steps.

@crlf0710
Copy link
Owner

Seems good, merging~

@crlf0710 crlf0710 merged commit 29a0622 into crlf0710:oxidize Sep 21, 2019
@burrbull burrbull deleted the pdf_new_name branch September 24, 2019 11:33
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.

None yet

3 participants