Skip to content

Commit

Permalink
Tweak header files
Browse files Browse the repository at this point in the history
  • Loading branch information
yutannihilation committed Dec 17, 2023
1 parent 3e1824b commit d9dc73a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ SEXP handle_result(SEXP res_) {
//
if (TYPEOF(res_aligned) == CHARSXP) {
// In case 1, the result is an error message that can be passed to
// Rf_error() directly.
Rf_error("%s", CHAR(res_aligned));
// Rf_errorcall() directly.
Rf_errorcall(R_NilValue, "%s", CHAR(res_aligned));
} else {
// In case 2, the result is the token to restart the
// cleanup process on R's side.
Expand Down Expand Up @@ -66,7 +66,7 @@ SEXP string2fill_file__impl(SEXP text, SEXP font_file, SEXP tolerance) {
return handle_result(res);
}

SEXP dump_fontdb_impl__impl() {
SEXP dump_fontdb_impl__impl(void) {
SEXP res = dump_fontdb_impl();
return handle_result(res);
}
Expand Down
2 changes: 1 addition & 1 deletion src/rust/api.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ SEXP string2stroke_family(SEXP text, SEXP font_family, SEXP font_weight, SEXP fo
SEXP string2stroke_file(SEXP text, SEXP font_file, SEXP tolerance, SEXP line_width);
SEXP string2fill_family(SEXP text, SEXP font_family, SEXP font_weight, SEXP font_style, SEXP tolerance);
SEXP string2fill_file(SEXP text, SEXP font_file, SEXP tolerance);
SEXP dump_fontdb_impl();
SEXP dump_fontdb_impl(void);

0 comments on commit d9dc73a

Please sign in to comment.