diff options
author | Determinant <[email protected]> | 2015-05-30 20:52:05 +0800 |
---|---|---|
committer | Determinant <[email protected]> | 2015-05-30 20:52:05 +0800 |
commit | 5edaa7d5649a2e124496159f7e8a14edab4f7484 (patch) | |
tree | d880fd9587acb87701921583ada3b6aae65bbbda /matrix | |
parent | f10330fd95aa87cf6b21d292cf54c77bacfd2e40 (diff) |
rename param file to chunk file (intend to generalize it)
Diffstat (limited to 'matrix')
-rw-r--r-- | matrix/generic/cumatrix.c | 1 | ||||
-rw-r--r-- | matrix/generic/mmatrix.c | 8 |
2 files changed, 4 insertions, 5 deletions
diff --git a/matrix/generic/cumatrix.c b/matrix/generic/cumatrix.c index ed64bbf..c4ba937 100644 --- a/matrix/generic/cumatrix.c +++ b/matrix/generic/cumatrix.c @@ -90,7 +90,6 @@ static int nerv_matrix_(mul)(lua_State *L) { static int nerv_matrix_(create)(lua_State *L) { Matrix *a = luaT_checkudata(L, 1, nerv_matrix_(tname)); - fprintf(stderr, "create\n"); Matrix *b = nerv_matrix_(new_)(a->nrow, a->ncol); luaT_pushudata(L, b, nerv_matrix_(tname)); return 1; diff --git a/matrix/generic/mmatrix.c b/matrix/generic/mmatrix.c index c25b9f7..4b43572 100644 --- a/matrix/generic/mmatrix.c +++ b/matrix/generic/mmatrix.c @@ -11,7 +11,7 @@ #define MATRIX_BASE_TNAME nerv_matrix_host_tname #define NERV_GENERIC_MATRIX #include "../../common.h" -#include "../../io/param.h" +#include "../../io/chunk_file.h" static void host_matrix_(alloc)(MATRIX_ELEM **dptr, size_t *stride, long width, long height) { @@ -46,7 +46,7 @@ static void host_matrix_(init)(lua_State *L) { #include "matrix.c" int nerv_matrix_(load)(lua_State *L) { - ParamChunkData *chunk = luaT_checkudata(L, 1, nerv_param_chunk_data_tname); + ChunkData *chunk = luaT_checkudata(L, 1, nerv_chunk_data_tname); Matrix *self; int i, j; long nrow, ncol; @@ -69,8 +69,8 @@ int nerv_matrix_(load)(lua_State *L) { } int nerv_matrix_(save)(lua_State *L) { - ParamFileHandle *chunk = luaT_checkudata(L, 2, - nerv_param_file_handle_tname); + ChunkFileHandle *chunk = luaT_checkudata(L, 2, + nerv_chunk_file_handle_tname); Matrix *self = luaT_checkudata(L, 1, nerv_matrix_(tname)); int i, j; long nrow = self->nrow, ncol = self->ncol; |