diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-06-10 19:24:26 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-06-10 19:24:26 -0700 |
commit | 4982a7050f3da62dd89e8ae7d82da8f161a528b9 (patch) | |
tree | e6d732680a6197842fc3af95369a50c9ccc34850 | |
parent | 430e4c7082f89b75ca9fc5af11674392aaefdffb (diff) | |
download | txr-4982a7050f3da62dd89e8ae7d82da8f161a528b9.tar.gz txr-4982a7050f3da62dd89e8ae7d82da8f161a528b9.tar.bz2 txr-4982a7050f3da62dd89e8ae7d82da8f161a528b9.zip |
Rename carray_get.
* ffi.c (carray_get): Renamed to carray_ptr.
(ffi_carray_put): Follow rename.
* ffi.h (carray_get): Declaration removed.
(carray_put): Declared.
-rw-r--r-- | ffi.c | 4 | ||||
-rw-r--r-- | ffi.h | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -2562,7 +2562,7 @@ static val ffi_carray_get(struct txr_ffi_type *tft, mem_t *src, val self) static void ffi_carray_put(struct txr_ffi_type *tft, val carray, mem_t *dst, val self) { - mem_t *p = carray_get(carray, tft->eltype, self); + mem_t *p = carray_ptr(carray, tft->eltype, self); *coerce(mem_t **, dst) = p; } @@ -4397,7 +4397,7 @@ val length_carray(val carray) return if3(scry->nelem < 0, nil, num(scry->nelem)); } -mem_t *carray_get(val carray, val type, val self) +mem_t *carray_ptr(val carray, val type, val self) { struct carray *scry = carray_struct_checked(carray); if (scry->eltype != type) @@ -93,7 +93,7 @@ val carray_own(val carray); val carray_free(val carray); val carray_type(val carray); val length_carray(val carray); -mem_t *carray_get(val carray, val type, val self); +mem_t *carray_ptr(val carray, val type, val self); val carray_vec(val vec, val type, val null_term_p); val carray_blank(val nelem, val type); val carray_buf(val buf, val type); |