Skip to content
Snippets Groups Projects
Commit b2706a21 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

modules: renamed ‘modulelist_t’ to ‘module_array_t’

parent 157d3c64
No related branches found
No related tags found
No related merge requests found
......@@ -277,7 +277,7 @@ int engine_register(struct engine *engine, const char *name)
int engine_unregister(struct engine *engine, const char *name)
{
/* Find matching module. */
modulelist_t *mod_list = &engine->modules;
module_array_t *mod_list = &engine->modules;
size_t found = mod_list->len;
for (size_t i = 0; i < mod_list->len; ++i) {
if (strcmp(mod_list->at[i].name, name) == 0) {
......
......@@ -26,8 +26,8 @@ struct lua_State;
struct engine {
struct kr_context resolver;
modulelist_t modules;
struct network net;
module_array_t modules;
mm_ctx_t *pool;
struct lua_State *L;
};
......
......@@ -26,7 +26,7 @@
#include "lib/module.h"
/** Array of modules. */
typedef array_t(struct kr_module) modulelist_t;
typedef array_t(struct kr_module) module_array_t;
/**
* Name resolution context.
......@@ -40,7 +40,7 @@ struct kr_context
{
mm_ctx_t *pool;
struct kr_cache *cache;
modulelist_t *modules;
module_array_t *modules;
uint32_t options;
};
......
......@@ -24,7 +24,7 @@
* Globals
*/
static mm_ctx_t global_mm; /* Test memory context */
static modulelist_t global_modules; /* Array of modules. */
static module_array_t global_modules; /* Array of modules. */
static struct kr_context global_context; /* Resolution context */
static const char *global_tmpdir = NULL; /* Temporary directory */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment