Skip to content

Commit fd243fc

Browse files
committed
fixup docs
1 parent b0043e2 commit fd243fc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/dev/ffi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ In the case of `@[extern]` all *irrelevant* types are removed first; see next se
5252
Similarly, the signed integer types `Int8`, ..., `Int64`, `ISize` are also represented by the unsigned C types `uint8_t`, ..., `uint64_t`, `size_t`, respectively, because they have a trivial structure.
5353
* `Nat` and `Int` are represented by `lean_object *`.
5454
Their runtime values is either a pointer to an opaque bignum object or, if the lowest bit of the "pointer" is 1 (`lean_is_scalar`), an encoded unboxed natural number or integer (`lean_box`/`lean_unbox`).
55-
* A universe `Sort u`, type constructor `... → Sort u`, or proposition `p : Prop` is *irrelevant* and is either statically erased (see above) or represented as a `lean_object *` with the runtime value `lean_box(0)`
55+
* A universe `Sort u`, type constructor `... → Sort u`, `Void α` or proposition `p : Prop` is *irrelevant* and is either statically erased (see above) or represented as a `lean_object *` with the runtime value `lean_box(0)`
5656
* Any other type is represented by `lean_object *`.
5757
Its runtime value is a pointer to an object of a subtype of `lean_object` (see the "Inductive types" section below) or the unboxed value `lean_box(cidx)` for the `cidx`th constructor of an inductive type if this constructor does not have any relevant parameters.
5858
@@ -141,8 +141,8 @@ void lean_initialize_runtime_module();
141141
void lean_initialize();
142142
char ** lean_setup_args(int argc, char ** argv);
143143

144-
lean_object * initialize_A_B(uint8_t builtin, lean_object *);
145-
lean_object * initialize_C(uint8_t builtin, lean_object *);
144+
lean_object * initialize_A_B(uint8_t builtin);
145+
lean_object * initialize_C(uint8_t builtin);
146146
...
147147

148148
argv = lean_setup_args(argc, argv); // if using process-related functionality
@@ -152,15 +152,15 @@ lean_initialize_runtime_module();
152152
lean_object * res;
153153
// use same default as for Lean executables
154154
uint8_t builtin = 1;
155-
res = initialize_A_B(builtin, lean_io_mk_world());
155+
res = initialize_A_B(builtin);
156156
if (lean_io_result_is_ok(res)) {
157157
lean_dec_ref(res);
158158
} else {
159159
lean_io_result_show_error(res);
160160
lean_dec(res);
161161
return ...; // do not access Lean declarations if initialization failed
162162
}
163-
res = initialize_C(builtin, lean_io_mk_world());
163+
res = initialize_C(builtin);
164164
if (lean_io_result_is_ok(res)) {
165165
...
166166

0 commit comments

Comments
 (0)