Skip to content

Commit

Permalink
lone: rename intrinsic module initialize functions
Browse files Browse the repository at this point in the history
They were moved to the intrinsic directory but not renamed.
Rectify this mistake.
  • Loading branch information
matheusmoreira committed Dec 3, 2023
1 parent f89692e commit 2a8378e
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion include/lone/modules/intrinsic/linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
│ │
╰────────────────────────────────────────────────────────────────────────╯ */

void lone_module_linux_initialize(struct lone_lisp *lone, int argc, char **argv, char **envp, struct lone_auxiliary_vector *auxv);
void lone_modules_intrinsic_linux_initialize(struct lone_lisp *lone, int argc, char **argv, char **envp, struct lone_auxiliary_vector *auxv);

LONE_PRIMITIVE(linux_system_call);

Expand Down
2 changes: 1 addition & 1 deletion include/lone/modules/intrinsic/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
│ │
╰────────────────────────────────────────────────────────────────────────╯ */

void lone_module_list_initialize(struct lone_lisp *lone);
void lone_modules_intrinsic_list_initialize(struct lone_lisp *lone);

LONE_PRIMITIVE(list_construct);
LONE_PRIMITIVE(list_first);
Expand Down
2 changes: 1 addition & 1 deletion include/lone/modules/intrinsic/lone.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
│ │
╰────────────────────────────────────────────────────────────────────────╯ */

void lone_module_lone_initialize(struct lone_lisp *lone);
void lone_modules_intrinsic_lone_initialize(struct lone_lisp *lone);

LONE_PRIMITIVE(lone_begin);
LONE_PRIMITIVE(lone_when);
Expand Down
2 changes: 1 addition & 1 deletion include/lone/modules/intrinsic/math.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
│ │
╰────────────────────────────────────────────────────────────────────────╯ */

void lone_module_math_initialize(struct lone_lisp *lone);
void lone_modules_intrinsic_math_initialize(struct lone_lisp *lone);

LONE_PRIMITIVE(math_add);
LONE_PRIMITIVE(math_subtract);
Expand Down
2 changes: 1 addition & 1 deletion include/lone/modules/intrinsic/text.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
│ │
╰────────────────────────────────────────────────────────────────────────╯ */

void lone_module_text_initialize(struct lone_lisp *lone);
void lone_modules_intrinsic_text_initialize(struct lone_lisp *lone);

LONE_PRIMITIVE(text_join);
LONE_PRIMITIVE(text_concatenate);
Expand Down
10 changes: 5 additions & 5 deletions source/lone/modules/intrinsic.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@

void lone_modules_intrinsic_initialize(struct lone_lisp *lone, int argc, char **argv, char **envp, struct lone_auxiliary_vector *auxv)
{
lone_module_linux_initialize(lone, argc, argv, envp, auxv);
lone_module_lone_initialize(lone);
lone_module_math_initialize(lone);
lone_module_text_initialize(lone);
lone_module_list_initialize(lone);
lone_modules_intrinsic_linux_initialize(lone, argc, argv, envp, auxv);
lone_modules_intrinsic_lone_initialize(lone);
lone_modules_intrinsic_math_initialize(lone);
lone_modules_intrinsic_text_initialize(lone);
lone_modules_intrinsic_list_initialize(lone);
lone_modules_intrinsic_vector_initialize(lone);
lone_modules_intrinsic_table_initialize(lone);
}
2 changes: 1 addition & 1 deletion source/lone/modules/intrinsic/linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ static void lone_fill_linux_system_call_table(struct lone_lisp *lone, struct lon
}
}

void lone_module_linux_initialize(struct lone_lisp *lone, int argc, char **argv, char **envp, struct lone_auxiliary_vector *auxv)
void lone_modules_intrinsic_linux_initialize(struct lone_lisp *lone, int argc, char **argv, char **envp, struct lone_auxiliary_vector *auxv)
{
struct lone_value *name = lone_intern_c_string(lone, "linux"),
*module = lone_module_for_name(lone, name),
Expand Down
2 changes: 1 addition & 1 deletion source/lone/modules/intrinsic/list.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include <lone/linux.h>

void lone_module_list_initialize(struct lone_lisp *lone)
void lone_modules_intrinsic_list_initialize(struct lone_lisp *lone)
{
struct lone_value *name = lone_intern_c_string(lone, "list"),
*module = lone_module_for_name(lone, name),
Expand Down
2 changes: 1 addition & 1 deletion source/lone/modules/intrinsic/lone.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include <lone/linux.h>

void lone_module_lone_initialize(struct lone_lisp *lone)
void lone_modules_intrinsic_lone_initialize(struct lone_lisp *lone)
{
struct lone_value *name = lone_intern_c_string(lone, "lone"),
*module = lone_module_for_name(lone, name),
Expand Down
2 changes: 1 addition & 1 deletion source/lone/modules/intrinsic/math.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <lone/utilities.h>
#include <lone/linux.h>

void lone_module_math_initialize(struct lone_lisp *lone)
void lone_modules_intrinsic_math_initialize(struct lone_lisp *lone)
{
struct lone_value *name = lone_intern_c_string(lone, "math"),
*module = lone_module_for_name(lone, name),
Expand Down
2 changes: 1 addition & 1 deletion source/lone/modules/intrinsic/text.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <lone/value/symbol.h>
#include <lone/value/text.h>

void lone_module_text_initialize(struct lone_lisp *lone)
void lone_modules_intrinsic_text_initialize(struct lone_lisp *lone)
{
struct lone_value *name = lone_intern_c_string(lone, "text"),
*module = lone_module_for_name(lone, name),
Expand Down

0 comments on commit 2a8378e

Please sign in to comment.