From 310bcec26064c69ec6628ee237ac5dfbc188e0dc Mon Sep 17 00:00:00 2001 From: sogaiu <983021772@users.noreply.github.com> Date: Wed, 25 Jan 2023 18:45:19 +0900 Subject: [PATCH] Misc comment tweaks --- src/core/compile.h | 4 ++-- src/core/state.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/compile.h b/src/core/compile.h index 7c091ee1..90f81732 100644 --- a/src/core/compile.h +++ b/src/core/compile.h @@ -133,7 +133,7 @@ struct JanetScope { /* FuncDefs */ JanetFuncDef **defs; - /* Regsiter allocator */ + /* Register allocator */ JanetcRegisterAllocator ra; /* Upvalue allocator */ @@ -227,7 +227,7 @@ JanetSlot *janetc_toslots(JanetCompiler *c, const Janet *vals, int32_t len); /* Get a bunch of slots for function arguments */ JanetSlot *janetc_toslotskv(JanetCompiler *c, Janet ds); -/* Push slots load via janetc_toslots. */ +/* Push slots loaded via janetc_toslots. */ int32_t janetc_pushslots(JanetCompiler *c, JanetSlot *slots); /* Free slots loaded via janetc_toslots */ diff --git a/src/core/state.h b/src/core/state.h index 0abb0d98..01b51c2e 100644 --- a/src/core/state.h +++ b/src/core/state.h @@ -60,7 +60,7 @@ typedef struct { int is_error; } JanetTimeout; -/* Registry table for C functions - containts metadata that can +/* Registry table for C functions - contains metadata that can * be looked up by cfunction pointer. All strings here are pointing to * static memory not managed by Janet. */ typedef struct { @@ -91,7 +91,7 @@ struct JanetVM { int auto_suspend; /* The current running fiber on the current thread. - * Set and unset by janet_run. */ + * Set and unset by functions in vm.c */ JanetFiber *fiber; JanetFiber *root_fiber; @@ -107,7 +107,7 @@ struct JanetVM { size_t registry_count; int registry_dirty; - /* Registry for abstract abstract types that can be marshalled. + /* Registry for abstract types that can be marshalled. * We need this to look up the constructors when unmarshalling. */ JanetTable *abstract_registry;