diff options
author | Ben Smith <binjimin@gmail.com> | 2017-01-31 17:16:19 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-31 17:16:19 -0800 |
commit | 4fdbb4647c519a42f3e54ed7a858194780ca2ae4 (patch) | |
tree | 3aebad7746c492930c32786061c655bb017fdc81 /src/vector-sort.h | |
parent | edb3a471bc249855d5ece45dc21ee69af700b19b (diff) | |
download | wabt-4fdbb4647c519a42f3e54ed7a858194780ca2ae4.tar.gz wabt-4fdbb4647c519a42f3e54ed7a858194780ca2ae4.tar.bz2 wabt-4fdbb4647c519a42f3e54ed7a858194780ca2ae4.zip |
Rename all wasm prefixes to wabt (#298)
Diffstat (limited to 'src/vector-sort.h')
-rw-r--r-- | src/vector-sort.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/vector-sort.h b/src/vector-sort.h index 9a5a93d9..78ca5f13 100644 --- a/src/vector-sort.h +++ b/src/vector-sort.h @@ -14,19 +14,19 @@ * limitations under the License. */ -#ifndef WASM_VECTOR_SORT_H_ -#define WASM_VECTOR_SORT_H_ +#ifndef WABT_VECTOR_SORT_H_ +#define WABT_VECTOR_SORT_H_ #include "vector.h" /* - * Define algorithm to sort wasm vectors (defined by macro WASM_VECTOR). + * Define algorithm to sort wabt vectors (defined by macro WABT_VECTOR). * */ -#define WASM_DEFINE_VECTOR_SORT(name, type) \ - static void wasm_sort_##name##_vector( \ - struct WasmAllocator* allocator, \ +#define WABT_DEFINE_VECTOR_SORT(name, type) \ + static void wabt_sort_##name##_vector( \ + struct WabtAllocator* allocator, \ type##Vector* in_vec, \ type##Vector* out_vec, \ void (*swap_fcn)(type* v1, type*v2), \ @@ -37,7 +37,7 @@ if (in_vec->size == 0) \ return; \ for (i = 0; i < in_vec->size; ++i) { \ - wasm_append_##name##_value(allocator, out_vec, &in_vec->data[i]); \ + wabt_append_##name##_value(allocator, out_vec, &in_vec->data[i]); \ if (out_vec->size < 2) \ continue; \ for (j = out_vec->size; j >= 2; --j) { \ @@ -49,4 +49,4 @@ } \ } -#endif // WASM_VECTOR_SORT_H_ +#endif // WABT_VECTOR_SORT_H_ |