Skip to content

Commit

Permalink
export the jl_get_nth_field symbol in libjulia.
Browse files Browse the repository at this point in the history
This isn't used directly outside of src, but repl code uses
jl_fieldref in several places, which is a macro that expands to
use jl_get_nth_field, so jl_get_nth_field needs to be exported in
the julia shared library.
  • Loading branch information
StefanKarpinski committed Aug 24, 2012
1 parent 2767d99 commit b624486
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/julia.expmap
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
bitvector_any1;
jl_new_struct;
jl_new_structt;
jl_get_nth_field;
jl_new_lambda_info;
jl_new_closure;
jl_new_array;
Expand Down
2 changes: 1 addition & 1 deletion src/julia.h
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ double jl_unbox_float64(jl_value_t *v);
// structs
void jl_compute_struct_offsets(jl_struct_type_t *st);
int jl_field_index(jl_struct_type_t *t, jl_sym_t *fld, int err);
jl_value_t *jl_get_nth_field(jl_value_t *v, size_t i);
DLLEXPORT jl_value_t *jl_get_nth_field(jl_value_t *v, size_t i);
jl_value_t *jl_set_nth_field(jl_value_t *v, size_t i, jl_value_t *rhs);

// arrays
Expand Down

0 comments on commit b624486

Please sign in to comment.