poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix spelling mistakes in the codebase


From: Constantin Nickel
Subject: [PATCH] Fix spelling mistakes in the codebase
Date: Tue, 23 May 2023 23:03:15 +0200

2023-05-23  Constantin Nickel  <constantin.nickel@gmail.com>

        * common/pk-utils.h: Fix spelling mistakes.
        * doc/poke.texi: Likewise.
        * libpoke/ios.h: Likewise.
        * libpoke/libpoke.h: Likewise.
        * libpoke/pkl-ast.h: Likewise.
        * libpoke/pkl-promo.c: Likewise.
        * libpoke/pkl-rt.pk: Likewise.
        * libpoke/pkl.h: Likewise.
        * libpoke/pvm-val.h: Likewise.
        * libpoke/pvm.jitter: Likewise.
        * libpoke/ras: Likewise.
        * pickles/pe.pk: Likewise.
        * poke/pk-cmd-ios.c: Likewise.
        * poke/pk-settings.pk: Likewise.
        * testsuite/poke.pkl/eq-any-integral-1.pk: Likewise.
        * testsuite/poke.pkl/eq-any-integral-2.pk: Likewise.
        * testsuite/poke.pkl/eq-any-integral-3.pk: Likewise.
        * testsuite/poke.pkl/eq-any-integral-4.pk: Likewise.
---
 common/pk-utils.h                       |  2 +-
 doc/poke.texi                           | 12 ++++++------
 libpoke/ios.h                           |  2 +-
 libpoke/libpoke.h                       | 12 ++++++------
 libpoke/pkl-ast.h                       | 12 ++++++------
 libpoke/pkl-promo.c                     |  2 +-
 libpoke/pkl-rt.pk                       |  4 ++--
 libpoke/pkl.h                           |  2 +-
 libpoke/pvm-val.h                       |  2 +-
 libpoke/pvm.jitter                      |  2 +-
 libpoke/ras                             |  4 ++--
 pickles/pe.pk                           |  2 +-
 poke/pk-cmd-ios.c                       |  2 +-
 poke/pk-settings.pk                     |  4 ++--
 testsuite/poke.pkl/eq-any-integral-1.pk |  2 +-
 testsuite/poke.pkl/eq-any-integral-2.pk |  2 +-
 testsuite/poke.pkl/eq-any-integral-3.pk |  2 +-
 testsuite/poke.pkl/eq-any-integral-4.pk |  2 +-
 18 files changed, 36 insertions(+), 36 deletions(-)

diff --git a/common/pk-utils.h b/common/pk-utils.h
index 45785574..97f5dc0a 100644
--- a/common/pk-utils.h
+++ b/common/pk-utils.h
@@ -63,7 +63,7 @@ char *pk_str_concat (const char *s0, ...) __attribute__ 
((sentinel));
 /* Replace all occurrences of SEARCH within IN by REPLACE. */
 char *pk_str_replace (const char *in, const char *search, const char *replace);
 
-/* Left and rigth trim the given string from whitespaces.  */
+/* Left and right trim the given string from whitespaces.  */
 void pk_str_trim (char **str);
 
 /* Convert floating-point number in input string STR and save the
diff --git a/doc/poke.texi b/doc/poke.texi
index 07760350..574a585f 100644
--- a/doc/poke.texi
+++ b/doc/poke.texi
@@ -8467,7 +8467,7 @@ socket.  This is very convenient for programs to interact 
with the
 poke incremental compiler.  The client programs that interact with
 @code{poked} are called @emph{pokelets}.
 
-This form of interaction is particularly userful to write user
+This form of interaction is particularly useful to write user
 interfaces to GNU poke, in the form of several pokelets.  Examples
 of such interfaces are
 @url{https://git.savannah.gnu.org/cgit/poke/poke-el.git,Emacs
@@ -11967,7 +11967,7 @@ violation exception is selected.
 
 It makes little sense to mark union types as pinned, since whatever
 alternative is chosen will always be located at the beginning of the
-union.  To avoid unnecesary confusion, the Poke compiler will emit an
+union.  To avoid unnecessary confusion, the Poke compiler will emit an
 error if you try to tag an union as pinned.
 
 Similarly, labels are not allowed in union alternatives.
@@ -13348,7 +13348,7 @@ asm (@var{template} [: @var{outputs} [: @var{inputs}]])
 
 @noindent
 where @var{template} is the written form of a PVM assembler program,
-@var{outputs} a comma separated list of l-values ans @var{inputs} a
+@var{outputs} a comma separated list of l-values and @var{inputs} a
 comma separated list of expressions.
 
 Before the assembler program in @var{template} is executed, the
@@ -15435,7 +15435,7 @@ fun vm_autoremap = int<32>:
 
 The pre-defined function @code{vm_set_autoremap} sets whether
 auto-remapping of mapped values is switched on.  It has the following
-protoype:
+prototype:
 
 @example
 fun vm_set_autoremap = (int<32)void:
@@ -16438,11 +16438,11 @@ The type of @var{a} and @var{b} must be either 
@code{string} or
 
 This function implements partial ordering, as it's not possible to
 distinguish some version numbers as greater or lower than each other,
-as some could be seen as ``lateral'' to eachother.  For instance,
+as some could be seen as ``lateral'' to each other.  For instance,
 consider the strings @samp{3.0-a-11-gabcdef} and
 @samp{3.0-b-11-gabcdef}.  They are both 11 commits ahead of the 3.0
 release, but they aren't on the same lineage, and so, they can't be
-considered as greater or lower than eachother.  In cases like these,
+considered as greater or lower than each other.  In cases like these,
 @code{pk_vercmp} will attempt to compare commit numbers as a crude
 measure.
 @end deftypefun
diff --git a/libpoke/ios.h b/libpoke/ios.h
index 853421b9..3c695bc4 100644
--- a/libpoke/ios.h
+++ b/libpoke/ios.h
@@ -25,7 +25,7 @@
 
 typedef struct ios_context *ios_context;
 
-/* The following two functions intialize and shutdown the IO poke
+/* The following two functions initialize and shutdown the IO poke
    subsystem.  */
 
 ios_context ios_init (void);
diff --git a/libpoke/libpoke.h b/libpoke/libpoke.h
index d7f32a1e..b0bf8902 100644
--- a/libpoke/libpoke.h
+++ b/libpoke/libpoke.h
@@ -155,10 +155,10 @@ void pk_compiler_free (pk_compiler pkc) LIBPOKE_API;
 
 int pk_errno (pk_compiler pkc) LIBPOKE_API;
 
-/* Compile an execute a Poke program from the given file FILENAME.
+/* Compile and execute a Poke program from the given file FILENAME.
 
    EXIT_EXCEPTION is a pointer to a pk_val variable that is set to an
-   Exception value if the execution rsults in an unhandled exception,
+   Exception value if the execution results in an unhandled exception,
    PK_NULL otherwise.
 
    Return PK_ERROR in case of a compilation error.  Otherwise,
@@ -167,7 +167,7 @@ int pk_errno (pk_compiler pkc) LIBPOKE_API;
 int pk_compile_file (pk_compiler pkc, const char *filename,
                      pk_val *exit_exception) LIBPOKE_API;
 
-/* Compile an execute a Poke program from a memory buffer.
+/* Compile and execute a Poke program from a memory buffer.
 
    BUFFER is a NULL-terminated string.
 
@@ -178,7 +178,7 @@ int pk_compile_file (pk_compiler pkc, const char *filename,
    return PK_OK.
 
    EXIT_EXCEPTION is a pointer to a pk_val variable that is set to an
-   Exception value if the execution rsults in an unhandled exception,
+   Exception value if the execution results in an unhandled exception,
    PK_NULL otherwise.  */
 
 int pk_compile_buffer (pk_compiler pkc, const char *buffer,
@@ -207,7 +207,7 @@ int pk_compile_buffer_with_loc (pk_compiler pkc, const char 
*buffer,
    result value of an expression-statement, or to PK_NULL.
 
    EXIT_EXCEPTION is a pointer to a pk_val variable that is set to an
-   Exception value if the execution rsults in an unhandled exception,
+   Exception value if the execution results in an unhandled exception,
    PK_NULL otherwise.  */
 
 int pk_compile_statement (pk_compiler pkc, const char *buffer,
@@ -238,7 +238,7 @@ int pk_compile_statement_with_loc (pk_compiler pkc, const 
char *buffer,
    Return PK_ERROR in case of a compilation error, PK_OK otherwise.
 
    EXIT_EXCEPTION is a pointer to a pk_val variable that is set to an
-   Exception value if the execution rsults in an unhandled exception,
+   Exception value if the execution results in an unhandled exception,
    PK_NULL otherwise.  */
 
 int pk_compile_expression (pk_compiler pkc, const char *buffer,
diff --git a/libpoke/pkl-ast.h b/libpoke/pkl-ast.h
index ebf952ba..381e441b 100644
--- a/libpoke/pkl-ast.h
+++ b/libpoke/pkl-ast.h
@@ -905,7 +905,7 @@ pkl_ast_node pkl_ast_make_func_type_arg (pkl_ast ast,
    number of elements, then BOUND is an expression that must evaluate
    to an integer.  If the array type is bounded by size, then BOUND is
    an expression that must evaluate to an offset.  If the array type
-   is unbounded, then BOUND is NULL.  MAPPER, WRITER, FORMATER,
+   is unbounded, then BOUND is NULL.  MAPPER, WRITER, FORMATTER,
    PRINTER, CONSTRUCTOR, INTEGRATOR and BOUNDCLS are used to hold closures,
    or PVM_NULL. The field LEX_CORRECTED is used by the transl phase, to
    keep record of array types that have been lexically corrected; this
@@ -917,7 +917,7 @@ pkl_ast_node pkl_ast_make_func_type_arg (pkl_ast ast,
    ELEMS is a chain of elements, which can be
    PKL_AST_STRUCT_TYPE_FIELD or PKL_AST_DECL nodes, potentially mixed.
    PINNED_P is 1 if the struct is pinned, 0 otherwise.  MAPPER, WRITER
-   CONSTRUCTOR, FORMATER, PRINTER, COMPARATOR, INTEGRATOR and
+   CONSTRUCTOR, FORMATTER, PRINTER, COMPARATOR, INTEGRATOR and
    DEINTEGRATOR are used to hold closures, or PVM_NULL.  ITYPE, if not
    NULL, is an AST node with an integral type, that defines the nature
    of this struct type as integral.
@@ -1016,7 +1016,7 @@ struct pkl_ast_type
       union pkl_ast_node *bound;
       union pkl_ast_node *etype;
       /* Uncollectable array for MAPPER, BOUNDER, WRITER, CONSTRUCTOR,
-         INTEGRATOR, PRINTER and FORMATER.  */
+         INTEGRATOR, PRINTER and FORMATTER.  */
       pvm_val *closures;
     } array;
 
@@ -1031,7 +1031,7 @@ struct pkl_ast_type
       int pinned_p;
       int union_p;
       /* Uncollectable array for MAPPER, WRITER, CONSTRUCTOR,
-         COMPARATOR, INTEGRATOR, DEINTEGRATOR, PRINTER, FORMATER, and
+         COMPARATOR, INTEGRATOR, DEINTEGRATOR, PRINTER, FORMATTER, and
          TYPIFIER.  */
       pvm_val *closures;
     } sct;
@@ -1605,7 +1605,7 @@ pkl_ast_node pkl_ast_make_lambda (pkl_ast ast, 
pkl_ast_node function);
 
 /* PKL_AST_ASM nodes represent asm expressions.
 
-   TEMPLATE is a string node contaning assembler instructions.
+   TEMPLATE is a string node containing assembler instructions.
 
    TYPE is the type of the element that is left at the top of
    the stack once the program in TEMPLATE is executed.
@@ -2038,7 +2038,7 @@ pkl_ast_node pkl_ast_make_raise_stmt (pkl_ast ast, 
pkl_ast_node exp);
 /* PKL_AST_ASM nodes represent `asm' statements, which are used in
    order to inline PVM assembly in Poke programs.
 
-   TEMPLATE is a string node contaning assembler instructions.
+   TEMPLATE is a string node containing assembler instructions.
 
    INPUTS is a chain of expressions.  The result of these expressions
    will be pushed in the stack in the given order before executing
diff --git a/libpoke/pkl-promo.c b/libpoke/pkl-promo.c
index 8e8d09ce..a257f700 100644
--- a/libpoke/pkl-promo.c
+++ b/libpoke/pkl-promo.c
@@ -234,7 +234,7 @@ promote_node (pkl_ast ast,
 
   /* Note how we call promote array even if pkl_ast_type_equal_p
      declares that both types are equal.  This is because
-     pkl_ast_type_equal_p doesnt' take into account the array
+     pkl_ast_type_equal_p doesn't take into account the array
      dimensions.  */
   if (!pkl_ast_type_equal_p (node_type, type)
       || PKL_AST_TYPE_CODE (type) == PKL_TYPE_ARRAY)
diff --git a/libpoke/pkl-rt.pk b/libpoke/pkl-rt.pk
index 6c90d0e8..d302b693 100644
--- a/libpoke/pkl-rt.pk
+++ b/libpoke/pkl-rt.pk
@@ -1236,7 +1236,7 @@ immutable fun _pkl_eq_any = (any v1, any v2) int<32>:
     var v1_len = asm uint<64>: ("sel; nip" : v1);
     var v2_len = asm uint<64>: ("sel; nip" : v2);
 
-    /* First check the lenght.  */
+    /* First check the length.  */
     if (v1_len != v2_len)
       return 0;
 
@@ -1271,7 +1271,7 @@ immutable fun _pkl_eq_any = (any v1, any v2) int<32>:
     if (struct_type_name (v1) != struct_type_name (v2))
       return 0;
 
-    /* Now check the lenght.  This accommodates optional
+    /* Now check the length.  This accommodates optional
        fields and the like.  */
     if (v1_len != v2_len)
       return 0;
diff --git a/libpoke/pkl.h b/libpoke/pkl.h
index 23901f2c..e90dedcb 100644
--- a/libpoke/pkl.h
+++ b/libpoke/pkl.h
@@ -75,7 +75,7 @@
    RT_PATH should contain the name of a directory where the compiler can
    find its run-time support files.
 
-   CONFIG_PATH should contain the name of a directoy where
+   CONFIG_PATH should contain the name of a directory where
    pkl-config.pk can be found.
 
    FLAGS is an ORed value of PKL_F_* values, or 0.
diff --git a/libpoke/pvm-val.h b/libpoke/pvm-val.h
index e887b016..e332a877 100644
--- a/libpoke/pvm-val.h
+++ b/libpoke/pvm-val.h
@@ -282,7 +282,7 @@ typedef struct pvm_array *pvm_array;
    how to obtain these values.
 
    OFFSET is an ulong<64> value holding the bit offset of the element,
-   relative to the beginnig of the IO space.  If the array is not
+   relative to the beginning of the IO space.  If the array is not
    mapped then this is PVM_NULL.
 
    OFFSET_BACK is a backup area used by the reloc instructions.
diff --git a/libpoke/pvm.jitter b/libpoke/pvm.jitter
index cce136d2..9a348d66 100644
--- a/libpoke/pvm.jitter
+++ b/libpoke/pvm.jitter
@@ -928,7 +928,7 @@ end
 
 ## PVM state.
 
-# Jitter supports maintaining a VM state which is splitted in
+# Jitter supports maintaining a VM state which is split in
 # `backing' and `runtime', so the question arises what to put in either
 # part of the state.  According to the comments generated by jitterc:
 #
diff --git a/libpoke/ras b/libpoke/ras
index 3739dba4..2301f99a 100755
--- a/libpoke/ras
+++ b/libpoke/ras
@@ -114,7 +114,7 @@
 # Splitting Long Lines
 # --------------------
 #
-# Logical long lines can be splitted into several physical lines by
+# Logical long lines can be split into several physical lines by
 # finishing them with the \ character.  This is an example:
 #
 #   .macro struct_field_extractor @struct_type @field @struct_itype \
@@ -242,7 +242,7 @@
 # Exception Arguments are written like PVM_E_*.  See the file pvm.h
 # for the set of valid exceptions.
 #
-# Tracing Events are written lke PK_TV_*.  See the file pkl.h
+# Tracing Events are written like PK_TV_*.  See the file pkl.h
 # for the set of valid tracing events.
 #
 # Endianness specifiers are written like IOS_ENDIAN_LSB, meaning
diff --git a/pickles/pe.pk b/pickles/pe.pk
index 517dbb3d..145e33d4 100644
--- a/pickles/pe.pk
+++ b/pickles/pe.pk
@@ -595,7 +595,7 @@ type PE_Debug_Directory_Entry =
     /* Date and time that the debug data was created.  */
     POSIX_Time32 timestamp;
 
-    /* Version number of hte debug data format.  */
+    /* Version number of the debug data format.  */
     uint<16> major_version;
     uint<16> minor_version;
 
diff --git a/poke/pk-cmd-ios.c b/poke/pk-cmd-ios.c
index ac742885..d93d533f 100644
--- a/poke/pk-cmd-ios.c
+++ b/poke/pk-cmd-ios.c
@@ -454,7 +454,7 @@ pk_cmd_mem (int argc, struct pk_cmd_arg argv[], uint64_t 
uflags)
   const char *arg_str = PK_CMD_ARG_STR (argv[1]);
   char *mem_name = NULL;
 
-  /* If the user didnt' specify a name for the memory IOS, search for
+  /* If the user didn't specify a name for the memory IOS, search for
      the first available *N*.  */
   if (*arg_str == '\0')
     {
diff --git a/poke/pk-settings.pk b/poke/pk-settings.pk
index 46420779..72a0885f 100644
--- a/poke/pk-settings.pk
+++ b/poke/pk-settings.pk
@@ -523,7 +523,7 @@ manual.
 If `info' is selected, the GNU info standalone program is launched to
 show the info version of the user manual.
 
-If `less' is selected, the less utility is launched ot show a plain
+If `less' is selected, the less utility is launched to show a plain
 text version of the user manual.
 
 See also \".help .doc\".",
@@ -568,7 +568,7 @@ pk_settings.add_setting
       description = "\
 This setting determines whether the Poke compiler and runtime
 will generate tracing events or not.  This is mainly useful
-for debugging puposes.
+for debugging purposes.
 
 Beware that enabling tracer will undoubtly have an impact
 in performance, and that every type compiled when tracing is
diff --git a/testsuite/poke.pkl/eq-any-integral-1.pk 
b/testsuite/poke.pkl/eq-any-integral-1.pk
index 84048330..e201763b 100644
--- a/testsuite/poke.pkl/eq-any-integral-1.pk
+++ b/testsuite/poke.pkl/eq-any-integral-1.pk
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 
-/* This test tests the any equality and unequality operators
+/* This test tests the any equality and inequality operators
    in the following integral configurations:
 
         int OP int
diff --git a/testsuite/poke.pkl/eq-any-integral-2.pk 
b/testsuite/poke.pkl/eq-any-integral-2.pk
index 24025c57..105fed2d 100644
--- a/testsuite/poke.pkl/eq-any-integral-2.pk
+++ b/testsuite/poke.pkl/eq-any-integral-2.pk
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 
-/* This test tests the any equality and unequality operators
+/* This test tests the any equality and inequality operators
    in the following integral configurations:
 
         uint OP int
diff --git a/testsuite/poke.pkl/eq-any-integral-3.pk 
b/testsuite/poke.pkl/eq-any-integral-3.pk
index d2144d35..e2e0183e 100644
--- a/testsuite/poke.pkl/eq-any-integral-3.pk
+++ b/testsuite/poke.pkl/eq-any-integral-3.pk
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 
-/* This test tests the any equality and unequality operators
+/* This test tests the any equality and inequality operators
    in the following integral configurations:
 
         long OP int
diff --git a/testsuite/poke.pkl/eq-any-integral-4.pk 
b/testsuite/poke.pkl/eq-any-integral-4.pk
index 42805865..395c1cb9 100644
--- a/testsuite/poke.pkl/eq-any-integral-4.pk
+++ b/testsuite/poke.pkl/eq-any-integral-4.pk
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 
-/* This test tests the any equality and unequality operators
+/* This test tests the any equality and inequality operators
    in the following integral configurations:
 
         ulong OP int
-- 
2.40.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]