From f6c1da97fe27aac0070bbff70dd3573a280d2d77 Mon Sep 17 00:00:00 2001 From: RainRat Date: Thu, 25 Apr 2024 21:21:39 -0700 Subject: [PATCH] fix typos --- Makefile | 2 +- internal/c/libqb.cpp | 12 ++++++------ internal/c/libqb/src/qbs_cmem.cpp | 2 +- internal/c/parts/audio/audio.cpp | 2 +- internal/c/parts/os/clipboard/clipboard.cpp | 2 +- source/qb64pe.bas | 6 +++--- source/utilities/const_eval.bas | 2 +- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index 285a1f582..8d3887bfa 100644 --- a/Makefile +++ b/Makefile @@ -140,7 +140,7 @@ CXXFLAGS += -std=gnu++17 CXXFLAGS += -fno-strict-aliasing # Significant amounts of the code uses NULL as a placeholder for passing zero -# for any parameter. This should be fixed, but supressing these warnings makes +# for any parameter. This should be fixed, but suppressing these warnings makes # the warning list actually usable. CXXFLAGS += -Wno-conversion-null diff --git a/internal/c/libqb.cpp b/internal/c/libqb.cpp index 209f000e6..61fe3bd26 100644 --- a/internal/c/libqb.cpp +++ b/internal/c/libqb.cpp @@ -1803,7 +1803,7 @@ void keydown_unicode(uint32 x) { } // note: full width latin characters will be mapped to their normal width equivalents // Wikipedia note: Range U+FF01\96FF5E reproduces the characters of ASCII 21 to 7E as fullwidth forms, that is, a fixed width form used in CJK computing. - // This is useful for typesetting Latin characters in a CJK environment. U+FF00 does not correspond to a fullwith ASCII 20 (space character), since that + // This is useful for typesetting Latin characters in a CJK environment. U+FF00 does not correspond to a fullwidth ASCII 20 (space character), since that // role is already fulfilled by U+3000 "ideographic space." if ((x >= 0x0000FF01) && (x <= 0x0000FF5E)) { keydown_ascii(x - 0x0000FF01 + 0x21); @@ -1832,7 +1832,7 @@ void keyup_unicode(uint32 x) { } // note: full width latin characters will be mapped to their normal width equivalents // Wikipedia note: Range U+FF01\96FF5E reproduces the characters of ASCII 21 to 7E as fullwidth forms, that is, a fixed width form used in CJK computing. - // This is useful for typesetting Latin characters in a CJK environment. U+FF00 does not correspond to a fullwith ASCII 20 (space character), since that + // This is useful for typesetting Latin characters in a CJK environment. U+FF00 does not correspond to a fullwidth ASCII 20 (space character), since that // role is already fulfilled by U+3000 "ideographic space." if ((x >= 0x0000FF01) && (x <= 0x0000FF5E)) { keyup_ascii(x - 0x0000FF01 + 0x21); @@ -13979,7 +13979,7 @@ finish:; i++; } //- if (num_significant_digits) { - // build nomalised mantissa + // build normalised mantissa for (i2 = 0; i2 < num_significant_digits; i2++) { if (i2 == 1) { built_number[i] = 46; @@ -14082,7 +14082,7 @@ finish:; } // i return hex_value; } - return 0; //& followied by unknown + return 0; //& followed by unknown } int32 unsupported_port_accessed = 0; @@ -17115,7 +17115,7 @@ void sub_graphics_put(float x1f, float y1f, void *element, int32 option, uint32 } } - // array size check (avoid reading unacclocated memory) + // array size check (avoid reading unallocated memory) if (bits == 32) z *= 32; z = (z + 7) >> 3; // bits per row->bytes per row @@ -21434,7 +21434,7 @@ int32 print_using(qbs *f, int32 s2, qbs *dest, qbs *pu_str) { if (asterisk_spaces) asterisk_spaces = 42; else - asterisk_spaces = 32; // chraracter to fill blanks with + asterisk_spaces = 32; // character to fill blanks with if (cant_fit) { *cp++ = 37; diff --git a/internal/c/libqb/src/qbs_cmem.cpp b/internal/c/libqb/src/qbs_cmem.cpp index b4e602efa..4b6e85f5a 100644 --- a/internal/c/libqb/src/qbs_cmem.cpp +++ b/internal/c/libqb/src/qbs_cmem.cpp @@ -8,7 +8,7 @@ #include "error_handle.h" #include "qbs.h" -// FIXME: conventional memory should be consolidated into libqb soruce and headers +// FIXME: conventional memory should be consolidated into libqb source and headers extern uint32_t qbs_cmem_sp; //=256; extern uint32_t cmem_sp; //=65536; diff --git a/internal/c/parts/audio/audio.cpp b/internal/c/parts/audio/audio.cpp index 2fe842978..2adbba849 100644 --- a/internal/c/parts/audio/audio.cpp +++ b/internal/c/parts/audio/audio.cpp @@ -1773,7 +1773,7 @@ int32_t func__sndopen(qbs *fileName, qbs *requirements, int32_t passed) { /// A sound handle void sub__sndclose(int32_t handle) { if (audioEngine.isInitialized && IS_SOUND_HANDLE_VALID(handle)) { - // If we have a raw stream then force it to push all it's data to miniaudio + // If we have a raw stream then force it to push all its data to miniaudio // Note that this will take care of checking if the handle is a raw steam and other stuff // So it is completely safe to call it this way sub__sndrawdone(handle, true); diff --git a/internal/c/parts/os/clipboard/clipboard.cpp b/internal/c/parts/os/clipboard/clipboard.cpp index a1779fc3e..2ecb0b9c0 100644 --- a/internal/c/parts/os/clipboard/clipboard.cpp +++ b/internal/c/parts/os/clipboard/clipboard.cpp @@ -162,7 +162,7 @@ void sub__clipboard(const qbs *qbsText) { } } -/// @brief Retuns an image handle of an image from the clipboard (if present). +/// @brief Returns an image handle of an image from the clipboard (if present). /// @return A valid image handle. Returns -1 if clipboard format is not supported or if there is nothing. int32_t func__clipboardimage() { int32_t qb64Img = INVALID_IMAGE_HANDLE; // assume failure diff --git a/source/qb64pe.bas b/source/qb64pe.bas index 94ad7475c..5f4ee3424 100644 --- a/source/qb64pe.bas +++ b/source/qb64pe.bas @@ -10337,7 +10337,7 @@ DO insertelements a$, i, ";" insertelements ca$, i, ";" n = n + 1 - elementon = i + 2 'just a easy way to reduce redundant calls to the routine + elementon = i + 2 'just an easy way to reduce redundant calls to the routine GOTO redosemi END IF END IF @@ -10347,7 +10347,7 @@ DO insertelements a$, i, ";" insertelements ca$, i, ";" n = n + 1 - elementon = i + 2 'just a easy way to reduce redundant calls to the routine + elementon = i + 2 'just an easy way to reduce redundant calls to the routine GOTO redosemi END IF END IF @@ -21774,7 +21774,7 @@ FUNCTION seperateargs (a$, ca$, pass&) IF ASC(c$) = 44 AND b = 0 THEN EXIT FOR 'Expressions cannot contain a "," in their base level - 'Because this wasn't interceppted by the above code it isn't the Opt either + 'Because this wasn't intercepted by the above code it isn't the Opt either END IF IF ASC(c$) = 40 THEN b = b + 1 diff --git a/source/utilities/const_eval.bas b/source/utilities/const_eval.bas index fac4f4572..12a6d148f 100644 --- a/source/utilities/const_eval.bas +++ b/source/utilities/const_eval.bas @@ -861,7 +861,7 @@ SUB Set_ConstFunctions REDIM _PRESERVE ConstFuncs(i) AS ConstFunction END SUB -' args should be a element list of the arguments separated by commas +' args should be an element list of the arguments separated by commas ' ' Each argument should be a single element FUNCTION EvaluateFunction$ (p, args AS STRING)