diff --git a/.github/workflows/build_ios.yml b/.github/workflows/build_ios.yml index 43cdb257..ed7950ec 100644 --- a/.github/workflows/build_ios.yml +++ b/.github/workflows/build_ios.yml @@ -16,7 +16,7 @@ jobs: with: submodules: true - - name: Unbreak Python in Github Actions + - name: Unbreak Python in GitHub Actions run: | find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete sudo rm -rf /Library/Frameworks/Python.framework/ @@ -45,7 +45,7 @@ jobs: with: submodules: true - - name: Unbreak Python in Github Actions + - name: Unbreak Python in GitHub Actions run: | find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete sudo rm -rf /Library/Frameworks/Python.framework/ diff --git a/.github/workflows/build_macos.yml b/.github/workflows/build_macos.yml index 6ec62de8..1e225f73 100644 --- a/.github/workflows/build_macos.yml +++ b/.github/workflows/build_macos.yml @@ -1,4 +1,4 @@ -name: MacOS +name: macOS on: pull_request: @@ -16,7 +16,7 @@ jobs: with: submodules: true - - name: Unbreak Python in Github Actions + - name: Unbreak Python in GitHub Actions run: | find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete sudo rm -rf /Library/Frameworks/Python.framework/ @@ -40,7 +40,7 @@ jobs: with: submodules: true - - name: Unbreak Python in Github Actions + - name: Unbreak Python in GitHub Actions run: | find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete sudo rm -rf /Library/Frameworks/Python.framework/ @@ -63,7 +63,7 @@ jobs: with: submodules: true - - name: Unbreak Python in Github Actions + - name: Unbreak Python in GitHub Actions run: | find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete sudo rm -rf /Library/Frameworks/Python.framework/ diff --git a/.github/workflows/regression.yml b/.github/workflows/regression.yml index d5eb6ad7..f6800bce 100644 --- a/.github/workflows/regression.yml +++ b/.github/workflows/regression.yml @@ -58,7 +58,7 @@ jobs: run: | mv test/regression/settings_comparison.toml settings.toml - - name: Store Crashing/Leaking/Timeouting Images + - name: Store Crashing/Leaking/Timing out Images uses: actions/upload-artifact@v4 with: name: crashing-leaking-timeouting-images diff --git a/AUTHORS b/AUTHORS index 81c11aa5..8879dc08 100644 --- a/AUTHORS +++ b/AUTHORS @@ -31,3 +31,4 @@ Lucas Niu Francisco Ramírez Abdelrahman Ashraf Neo Xu +Josh Soref diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 0e389da7..b5361891 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -60,7 +60,7 @@ representative at an online or offline event. Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders, who are listed in CODEOWNERS, responsible for -enforcement at coummunity leaders. +enforcement at community leaders. All complaints will be reviewed and investigated promptly and fairly. All community leaders are obligated to respect the privacy and security of the diff --git a/README.md b/README.md index 1c672712..64c0f127 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@
[![Build Ubuntu](https://github.com/thorvg/thorvg/actions/workflows/build_ubuntu.yml/badge.svg?branch=main&event=push)](https://github.com/thorvg/thorvg/actions/workflows/build_ubuntu.yml) [![Build Windows](https://github.com/thorvg/thorvg/actions/workflows/build_windows.yml/badge.svg?branch=main&event=push)](https://github.com/thorvg/thorvg/actions/workflows/build_windows.yml) -[![Build MacOS](https://github.com/thorvg/thorvg/actions/workflows/build_macos.yml/badge.svg?branch=main&event=push)](https://github.com/thorvg/thorvg/actions/workflows/build_macos.yml) +[![Build macOS](https://github.com/thorvg/thorvg/actions/workflows/build_macos.yml/badge.svg?branch=main&event=push)](https://github.com/thorvg/thorvg/actions/workflows/build_macos.yml) [![Build iOS](https://github.com/thorvg/thorvg/actions/workflows/build_ios.yml/badge.svg?branch=main&event=push)](https://github.com/thorvg/thorvg/actions/workflows/build_ios.yml) [![Build Android](https://github.com/thorvg/thorvg/actions/workflows/build_android.yml/badge.svg?branch=main&event=push)](https://github.com/thorvg/thorvg/actions/workflows/build_android.yml) @@ -32,7 +32,7 @@ The following list shows primitives that are supported by ThorVG:

-​ThorVG is designed for a wide range of programs, offering adaptability for integration and use in various applications and systems. It achieves this through a single binary with selectively buildable, modular components in a building block style. This ensures both optimal size and easy maintanence.
+​ThorVG is designed for a wide range of programs, offering adaptability for integration and use in various applications and systems. It achieves this through a single binary with selectively buildable, modular components in a building block style. This ensures both optimal size and easy maintenance.

diff --git a/docs/Doxyfile b/docs/Doxyfile index 1525fc93..b58205ad 100644 --- a/docs/Doxyfile +++ b/docs/Doxyfile @@ -222,7 +222,7 @@ QT_AUTOBRIEF = NO # tag to YES if you prefer the old behavior instead. # # Note that setting this tag to YES also means that rational rose comments are -# not recognized any more. +# not recognized anymore. # The default value is: NO. MULTILINE_CPP_IS_BRIEF = NO @@ -466,7 +466,7 @@ LOOKUP_CACHE_SIZE = 0 # than 0 to get more control over the balance between CPU load and processing # speed. At this moment only the input processing can be done using multiple # threads. Since this is still an experimental feature the default is set to 1, -# which efficively disables parallel processing. Please report any issues you +# which effectively disables parallel processing. Please report any issues you # encounter. Generating dot graphs in parallel is controlled by the # DOT_NUM_THREADS setting. # Minimum value: 0, maximum value: 32, default value: 1. @@ -582,14 +582,14 @@ INTERNAL_DOCS = NO # With the correct setting of option CASE_SENSE_NAMES doxygen will better be # able to match the capabilities of the underlying filesystem. In case the -# filesystem is case sensitive (i.e. it supports files in the same directory +# filesystem is case-sensitive (i.e. it supports files in the same directory # whose names only differ in casing), the option must be set to YES to properly # deal with such files in case they appear in the input. For filesystems that -# are not case sensitive the option should be be set to NO to properly deal with +# are not case-sensitive the option should be be set to NO to properly deal with # output files written for symbols that only differ in casing, such as for two # classes, one named CLASS and the other named Class, and to also support # references to files without having to specify the exact matching casing. On -# Windows (including Cygwin) and MacOS, users should typically set this option +# Windows (including Cygwin) and macOS, users should typically set this option # to NO, whereas on Linux or other Unix flavors it should typically be set to # YES. # The default value is: system dependent. @@ -755,7 +755,7 @@ SHOW_NAMESPACES = NO # The FILE_VERSION_FILTER tag can be used to specify a program or script that # doxygen should invoke to get the current version for each file (typically from # the version control system). Doxygen will invoke the program by executing (via -# popen()) the command command input-file, where command is the value of the +# popen()) the command input-file, where command is the value of the # FILE_VERSION_FILTER tag, and input-file is the name of an input file provided # by doxygen. Whatever the program writes to standard output is used as the file # version. For an example see the documentation. diff --git a/docs/html/annotated.html b/docs/html/annotated.html index 10872846..04dd0206 100644 --- a/docs/html/annotated.html +++ b/docs/html/annotated.html @@ -93,7 +93,7 @@ $(document).ready(function(){initNavTree('annotated.html',''); initResizable();  CPointA data structure representing a point in two-dimensional space  CMatrixA data structure representing a three-dimensional matrix  CVertexA data structure representing a texture mesh vertex - CPolygonA data structure representing a triange in a texture mesh + CPolygonA data structure representing a triangle in a texture mesh  CPaintAn abstract class for managing graphical elements  CFillAn abstract class representing the gradient fill of the Shape object  CColorStopA data structure storing the information about the color and its relative position inside the gradient bounds diff --git a/docs/html/classtvg_1_1Paint.html b/docs/html/classtvg_1_1Paint.html index abdd97d5..7244dc47 100644 --- a/docs/html/classtvg_1_1Paint.html +++ b/docs/html/classtvg_1_1Paint.html @@ -326,8 +326,8 @@ Public Member Functions

In case transform is true, all object's transformations are applied first, and then the bounding box is established. Otherwise, the bounding box is determined before any transformations.

Parameters
- - + + @@ -711,7 +711,7 @@ ClipPath won't use the opacity value. (see: enum class

Sets the values by which the object is moved in a two-dimensional space.

-

The origin of the coordinate system is in the upper left corner of the canvas. The horizontal and vertical axes point to the right and down, respectively.

+

The origin of the coordinate system is in the upper-left corner of the canvas. The horizontal and vertical axes point to the right and down, respectively.

Parameters
[out]xThe x coordinate of the upper left corner of the object.
[out]yThe y coordinate of the upper left corner of the object.
[out]xThe x-coordinate of the upper-left corner of the object.
[out]yThe y-coordinate of the upper-left corner of the object.
[out]wThe width of the object.
[out]hThe height of the object.
[in]transformedIf true, the paint's transformations are taken into account, otherwise they aren't.
diff --git a/docs/html/classtvg_1_1Saver.html b/docs/html/classtvg_1_1Saver.html index aa761d00..b0ad4bdd 100644 --- a/docs/html/classtvg_1_1Saver.html +++ b/docs/html/classtvg_1_1Saver.html @@ -119,7 +119,7 @@ Static Public Member Functions

Detailed Description

A class for exporting a paint object into a specified file, from which to recover the paint data later.

ThorVG provides a feature for exporting & importing paint data. The Saver role is to export the paint data to a file. It's useful when you need to save the composed scene or image from a paint object and recreate it later.

-

The file format is decided by the extension name(i.e. "*.tvg") while the supported formats depend on the TVG packaging environment. If it doesn't support the file format, the save() method returns the Result::NonSuppport result.

+

The file format is decided by the extension name(i.e. "*.tvg") while the supported formats depend on the TVG packaging environment. If it doesn't support the file format, the save() method returns the Result::NonSupport result.

Once you export a paint to the file successfully, you can recreate it using the Picture class.

See also
Picture::load()
Since
0.5
diff --git a/docs/html/classtvg_1_1Shape.html b/docs/html/classtvg_1_1Shape.html index 89ddd6c3..79b5ae4f 100644 --- a/docs/html/classtvg_1_1Shape.html +++ b/docs/html/classtvg_1_1Shape.html @@ -535,13 +535,13 @@ Static Public Member Functions

Appends a rectangle to the path.

The rectangle with rounded corners can be achieved by setting non-zero values to rx and ry arguments. The rx and ry values specify the radii of the ellipse defining the rounding of the corners.

-

The position of the rectangle is specified by the coordinates of its upper left corner - x and y arguments.

+

The position of the rectangle is specified by the coordinates of its upper-left corner - x and y arguments.

The rectangle is treated as a new sub-path - it is not connected with the previous sub-path.

The value of the current point is set to (x + rx, y) - in case rx is greater than w/2 the current point is set to (x + w/2, y)

Parameters
[in]xThe value of the horizontal shift.
- - + + diff --git a/docs/html/graph_legend.html b/docs/html/graph_legend.html index c0d98c82..7fb7f0c3 100644 --- a/docs/html/graph_legend.html +++ b/docs/html/graph_legend.html @@ -132,7 +132,7 @@ A box with a black border denotes a documented struct or class.
  • A box with a gray border denotes an undocumented struct or class.
  • -A box with a red border denotes a documented struct or class forwhich not all inheritance/containment relations are shown. A graph is truncated if it does not fit within the specified boundaries.
  • +A box with a red border denotes a documented struct or class for which not all inheritance/containment relations are shown. A graph is truncated if it does not fit within the specified boundaries.

    The arrows have the following meaning:

      diff --git a/docs/html/group__ThorVG.html b/docs/html/group__ThorVG.html index 204944c8..41607a2c 100644 --- a/docs/html/group__ThorVG.html +++ b/docs/html/group__ThorVG.html @@ -107,7 +107,7 @@ Classes
    - + diff --git a/docs/html/hierarchy.html b/docs/html/hierarchy.html index b012b2bf..aedcc696 100644 --- a/docs/html/hierarchy.html +++ b/docs/html/hierarchy.html @@ -109,7 +109,7 @@ This inheritance list is sorted roughly, but not completely, alphabetically: - +
    [in]xThe horizontal coordinate of the upper left corner of the rectangle.
    [in]yThe vertical coordinate of the upper left corner of the rectangle.
    [in]xThe horizontal coordinate of the upper-left corner of the rectangle.
    [in]yThe vertical coordinate of the upper-left corner of the rectangle.
    [in]wThe width of the rectangle.
    [in]hThe height of the rectangle.
    [in]rxThe x-axis radius of the ellipse defining the rounded corners of the rectangle.
     A data structure representing a texture mesh vertex. More...
     
    struct  Polygon
     A data structure representing a triange in a texture mesh. More...
     A data structure representing a triangle in a texture mesh. More...
     
    class  Paint
     An abstract class for managing graphical elements. More...
     CShapeA class representing two-dimensional figures and their properties
     CTextA class to represent text objects in a graphical context, allowing for rendering and manipulation of unicode text
     CPointA data structure representing a point in two-dimensional space
     CPolygonA data structure representing a triange in a texture mesh
     CPolygonA data structure representing a triangle in a texture mesh
     CSaverA class for exporting a paint object into a specified file, from which to recover the paint data later
     CVertexA data structure representing a texture mesh vertex
    diff --git a/docs/html/inherit_graph_9.map b/docs/html/inherit_graph_9.map index 60e908a8..39c7fa95 100644 --- a/docs/html/inherit_graph_9.map +++ b/docs/html/inherit_graph_9.map @@ -1,3 +1,3 @@ - + diff --git a/docs/html/inherits.html b/docs/html/inherits.html index 6ee0938a..2adc097c 100644 --- a/docs/html/inherits.html +++ b/docs/html/inherits.html @@ -146,7 +146,7 @@ $(document).ready(function(){initNavTree('hierarchy.html',''); initResizable(); - + diff --git a/docs/html/structtvg_1_1Polygon.html b/docs/html/structtvg_1_1Polygon.html index 62abf587..930a1ed8 100644 --- a/docs/html/structtvg_1_1Polygon.html +++ b/docs/html/structtvg_1_1Polygon.html @@ -90,20 +90,20 @@ $(document).ready(function(){initNavTree('structtvg_1_1Polygon.html',''); initRe
    -

    A data structure representing a triange in a texture mesh. +

    A data structure representing a triangle in a texture mesh. More...

    Collaboration diagram for Polygon:
    Collaboration graph
    - +
    [legend]

    Detailed Description

    -

    A data structure representing a triange in a texture mesh.

    +

    A data structure representing a triangle in a texture mesh.

    Parameters
    diff --git a/docs/html/structtvg_1_1Polygon__coll__graph.map b/docs/html/structtvg_1_1Polygon__coll__graph.map index 85744e89..05756b0b 100644 --- a/docs/html/structtvg_1_1Polygon__coll__graph.map +++ b/docs/html/structtvg_1_1Polygon__coll__graph.map @@ -1,5 +1,5 @@ - + diff --git a/docs/html/thorvg_8h_source.html b/docs/html/thorvg_8h_source.html index 37a0d78f..3358a3f7 100644 --- a/docs/html/thorvg_8h_source.html +++ b/docs/html/thorvg_8h_source.html @@ -833,7 +833,7 @@ $(document).ready(function(){initNavTree('thorvg_8h_source.html',''); initResiza
    uint8_t a
    Definition: thorvg.h:449
    A data structure representing a three-dimensional matrix.
    Definition: thorvg.h:228
    A data structure representing a point in two-dimensional space.
    Definition: thorvg.h:215
    -
    A data structure representing a triange in a texture mesh.
    Definition: thorvg.h:258
    +
    A data structure representing a triangle in a texture mesh.
    Definition: thorvg.h:258
    A data structure representing a texture mesh vertex.
    Definition: thorvg.h:244
    diff --git a/examples/Capi.cpp b/examples/Capi.cpp index fd9cb7fa..0e7908af 100644 --- a/examples/Capi.cpp +++ b/examples/Capi.cpp @@ -116,7 +116,7 @@ void contents() //Set a gradient fill tvg_shape_set_radial_gradient(shape3, grad2); - //Prepaer a radial gradient for the stroke + //Prepare a radial gradient for the stroke uint32_t cnt; const Tvg_Color_Stop* color_stops2_get; tvg_gradient_get_color_stops(grad2, &color_stops2_get, &cnt); diff --git a/examples/Text.cpp b/examples/Text.cpp index 4d1cc290..1eb8688f 100644 --- a/examples/Text.cpp +++ b/examples/Text.cpp @@ -40,7 +40,7 @@ struct UserExample : tvgexam::Example //Load a necessary font data. //The loaded font will be released when the Initializer::term() is called. - //Otherwise, you can immedately unload the font data. + //Otherwise, you can immediately unload the font data. //Please check Text::unload() APIs. if (!tvgexam::verify(tvg::Text::load(EXAMPLE_DIR"/font/Arial.ttf"))) return false; if (!tvgexam::verify(tvg::Text::load(EXAMPLE_DIR"/font/NanumGothicCoding.ttf"))) return false; diff --git a/examples/TvgSaver.cpp b/examples/TvgSaver.cpp index 605ac6bb..c7065b40 100644 --- a/examples/TvgSaver.cpp +++ b/examples/TvgSaver.cpp @@ -28,10 +28,10 @@ using namespace std; /* ThorVG Saving Contents */ /************************************************************************/ -unique_ptr tvgTexmap(uint32_t * data, int width, int heigth) +unique_ptr tvgTexmap(uint32_t * data, int width, int height) { auto texmap = tvg::Picture::gen(); - if (!tvgexam::verify(texmap->load(data, width, heigth, true, true))) return nullptr; + if (!tvgexam::verify(texmap->load(data, width, height, true, true))) return nullptr; texmap->translate(100, 100); //Composing Meshes @@ -57,10 +57,10 @@ unique_ptr tvgTexmap(uint32_t * data, int width, int heigth) return texmap; } -unique_ptr tvgClippedImage(uint32_t * data, int width, int heigth) +unique_ptr tvgClippedImage(uint32_t * data, int width, int height) { auto image = tvg::Picture::gen(); - if (!tvgexam::verify(image->load(data, width, heigth, true, true))) return nullptr; + if (!tvgexam::verify(image->load(data, width, height, true, true))) return nullptr; image->translate(400, 0); image->scale(2); diff --git a/inc/thorvg.h b/inc/thorvg.h index f87f3b1c..b83cd763 100644 --- a/inc/thorvg.h +++ b/inc/thorvg.h @@ -249,7 +249,7 @@ struct Vertex /** - * @brief A data structure representing a triange in a texture mesh + * @brief A data structure representing a triangle in a texture mesh * * @param vertex The three vertices that make up the polygon * @@ -295,7 +295,7 @@ public: /** * @brief Sets the values by which the object is moved in a two-dimensional space. * - * The origin of the coordinate system is in the upper left corner of the canvas. + * The origin of the coordinate system is in the upper-left corner of the canvas. * The horizontal and vertical axes point to the right and down, respectively. * * @param[in] x The value of the horizontal shift. @@ -360,8 +360,8 @@ public: * * In case @p transform is @c true, all object's transformations are applied first, and then the bounding box is established. Otherwise, the bounding box is determined before any transformations. * - * @param[out] x The x coordinate of the upper left corner of the object. - * @param[out] y The y coordinate of the upper left corner of the object. + * @param[out] x The x-coordinate of the upper-left corner of the object. + * @param[out] y The y-coordinate of the upper-left corner of the object. * @param[out] w The width of the object. * @param[out] h The height of the object. * @param[in] transformed If @c true, the paint's transformations are taken into account, otherwise they aren't. @@ -832,15 +832,15 @@ public: * The rectangle with rounded corners can be achieved by setting non-zero values to @p rx and @p ry arguments. * The @p rx and @p ry values specify the radii of the ellipse defining the rounding of the corners. * - * The position of the rectangle is specified by the coordinates of its upper left corner - @p x and @p y arguments. + * The position of the rectangle is specified by the coordinates of its upper-left corner - @p x and @p y arguments. * * The rectangle is treated as a new sub-path - it is not connected with the previous sub-path. * * The value of the current point is set to (@p x + @p rx, @p y) - in case @p rx is greater * than @p w/2 the current point is set to (@p x + @p w/2, @p y) * - * @param[in] x The horizontal coordinate of the upper left corner of the rectangle. - * @param[in] y The vertical coordinate of the upper left corner of the rectangle. + * @param[in] x The horizontal coordinate of the upper-left corner of the rectangle. + * @param[in] y The vertical coordinate of the upper-left corner of the rectangle. * @param[in] w The width of the rectangle. * @param[in] h The height of the rectangle. * @param[in] rx The x-axis radius of the ellipse defining the rounded corners of the rectangle. @@ -1901,7 +1901,7 @@ public: * It's useful when you need to save the composed scene or image from a paint object and recreate it later. * * The file format is decided by the extension name(i.e. "*.tvg") while the supported formats depend on the TVG packaging environment. - * If it doesn't support the file format, the save() method returns the @c Result::NonSuppport result. + * If it doesn't support the file format, the save() method returns the @c Result::NonSupport result. * * Once you export a paint to the file successfully, you can recreate it using the Picture class. * diff --git a/src/bindings/capi/thorvg_capi.h b/src/bindings/capi/thorvg_capi.h index ec3d2df7..9d47e6b4 100644 --- a/src/bindings/capi/thorvg_capi.h +++ b/src/bindings/capi/thorvg_capi.h @@ -80,7 +80,7 @@ typedef struct _Tvg_Canvas Tvg_Canvas; /** * \brief A structure representing a graphical element. * -* \warning The TvgPaint objects can not be shared between Canvases. +* \warning The TvgPaint objects cannot be shared between Canvases. */ typedef struct _Tvg_Paint Tvg_Paint; @@ -823,7 +823,7 @@ TVG_API Tvg_Result tvg_paint_rotate(Tvg_Paint* paint, float degree); /*! * \brief Moves the given Tvg_Paint in a two-dimensional space. * -* The origin of the coordinate system is in the upper left corner of the canvas. +* The origin of the coordinate system is in the upper-left corner of the canvas. * The horizontal and vertical axes point to the right and down, respectively. * * \param[in] paint The Tvg_Paint object to be shifted. @@ -906,8 +906,8 @@ TVG_API Tvg_Paint* tvg_paint_duplicate(Tvg_Paint* paint); * \brief Gets the axis-aligned bounding box of the Tvg_Paint object. * * \param[in] paint The Tvg_Paint object of which to get the bounds. -* \param[out] x The x coordinate of the upper left corner of the object. -* \param[out] y The y coordinate of the upper left corner of the object. +* \param[out] x The x-coordinate of the upper-left corner of the object. +* \param[out] y The y-coordinate of the upper-left corner of the object. * \param[out] w The width of the object. * \param[out] h The height of the object. * \param[in] transformed If @c true, the transformation of the paint is taken into account, otherwise it isn't. @@ -1114,7 +1114,7 @@ TVG_API Tvg_Result tvg_shape_close(Tvg_Paint* paint); * The rectangle with rounded corners can be achieved by setting non-zero values to @p rx and @p ry arguments. * The @p rx and @p ry values specify the radii of the ellipse defining the rounding of the corners. * -* The position of the rectangle is specified by the coordinates of its upper left corner - @p x and @p y arguments. +* The position of the rectangle is specified by the coordinates of its upper-left corner - @p x and @p y arguments. * * The rectangle is treated as a new sub-path - it is not connected with the previous sub-path. * @@ -1122,8 +1122,8 @@ TVG_API Tvg_Result tvg_shape_close(Tvg_Paint* paint); * than @p w/2 the current point is set to (@p x + @p w/2, @p y) * * \param[in] paint A Tvg_Paint pointer to the shape object. -* \param[in] x The horizontal coordinate of the upper left corner of the rectangle. -* \param[in] y The vertical coordinate of the upper left corner of the rectangle. +* \param[in] x The horizontal coordinate of the upper-left corner of the rectangle. +* \param[in] y The vertical coordinate of the upper-left corner of the rectangle. * \param[in] w The width of the rectangle. * \param[in] h The height of the rectangle. * \param[in] rx The x-axis radius of the ellipse defining the rounded corners of the rectangle. @@ -2379,7 +2379,7 @@ TVG_API Tvg_Animation* tvg_animation_new(void); * \brief Specifies the current frame in the animation. * * \param[in] animation A Tvg_Animation pointer to the animation object. -* \param[in] no The index of the animation frame to be displayed. The index should be less than the tvg_animatio_total_frame(). +* \param[in] no The index of the animation frame to be displayed. The index should be less than the tvg_animation_get_total_frame(). * * \return Tvg_Result enumeration. * \retval TVG_RESULT_INVALID_ARGUMENT An invalid Tvg_Animation pointer. @@ -2572,7 +2572,7 @@ TVG_API Tvg_Result tvg_lottie_animation_set_marker(Tvg_Animation* animation, con * \brief Gets the marker count of the animation. * * \param[in] animation The Tvg_Animation pointer to the Lottie animation object. -* \param[out] cnt The count value of the merkers. +* \param[out] cnt The count value of the markers. * * \return Tvg_Result enumeration. * \retval TVG_RESULT_INVALID_ARGUMENT In case a @c nullptr is passed as the argument. diff --git a/src/bindings/wasm/tvgWasmLottieAnimation.cpp b/src/bindings/wasm/tvgWasmLottieAnimation.cpp index 4bb1e283..cdf90b4a 100644 --- a/src/bindings/wasm/tvgWasmLottieAnimation.cpp +++ b/src/bindings/wasm/tvgWasmLottieAnimation.cpp @@ -306,7 +306,7 @@ public: return true; } - // TODO: Advanced APIs wrt Interactivty & theme methods... + // TODO: Advanced APIs wrt Interactivity & theme methods... private: explicit TvgLottieAnimation() diff --git a/src/loaders/jpg/tvgJpgd.cpp b/src/loaders/jpg/tvgJpgd.cpp index 6f2bd916..6d2084b6 100644 --- a/src/loaders/jpg/tvgJpgd.cpp +++ b/src/loaders/jpg/tvgJpgd.cpp @@ -70,7 +70,7 @@ enum jpgd_status JPGD_BAD_DHT_COUNTS = -256, JPGD_BAD_DHT_INDEX, JPGD_BAD_DHT_MARKER, JPGD_BAD_DQT_MARKER, JPGD_BAD_DQT_TABLE, JPGD_BAD_PRECISION, JPGD_BAD_HEIGHT, JPGD_BAD_WIDTH, JPGD_TOO_MANY_COMPONENTS, JPGD_BAD_SOF_LENGTH, JPGD_BAD_VARIABLE_MARKER, JPGD_BAD_DRI_LENGTH, JPGD_BAD_SOS_LENGTH, - JPGD_BAD_SOS_COMP_ID, JPGD_W_EXTRA_BYTES_BEFORE_MARKER, JPGD_NO_ARITHMITIC_SUPPORT, JPGD_UNEXPECTED_MARKER, + JPGD_BAD_SOS_COMP_ID, JPGD_W_EXTRA_BYTES_BEFORE_MARKER, JPGD_NO_ARITHMETIC_SUPPORT, JPGD_UNEXPECTED_MARKER, JPGD_NOT_JPEG, JPGD_UNSUPPORTED_MARKER, JPGD_BAD_DQT_LENGTH, JPGD_TOO_MANY_BLOCKS, JPGD_UNDEFINED_QUANT_TABLE, JPGD_UNDEFINED_HUFF_TABLE, JPGD_NOT_SINGLE_SCAN, JPGD_UNSUPPORTED_COLORSPACE, JPGD_UNSUPPORTED_SAMP_FACTORS, JPGD_DECODE_ERROR, JPGD_BAD_RESTART_MARKER, JPGD_ASSERTION_ERROR, @@ -1382,9 +1382,9 @@ int jpeg_decoder::process_markers() read_dht_marker(); break; } - // No arithmitic support - dumb patents! + // No arithmetic support - dumb patents! case M_DAC: { - stop_decoding(JPGD_NO_ARITHMITIC_SUPPORT); + stop_decoding(JPGD_NO_ARITHMETIC_SUPPORT); break; } case M_DQT: { @@ -1466,8 +1466,8 @@ void jpeg_decoder::locate_sof_marker() read_sof_marker(); break; } - case M_SOF9: { /* Arithmitic coding */ - stop_decoding(JPGD_NO_ARITHMITIC_SUPPORT); + case M_SOF9: { /* Arithmetic coding */ + stop_decoding(JPGD_NO_ARITHMETIC_SUPPORT); break; } default: { @@ -1831,7 +1831,7 @@ void jpeg_decoder::process_restart() int i; int c = 0; - // Align to a byte boundry + // Align to a byte boundary // FIXME: Is this really necessary? get_bits_no_markers() never reads in markers! //get_bits_no_markers(m_bits_left & 7); diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-error-messages.inc.h b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-error-messages.inc.h index ff4d936e..fe70fbcd 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-error-messages.inc.h +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-error-messages.inc.h @@ -69,7 +69,7 @@ ECMA_ERROR_DEF (ECMA_ERR_STACK_LIMIT_EXCEEDED, "Stack limit exceeded") ECMA_ERROR_DEF (ECMA_ERR_TARGET_IS_NOT_OBJECT, "Target is not Object") #endif /* JERRY_BUILTIN_WEAKREF */ #if JERRY_BUILTIN_BIGINT -ECMA_ERROR_DEF (ECMA_ERR_BIGINT_VALUE_EXCPECTED, "BigInt value expected") +ECMA_ERROR_DEF (ECMA_ERR_BIGINT_VALUE_EXPECTED, "BigInt value expected") #endif /* JERRY_BUILTIN_BIGINT */ ECMA_ERROR_DEF (ECMA_ERR_BINDING_CANNOT_SET, "Binding cannot be set") #if JERRY_BUILTIN_STRING @@ -416,7 +416,7 @@ ECMA_ERROR_DEF (ECMA_ERR_ARGUMENT_THIS_NOT_REG_EXP, "Argument 'this' is not a va #if JERRY_BUILTIN_TYPEDARRAY ECMA_ERROR_DEF (ECMA_ERR_ARRAY_BUFFER_DETACHED, "ArrayBuffer has already been detached") #endif /* JERRY_BUILTIN_TYPEDARRAY */ -ECMA_ERROR_DEF (ECMA_ERR_BULTIN_ROUTINES_HAVE_NO_CONSTRUCTOR, "Built-in routines have no constructor") +ECMA_ERROR_DEF (ECMA_ERR_BUILTIN_ROUTINES_HAVE_NO_CONSTRUCTOR, "Built-in routines have no constructor") #if JERRY_BUILTIN_TYPEDARRAY ECMA_ERROR_DEF (ECMA_ERR_CONSTRUCTOR_INT16_ARRAY_REQUIRES_NEW, "Constructor Int16Array requires 'new'") ECMA_ERROR_DEF (ECMA_ERR_CONSTRUCTOR_INT32_ARRAY_REQUIRES_NEW, "Constructor Int32Array requires 'new'") @@ -583,7 +583,7 @@ ECMA_ERROR_DEF (ECMA_ERR_ONLY_INTEGER_NUMBERS_CAN_BE_CONVERTED_TO_BIGINT, "Only integer numbers can be converted to BigInt") #endif /* JERRY_BUILTIN_BIGINT */ #if JERRY_BUILTIN_TYPEDARRAY -ECMA_ERROR_DEF (ECMA_ERR_TYPEDARRAY_INTRINSTIC_DIRECTLY_CALLED, "TypedArray intrinstic cannot be directly called") +ECMA_ERROR_DEF (ECMA_ERR_TYPEDARRAY_INTRINSIC_DIRECTLY_CALLED, "TypedArray intrinsic cannot be directly called") #endif /* JERRY_BUILTIN_TYPEDARRAY */ #if JERRY_BUILTIN_BIGINT ECMA_ERROR_DEF (ECMA_ERR_UNSIGNED_RIGHT_SHIFT_IS_NOT_ALLOWED_FOR_BIGINTS, @@ -687,8 +687,8 @@ ECMA_ERROR_DEF (ECMA_ERR_TRAP_RESULT_NOT_REFLECT_TARGET_INEXTENSIBILITY, "Trap result does not reflect inextensibility of Proxy target") #endif /* JERRY_BUILTIN_PROXY */ #if JERRY_BUILTIN_TYPEDARRAY -ECMA_ERROR_DEF (ECMA_ERR_TYPEDARRAY_INTRINSTIC_CALLED_BY_NEW_EXPRESSION, - "TypedArray intrinstic cannot be called by a 'new' expression") +ECMA_ERROR_DEF (ECMA_ERR_TYPEDARRAY_INTRINSIC_CALLED_BY_NEW_EXPRESSION, + "TypedArray intrinsic cannot be called by a 'new' expression") #endif /* JERRY_BUILTIN_TYPEDARRAY */ #if JERRY_BUILTIN_BIGINT && JERRY_BUILTIN_TYPEDARRAY ECMA_ERROR_DEF (ECMA_ERR_CONTENTTYPE_RETURNED_TYPEDARRAY_NOT_MATCH_SOURCE, @@ -733,11 +733,11 @@ ECMA_ERROR_DEF (ECMA_ERR_CALL_SUPER_CONSTRUCTOR_DERIVED_CLASS_BEFORE_THIS, "Must call super constructor in derived class before accessing 'this' or returning from it") #if JERRY_BUILTIN_PROXY ECMA_ERROR_DEF (ECMA_ERR_TRAP_TRUISH_DEFINING_NON_EXISTENT_PROPERTY, - "Trap returned truish for defining non-configurable property which is non-existent in the target") + "Trap returned truish for defining non-configurable property which is nonexistent in the target") ECMA_ERROR_DEF ( ECMA_ERR_TRAP_TRUISH_ADD_PROPERTY_INCOMPATIBLE_OTHER_PROP, "Trap returned truish for adding property that is incompatible with the existing property in the target") #endif /* JERRY_BUILTIN_PROXY */ -ECMA_ERROR_DEF (ECMA_ERR_CANNOT_ACCESS_CALLER_CALLE_ARGUMENTS, +ECMA_ERROR_DEF (ECMA_ERR_CANNOT_ACCESS_CALLER_CALLEE_ARGUMENTS, "'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the " "arguments objects for calls to them") diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-error-messages.ini b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-error-messages.ini index c2d7031a..6c55bf04 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-error-messages.ini +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-error-messages.ini @@ -14,7 +14,7 @@ [ECMA_ERROR_MESSAGES] -ECMA_ERR_CANNOT_ACCESS_CALLER_CALLE_ARGUMENTS = "'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them" +ECMA_ERR_CANNOT_ACCESS_CALLER_CALLEE_ARGUMENTS = "'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them" ECMA_ERR_PARAMETER_REJECT_MUST_BE_CALLABLE = "'reject' parameter must be callable" ECMA_ERR_PARAMETER_RESOLVE_MUST_BE_CALLABLE = "'resolve' parameter must be callable" ECMA_ERR_PROMISE_RESOLVE_ITSELF = "A promise cannot be resolved with itself" @@ -48,10 +48,10 @@ ECMA_ERR_ARRAY_BUFFER_RETURNED_THIS_FROM_CONSTRUCTOR = "ArrayBuffer subclass ret ECMA_ERR_BIGINT_SERIALIZED = "BigInt cannot be serialized" ECMA_ERR_BIGINT_ZERO_DIVISION = "BigInt division by zero" ECMA_ERR_BIGINT_FUNCTION_NOT_CONSTRUCTOR = "BigInt function is not a constructor" -ECMA_ERR_BIGINT_VALUE_EXCPECTED = "BigInt value expected" +ECMA_ERR_BIGINT_VALUE_EXPECTED = "BigInt value expected" ECMA_ERR_BINDING_CANNOT_SET = "Binding cannot be set" ECMA_ERR_BINDING_NOT_EXIST_OR_UNINITIALIZED = "Binding does not exist or is uninitialised" -ECMA_ERR_BULTIN_ROUTINES_HAVE_NO_CONSTRUCTOR = "Built-in routines have no constructor" +ECMA_ERR_BUILTIN_ROUTINES_HAVE_NO_CONSTRUCTOR = "Built-in routines have no constructor" ECMA_ERR_CALLBACK_RESULT_NOT_MODULE = "Callback result must be a module" ECMA_ERR_ALLOCATE_ARRAY_BUFFER = "Cannot allocate memory for ArrayBuffer" ECMA_ERR_ALLOCATE_BIGINT_VALUE = "Cannot allocate memory for a BigInt value" @@ -248,12 +248,12 @@ ECMA_ERR_TRAP_FALSISH_PROPERTY_NON_CONFIGURABLE = "Trap returned falsish for pro ECMA_ERR_TRAP_RETURNED_NEITHER_OBJECT_NOR_NULL = "Trap returned neither object nor null" ECMA_ERR_TRAP_TRUISH_ADDING_PROPERTY_NON_EXTENSIBLE_TARGET = "Trap returned truish for adding property to the non-extensible target" ECMA_ERR_TRAP_TRUISH_ADD_PROPERTY_INCOMPATIBLE_OTHER_PROP = "Trap returned truish for adding property that is incompatible with the existing property in the target" -ECMA_ERR_TRAP_TRUISH_DEFINING_NON_EXISTENT_PROPERTY = "Trap returned truish for defining non-configurable property which is non-existent in the target" +ECMA_ERR_TRAP_TRUISH_DEFINING_NON_EXISTENT_PROPERTY = "Trap returned truish for defining non-configurable property which is nonexistent in the target" ECMA_ERR_TRAP_TRUISH_PROPERTY_NON_CONFIGURABLE = "Trap returned truish for property which is non-configurable in the proxy target" ECMA_ERR_TRAP_TRUISH_TARGET_NOT_EXTENSIBLE = "Trap returned truish for target is not extensible" ECMA_ERR_TRAP_WITH_DUPLICATED_ENTRIES = "Trap returned with duplicated entries" -ECMA_ERR_TYPEDARRAY_INTRINSTIC_CALLED_BY_NEW_EXPRESSION = "TypedArray intrinstic cannot be called by a 'new' expression" -ECMA_ERR_TYPEDARRAY_INTRINSTIC_DIRECTLY_CALLED = "TypedArray intrinstic cannot be directly called" +ECMA_ERR_TYPEDARRAY_INTRINSIC_CALLED_BY_NEW_EXPRESSION = "TypedArray intrinsic cannot be called by a 'new' expression" +ECMA_ERR_TYPEDARRAY_INTRINSIC_DIRECTLY_CALLED = "TypedArray intrinsic cannot be directly called" ECMA_ERR_CONTENTTYPE_RETURNED_TYPEDARRAY_NOT_MATCH_SOURCE = "TypedArray returned by [[ContentType]] does not match source" ECMA_ERR_UNARY_PLUS_IS_NOT_ALLOWED_FOR_BIGINTS = "Unary plus is not allowed for BigInts" ECMA_ERR_UNDEFINED_REFERENCE = "Undefined reference" diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-gc.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-gc.cpp index 0748511f..42ddcbbd 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-gc.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-gc.cpp @@ -1012,7 +1012,7 @@ ecma_gc_mark (ecma_object_t *object_p) /**< object to mark from */ } case ECMA_OBJECT_CLASS_PROMISE_CAPABILITY: { - ecma_promise_capabality_t *capability_p = (ecma_promise_capabality_t *) object_p; + ecma_promise_capability_t *capability_p = (ecma_promise_capability_t *) object_p; if (ecma_is_value_object (capability_p->header.u.cls.u3.promise)) { @@ -1893,7 +1893,7 @@ ecma_gc_free_object (ecma_object_t *object_p) /**< object to free */ } case ECMA_OBJECT_CLASS_PROMISE_CAPABILITY: { - ext_object_size = sizeof (ecma_promise_capabality_t); + ext_object_size = sizeof (ecma_promise_capability_t); break; } case ECMA_OBJECT_CLASS_ASYNC_FROM_SYNC_ITERATOR: diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-globals.h b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-globals.h index acfea5f3..d9321ade 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-globals.h +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-globals.h @@ -359,7 +359,7 @@ typedef enum { ECMA_ENUMERABLE_PROPERTY_KEYS, /**< List only property names */ ECMA_ENUMERABLE_PROPERTY_VALUES, /**< List only property values */ - ECMA_ENUMERABLE_PROPERTY_ENTRIES, /**< List both propery names and values */ + ECMA_ENUMERABLE_PROPERTY_ENTRIES, /**< List both property names and values */ ECMA_ENUMERABLE_PROPERTY__COUNT /**< Number of enumerable property listing types */ } ecma_enumerable_property_names_options_t; @@ -914,7 +914,7 @@ typedef struct union { jmem_cpointer_t property_list_cp; /**< compressed pointer to object's - * or declerative lexical environments's property list */ + * or declarative lexical environments's property list */ jmem_cpointer_t bound_object_cp; /**< compressed pointer to lexical environments's the bound object */ jmem_cpointer_t home_object_cp; /**< compressed pointer to lexical environments's the home object */ } u1; @@ -1399,7 +1399,7 @@ typedef struct #define ECMA_COLLECTION_INITIAL_CAPACITY 4 /** - * Ecma-collenction grow factor when the collection underlying buffer need to be reallocated + * Ecma-collection grow factor when the collection underlying buffer need to be reallocated */ #define ECMA_COLLECTION_GROW_FACTOR (ECMA_COLLECTION_INITIAL_CAPACITY * 2) @@ -1740,7 +1740,7 @@ typedef struct /** * The lowest state of the ecma_prop_hashmap_alloc_state counter. - * If ecma_prop_hashmap_alloc_state other other than this value, it is + * If ecma_prop_hashmap_alloc_state other than this value, it is * disabled. */ #define ECMA_PROP_HASHMAP_ALLOC_ON 0 @@ -1972,7 +1972,7 @@ typedef struct ecma_extended_object_t header; /**< object header, and [[Promise]] internal slot */ ecma_value_t resolve; /**< [[Resolve]] internal slot */ ecma_value_t reject; /**< [[Reject]] internal slot */ -} ecma_promise_capabality_t; +} ecma_promise_capability_t; /** * Definition of GetCapabilitiesExecutor Functions @@ -2041,7 +2041,7 @@ typedef enum #if (JERRY_STACK_LIMIT != 0) /** * Check the current stack usage. If the limit is reached a RangeError is raised. - * The macro argument specifies the return value which is usally ECMA_VALUE_ERROR or NULL. + * The macro argument specifies the return value which is usually ECMA_VALUE_ERROR or NULL. */ #define ECMA_CHECK_STACK_USAGE_RETURN(RETURN_VALUE) \ do \ @@ -2121,7 +2121,7 @@ typedef struct #endif /* JERRY_BUILTIN_PROXY */ /** - * Type to repesent the maximum property index + * Type to represent the maximum property index * * For ES6+ the maximum valid property index is 2**53 - 1 */ diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers-collection.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers-collection.cpp index cd814324..fb0716c2 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers-collection.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers-collection.cpp @@ -260,7 +260,7 @@ ecma_collection_check_duplicated_entries (ecma_collection_t *collection_p) /**< } /* ecma_collection_check_duplicated_entries */ /** - * Check the string value existance in the collection. + * Check the string value existence in the collection. * * Used by: * - ecma_builtin_json_stringify step 4.b.ii.5 diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers-external-pointers.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers-external-pointers.cpp index 66d542a0..5ff76b0a 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers-external-pointers.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers-external-pointers.cpp @@ -163,7 +163,7 @@ ecma_get_native_pointer_value (ecma_object_t *obj_p, /**< object to get property { if (ecma_op_object_is_fast_array (obj_p)) { - /* Fast access mode array can not have native pointer properties */ + /* Fast access mode array cannot have native pointer properties */ return NULL; } @@ -226,7 +226,7 @@ ecma_get_native_pointer_value (ecma_object_t *obj_p, /**< object to get property * If the specified object has no matching native pointer for the given native type info * the function has no effect. * - * @return true - if the native pointer has been deleted succesfully + * @return true - if the native pointer has been deleted successfully * false - otherwise */ bool @@ -235,7 +235,7 @@ ecma_delete_native_pointer_property (ecma_object_t *obj_p, /**< object to delete { if (ecma_op_object_is_fast_array (obj_p)) { - /* Fast access mode array can not have native pointer properties */ + /* Fast access mode array cannot have native pointer properties */ return false; } diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp index 10f1266f..6b843a5d 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp @@ -186,7 +186,7 @@ ecma_string_get_chars_fast (const ecma_string_t *string_p, /**< ecma-string */ * @return pointer to ecma-string descriptor */ static ecma_string_t * -ecma_new_ecma_string_from_magic_string_ex_id (lit_magic_string_ex_id_t id) /**< identifier of externl magic string */ +ecma_new_ecma_string_from_magic_string_ex_id (lit_magic_string_ex_id_t id) /**< identifier of external magic string */ { JERRY_ASSERT (id < lit_get_magic_string_ex_count ()); @@ -2186,7 +2186,7 @@ ecma_string_hash (const ecma_string_t *string_p) /**< ecma-string to calculate h /** * Create a substring from an ecma string * - * @return a newly consturcted ecma string with its value initialized to a copy of a substring of the first argument + * @return a newly constructed ecma string with its value initialized to a copy of a substring of the first argument */ ecma_string_t * ecma_string_substr (const ecma_string_t *string_p, /**< pointer to an ecma string */ diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp index cf7826b9..c2a74d06 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp @@ -694,16 +694,16 @@ ecma_make_object_value (const ecma_object_t *object_p) /**< object to reference * @return ecma-value representation of the Error reference */ ecma_value_t JERRY_ATTR_PURE -ecma_make_extended_primitive_value (const ecma_extended_primitive_t *primitve_p, /**< extended primitve value */ - uint32_t type) /**< ecma type of extended primitve value */ +ecma_make_extended_primitive_value (const ecma_extended_primitive_t *primitive_p, /**< extended primitive value */ + uint32_t type) /**< ecma type of extended primitive value */ { - JERRY_ASSERT (primitve_p != NULL); + JERRY_ASSERT (primitive_p != NULL); #if JERRY_BUILTIN_BIGINT - JERRY_ASSERT (primitve_p != ECMA_BIGINT_POINTER_TO_ZERO); + JERRY_ASSERT (primitive_p != ECMA_BIGINT_POINTER_TO_ZERO); #endif /* JERRY_BUILTIN_BIGINT */ JERRY_ASSERT (type == ECMA_TYPE_BIGINT || type == ECMA_TYPE_ERROR); - return ecma_pointer_to_ecma_value (primitve_p) | type; + return ecma_pointer_to_ecma_value (primitive_p) | type; } /* ecma_make_extended_primitive_value */ /** diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers.cpp index 1c994091..08f210b3 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers.cpp @@ -80,7 +80,7 @@ JERRY_STATIC_ASSERT (((int) ECMA_OBJECT_TYPE_BUILT_IN_ARRAY == ((int) ECMA_OBJEC * @return pointer to the object's descriptor */ ecma_object_t * -ecma_create_object (ecma_object_t *prototype_object_p, /**< pointer to prototybe of the object (or NULL) */ +ecma_create_object (ecma_object_t *prototype_object_p, /**< pointer to prototype of the object (or NULL) */ size_t ext_object_size, /**< size of extended objects */ ecma_object_type_t type) /**< object type */ { @@ -453,8 +453,8 @@ ecma_create_property (ecma_object_t *object_p, /**< the object */ /* Otherwise we create a new property pair and use its second value. */ ecma_property_pair_t *first_property_pair_p = ecma_alloc_property_pair (); - /* Need to query property_list_head_p again and recheck the existennce - * of property hasmap, because ecma_alloc_property_pair may delete them. */ + /* Need to query property_list_head_p again and recheck the existence + * of property hashmap, because ecma_alloc_property_pair may delete them. */ property_list_head_p = &object_p->u1.property_list_cp; #if JERRY_PROPERTY_HASHMAP bool has_hashmap = false; @@ -726,7 +726,7 @@ ecma_find_named_property (ecma_object_t *obj_p, /**< object to find property in } #if JERRY_PROPERTY_HASHMAP - if (steps >= (ECMA_PROPERTY_HASMAP_MINIMUM_SIZE / 2)) + if (steps >= (ECMA_PROPERTY_HASHMAP_MINIMUM_SIZE / 2)) { ecma_property_hashmap_create (obj_p); } @@ -1226,14 +1226,14 @@ ecma_free_property_descriptor (ecma_property_descriptor_t *prop_desc_p) /**< pro } /* ecma_free_property_descriptor */ /** - * Increase ref count of an extended primitve value. + * Increase ref count of an extended primitive value. */ void -ecma_ref_extended_primitive (ecma_extended_primitive_t *primitve_p) /**< extended primitve value */ +ecma_ref_extended_primitive (ecma_extended_primitive_t *primitive_p) /**< extended primitive value */ { - if (JERRY_LIKELY (primitve_p->refs_and_type < ECMA_EXTENDED_PRIMITIVE_MAX_REF)) + if (JERRY_LIKELY (primitive_p->refs_and_type < ECMA_EXTENDED_PRIMITIVE_MAX_REF)) { - primitve_p->refs_and_type += ECMA_EXTENDED_PRIMITIVE_REF_ONE; + primitive_p->refs_and_type += ECMA_EXTENDED_PRIMITIVE_REF_ONE; } else { @@ -1556,7 +1556,7 @@ ecma_bytecode_deref (ecma_compiled_code_t *bytecode_p) /**< byte code pointer */ } /* ecma_bytecode_deref */ /** - * Gets the script data asigned to a script / module / function + * Gets the script data assigned to a script / module / function * * @return script data - if available, JMEM_CP_NULL - otherwise */ diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers.h b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers.h index 0e98ea24..828350ae 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers.h +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers.h @@ -93,7 +93,7 @@ typedef enum ECMA_STRING_FLAG_IS_ASCII = (1 << 0), /**< The string contains only ASCII characters. */ ECMA_STRING_FLAG_REHASH_NEEDED = (1 << 1), /**< The hash of the string must be recalculated. * For more details see ecma_append_chars_to_string */ - ECMA_STRING_FLAG_IS_UINT32 = (1 << 2), /**< The string repesents an UINT32 number */ + ECMA_STRING_FLAG_IS_UINT32 = (1 << 2), /**< The string represents an UINT32 number */ ECMA_STRING_FLAG_MUST_BE_FREED = (1 << 3), /**< The returned buffer must be freed */ } ecma_string_flag_t; @@ -245,7 +245,7 @@ ecma_value_t JERRY_ATTR_PURE ecma_make_symbol_value (const ecma_string_t *ecma_s ecma_value_t JERRY_ATTR_PURE ecma_make_prop_name_value (const ecma_string_t *ecma_prop_name_p); ecma_value_t JERRY_ATTR_PURE ecma_make_magic_string_value (lit_magic_string_id_t id); ecma_value_t JERRY_ATTR_PURE ecma_make_object_value (const ecma_object_t *object_p); -ecma_value_t JERRY_ATTR_PURE ecma_make_extended_primitive_value (const ecma_extended_primitive_t *primitve_p, +ecma_value_t JERRY_ATTR_PURE ecma_make_extended_primitive_value (const ecma_extended_primitive_t *primitive_p, uint32_t type); ecma_integer_value_t JERRY_ATTR_CONST ecma_get_integer_from_value (ecma_value_t value); ecma_number_t JERRY_ATTR_PURE ecma_get_float_from_value (ecma_value_t value); @@ -468,7 +468,7 @@ void ecma_set_property_lcached (ecma_property_t *property_p, bool is_lcached); ecma_property_descriptor_t ecma_make_empty_property_descriptor (void); void ecma_free_property_descriptor (ecma_property_descriptor_t *prop_desc_p); -void ecma_ref_extended_primitive (ecma_extended_primitive_t *primitve_p); +void ecma_ref_extended_primitive (ecma_extended_primitive_t *primitive_p); void ecma_deref_exception (ecma_extended_primitive_t *exception_p); #if JERRY_BUILTIN_BIGINT void ecma_deref_bigint (ecma_extended_primitive_t *bigint_p); diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-module.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-module.cpp index 62ac2ae7..fb59953a 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-module.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-module.cpp @@ -346,7 +346,7 @@ ecma_module_resolve_import (ecma_module_resolve_result_t *resolve_result_p, /**< { ecma_module_t *imported_module_p = ecma_module_get_from_object (import_node_p->u.path_or_module); - if (ecma_compare_ecma_string_to_magic_id (import_names_p->imex_name_p, LIT_MAGIC_STRING_ASTERIX_CHAR)) + if (ecma_compare_ecma_string_to_magic_id (import_names_p->imex_name_p, LIT_MAGIC_STRING_ASTERISK_CHAR)) { /* Namespace import. */ ecma_value_t ns = ecma_make_object_value (imported_module_p->namespace_object_p); @@ -471,7 +471,7 @@ ecma_module_resolve_export (ecma_module_t *const module_p, /**< base module */ { ecma_module_t *target_module_p = ecma_module_get_from_object (*indirect_export_p->u.module_object_p); - if (ecma_compare_ecma_string_to_magic_id (export_names_p->local_name_p, LIT_MAGIC_STRING_ASTERIX_CHAR)) + if (ecma_compare_ecma_string_to_magic_id (export_names_p->local_name_p, LIT_MAGIC_STRING_ASTERISK_CHAR)) { /* Namespace export. */ ecma_value_t ns = ecma_make_object_value (target_module_p->namespace_object_p); @@ -721,7 +721,7 @@ ecma_module_create_namespace_object (ecma_module_t *module_p) /**< module */ JERRY_ASSERT (!(module_p->header.u.cls.u2.module_flags & ECMA_MODULE_HAS_NAMESPACE)); ecma_module_resolve_set_t *resolve_set_p; - resolve_set_p = ecma_module_resolve_set_create (module_p, ecma_get_magic_string (LIT_MAGIC_STRING_ASTERIX_CHAR)); + resolve_set_p = ecma_module_resolve_set_create (module_p, ecma_get_magic_string (LIT_MAGIC_STRING_ASTERISK_CHAR)); /* The properties collection stores name / result item pairs. Name is always * a string, and result can be a property reference or namespace object. */ @@ -841,7 +841,7 @@ ecma_module_create_namespace_object (ecma_module_t *module_p) /**< module */ /* Circular imports are ignored */ ecma_module_resolve_set_append (resolve_set_p, ecma_module_get_from_object (*star_export_p->u.module_object_p), - ecma_get_magic_string (LIT_MAGIC_STRING_ASTERIX_CHAR)); + ecma_get_magic_string (LIT_MAGIC_STRING_ASTERISK_CHAR)); star_export_p = star_export_p->next_p; } @@ -965,7 +965,7 @@ ecma_module_connect_imports (ecma_module_t *module_p) while (import_names_p != NULL) { - if (ecma_compare_ecma_string_to_magic_id (import_names_p->imex_name_p, LIT_MAGIC_STRING_ASTERIX_CHAR)) + if (ecma_compare_ecma_string_to_magic_id (import_names_p->imex_name_p, LIT_MAGIC_STRING_ASTERISK_CHAR)) { /* Namespace import. */ ecma_property_value_t *value_p; diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-module.h b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-module.h index ceb47ec6..7b906975 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-module.h +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-module.h @@ -57,7 +57,7 @@ typedef struct ecma_module /* Note: state is stored in header.u.class_prop.extra_info */ ecma_extended_object_t header; /**< header part */ /* TODO(dbatyai): These could be compressed pointers */ - ecma_object_t *scope_p; /**< lexical lenvironment of the module */ + ecma_object_t *scope_p; /**< lexical environment of the module */ ecma_object_t *namespace_object_p; /**< namespace object of the module */ struct ecma_module_node *imports_p; /**< import requests of the module */ ecma_module_names_t *local_exports_p; /**< local exports of the module */ @@ -111,7 +111,7 @@ typedef struct ecma_module_resolve_stack struct ecma_module_resolve_stack *next_p; /**< next in linked list */ ecma_module_t *module_p; /**< module request */ ecma_string_t *export_name_p; /**< export identifier name */ - bool resolving; /**< flag storing wether the current frame started resolving */ + bool resolving; /**< flag storing whether the current frame started resolving */ } ecma_module_resolve_stack_t; ecma_value_t ecma_module_initialize (ecma_module_t *module_p); diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-property-hashmap.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-property-hashmap.cpp index 370b1fc7..ebfc1d57 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-property-hashmap.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-property-hashmap.cpp @@ -102,13 +102,13 @@ ecma_property_hashmap_create (ecma_object_t *object_p) /**< object */ prop_iter_cp = prop_iter_p->next_property_cp; } - if (named_property_count < (ECMA_PROPERTY_HASMAP_MINIMUM_SIZE / 2)) + if (named_property_count < (ECMA_PROPERTY_HASHMAP_MINIMUM_SIZE / 2)) { return; } /* The max_property_count must be power of 2. */ - uint32_t max_property_count = ECMA_PROPERTY_HASMAP_MINIMUM_SIZE; + uint32_t max_property_count = ECMA_PROPERTY_HASHMAP_MINIMUM_SIZE; /* At least 1/3 items must be NULL. */ while (max_property_count < (named_property_count + (named_property_count >> 1))) @@ -162,7 +162,7 @@ ecma_property_hashmap_create (ecma_object_t *object_p) /**< object */ entry_index &= mask; #ifndef JERRY_NDEBUG /* Because max_property_count (power of 2) and step (a prime - * number) are relative primes, all entries of the hasmap are + * number) are relative primes, all entries of the hashmap are * visited exactly once before the start entry index is reached * again. Furthermore because at least one NULL is present in * the hashmap, the while loop must be terminated before the diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-property-hashmap.h b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-property-hashmap.h index 265075e9..11f654bd 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-property-hashmap.h +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-property-hashmap.h @@ -28,7 +28,7 @@ /** * Recommended minimum number of items in a property cache. */ -#define ECMA_PROPERTY_HASMAP_MINIMUM_SIZE 32 +#define ECMA_PROPERTY_HASHMAP_MINIMUM_SIZE 32 /** * Property hash. diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.cpp index e6243185..334d61ce 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.cpp @@ -920,10 +920,10 @@ ecma_builtin_array_prototype_object_sort_compare_helper (ecma_value_t lhs, /**< { JERRY_UNUSED (array_buffer_p); /* - * ECMA-262 v5, 15.4.4.11 NOTE1: Because non-existent property values always + * ECMA-262 v5, 15.4.4.11 NOTE1: Because nonexistent property values always * compare greater than undefined property values, and undefined always * compares greater than any other value, undefined property values always - * sort to the end of the result, followed by non-existent property values. + * sort to the end of the result, followed by nonexistent property values. */ bool lhs_is_undef = ecma_is_value_undefined (lhs); bool rhs_is_undef = ecma_is_value_undefined (rhs); diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-async-from-sync-iterator-prototype.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-async-from-sync-iterator-prototype.cpp index 8f1b10e0..b012944f 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-async-from-sync-iterator-prototype.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-async-from-sync-iterator-prototype.cpp @@ -46,7 +46,7 @@ */ enum { - ECMA_ASYNC_FROM_SYNC_ITERATOR_PROTOTYPE_ROUTINE_START = 0, /**< buitlin routine start id */ + ECMA_ASYNC_FROM_SYNC_ITERATOR_PROTOTYPE_ROUTINE_START = 0, /**< builtin routine start id */ ECMA_ASYNC_FROM_SYNC_ITERATOR_PROTOTYPE_ROUTINE_NEXT, /**< 'next' routine v11, 25.1.4.2.1 */ ECMA_ASYNC_FROM_SYNC_ITERATOR_PROTOTYPE_ROUTINE_RETURN, /**< 'return' routine v11, 25.1.4.2.2 */ ECMA_ASYNC_FROM_SYNC_ITERATOR_PROTOTYPE_ROUTINE_THROW /**< 'throw' routine v11, 25.1.4.2.3 */ @@ -112,18 +112,18 @@ ecma_op_async_from_sync_iterator_prototype_continuation (ecma_value_t result, /* } /* 8 - 9. */ - ecma_object_t *on_fullfilled = ecma_op_create_native_handler (ECMA_NATIVE_HANDLER_ASYNC_FROM_SYNC_ITERATOR_UNWRAP, + ecma_object_t *on_fulfilled = ecma_op_create_native_handler (ECMA_NATIVE_HANDLER_ASYNC_FROM_SYNC_ITERATOR_UNWRAP, sizeof (ecma_extended_object_t)); - ((ecma_extended_object_t *) on_fullfilled)->u.built_in.u2.routine_flags = (uint8_t) done_flag; + ((ecma_extended_object_t *) on_fulfilled)->u.built_in.u2.routine_flags = (uint8_t) done_flag; /* 10. */ ecma_value_t then_result = ecma_promise_perform_then (value_wrapper, - ecma_make_object_value (on_fullfilled), + ecma_make_object_value (on_fulfilled), ECMA_VALUE_UNDEFINED, capability_obj_p); JERRY_ASSERT (!ECMA_IS_VALUE_ERROR (then_result)); - ecma_deref_object (on_fullfilled); + ecma_deref_object (on_fulfilled); ecma_free_value (value_wrapper); /* 11. */ @@ -189,7 +189,7 @@ ecma_builtin_async_from_sync_iterator_prototype_do (ecma_async_from_sync_iterato return method; } - ecma_promise_capabality_t *capability_p = (ecma_promise_capabality_t *) capability_obj_p; + ecma_promise_capability_t *capability_p = (ecma_promise_capability_t *) capability_obj_p; ecma_value_t call_arg; uint32_t arg_size; diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-bigint-prototype.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-bigint-prototype.cpp index 4e6ad9bf..e4218556 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-bigint-prototype.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-bigint-prototype.cpp @@ -82,7 +82,7 @@ ecma_builtin_bigint_prototype_object_value_of (ecma_value_t this_arg) /**< this } } - return ecma_raise_type_error (ECMA_ERR_BIGINT_VALUE_EXCPECTED); + return ecma_raise_type_error (ECMA_ERR_BIGINT_VALUE_EXPECTED); } /* ecma_builtin_bigint_prototype_object_value_of */ /** diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date.cpp index c9b0d5de..682671c1 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date.cpp @@ -125,7 +125,7 @@ ecma_date_parse_date_chars (const lit_utf8_byte_t **str_p, /**< pointer to the c } /* ecma_date_parse_date_chars */ /** - * Helper function to try to parse a special chracter (+,-,T,Z,:,.) in a date string + * Helper function to try to parse a special character (+,-,T,Z,:,.) in a date string * * @return true if the first character is same as the expected, false otherwise */ @@ -256,7 +256,7 @@ ecma_date_construct_helper (const ecma_value_t *args, /**< arguments passed to t ECMA_NUMBER_ZERO, /* hours */ ECMA_NUMBER_ZERO, /* minutes */ ECMA_NUMBER_ZERO, /* seconds */ - ECMA_NUMBER_ZERO /* miliseconds */ + ECMA_NUMBER_ZERO /* milliseconds */ }; args_len = JERRY_MIN (args_len, sizeof (date_nums) / sizeof (date_nums[0])); diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.cpp index 84b2596c..71e43d56 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.cpp @@ -412,7 +412,7 @@ ecma_date_make_time (ecma_number_t hour, /**< hour value */ * See also: * ECMA-262 v11, 20.4.1.12 * - * @return elpased number of days since Unix Epoch + * @return elapsed number of days since Unix Epoch */ ecma_number_t ecma_date_make_day (ecma_number_t year, /**< year value */ @@ -453,7 +453,7 @@ ecma_date_make_day (ecma_number_t year, /**< year value */ * See also: * ECMA-262 v11, 20.4.1.13 * - * @return elpased number of milliceconds since Unix Epoch + * @return elapsed number of milliseconds since Unix Epoch */ ecma_number_t ecma_date_make_date (ecma_number_t day, /**< day value */ @@ -473,7 +473,7 @@ ecma_date_make_date (ecma_number_t day, /**< day value */ * See also: * ECMA-262 v11, 20.4.1.14 * - * @return elpased number of milliceconds since Unix Epoch + * @return elapsed number of milliseconds since Unix Epoch */ ecma_number_t ecma_date_time_clip (ecma_number_t time) /**< time value */ diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers.h b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers.h index 2910e9df..cae12aa2 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers.h +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers.h @@ -101,7 +101,7 @@ typedef struct const lit_utf8_byte_t *string_p; /**< source string */ lit_utf8_size_t string_size; /**< source string size */ const lit_utf8_byte_t *matched_p; /**< matched string */ - lit_utf8_size_t matched_size; /**< matcehd string size */ + lit_utf8_size_t matched_size; /**< matched string size */ lit_utf8_size_t match_byte_pos; /**< byte position of the match in the source string */ uint16_t flags; /**< replace flags */ diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-promise.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-promise.cpp index 02f600c5..1cfa5dd6 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-promise.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-promise.cpp @@ -84,7 +84,7 @@ ecma_builtin_promise_perform_race (ecma_value_t iterator, /**< the iterator for JERRY_ASSERT (ecma_object_class_is (capability_obj_p, ECMA_OBJECT_CLASS_PROMISE_CAPABILITY)); JERRY_ASSERT (ecma_is_constructor (ctor)); - ecma_promise_capabality_t *capability_p = (ecma_promise_capabality_t *) capability_obj_p; + ecma_promise_capability_t *capability_p = (ecma_promise_capability_t *) capability_obj_p; ecma_value_t resolve = ecma_op_object_get_by_magic_id (ecma_get_object_from_value (ctor), LIT_MAGIC_STRING_RESOLVE); @@ -182,7 +182,7 @@ ecma_builtin_promise_perform (ecma_value_t iterator, /**< iteratorRecord */ JERRY_ASSERT (ecma_object_class_is (capability_obj_p, ECMA_OBJECT_CLASS_PROMISE_CAPABILITY)); JERRY_ASSERT (ecma_is_constructor (ctor)); - ecma_promise_capabality_t *capability_p = (ecma_promise_capabality_t *) capability_obj_p; + ecma_promise_capability_t *capability_p = (ecma_promise_capability_t *) capability_obj_p; ecma_value_t resolve = ecma_op_object_get_by_magic_id (ecma_get_object_from_value (ctor), LIT_MAGIC_STRING_RESOLVE); diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-promise.inc.h b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-promise.inc.h index 6c697539..d2bcff46 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-promise.inc.h +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-promise.inc.h @@ -14,7 +14,7 @@ */ /* - * Promose built-in description + * Promise built-in description */ #include "ecma-builtin-helpers-macro-defines.inc.h" diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-symbol.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-symbol.cpp index 3ce75f9b..20d1f701 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-symbol.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-symbol.cpp @@ -167,7 +167,7 @@ ecma_builtin_symbol_for_helper (ecma_value_t value_to_find) /**< symbol or ecma- return ECMA_VALUE_UNDEFINED; } - /* There was no matching, sp a new symbol should be added the the global symbol list. The symbol creation requires + /* There was no matching, sp a new symbol should be added the global symbol list. The symbol creation requires an extra reference to the descriptor string, but this reference has already been added. */ ecma_string_t *new_symbol_p = ecma_new_symbol_from_descriptor_string (value_to_find); diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-type-error-thrower.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-type-error-thrower.cpp index 253a8deb..fdae8b77 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-type-error-thrower.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-type-error-thrower.cpp @@ -55,7 +55,7 @@ ecma_builtin_type_error_thrower_dispatch_call (const ecma_value_t *arguments_lis { JERRY_ASSERT (arguments_list_len == 0 || arguments_list_p != NULL); - return ecma_raise_type_error (ECMA_ERR_CANNOT_ACCESS_CALLER_CALLE_ARGUMENTS); + return ecma_raise_type_error (ECMA_ERR_CANNOT_ACCESS_CALLER_CALLEE_ARGUMENTS); } /* ecma_builtin_type_error_thrower_dispatch_call */ /** diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp index cae35ad8..ec06696e 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp @@ -134,7 +134,7 @@ enum * All the builtin object must be extensible except the ThrowTypeError object. */ JERRY_STATIC_ASSERT (ECMA_BUILTIN_EXTENSIBLE_CHECK == true, - ecma_builtin_must_be_extensible_except_the_builtin_thorw_type_error_object); + ecma_builtin_must_be_extensible_except_the_builtin_throw_type_error_object); #endif /* !JERRY_NDEBUG */ /** @@ -1299,13 +1299,13 @@ ecma_builtin_routine_list_lazy_property_names (ecma_object_t *object_p, /**< a b if (!(ext_func_p->u.built_in.u2.routine_flags & ECMA_BUILTIN_ROUTINE_LENGTH_INITIALIZED)) { - /* Unintialized 'length' property is non-enumerable (ECMA-262 v6, 19.2.4.1) */ + /* Uninitialized 'length' property is non-enumerable (ECMA-262 v6, 19.2.4.1) */ ecma_collection_push_back (prop_names_p, ecma_make_magic_string_value (LIT_MAGIC_STRING_LENGTH)); prop_counter_p->string_named_props++; } if (!(ext_func_p->u.built_in.u2.routine_flags & ECMA_BUILTIN_ROUTINE_NAME_INITIALIZED)) { - /* Unintialized 'name' property is non-enumerable (ECMA-262 v6, 19.2.4.2) */ + /* Uninitialized 'name' property is non-enumerable (ECMA-262 v6, 19.2.4.2) */ ecma_collection_push_back (prop_names_p, ecma_make_magic_string_value (LIT_MAGIC_STRING_NAME)); prop_counter_p->string_named_props++; } @@ -1508,7 +1508,7 @@ ecma_builtin_dispatch_construct (ecma_object_t *obj_p, /**< built-in object */ if (ecma_builtin_function_is_routine (obj_p)) { - return ecma_raise_type_error (ECMA_ERR_BULTIN_ROUTINES_HAVE_NO_CONSTRUCTOR); + return ecma_raise_type_error (ECMA_ERR_BUILTIN_ROUTINES_HAVE_NO_CONSTRUCTOR); } ecma_extended_object_t *ext_obj_p = (ecma_extended_object_t *) obj_p; diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/typedarray/ecma-builtin-typedarray-prototype.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/typedarray/ecma-builtin-typedarray-prototype.cpp index 3738e175..05156344 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/typedarray/ecma-builtin-typedarray-prototype.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/typedarray/ecma-builtin-typedarray-prototype.cpp @@ -836,7 +836,7 @@ ecma_builtin_typedarray_prototype_set (ecma_value_t this_arg, /**< this argument * See also: * ECMA-262 v5.1, 15.4.4.2 * - * @return NULL - if the converison fails + * @return NULL - if the conversion fails * ecma_string_t * - otherwise */ static ecma_string_t * @@ -885,8 +885,8 @@ ecma_op_typedarray_get_separator_string (ecma_value_t separator) /**< possible s } /* ecma_op_typedarray_get_separator_string */ /** - * The TypedArray.prototype object's 'join' routine basen on - * the Array.porottype object's 'join' + * The TypedArray.prototype object's 'join' routine based on + * the Array.prototype object's 'join' * * See also: * ECMA-262 v5, 15.4.4.5 @@ -1849,9 +1849,9 @@ ecma_builtin_typedarray_prototype_includes (ecma_typedarray_info_t *info_p, /**< { #if JERRY_BUILTIN_BIGINT bool is_bigint = ECMA_TYPEDARRAY_IS_BIGINT_TYPE (info_p->id); -#else /* !JERRRY_BUILTIN_BIGINT */ +#else /* !JERRY_BUILTIN_BIGINT */ bool is_bigint = false; -#endif /* JERRRY_BUILTIN_BIGINT */ +#endif /* JERRY_BUILTIN_BIGINT */ if (ecma_arraybuffer_is_detached (info_p->array_buffer_p)) { diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/typedarray/ecma-builtin-typedarray.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/typedarray/ecma-builtin-typedarray.cpp index c91f9764..eb67eab8 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/typedarray/ecma-builtin-typedarray.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/typedarray/ecma-builtin-typedarray.cpp @@ -174,7 +174,7 @@ ecma_builtin_typedarray_dispatch_call (const ecma_value_t *arguments_list_p, /** { JERRY_ASSERT (arguments_list_len == 0 || arguments_list_p != NULL); - return ecma_raise_type_error (ECMA_ERR_TYPEDARRAY_INTRINSTIC_DIRECTLY_CALLED); + return ecma_raise_type_error (ECMA_ERR_TYPEDARRAY_INTRINSIC_DIRECTLY_CALLED); } /* ecma_builtin_typedarray_dispatch_call */ /** @@ -191,7 +191,7 @@ ecma_builtin_typedarray_dispatch_construct (const ecma_value_t *arguments_list_p { JERRY_ASSERT (arguments_list_len == 0 || arguments_list_p != NULL); - return ecma_raise_type_error (ECMA_ERR_TYPEDARRAY_INTRINSTIC_CALLED_BY_NEW_EXPRESSION); + return ecma_raise_type_error (ECMA_ERR_TYPEDARRAY_INTRINSIC_CALLED_BY_NEW_EXPRESSION); } /* ecma_builtin_typedarray_dispatch_construct */ /** diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-array-object.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-array-object.cpp index 5da891d7..2ee4d80b 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-array-object.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-array-object.cpp @@ -220,7 +220,7 @@ ecma_op_new_array_object_from_buffer (const ecma_value_t *args_p, /**< array ele } /* ecma_op_new_array_object_from_buffer */ /** - * Allocate a new fast acces mode array object from the given collection + * Allocate a new fast access mode array object from the given collection * * Note: The given collection will be unavailable after and it's underlying buffer is reused * @@ -229,7 +229,7 @@ ecma_op_new_array_object_from_buffer (const ecma_value_t *args_p, /**< array ele ecma_value_t ecma_op_new_array_object_from_collection (ecma_collection_t *collection_p, /**< collection to create array from */ bool unref_objects) /**< true - if the collection potentially - containts objects + contains objects false - otherwise */ { const uint32_t item_count = collection_p->item_count; @@ -1045,7 +1045,7 @@ ecma_op_array_object_set_length (ecma_object_t *object_p, /**< the array object /** * Property descriptor bitset for fast array data properties. - * If the property desciptor fields contains all the flags below + * If the property descriptor fields contains all the flags below * attempt to stay fast access array during [[DefineOwnProperty]] operation. */ #define ECMA_FAST_ARRAY_DATA_PROP_FLAGS \ @@ -1136,10 +1136,10 @@ ecma_op_array_object_define_own_property (ecma_object_t *object_p, /**< the arra prop_desc = *property_desc_p; prop_desc.flags &= (uint16_t) ~JERRY_PROP_SHOULD_THROW; - ecma_value_t completition = ecma_op_general_object_define_own_property (object_p, property_name_p, &prop_desc); - JERRY_ASSERT (ecma_is_value_boolean (completition)); + ecma_value_t completion = ecma_op_general_object_define_own_property (object_p, property_name_p, &prop_desc); + JERRY_ASSERT (ecma_is_value_boolean (completion)); - if (ecma_is_value_false (completition)) + if (ecma_is_value_false (completion)) { return ecma_raise_property_redefinition (property_name_p, property_desc_p->flags); } diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-array-object.h b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-array-object.h index 73d65805..144635e1 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-array-object.h +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-array-object.h @@ -53,7 +53,7 @@ #define ECMA_FAST_ARRAY_HOLE_SHIFT 8 /** - * This number represents 1 array hole in underlying buffer of a fast acces mode array + * This number represents 1 array hole in underlying buffer of a fast access mode array */ #define ECMA_FAST_ARRAY_HOLE_ONE (1 << ECMA_FAST_ARRAY_HOLE_SHIFT) @@ -76,7 +76,7 @@ bool ecma_op_array_is_fast_array (ecma_extended_object_t *array_p); uint32_t ecma_fast_array_get_hole_count (ecma_object_t *obj_p); -ecma_value_t *ecma_fast_array_extend (ecma_object_t *object_p, uint32_t new_lengt); +ecma_value_t *ecma_fast_array_extend (ecma_object_t *object_p, uint32_t new_length); bool ecma_fast_array_set_property (ecma_object_t *object_p, uint32_t index, ecma_value_t value); diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-async-generator-object.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-async-generator-object.cpp index 1e548bbc..fa4e0b54 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-async-generator-object.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-async-generator-object.cpp @@ -123,7 +123,7 @@ ecma_async_yield_call (ecma_value_t function, /**< function (takes reference) */ } /* ecma_async_yield_call */ /** - * Perform an exception throw and call the approprite handler + * Perform an exception throw and call the appropriate handler * * @return ecma value * Returned value must be freed with ecma_free_value. diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-bigint.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-bigint.cpp index 7a4464e0..71c100a1 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-bigint.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-bigint.cpp @@ -72,7 +72,7 @@ ecma_bigint_create_from_digit (ecma_bigint_digit_t digit, /* single digit */ * Returned value must be freed with ecma_free_value. */ ecma_value_t -ecma_bigint_parse_string (const lit_utf8_byte_t *string_p, /**< string represenation of the BigInt */ +ecma_bigint_parse_string (const lit_utf8_byte_t *string_p, /**< string representation of the BigInt */ lit_utf8_size_t size, /**< string size */ uint32_t options) /**< ecma_bigint_parse_string_options_t option bits */ { diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-container-object.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-container-object.cpp index bc602f96..c3c84f9d 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-container-object.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-container-object.cpp @@ -650,7 +650,7 @@ ecma_op_container_has (ecma_extended_object_t *map_object_p, /**< map object */ * @return ecma value */ static ecma_value_t -ecma_op_container_set_noramlize_zero (ecma_value_t this_arg) /*< this arg */ +ecma_op_container_set_normalize_zero (ecma_value_t this_arg) /*< this arg */ { if (ecma_is_value_number (this_arg)) { @@ -663,7 +663,7 @@ ecma_op_container_set_noramlize_zero (ecma_value_t this_arg) /*< this arg */ } return this_arg; -} /* ecma_op_container_set_noramlize_zero */ +} /* ecma_op_container_set_normalize_zero */ /** * The generic Map prototype object's 'set' and Set prototype object's 'add' routine @@ -688,7 +688,7 @@ ecma_op_container_set (ecma_extended_object_t *map_object_p, /**< map object */ if (entry_p == NULL) { - ecma_op_internal_buffer_append (container_p, ecma_op_container_set_noramlize_zero (key_arg), value_arg, lit_id); + ecma_op_internal_buffer_append (container_p, ecma_op_container_set_normalize_zero (key_arg), value_arg, lit_id); if ((map_object_p->u.cls.u1.container_flags & ECMA_CONTAINER_FLAGS_WEAK) != 0) { @@ -698,7 +698,7 @@ ecma_op_container_set (ecma_extended_object_t *map_object_p, /**< map object */ } else { - ecma_op_internal_buffer_update (entry_p, ecma_op_container_set_noramlize_zero (value_arg), lit_id); + ecma_op_internal_buffer_update (entry_p, ecma_op_container_set_normalize_zero (value_arg), lit_id); } ecma_ref_object ((ecma_object_t *) map_object_p); diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-dataview-object.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-dataview-object.cpp index db2ae0a6..d82289db 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-dataview-object.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-dataview-object.cpp @@ -184,16 +184,16 @@ ecma_op_dataview_get_object (ecma_value_t this_arg) /**< this argument */ } /* ecma_op_dataview_get_object */ /** - * Helper union to specify the system's endiannes + * Helper union to specify the system's endianness */ typedef union { uint32_t number; /**< for write numeric data */ char data[sizeof (uint32_t)]; /**< for read numeric data */ -} ecma_dataview_endiannes_check_t; +} ecma_dataview_endianness_check_t; /** - * Helper function to check the current system endiannes + * Helper function to check the current system endianness * * @return true - if the current system has little endian byteorder * false - otherwise @@ -201,15 +201,15 @@ typedef union static bool ecma_dataview_check_little_endian (void) { - ecma_dataview_endiannes_check_t checker; + ecma_dataview_endianness_check_t checker; checker.number = 0x01; return checker.data[0] == 0x01; } /* ecma_dataview_check_little_endian */ /** - * Helper function for swap bytes if the system's endiannes - * does not match with the requested endiannes. + * Helper function for swap bytes if the system's endianness + * does not match with the requested endianness. */ static void ecma_dataview_swap_order (bool system_is_little_endian, /**< true - if the system has little endian byteorder @@ -231,7 +231,7 @@ ecma_dataview_swap_order (bool system_is_little_endian, /**< true - if the syste } /* ecma_dataview_swap_order */ /** - * GetViewValue and SetViewValue abstact operation + * GetViewValue and SetViewValue abstract operation * * See also: * ECMA-262 v11, 24.3.1.1 diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp index 57cdd8da..8d6738dd 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp @@ -246,7 +246,7 @@ ecma_object_check_constructor (ecma_object_t *obj_p) /**< ecma object */ { if (ecma_builtin_function_is_routine (obj_p)) { - return ECMA_ERR_BULTIN_ROUTINES_HAVE_NO_CONSTRUCTOR; + return ECMA_ERR_BUILTIN_ROUTINES_HAVE_NO_CONSTRUCTOR; } JERRY_ASSERT (((ecma_extended_object_t *) obj_p)->u.built_in.id != ECMA_BUILTIN_ID_HANDLER); @@ -1276,7 +1276,7 @@ ecma_op_function_call_native (ecma_object_t *func_obj_p, /**< Function object */ * @return target function of the bound function */ JERRY_ATTR_NOINLINE static ecma_object_t * -ecma_op_bound_function_get_argument_list (ecma_object_t *func_obj_p, /**< bound bunction object */ +ecma_op_bound_function_get_argument_list (ecma_object_t *func_obj_p, /**< bound function object */ ecma_collection_t *list_p) /**< list of arguments */ { JERRY_ASSERT (ecma_get_object_type (func_obj_p) == ECMA_OBJECT_TYPE_BOUND_FUNCTION); @@ -2105,7 +2105,7 @@ ecma_op_function_list_lazy_property_names (ecma_object_t *object_p, /**< functio if (!ECMA_GET_FIRST_BIT_FROM_POINTER_TAG (ext_func_p->u.function.scope_cp)) { - /* Unintialized 'length' property is non-enumerable (ECMA-262 v6, 19.2.4.1) */ + /* Uninitialized 'length' property is non-enumerable (ECMA-262 v6, 19.2.4.1) */ ecma_collection_push_back (prop_names_p, ecma_make_magic_string_value (LIT_MAGIC_STRING_LENGTH)); prop_counter_p->string_named_props++; } @@ -2113,7 +2113,7 @@ ecma_op_function_list_lazy_property_names (ecma_object_t *object_p, /**< functio if (CBC_FUNCTION_GET_TYPE (bytecode_data_p->status_flags) != CBC_FUNCTION_CONSTRUCTOR && !ECMA_GET_SECOND_BIT_FROM_POINTER_TAG (ext_func_p->u.function.scope_cp)) { - /* Unintialized 'name' property is non-enumerable (ECMA-262 v6, 19.2.4.2) */ + /* Uninitialized 'name' property is non-enumerable (ECMA-262 v6, 19.2.4.2) */ ecma_collection_push_back (prop_names_p, ecma_make_magic_string_value (LIT_MAGIC_STRING_NAME)); prop_counter_p->string_named_props++; } @@ -2184,7 +2184,7 @@ ecma_op_bound_function_list_lazy_property_names (ecma_object_t *object_p, /**< b return; } - /* Unintialized 'length' property is non-enumerable (ECMA-262 v6, 19.2.4.1) */ + /* Uninitialized 'length' property is non-enumerable (ECMA-262 v6, 19.2.4.1) */ ecma_bound_function_t *bound_func_p = (ecma_bound_function_t *) object_p; if (!ECMA_GET_FIRST_BIT_FROM_POINTER_TAG (bound_func_p->header.u.bound_function.target_function)) { diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-iterator-object.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-iterator-object.cpp index 26a80067..b6d345be 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-iterator-object.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-iterator-object.cpp @@ -454,7 +454,7 @@ ecma_op_iterator_value (ecma_value_t iter_result) /**< iterator value */ * * See also: ECMA-262 v6, 7.4.6 * - * @return ECMA_VALUE_EMPTY - if "return" is succesfully invoked, + * @return ECMA_VALUE_EMPTY - if "return" is successfully invoked, * and the operation is called with normal completion * ECMA_VALUE_ERROR - otherwise */ diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-jobqueue.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-jobqueue.cpp index 4826676b..6f798c71 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-jobqueue.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-jobqueue.cpp @@ -29,7 +29,7 @@ /** * Mask for job queue type. */ -#define ECMA_JOB_QUEURE_TYPE_MASK ((uintptr_t) 0x07) +#define ECMA_JOB_QUEUE_TYPE_MASK ((uintptr_t) 0x07) /** \addtogroup ecma ECMA * @{ @@ -97,7 +97,7 @@ ecma_job_queue_init (void) static inline ecma_job_queue_item_type_t ecma_job_queue_get_type (ecma_job_queue_item_t *job_p) /**< the job */ { - return (ecma_job_queue_item_type_t) (job_p->next_and_type & ECMA_JOB_QUEURE_TYPE_MASK); + return (ecma_job_queue_item_type_t) (job_p->next_and_type & ECMA_JOB_QUEUE_TYPE_MASK); } /* ecma_job_queue_get_type */ /** @@ -108,7 +108,7 @@ ecma_job_queue_get_type (ecma_job_queue_item_t *job_p) /**< the job */ static inline ecma_job_queue_item_t * ecma_job_queue_get_next (ecma_job_queue_item_t *job_p) /**< the job */ { - return (ecma_job_queue_item_t *) (job_p->next_and_type & ~ECMA_JOB_QUEURE_TYPE_MASK); + return (ecma_job_queue_item_t *) (job_p->next_and_type & ~ECMA_JOB_QUEUE_TYPE_MASK); } /* ecma_job_queue_get_next */ /** @@ -185,8 +185,8 @@ ecma_process_promise_reaction_job (ecma_job_promise_reaction_t *job_p) /**< the /* 2. */ JERRY_ASSERT ( ecma_object_class_is (ecma_get_object_from_value (job_p->capability), ECMA_OBJECT_CLASS_PROMISE_CAPABILITY)); - ecma_promise_capabality_t *capability_p; - capability_p = (ecma_promise_capabality_t *) ecma_get_object_from_value (job_p->capability); + ecma_promise_capability_t *capability_p; + capability_p = (ecma_promise_capability_t *) ecma_get_object_from_value (job_p->capability); /* 3. */ ecma_value_t handler = job_p->handler; @@ -392,7 +392,7 @@ ecma_process_promise_resolve_thenable_job (ecma_job_promise_resolve_thenable_t * static void ecma_enqueue_job (ecma_job_queue_item_t *job_p) /**< the job */ { - JERRY_ASSERT (job_p->next_and_type <= ECMA_JOB_QUEURE_TYPE_MASK); + JERRY_ASSERT (job_p->next_and_type <= ECMA_JOB_QUEUE_TYPE_MASK); if (JERRY_CONTEXT (job_queue_head_p) == NULL) { @@ -401,7 +401,7 @@ ecma_enqueue_job (ecma_job_queue_item_t *job_p) /**< the job */ } else { - JERRY_ASSERT ((JERRY_CONTEXT (job_queue_tail_p)->next_and_type & ~ECMA_JOB_QUEURE_TYPE_MASK) == 0); + JERRY_ASSERT ((JERRY_CONTEXT (job_queue_tail_p)->next_and_type & ~ECMA_JOB_QUEUE_TYPE_MASK) == 0); JERRY_CONTEXT (job_queue_tail_p)->next_and_type |= (uintptr_t) job_p; JERRY_CONTEXT (job_queue_tail_p) = job_p; diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-lex-env.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-lex-env.cpp index 0b04a38f..c4001d5a 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-lex-env.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-lex-env.cpp @@ -187,7 +187,7 @@ ecma_op_has_binding (ecma_object_t *lex_env_p, /**< lexical environment */ * See also: ECMA-262 v5, 10.2.1 * * @return ECMA_PROPERTY_POINTER_ERROR - if the operation raises error - * pointer to the created property - if the binding was created into a declerative environment + * pointer to the created property - if the binding was created into a declarative environment * NULL - otherwise */ ecma_property_t * @@ -582,7 +582,7 @@ ecma_op_get_environment_record (ecma_object_t *lex_env_p) /**< lexical environme * * See also: ECMA-262 v6, 8.1.1.3 * - * @return true - if the status is "initialzed" + * @return true - if the status is "initialized" * false - otherwise */ bool diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp index f4425c83..4fe71c7a 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp @@ -194,7 +194,7 @@ static const lit_magic_string_id_t to_primitive_non_string_hint_method_names[2] }; /** - * Hints for the ecma general object's toPrimitve operation + * Hints for the ecma general object's toPrimitive operation */ static const lit_magic_string_id_t hints[3] = { LIT_MAGIC_STRING_DEFAULT, /**< "default" hint */ diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-promise-object.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-promise-object.cpp index 333aa202..203dff2a 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-promise-object.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-promise-object.cpp @@ -552,12 +552,12 @@ ecma_promise_all_or_all_settled_handler_cb (ecma_object_t *function_obj_p, /**< else { lit_magic_string_id_t status_property_val = LIT_MAGIC_STRING_REJECTED; - lit_magic_string_id_t data_propery_name = LIT_MAGIC_STRING_REASON; + lit_magic_string_id_t data_property_name = LIT_MAGIC_STRING_REASON; if (promise_type == ECMA_PROMISE_ALLSETTLED_RESOLVE) { status_property_val = LIT_MAGIC_STRING_FULFILLED; - data_propery_name = LIT_MAGIC_STRING_VALUE; + data_property_name = LIT_MAGIC_STRING_VALUE; } ecma_object_t *obj_p = @@ -571,7 +571,7 @@ ecma_promise_all_or_all_settled_handler_cb (ecma_object_t *function_obj_p, /**< prop_value_p->value = ecma_make_magic_string_value (status_property_val); prop_value_p = ecma_create_named_data_property (obj_p, - ecma_get_magic_string (data_propery_name), + ecma_get_magic_string (data_property_name), ECMA_PROPERTY_CONFIGURABLE_ENUMERABLE_WRITABLE, NULL); prop_value_p->value = ecma_copy_value_if_not_object (arg); @@ -592,7 +592,7 @@ ecma_promise_all_or_all_settled_handler_cb (ecma_object_t *function_obj_p, /**< if (ecma_promise_remaining_inc_or_dec (executor_p->remaining_elements, false) == 0) { ecma_value_t capability = executor_p->capability; - ecma_promise_capabality_t *capability_p = (ecma_promise_capabality_t *) ecma_get_object_from_value (capability); + ecma_promise_capability_t *capability_p = (ecma_promise_capability_t *) ecma_get_object_from_value (capability); if (promise_type == ECMA_PROMISE_ANY_REJECT) { ecma_value_t error_val = ecma_new_aggregate_error (executor_p->values, ECMA_VALUE_UNDEFINED); @@ -633,7 +633,7 @@ ecma_op_get_capabilities_executor_cb (ecma_object_t *function_obj_p, /**< functi /* 2-3. */ ecma_object_t *capability_obj_p = ecma_get_object_from_value (executor_p->capability); JERRY_ASSERT (ecma_object_class_is (capability_obj_p, ECMA_OBJECT_CLASS_PROMISE_CAPABILITY)); - ecma_promise_capabality_t *capability_p = (ecma_promise_capabality_t *) capability_obj_p; + ecma_promise_capability_t *capability_p = (ecma_promise_capability_t *) capability_obj_p; /* 4. */ if (!ecma_is_value_undefined (capability_p->resolve)) @@ -679,10 +679,10 @@ ecma_promise_new_capability (ecma_value_t constructor, /**< constructor function /* 3. */ ecma_object_t *capability_obj_p = ecma_create_object (ecma_builtin_get (ECMA_BUILTIN_ID_OBJECT_PROTOTYPE), - sizeof (ecma_promise_capabality_t), + sizeof (ecma_promise_capability_t), ECMA_OBJECT_TYPE_CLASS); - ecma_promise_capabality_t *capability_p = (ecma_promise_capabality_t *) capability_obj_p; + ecma_promise_capability_t *capability_p = (ecma_promise_capability_t *) capability_obj_p; capability_p->header.u.cls.type = ECMA_OBJECT_CLASS_PROMISE_CAPABILITY; capability_p->header.u.cls.u3.promise = ECMA_VALUE_UNDEFINED; capability_p->resolve = ECMA_VALUE_UNDEFINED; @@ -787,7 +787,7 @@ ecma_promise_reject_or_resolve (ecma_value_t this_arg, /**< "this" argument */ return ECMA_VALUE_ERROR; } - ecma_promise_capabality_t *capability_p = (ecma_promise_capabality_t *) capability_obj_p; + ecma_promise_capability_t *capability_p = (ecma_promise_capability_t *) capability_obj_p; ecma_value_t func = is_resolve ? capability_p->resolve : capability_p->reject; @@ -1133,7 +1133,7 @@ ecma_op_if_abrupt_reject_promise (ecma_value_t *value_p, /**< [in - out] complet ecma_value_t reason = jcontext_take_exception (); - ecma_promise_capabality_t *capability_p = (ecma_promise_capabality_t *) capability_obj_p; + ecma_promise_capability_t *capability_p = (ecma_promise_capability_t *) capability_obj_p; ecma_value_t call_ret = ecma_op_function_call (ecma_get_object_from_value (capability_p->reject), ECMA_VALUE_UNDEFINED, &reason, 1); ecma_free_value (reason); @@ -1167,9 +1167,9 @@ ecma_promise_perform_then (ecma_value_t promise, /**< the promise which call 'th { JERRY_ASSERT (ecma_object_class_is (result_capability_obj_p, ECMA_OBJECT_CLASS_PROMISE_CAPABILITY)); - ecma_promise_capabality_t *capability_p = (ecma_promise_capabality_t *) result_capability_obj_p; + ecma_promise_capability_t *capability_p = (ecma_promise_capability_t *) result_capability_obj_p; - /* 3. boolean true indicates "indentity" */ + /* 3. boolean true indicates "identity" */ if (!ecma_op_is_callable (on_fulfilled)) { on_fulfilled = ECMA_VALUE_TRUE; diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-promise-object.h b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-promise-object.h index 8cfaa454..2ba3cc16 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-promise-object.h +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-promise-object.h @@ -80,7 +80,7 @@ typedef struct /* The Promise reaction is a compressed structure, where each item can * be a sequence of up to three ecma object values as seen below: * - * [ Capability ][ Optional fullfilled callback ][ Optional rejected callback ] + * [ Capability ][ Optional fulfilled callback ][ Optional rejected callback ] * [ Async function callback ] * * The first member is an object, which lower bits specify the type of the reaction: @@ -88,7 +88,7 @@ typedef struct * The first two objects specify the resolve/reject functions of the promise * returned by the `then` operation which can be used to chain event handlers. * - * bit 0: has a fullfilled callback + * bit 0: has a fulfilled callback * bit 1: has a rejected callback * * bit 2 is set: async function callback diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-proxy-object.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-proxy-object.cpp index 35ff2bf0..7b269786 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-proxy-object.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-proxy-object.cpp @@ -248,7 +248,7 @@ ecma_validate_proxy_object (ecma_value_t handler, /**< proxy handler */ return ecma_op_get_method_by_magic_id (handler, magic_id); } /* ecma_validate_proxy_object */ -/* Interal operations */ +/* Internal operations */ /** * The Proxy object [[GetPrototypeOf]] internal routine @@ -1132,7 +1132,7 @@ ecma_proxy_object_has (ecma_object_t *obj_p, /**< proxy object */ * Note: Returned value is always a simple value so freeing it is unnecessary. * * @return ECMA_VALUE_ERROR - if the operation fails - * value of the given nameddata property or the result of the getter function call - otherwise + * value of the given named data property or the result of the getter function call - otherwise */ ecma_value_t ecma_proxy_object_get (ecma_object_t *obj_p, /**< proxy object */ @@ -1231,7 +1231,7 @@ ecma_proxy_object_get (ecma_object_t *obj_p, /**< proxy object */ * Note: Returned value is always a simple value so freeing it is unnecessary. * * @return ECMA_VALUE_ERROR - if the operation fails - * ECMA_VALUE_{TRUE/FALSE} - depends on whether the propety can be set to the given object + * ECMA_VALUE_{TRUE/FALSE} - depends on whether the property can be set to the given object */ ecma_value_t ecma_proxy_object_set (ecma_object_t *obj_p, /**< proxy object */ @@ -1352,7 +1352,7 @@ ecma_proxy_object_set (ecma_object_t *obj_p, /**< proxy object */ * Note: Returned value is always a simple value so freeing it is unnecessary. * * @return ECMA_VALUE_ERROR - if the operation fails - * ECMA_VALUE_{TRUE/FALSE} - depends on whether the propety can be deleted + * ECMA_VALUE_{TRUE/FALSE} - depends on whether the property can be deleted */ ecma_value_t ecma_proxy_object_delete_property (ecma_object_t *obj_p, /**< proxy object */ diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-proxy-object.h b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-proxy-object.h index 82537bca..84acdf8e 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-proxy-object.h +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-proxy-object.h @@ -36,7 +36,7 @@ ecma_proxy_revoke_cb (ecma_object_t *function_obj_p, const ecma_value_t args_p[] ecma_value_t ecma_proxy_object_find (ecma_object_t *obj_p, ecma_string_t *prop_name_p); -/* Interal operations */ +/* Internal operations */ ecma_value_t ecma_proxy_object_get_prototype_of (ecma_object_t *obj_p); diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-regexp-object.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-regexp-object.cpp index 29fc9893..09d92d3a 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-regexp-object.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-regexp-object.cpp @@ -474,7 +474,7 @@ ecma_regexp_step_back (ecma_regexp_ctx_t *re_ctx_p, /**< regexp context */ } /* ecma_regexp_step_back */ /** - * Check if the current poisition is on a word boundary. + * Check if the current position is on a word boundary. * * @return true, if on a word boundary * false - otherwise diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-shared-arraybuffer-object.h b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-shared-arraybuffer-object.h index 65b480ed..413b1730 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-shared-arraybuffer-object.h +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-shared-arraybuffer-object.h @@ -32,7 +32,7 @@ ecma_value_t ecma_op_create_shared_arraybuffer_object (const ecma_value_t *, uin /** * Helper functions for SharedArrayBuffer. */ -ecma_object_t *ecma_shared_arraybuffer_new_object (uint32_t lengh); +ecma_object_t *ecma_shared_arraybuffer_new_object (uint32_t length); #endif /* JERRY_BUILTIN_SHAREDARRAYBUFFER */ bool ecma_is_shared_arraybuffer (ecma_value_t val); bool ecma_object_is_shared_arraybuffer (ecma_object_t *val); diff --git a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-typedarray-object.cpp b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-typedarray-object.cpp index ee7e3849..dc731112 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-typedarray-object.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/ecma/operations/ecma-typedarray-object.cpp @@ -326,15 +326,15 @@ static ecma_value_t ecma_typedarray_set_int16_element (lit_utf8_byte_t *dst_p, /**< the location in the internal arraybuffer */ ecma_value_t value) /**< the number value to set */ { - ecma_number_t resut_num; - ecma_value_t to_num = ecma_op_to_numeric (value, &resut_num, ECMA_TO_NUMERIC_NO_OPTS); + ecma_number_t result_num; + ecma_value_t to_num = ecma_op_to_numeric (value, &result_num, ECMA_TO_NUMERIC_NO_OPTS); if (ECMA_IS_VALUE_ERROR (to_num)) { return to_num; } - int16_t num = (int16_t) ecma_typedarray_setter_number_to_uint32 (resut_num); + int16_t num = (int16_t) ecma_typedarray_setter_number_to_uint32 (result_num); ECMA_TYPEDARRAY_SET_ELEMENT (dst_p, num, int16_t); return ECMA_VALUE_TRUE; } /* ecma_typedarray_set_int16_element */ @@ -349,15 +349,15 @@ static ecma_value_t ecma_typedarray_set_uint16_element (lit_utf8_byte_t *dst_p, /**< the location in the internal arraybuffer */ ecma_value_t value) /**< the number value to set */ { - ecma_number_t resut_num; - ecma_value_t to_num = ecma_op_to_numeric (value, &resut_num, ECMA_TO_NUMERIC_NO_OPTS); + ecma_number_t result_num; + ecma_value_t to_num = ecma_op_to_numeric (value, &result_num, ECMA_TO_NUMERIC_NO_OPTS); if (ECMA_IS_VALUE_ERROR (to_num)) { return to_num; } - uint16_t num = (uint16_t) ecma_typedarray_setter_number_to_uint32 (resut_num); + uint16_t num = (uint16_t) ecma_typedarray_setter_number_to_uint32 (result_num); ECMA_TYPEDARRAY_SET_ELEMENT (dst_p, num, uint16_t); return ECMA_VALUE_TRUE; } /* ecma_typedarray_set_uint16_element */ @@ -372,15 +372,15 @@ static ecma_value_t ecma_typedarray_set_int32_element (lit_utf8_byte_t *dst_p, /**< the location in the internal arraybuffer */ ecma_value_t value) /**< the number value to set */ { - ecma_number_t resut_num; - ecma_value_t to_num = ecma_op_to_numeric (value, &resut_num, ECMA_TO_NUMERIC_NO_OPTS); + ecma_number_t result_num; + ecma_value_t to_num = ecma_op_to_numeric (value, &result_num, ECMA_TO_NUMERIC_NO_OPTS); if (ECMA_IS_VALUE_ERROR (to_num)) { return to_num; } - int32_t num = (int32_t) ecma_typedarray_setter_number_to_uint32 (resut_num); + int32_t num = (int32_t) ecma_typedarray_setter_number_to_uint32 (result_num); ECMA_TYPEDARRAY_SET_ELEMENT (dst_p, num, int32_t); return ECMA_VALUE_TRUE; } /* ecma_typedarray_set_int32_element */ @@ -395,15 +395,15 @@ static ecma_value_t ecma_typedarray_set_uint32_element (lit_utf8_byte_t *dst_p, /**< the location in the internal arraybuffer */ ecma_value_t value) /**< the number value to set */ { - ecma_number_t resut_num; - ecma_value_t to_num = ecma_op_to_numeric (value, &resut_num, ECMA_TO_NUMERIC_NO_OPTS); + ecma_number_t result_num; + ecma_value_t to_num = ecma_op_to_numeric (value, &result_num, ECMA_TO_NUMERIC_NO_OPTS); if (ECMA_IS_VALUE_ERROR (to_num)) { return to_num; } - uint32_t num = (uint32_t) ecma_typedarray_setter_number_to_uint32 (resut_num); + uint32_t num = (uint32_t) ecma_typedarray_setter_number_to_uint32 (result_num); ECMA_TYPEDARRAY_SET_ELEMENT (dst_p, num, uint32_t); return ECMA_VALUE_TRUE; } /* ecma_typedarray_set_uint32_element */ @@ -967,7 +967,7 @@ ecma_typedarray_create_object_with_typedarray (ecma_object_t *typedarray_p, /**< static ecma_value_t ecma_op_typedarray_from_helper (ecma_value_t this_val, /**< this_arg for the above from function */ ecma_value_t current_value, /**< given value to set */ - uint32_t index, /**< currrent index */ + uint32_t index, /**< current index */ ecma_object_t *func_object_p, /**< map function object */ uint8_t *buffer_p, /**< target buffer */ ecma_typedarray_setter_fn_t setter_cb) /**< setter callback function */ @@ -1599,7 +1599,7 @@ ecma_typedarray_get_offset (ecma_object_t *typedarray_p) /**< the pointer to the /** * Utility function: return the pointer of the data buffer referenced by the typedarray info * - * @return pointer to the data buffer if successfull, + * @return pointer to the data buffer if successful, * NULL otherwise */ uint8_t * @@ -2019,7 +2019,7 @@ ecma_typedarray_create (ecma_object_t *constructor_p, /**< constructor function ecma_value_t ecma_typedarray_species_create (ecma_value_t this_arg, /**< this argument */ ecma_value_t *arguments_list_p, /**< the arg list passed to typedarray construct */ - uint32_t arguments_list_len) /**< length of the the arg list */ + uint32_t arguments_list_len) /**< length of the arg list */ { ecma_object_t *typedarray_p = ecma_get_object_from_value (this_arg); ecma_typedarray_info_t info = ecma_typedarray_get_info (typedarray_p); diff --git a/src/loaders/lottie/jerryscript/jerry-core/include/jerry-config.h b/src/loaders/lottie/jerryscript/jerry-core/include/jerry-config.h index 42086452..c944efdd 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/include/jerry-config.h +++ b/src/loaders/lottie/jerryscript/jerry-core/include/jerry-config.h @@ -229,7 +229,7 @@ * Enable/Disable the JavaScript parser. * * Allowed values: - * 0: Disable the JavaScript parser and all related functionallity. + * 0: Disable the JavaScript parser and all related functionality. * 1: Enable the JavaScript parser. * * Default value: 1 @@ -257,7 +257,7 @@ * Enable/Disable ECMA property hashmap. * * Allowed values: - * 0: Disable property hasmap. + * 0: Disable property hashmap. * 1: Enable property hashmap. * * Default value: 1 @@ -392,7 +392,7 @@ * For the moment it is mainly meant for the following targets: * - ESP8266 * - * Example configuration for moving (some) constatns into a given section: + * Example configuration for moving (some) constants into a given section: * # define JERRY_ATTR_CONST_DATA __attribute__((section(".rodata.const"))) */ #ifndef JERRY_ATTR_CONST_DATA @@ -402,7 +402,7 @@ /** * The JERRY_ATTR_GLOBAL_HEAP allows adding extra attributes for the Jerry global heap. * - * Example on how to move the global heap into it's own section: + * Example on how to move the global heap into its own section: * #define JERRY_ATTR_GLOBAL_HEAP __attribute__((section(".text.globalheap"))) */ #ifndef JERRY_ATTR_GLOBAL_HEAP diff --git a/src/loaders/lottie/jerryscript/jerry-core/include/jerryscript-port.h b/src/loaders/lottie/jerryscript/jerry-core/include/jerryscript-port.h index 1b882488..9567480a 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/include/jerryscript-port.h +++ b/src/loaders/lottie/jerryscript/jerry-core/include/jerryscript-port.h @@ -169,7 +169,7 @@ void jerry_port_print_buffer (const jerry_char_t *buffer_p, jerry_size_t buffer_ * The implementation should allocate storage necessary for the string. The result string should include the ending line * terminator character(s) and should be zero terminated. * - * An implementation may return NULL to signal that the end of input is reached, or an error occured. + * An implementation may return NULL to signal that the end of input is reached, or an error occurred. * * When a non-NULL value is returned, the caller will pass the returned value to `jerry_port_line_free` when the line is * no longer needed. This can be used to finalize dynamically allocated buffers if necessary. diff --git a/src/loaders/lottie/jerryscript/jerry-core/include/jerryscript-types.h b/src/loaders/lottie/jerryscript/jerry-core/include/jerryscript-types.h index 4f0b98f0..eb9cd12a 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/include/jerryscript-types.h +++ b/src/loaders/lottie/jerryscript/jerry-core/include/jerryscript-types.h @@ -379,7 +379,7 @@ typedef struct /** * Callback responsible for finalizing a context item, or NULL. This is called as part of jerry_cleanup (), - * right *after* the VM has been cleaned up and destroyed and jerry_... APIs cannot be called any more. At this point, + * right *after* the VM has been cleaned up and destroyed and jerry_... APIs cannot be called anymore. At this point, * all values in the VM have been cleaned up. This is a good place to clean up native state that can only be cleaned * up at the very end when there are no more VM values around that may need to access that state. * diff --git a/src/loaders/lottie/jerryscript/jerry-core/jmem/jmem-heap.cpp b/src/loaders/lottie/jerryscript/jerry-core/jmem/jmem-heap.cpp index 1d3b1f4f..a5a37134 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/jmem/jmem-heap.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/jmem/jmem-heap.cpp @@ -357,7 +357,7 @@ jmem_heap_alloc_block_null_on_error (const size_t size) /**< required memory siz #if !JERRY_SYSTEM_ALLOCATOR /** - * Finds the block in the free block list which preceeds the argument block + * Finds the block in the free block list which precedes the argument block * * @return pointer to the preceeding block */ @@ -587,7 +587,7 @@ jmem_heap_realloc_block (void *ptr, /**< memory region to reallocate */ } /* * Check if block can be extended at the front. - * This is less optimal because we need to copy the data, but still better than allocting a new block. + * This is less optimal because we need to copy the data, but still better than allocating a new block. */ else if (jmem_heap_get_region_end (prev_p) == block_p) { @@ -609,7 +609,7 @@ jmem_heap_realloc_block (void *ptr, /**< memory region to reallocate */ ret_block_p = (uint8_t *) block_p - required_size; - /* Mark the the new block as undefined so that we are able to write to it. */ + /* Mark the new block as undefined so that we are able to write to it. */ JMEM_VALGRIND_UNDEFINED_SPACE (ret_block_p, old_size); /* The blocks are likely to overlap, so mark the old block as defined memory again. */ JMEM_VALGRIND_DEFINED_SPACE (block_p, old_size); diff --git a/src/loaders/lottie/jerryscript/jerry-core/lit/lit-char-helpers.cpp b/src/loaders/lottie/jerryscript/jerry-core/lit/lit-char-helpers.cpp index fc15f987..251fa681 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/lit/lit-char-helpers.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/lit/lit-char-helpers.cpp @@ -74,10 +74,10 @@ LIT_SEARCH_CHAR_IN_ARRAY_FN (lit_search_codepoint_in_array, lit_code_point_t, ui /** * Binary search algorithm that searches a character in the given intervals. - * Intervals specifed by two arrays. The first one contains the starting points + * Intervals specified by two arrays. The first one contains the starting points * of the intervals, the second one contains the length of them. * - * @return true - if the the character is included (inclusively) in one of the intervals in the given array + * @return true - if the character is included (inclusively) in one of the intervals in the given array * false - otherwise */ #define LIT_SEARCH_CHAR_IN_INTERVAL_ARRAY_FN(function_name, char_type, array_type, interval_type) \ @@ -559,7 +559,7 @@ lit_char_is_word_char (lit_code_point_t c) /**< code point */ /** * Check if the specified character is in one of those tables which contain bidirectional conversions. * - * @return codepoint of the converted character if it is found the the tables + * @return codepoint of the converted character if it is found the tables * LIT_INVALID_CP - otherwise. */ static lit_code_point_t diff --git a/src/loaders/lottie/jerryscript/jerry-core/lit/lit-magic-strings.inc.h b/src/loaders/lottie/jerryscript/jerry-core/lit/lit-magic-strings.inc.h index 2d1519c7..593a834e 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/lit/lit-magic-strings.inc.h +++ b/src/loaders/lottie/jerryscript/jerry-core/lit/lit-magic-strings.inc.h @@ -19,7 +19,7 @@ LIT_MAGIC_STRING_DEF (LIT_MAGIC_STRING__EMPTY, "") LIT_MAGIC_STRING_DEF (LIT_MAGIC_STRING_SPACE_CHAR, " ") #if JERRY_MODULE_SYSTEM -LIT_MAGIC_STRING_DEF (LIT_MAGIC_STRING_ASTERIX_CHAR, "*") +LIT_MAGIC_STRING_DEF (LIT_MAGIC_STRING_ASTERISK_CHAR, "*") #endif /* JERRY_MODULE_SYSTEM */ #if JERRY_BUILTIN_ARRAY || JERRY_BUILTIN_TYPEDARRAY LIT_MAGIC_STRING_DEF (LIT_MAGIC_STRING_COMMA_CHAR, ",") diff --git a/src/loaders/lottie/jerryscript/jerry-core/lit/lit-strings.cpp b/src/loaders/lottie/jerryscript/jerry-core/lit/lit-strings.cpp index 948b4ff1..22ab4dd5 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/lit/lit-strings.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/lit/lit-strings.cpp @@ -639,14 +639,14 @@ lit_utf8_string_calc_hash (const lit_utf8_byte_t *utf8_buf_p, /**< characters bu * Return code unit at the specified position in string * * NOTE: - * code_unit_offset should be less then string's length + * code_unit_offset should be less than string's length * * @return code unit value */ ecma_char_t lit_utf8_string_code_unit_at (const lit_utf8_byte_t *utf8_buf_p, /**< utf-8 string */ lit_utf8_size_t utf8_buf_size, /**< string size in bytes */ - lit_utf8_size_t code_unit_offset) /**< ofset of a code_unit */ + lit_utf8_size_t code_unit_offset) /**< offset of a code_unit */ { lit_utf8_byte_t *current_p = (lit_utf8_byte_t *) utf8_buf_p; ecma_char_t code_unit; diff --git a/src/loaders/lottie/jerryscript/jerry-core/lit/lit-strings.h b/src/loaders/lottie/jerryscript/jerry-core/lit/lit-strings.h index d00480e6..8e63283c 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/lit/lit-strings.h +++ b/src/loaders/lottie/jerryscript/jerry-core/lit/lit-strings.h @@ -73,7 +73,7 @@ #define LIT_UTF8_4_BYTE_CODE_POINT_MAX (LIT_UNICODE_CODE_POINT_MAX) /** - * Differnce between byte count needed to represent code point greater than 0xFFFF + * Difference between byte count needed to represent code point greater than 0xFFFF * in common UTF-8 (4 bytes required) and CESU-8 (6 bytes required) */ #define LIT_UTF8_CESU8_SURROGATE_SIZE_DIF (2 * LIT_UTF8_MAX_BYTES_IN_CODE_UNIT - LIT_UTF8_MAX_BYTES_IN_CODE_POINT) diff --git a/src/loaders/lottie/jerryscript/jerry-core/parser/js/byte-code.h b/src/loaders/lottie/jerryscript/jerry-core/parser/js/byte-code.h index 0c627ec7..2a5b15ad 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/parser/js/byte-code.h +++ b/src/loaders/lottie/jerryscript/jerry-core/parser/js/byte-code.h @@ -774,7 +774,7 @@ #define CBC_SMALL_LITERAL_ENCODING_DELTA 0xfe01 /** - * Literal indicies belong to one of the following groups: + * Literal indices belong to one of the following groups: * * 0 <= index < argument_end : arguments * argument_end <= index < register_end : registers diff --git a/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-lexer.cpp b/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-lexer.cpp index c6c2db64..c2b53332 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-lexer.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-lexer.cpp @@ -1829,7 +1829,7 @@ lexer_consume_next_character (parser_context_t *context_p) /**< context */ * Checks whether the next character can be the start of a post primary expression * * Note: - * the result is not precise, but this inprecise result + * the result is not precise, but this imprecise result * has no side effects for negating number literals * * @return true if the next character can be the start of a post primary expression diff --git a/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-lexer.h b/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-lexer.h index 97e25d3d..8d8ec59c 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-lexer.h +++ b/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-lexer.h @@ -196,10 +196,10 @@ typedef enum LEXER_PROPERTY_GETTER, /**< property getter function */ LEXER_PROPERTY_SETTER, /**< property setter function */ LEXER_COMMA_SEP_LIST, /**< comma separated bracketed expression list */ - LEXER_ASSIGN_GROUP_EXPR, /**< indetifier for the assignment is located in a group expression */ + LEXER_ASSIGN_GROUP_EXPR, /**< identifier for the assignment is located in a group expression */ LEXER_ASSIGN_CONST, /**< a const binding is reassigned */ LEXER_INVALID_PATTERN, /**< special value for invalid destructuring pattern */ - LEXER_PRIVATE_PRIMARY_EXPR, /**< private field in primary expession position */ + LEXER_PRIVATE_PRIMARY_EXPR, /**< private field in primary expression position */ LEXER_ASSIGN_REFERENCE, /**< special value for reference assignment */ /* Keywords which are not keyword tokens. */ diff --git a/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-parser-expr.cpp b/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-parser-expr.cpp index f30568a4..465e02d3 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-parser-expr.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-parser-expr.cpp @@ -383,7 +383,7 @@ typedef enum { PARSER_CLASS_LITERAL_NO_OPTS = 0, /**< no options are provided */ PARSER_CLASS_LITERAL_CTOR_PRESENT = (1 << 0), /**< class constructor is present */ - PARSER_CLASS_LITERAL_HERTIAGE_PRESENT = (1 << 1), /**< class heritage is present */ + PARSER_CLASS_LITERAL_HERITAGE_PRESENT = (1 << 1), /**< class heritage is present */ } parser_class_literal_opts_t; /** @@ -452,7 +452,7 @@ parser_parse_class_body (parser_context_t *context_p, /**< context */ ctor_literal_p = lexer_construct_unused_literal (context_p); parser_emit_cbc_literal (context_p, CBC_PUSH_LITERAL, (uint16_t) (context_p->literal_count++)); } - else if (opts & PARSER_CLASS_LITERAL_HERTIAGE_PRESENT) + else if (opts & PARSER_CLASS_LITERAL_HERITAGE_PRESENT) { parser_emit_cbc_ext (context_p, CBC_EXT_PUSH_IMPLICIT_CONSTRUCTOR_HERITAGE); } @@ -547,7 +547,7 @@ parser_parse_class_body (parser_context_t *context_p, /**< context */ uint32_t constructor_status_flags = (PARSER_FUNCTION_CLOSURE | PARSER_ALLOW_SUPER | PARSER_CLASS_CONSTRUCTOR | PARSER_LEXICAL_ENV_NEEDED); - if (opts & PARSER_CLASS_LITERAL_HERTIAGE_PRESENT) + if (opts & PARSER_CLASS_LITERAL_HERITAGE_PRESENT) { constructor_status_flags |= PARSER_ALLOW_SUPER_CALL; } @@ -1091,7 +1091,7 @@ parser_parse_class (parser_context_t *context_p, /**< context */ { lexer_next_token (context_p); parser_parse_expression (context_p, PARSE_EXPR | PARSE_EXPR_LEFT_HAND_SIDE); - opts = (parser_class_literal_opts_t) ((int) opts | (int) PARSER_CLASS_LITERAL_HERTIAGE_PRESENT); + opts = (parser_class_literal_opts_t) ((int) opts | (int) PARSER_CLASS_LITERAL_HERITAGE_PRESENT); } else { @@ -1818,7 +1818,7 @@ parser_parse_tagged_template_literal (parser_context_t *context_p) /**< context } /* parser_parse_tagged_template_literal */ /** - * Checks wheteher the current expression can be an assignment expression. + * Checks whether the current expression can be an assignment expression. * * @return true if the current expression can be an assignment expression, false otherwise */ @@ -3097,11 +3097,11 @@ parser_process_binary_assignment_token (parser_context_t *context_p, /**< contex } } - bool group_expr_assingment = false; + bool group_expr_assignment = false; if (JERRY_UNLIKELY (context_p->stack_top_uint8 == LEXER_ASSIGN_GROUP_EXPR)) { - group_expr_assingment = true; + group_expr_assignment = true; parser_stack_pop_uint8 (context_p); } @@ -3122,7 +3122,7 @@ parser_process_binary_assignment_token (parser_context_t *context_p, /**< contex return; } - if (!group_expr_assingment) + if (!group_expr_assignment) { uint16_t function_literal_index = parser_check_anonymous_function_declaration (context_p); @@ -3253,7 +3253,7 @@ parser_process_binary_lvalue_token (parser_context_t *context_p, /**< context */ */ static void parser_process_binary_opcodes (parser_context_t *context_p, /**< context */ - uint8_t min_prec_treshold) /**< minimal precedence of tokens */ + uint8_t min_prec_threshhold) /**< minimal precedence of tokens */ { while (true) { @@ -3262,11 +3262,11 @@ parser_process_binary_opcodes (parser_context_t *context_p, /**< context */ /* For left-to-right operators (all binary operators except assignment * and logical operators), the byte code is flushed if the precedence * of the next operator is less or equal than the current operator. For - * assignment and logical operators, we add 1 to the min precendence to + * assignment and logical operators, we add 1 to the min precedence to * force right-to-left evaluation order. */ if (!LEXER_IS_BINARY_OP_TOKEN (token) - || parser_binary_precedence_table[token - LEXER_FIRST_BINARY_OP] < min_prec_treshold) + || parser_binary_precedence_table[token - LEXER_FIRST_BINARY_OP] < min_prec_threshhold) { return; } @@ -4015,7 +4015,7 @@ parser_process_group_expression (parser_context_t *context_p, /**< context */ lexer_next_token (context_p); /* Lookahead for anonymous function declaration after '=' token when the assignment base is LHS expression - with a single indentifier in it. e.g.: (a) = function () {} */ + with a single identifier in it. e.g.: (a) = function () {} */ if (JERRY_UNLIKELY (context_p->token.type == LEXER_ASSIGN && PARSER_IS_PUSH_LITERALS_WITH_THIS (context_p->last_cbc_opcode) && context_p->last_cbc.literal_type == LEXER_IDENT_LITERAL @@ -4095,7 +4095,7 @@ process_unary_expression: if (JERRY_LIKELY (grouping_level != PARSE_EXPR_LEFT_HAND_SIDE)) { - uint8_t min_prec_treshold = 0; + uint8_t min_prec_threshhold = 0; if (LEXER_IS_BINARY_OP_TOKEN (context_p->token.type)) { @@ -4104,19 +4104,19 @@ process_unary_expression: parser_check_invalid_logical_op (context_p, LEXER_LOGICAL_OR, LEXER_LOGICAL_AND); } - min_prec_treshold = parser_binary_precedence_table[context_p->token.type - LEXER_FIRST_BINARY_OP]; + min_prec_threshhold = parser_binary_precedence_table[context_p->token.type - LEXER_FIRST_BINARY_OP]; /* Check for BINARY_LVALUE tokens + LEXER_LOGICAL_OR + LEXER_LOGICAL_AND + LEXER_EXPONENTIATION */ - if ((min_prec_treshold == PARSER_RIGHT_TO_LEFT_ORDER_EXPONENTIATION) - || (min_prec_treshold <= PARSER_RIGHT_TO_LEFT_ORDER_MAX_PRECEDENCE - && min_prec_treshold != PARSER_RIGHT_TO_LEFT_ORDER_TERNARY_PRECEDENCE)) + if ((min_prec_threshhold == PARSER_RIGHT_TO_LEFT_ORDER_EXPONENTIATION) + || (min_prec_threshhold <= PARSER_RIGHT_TO_LEFT_ORDER_MAX_PRECEDENCE + && min_prec_threshhold != PARSER_RIGHT_TO_LEFT_ORDER_TERNARY_PRECEDENCE)) { /* Right-to-left evaluation order. */ - min_prec_treshold++; + min_prec_threshhold++; } } - parser_process_binary_opcodes (context_p, min_prec_treshold); + parser_process_binary_opcodes (context_p, min_prec_threshhold); } if (context_p->token.type == LEXER_RIGHT_PAREN && (context_p->stack_top_uint8 == LEXER_LEFT_PAREN || context_p->stack_top_uint8 == LEXER_COMMA_SEP_LIST)) diff --git a/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-parser-internal.h b/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-parser-internal.h index 3e02dbef..14592ca0 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-parser-internal.h +++ b/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-parser-internal.h @@ -491,7 +491,7 @@ typedef struct parser_saved_context_t uint16_t scope_stack_top; /**< preserved top of scope stack */ uint16_t scope_stack_reg_top; /**< preserved top register of scope stack */ uint16_t scope_stack_global_end; /**< end of global declarations of a function */ - ecma_value_t tagged_template_literal_cp; /**< compessed pointer to the tagged template literal collection */ + ecma_value_t tagged_template_literal_cp; /**< compressed pointer to the tagged template literal collection */ #ifndef JERRY_NDEBUG uint16_t context_stack_depth; /**< current context stack depth */ #endif /* !JERRY_NDEBUG */ @@ -515,11 +515,11 @@ typedef struct /** Union for rarely used members. */ union { - void *allocated_buffer_p; /**< dinamically allocated buffer + void *allocated_buffer_p; /**< dynamically allocated buffer * which needs to be freed on error */ scanner_context_t *scanner_context_p; /**< scanner context for the pre-scanner */ } u; - uint32_t allocated_buffer_size; /**< size of the dinamically allocated buffer */ + uint32_t allocated_buffer_size; /**< size of the dynamically allocated buffer */ /* Parser members. */ uint32_t status_flags; /**< status flags */ @@ -578,7 +578,7 @@ typedef struct uint16_t scope_stack_top; /**< current top of scope stack */ uint16_t scope_stack_reg_top; /**< current top register of scope stack */ uint16_t scope_stack_global_end; /**< end of global declarations of a function */ - ecma_value_t tagged_template_literal_cp; /**< compessed pointer to the tagged template literal collection */ + ecma_value_t tagged_template_literal_cp; /**< compressed pointer to the tagged template literal collection */ parser_private_context_t *private_context_p; /**< private context */ uint8_t stack_top_uint8; /**< top byte stored on the stack */ diff --git a/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-parser-line-info-create.cpp b/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-parser-line-info-create.cpp index 475d6b4f..8bfbe879 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-parser-line-info-create.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-parser-line-info-create.cpp @@ -418,7 +418,7 @@ parser_line_info_generate (parser_context_t *context_p) /**< context */ } /* Skip those line/column pairs which byte code was discarded during post processing - * or does not change line/column (this is possible when multiple skips occures). */ + * or does not change line/column (this is possible when multiple skips occur). */ if (iterator_byte_code_offset == iterator_last_byte_code_offset || (iterator_line == iterator_prev_line && iterator_column == iterator_prev_column)) { diff --git a/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-parser-statm.cpp b/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-parser-statm.cpp index 51b51c11..ea8ef89f 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-parser-statm.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-parser-statm.cpp @@ -68,7 +68,7 @@ typedef enum typedef enum { PARSER_STATM_NO_OPTS = 0, /**< no options */ - PARSER_STATM_SINGLE_STATM = (1 << 0), /**< statment can form single statement context */ + PARSER_STATM_SINGLE_STATM = (1 << 0), /**< statement can form single statement context */ PARSER_STATM_HAS_BLOCK = (1 << 1), /**< statement always has a code block */ PARSER_STATM_BREAK_TARGET = (1 << 2), /**< break target statement */ PARSER_STATM_CONTINUE_TARGET = (1 << 3), /**< continue target statement */ @@ -1450,7 +1450,7 @@ parser_parse_for_statement_start (parser_context_t *context_p) /**< context */ scanner_release_next (context_p, sizeof (scanner_for_info_t)); } - /* The prescanner couldn't find the second semicolon or the closing paranthesis. */ + /* The prescanner couldn't find the second semicolon or the closing parentheses. */ lexer_next_token (context_p); parser_parse_expression (context_p, PARSE_EXPR); @@ -1653,7 +1653,7 @@ parser_parse_switch_statement_start (parser_context_t *context_p) /**< context * scanner_get_location (&start_location, context_p); /* The reason of using an iterator is error management. If an error - * occures, parser_free_jumps() free all data. However, the branches + * occur, parser_free_jumps() free all data. However, the branches * created by parser_emit_cbc_forward_branch_item() would not be freed. * To free these branches, the current switch data is always stored * on the stack. If any change happens, this data is updated. Updates @@ -2300,7 +2300,7 @@ parser_parse_import_statement (parser_context_t *context_p) /**< parser context parser_raise_error (context_p, PARSER_ERR_DUPLICATED_IMPORT_BINDING); } - ecma_string_t *import_name_p = ecma_get_magic_string (LIT_MAGIC_STRING_ASTERIX_CHAR); + ecma_string_t *import_name_p = ecma_get_magic_string (LIT_MAGIC_STRING_ASTERISK_CHAR); parser_module_add_names_to_node (context_p, import_name_p, local_name_p); ecma_deref_ecma_string (local_name_p); @@ -2439,7 +2439,7 @@ parser_parse_export_statement (parser_context_t *context_p) /**< context */ parser_raise_error (context_p, PARSER_ERR_DUPLICATED_EXPORT_IDENTIFIER); } - ecma_string_t *local_name_p = ecma_get_magic_string (LIT_MAGIC_STRING_ASTERIX_CHAR); + ecma_string_t *local_name_p = ecma_get_magic_string (LIT_MAGIC_STRING_ASTERISK_CHAR); parser_module_add_names_to_node (context_p, export_name_p, local_name_p); ecma_deref_ecma_string (export_name_p); diff --git a/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-parser.cpp b/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-parser.cpp index f7559bb3..9f7c3f15 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-parser.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-parser.cpp @@ -46,12 +46,12 @@ JERRY_STATIC_ASSERT ((PARSER_RESTORE_STATUS_FLAGS (ECMA_PARSE_FUNCTION_CONTEXT) ecma_parse_function_context_must_not_be_transformed); /** - * Compute real literal indicies. + * Compute real literal indices. * * @return length of the prefix opcodes */ static void -parser_compute_indicies (parser_context_t *context_p, /**< context */ +parser_compute_indices (parser_context_t *context_p, /**< context */ uint16_t *ident_end, /**< end of the identifier group */ uint16_t *const_literal_end) /**< end of the const literal group */ { @@ -194,7 +194,7 @@ parser_compute_indicies (parser_context_t *context_p, /**< context */ *ident_end = ident_index; *const_literal_end = const_literal_index; -} /* parser_compute_indicies */ +} /* parser_compute_indices */ /** * Initialize literal pool. @@ -608,7 +608,7 @@ parser_post_processing (parser_context_t *context_p) /**< context */ JERRY_ASSERT (context_p->literal_count <= PARSER_MAXIMUM_NUMBER_OF_LITERALS); - parser_compute_indicies (context_p, &ident_end, &const_literal_end); + parser_compute_indices (context_p, &ident_end, &const_literal_end); if (context_p->literal_count <= CBC_MAXIMUM_SMALL_VALUE) { @@ -778,7 +778,7 @@ parser_post_processing (parser_context_t *context_p) /**< context */ if (last_opcode == (cbc_opcode_t) (CBC_JUMP_FORWARD + PARSER_MAX_BRANCH_LENGTH - 1) && prefix_zero && page_p->bytes[offset] == PARSER_MAX_BRANCH_LENGTH + 1) { - /* Uncoditional jumps which jump right after the instruction + /* Unconditional jumps which jump right after the instruction * are effectively NOPs. These jumps are removed from the * stream. The 1 byte long CBC_JUMP_FORWARD form marks these * instructions, since this form is constructed during post @@ -2963,7 +2963,7 @@ parser_parse_class_fields (parser_context_t *context_p) /**< context */ * Check whether the last emitted cbc opcode was an anonymous function declaration * * @return PARSER_NOT_FUNCTION_LITERAL - if the last opcode is not a function literal - * PARSER_NAMED_FUNCTION - if the last opcode is not a named function declataion + * PARSER_NAMED_FUNCTION - if the last opcode is not a named function declaration * PARSER_ANONYMOUS_CLASS - if the last opcode is an anonymous class declaration * literal index of the anonymous function literal - otherwise */ diff --git a/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-scanner-internal.h b/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-scanner-internal.h index 128f401f..98b1b28e 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-scanner-internal.h +++ b/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-scanner-internal.h @@ -182,7 +182,7 @@ typedef enum */ /** - * Literal is a local declration (let, const, catch variable, etc.) + * Literal is a local declaration (let, const, catch variable, etc.) */ #define SCANNER_LITERAL_IS_LOCAL (SCANNER_LITERAL_IS_LET | SCANNER_LITERAL_IS_CONST) diff --git a/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-scanner-util.cpp b/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-scanner-util.cpp index a9c9655a..5713fea2 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-scanner-util.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/parser/js/js-scanner-util.cpp @@ -2123,7 +2123,7 @@ scanner_is_context_needed (parser_context_t *context_p, /**< context */ { /* The return value is true, if the variable is stored in the lexical environment * or all registers have already been used for function arguments. This can be - * inprecise in the latter case, but this is a very rare corner case. A more + * imprecise in the latter case, but this is a very rare corner case. A more * sophisticated check would require to decode the literal. */ if ((data & SCANNER_STREAM_NO_REG) || scope_stack_reg_top >= PARSER_MAXIMUM_NUMBER_OF_REGISTERS) { diff --git a/src/loaders/lottie/jerryscript/jerry-core/parser/js/parser-error-messages.inc.h b/src/loaders/lottie/jerryscript/jerry-core/parser/js/parser-error-messages.inc.h index cfb96494..233a2494 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/parser/js/parser-error-messages.inc.h +++ b/src/loaders/lottie/jerryscript/jerry-core/parser/js/parser-error-messages.inc.h @@ -130,7 +130,7 @@ PARSER_ERROR_DEF (PARSER_ERR_DUPLICATED_IMPORT_BINDING, "Duplicated imported bin #endif /* JERRY_MODULE_SYSTEM */ #if JERRY_PARSER PARSER_ERROR_DEF (PARSER_ERR_WHILE_EXPECTED, "While expected for do-while loop") -PARSER_ERROR_DEF (PARSER_ERR_DELETE_PRIVATE_FIELD, "Private fields can not be deleted") +PARSER_ERROR_DEF (PARSER_ERR_DELETE_PRIVATE_FIELD, "Private fields cannot be deleted") PARSER_ERROR_DEF (PARSER_ERR_INVALID_LHS_FOR_LOOP, "Invalid left-hand-side in for-loop") PARSER_ERROR_DEF (PARSER_ERR_LEFT_HAND_SIDE_EXP_EXPECTED, "Left-hand-side expression expected") PARSER_ERROR_DEF (PARSER_ERR_LITERAL_LIMIT_REACHED, "Maximum number of literals reached") diff --git a/src/loaders/lottie/jerryscript/jerry-core/parser/regexp/re-bytecode.cpp b/src/loaders/lottie/jerryscript/jerry-core/parser/regexp/re-bytecode.cpp index e9b6141e..8cb0fe36 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/parser/regexp/re-bytecode.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/parser/regexp/re-bytecode.cpp @@ -101,7 +101,7 @@ re_insert_byte (re_compiler_ctx_t *re_ctx_p, /**< RegExp bytecode context */ } /* re_insert_byte */ /** - * Get a single byte and icnrease bytecode position. + * Get a single byte and increase bytecode position. */ uint8_t re_get_byte (const uint8_t **bc_p) /**< pointer to bytecode start */ diff --git a/src/loaders/lottie/jerryscript/jerry-core/parser/regexp/re-bytecode.h b/src/loaders/lottie/jerryscript/jerry-core/parser/regexp/re-bytecode.h index 9fd8456d..783d92bc 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/parser/regexp/re-bytecode.h +++ b/src/loaders/lottie/jerryscript/jerry-core/parser/regexp/re-bytecode.h @@ -43,7 +43,7 @@ #define RE_VALUE_1BYTE_MAX 0xFE /** - * Marker that signals that the actual value is enocded in the following 4 bytes in the bytecode. + * Marker that signals that the actual value is encoded in the following 4 bytes in the bytecode. */ #define RE_VALUE_4BYTE_MARKER 0xFF diff --git a/src/loaders/lottie/jerryscript/jerry-core/vm/opcodes.cpp b/src/loaders/lottie/jerryscript/jerry-core/vm/opcodes.cpp index bd98f6a1..e873c6b7 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/vm/opcodes.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/vm/opcodes.cpp @@ -876,7 +876,7 @@ opfunc_async_create_and_await (vm_frame_ctx_t *frame_ctx_p, /**< frame context * } /* opfunc_async_create_and_await */ /** - * PrivateMethodOrAccessorAdd abstact operation. + * PrivateMethodOrAccessorAdd abstract operation. * * See also: ECMAScript v12, 7.3.29. * @@ -1180,7 +1180,7 @@ opfunc_create_implicit_class_constructor (uint8_t opcode, /**< current cbc opcod } /* opfunc_create_implicit_class_constructor */ /** - * Set the [[HomeObject]] attribute of the given functon object + * Set the [[HomeObject]] attribute of the given function object * * @return void */ @@ -1217,7 +1217,7 @@ opfunc_make_private_key (ecma_value_t descriptor) /**< descriptor */ * Find a private property in the private elements internal property given the key * * @return pointer to the private property - if it is found, - * NULL - othervise + * NULL - otherwise */ static ecma_property_t * opfunc_find_private_key (ecma_object_t *class_object_p, /**< class environment */ @@ -1270,7 +1270,7 @@ opfunc_find_private_key (ecma_object_t *class_object_p, /**< class environment * } /* opfunc_find_private_key */ /** - * PrivateElementFind abstact operation + * PrivateElementFind abstract operation * * See also: ECMAScript v12, 7.3.27 * @@ -1350,7 +1350,7 @@ opfunc_private_in (ecma_value_t base, /**< base */ } /* opfunc_private_in */ /** - * PrivateFieldAdd abstact operation + * PrivateFieldAdd abstract operation * * See also: ECMAScript v12, 7.3.28 * @@ -1382,7 +1382,7 @@ opfunc_private_field_add (ecma_value_t base, /**< base object */ } /* opfunc_private_field_add */ /** - * PrivateSet abstact operation + * PrivateSet abstract operation * * See also: ECMAScript v12, 7.3.31 * @@ -1449,7 +1449,7 @@ opfunc_private_set (ecma_value_t base, /**< this object */ } /* opfunc_private_set */ /** - * PrivateGet abstact operation + * PrivateGet abstract operation * * See also: ECMAScript v12, 7.3.30 * diff --git a/src/loaders/lottie/jerryscript/jerry-core/vm/vm.cpp b/src/loaders/lottie/jerryscript/jerry-core/vm/vm.cpp index 1fbdd36c..6d33e996 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/vm/vm.cpp +++ b/src/loaders/lottie/jerryscript/jerry-core/vm/vm.cpp @@ -2976,7 +2976,7 @@ vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */ if (JERRY_LIKELY (int_increase != 0)) { - /* Postfix operators require the unmodifed number value. */ + /* Postfix operators require the unmodified number value. */ if (opcode_flags & VM_OC_POST_INCR_DECR_OPERATOR_FLAG) { POST_INCREASE_DECREASE_PUT_RESULT (result); @@ -3015,7 +3015,7 @@ vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */ operation_type = ECMA_BIGINT_UNARY_DECREASE; } - /* Postfix operators require the unmodifed number value. */ + /* Postfix operators require the unmodified number value. */ if (opcode_flags & VM_OC_POST_INCR_DECR_OPERATOR_FLAG) { POST_INCREASE_DECREASE_PUT_RESULT (result); @@ -3048,7 +3048,7 @@ vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */ increase = ECMA_NUMBER_MINUS_ONE; } - /* Postfix operators require the unmodifed number value. */ + /* Postfix operators require the unmodified number value. */ if (opcode_flags & VM_OC_POST_INCR_DECR_OPERATOR_FLAG) { POST_INCREASE_DECREASE_PUT_RESULT (result); diff --git a/src/loaders/lottie/jerryscript/jerry-core/vm/vm.h b/src/loaders/lottie/jerryscript/jerry-core/vm/vm.h index 5384b071..cccecbc8 100644 --- a/src/loaders/lottie/jerryscript/jerry-core/vm/vm.h +++ b/src/loaders/lottie/jerryscript/jerry-core/vm/vm.h @@ -238,7 +238,7 @@ typedef enum VM_OC_CHECK_VAR, /**< check redeclared vars in the global scope */ VM_OC_CHECK_LET, /**< check redeclared lets in the global scope */ VM_OC_ASSIGN_LET_CONST, /**< assign values to let/const declarations */ - VM_OC_INIT_BINDING, /**< create and intialize a binding */ + VM_OC_INIT_BINDING, /**< create and initialize a binding */ VM_OC_THROW_CONST_ERROR, /**< throw invalid assignment to const variable error */ VM_OC_COPY_TO_GLOBAL, /**< copy value to global lex env */ VM_OC_COPY_FROM_ARG, /**< copy value from arg lex env */ @@ -264,7 +264,7 @@ typedef enum VM_OC_RUN_STATIC_FIELD_INIT, /**< run the static class field initializer function */ VM_OC_SET_NEXT_COMPUTED_FIELD, /**< set the next computed field of a class */ VM_OC_PUSH_SUPER_CONSTRUCTOR, /**< getSuperConstructor operation */ - VM_OC_RESOLVE_LEXICAL_THIS, /**< resolve this_binding from from the lexical environment */ + VM_OC_RESOLVE_LEXICAL_THIS, /**< resolve this_binding from the lexical environment */ VM_OC_SUPER_REFERENCE, /**< push super reference */ VM_OC_SET_HOME_OBJECT, /**< set the [[HomeObject]] environment in an object literal */ VM_OC_OBJECT_LITERAL_HOME_ENV, /**< create/destroy [[HomeObject]] environment of an object literal */ @@ -272,8 +272,8 @@ typedef enum VM_OC_PUSH_SPREAD_ELEMENT, /**< push spread element */ VM_OC_PUSH_REST_OBJECT, /**< push rest object */ - VM_OC_ITERATOR_CONTEXT_CREATE, /**< create iterator conext */ - VM_OC_ITERATOR_CONTEXT_END, /**< finalize iterator cotnext */ + VM_OC_ITERATOR_CONTEXT_CREATE, /**< create iterator context */ + VM_OC_ITERATOR_CONTEXT_END, /**< finalize iterator context */ VM_OC_ITERATOR_STEP, /**< IteratorStep abstract operation */ VM_OC_OBJ_INIT_CONTEXT_CREATE, /**< create object initializer context */ VM_OC_OBJ_INIT_CONTEXT_END, /**< finalize object initializer context */ @@ -294,7 +294,7 @@ typedef enum VM_OC_STRING_CONCAT, /**< string concatenation */ VM_OC_GET_TEMPLATE_OBJECT, /**< GetTemplateObject operation */ VM_OC_PUSH_NEW_TARGET, /**< push new.target onto the stack */ - VM_OC_REQUIRE_OBJECT_COERCIBLE, /**< RequireObjectCoercible opretaion */ + VM_OC_REQUIRE_OBJECT_COERCIBLE, /**< RequireObjectCoercible operation */ VM_OC_ASSIGN_SUPER, /**< assign super reference */ VM_OC_SET__PROTO__, /**< set prototype when __proto__: form is used */ VM_OC_PUSH_STATIC_FIELD_FUNC, /**< push static field initializer function */ diff --git a/src/loaders/lottie/rapidjson/document.h b/src/loaders/lottie/rapidjson/document.h index 2cd9a70a..1edb547c 100644 --- a/src/loaders/lottie/rapidjson/document.h +++ b/src/loaders/lottie/rapidjson/document.h @@ -856,7 +856,7 @@ public: /*! \param a An array obtained by \c GetArray(). \note \c Array is always pass-by-value. - \note the source array is moved into this value and the sourec array becomes empty. + \note the source array is moved into this value and the source array becomes empty. */ GenericValue(Array a) RAPIDJSON_NOEXCEPT : data_(a.value_.data_) { a.value_.data_ = Data(); @@ -867,7 +867,7 @@ public: /*! \param o An object obtained by \c GetObject(). \note \c Object is always pass-by-value. - \note the source object is moved into this value and the sourec object becomes empty. + \note the source object is moved into this value and the source object becomes empty. */ GenericValue(Object o) RAPIDJSON_NOEXCEPT : data_(o.value_.data_) { o.value_.data_ = Data(); @@ -922,7 +922,7 @@ public: if (RAPIDJSON_LIKELY(this != &rhs)) { // Can't destroy "this" before assigning "rhs", otherwise "rhs" // could be used after free if it's an sub-Value of "this", - // hence the temporary danse. + // hence the temporary dance. GenericValue temp; temp.RawAssign(rhs); this->~GenericValue(); @@ -1820,7 +1820,7 @@ public: uint64_t GetUint64() const { RAPIDJSON_ASSERT(data_.f.flags & kUint64Flag); return data_.n.u64; } //! Get the value as double type. - /*! \note If the value is 64-bit integer type, it may lose precision. Use \c IsLosslessDouble() to check whether the converison is lossless. + /*! \note If the value is 64-bit integer type, it may lose precision. Use \c IsLosslessDouble() to check whether the conversion is lossless. */ double GetDouble() const { RAPIDJSON_ASSERT(IsNumber()); @@ -1832,7 +1832,7 @@ public: } //! Get the value as float type. - /*! \note If the value is 64-bit integer type, it may lose precision. Use \c IsLosslessFloat() to check whether the converison is lossless. + /*! \note If the value is 64-bit integer type, it may lose precision. Use \c IsLosslessFloat() to check whether the conversion is lossless. */ float GetFloat() const { return static_cast(GetDouble()); diff --git a/src/loaders/lottie/rapidjson/encodings.h b/src/loaders/lottie/rapidjson/encodings.h index 50ad18bd..dbb0a4e4 100644 --- a/src/loaders/lottie/rapidjson/encodings.h +++ b/src/loaders/lottie/rapidjson/encodings.h @@ -452,7 +452,7 @@ struct UTF32 { } }; -//! UTF-32 little endian enocoding. +//! UTF-32 little endian encoding. template struct UTF32LE : UTF32 { template @@ -609,7 +609,7 @@ enum UTFType { }; //! Dynamically select encoding according to stream's runtime-specified UTF encoding type. -/*! \note This class can be used with AutoUTFInputtStream and AutoUTFOutputStream, which provides GetType(). +/*! \note This class can be used with AutoUTFInputStream and AutoUTFOutputStream, which provides GetType(). */ template struct AutoUTF { diff --git a/src/loaders/lottie/rapidjson/pointer.h b/src/loaders/lottie/rapidjson/pointer.h index 05b1704d..15723c67 100644 --- a/src/loaders/lottie/rapidjson/pointer.h +++ b/src/loaders/lottie/rapidjson/pointer.h @@ -173,7 +173,7 @@ public: //! Assignment operator. GenericPointer& operator=(const GenericPointer& rhs) { if (this != &rhs) { - // Do not delete ownAllcator + // Do not delete ownAllocator if (nameBuffer_) Allocator::Free(tokens_); @@ -191,7 +191,7 @@ public: return *this; } - //! Swap the content of this pointer with an other. + //! Swap the content of this pointer with another. /*! \param other The pointer to swap with. \note Constant complexity. @@ -525,7 +525,7 @@ public: \note There are only 3 situations when a URI cannot be resolved: - 1. A value in the path is not an array nor object. + 1. A value in the path is neither an array nor object. 2. An object value does not contain the token. 3. A token is out of range of an array value. @@ -586,7 +586,7 @@ public: \note There are only 3 situations when a value cannot be resolved: - 1. A value in the path is not an array nor object. + 1. A value in the path is neither an array nor object. 2. An object value does not contain the token. 3. A token is out of range of an array value. diff --git a/src/loaders/lottie/rapidjson/reader.h b/src/loaders/lottie/rapidjson/reader.h index 55546601..86c1f28e 100644 --- a/src/loaders/lottie/rapidjson/reader.h +++ b/src/loaders/lottie/rapidjson/reader.h @@ -1002,7 +1002,7 @@ private: //!@endcond for (;;) { - // Scan and copy string before "\\\"" or < 0x20. This is an optional optimzation. + // Scan and copy string before "\\\"" or < 0x20. This is an optional optimization. if (!(parseFlags & kParseValidateEncodingFlag)) ScanCopyUnescapedString(is, os); @@ -2018,7 +2018,7 @@ private: case IterativeParsingObjectInitialState: case IterativeParsingArrayInitialState: { - // Push the state(Element or MemeberValue) if we are nested in another array or value of member. + // Push the state(Element or MemberValue) if we are nested in another array or value of member. // In this way we can get the correct state on ObjectFinish or ArrayFinish by frame pop. IterativeParsingState n = src; if (src == IterativeParsingArrayInitialState || src == IterativeParsingElementDelimiterState) diff --git a/src/loaders/lottie/rapidjson/schema.h b/src/loaders/lottie/rapidjson/schema.h index 439133fa..fea254e8 100644 --- a/src/loaders/lottie/rapidjson/schema.h +++ b/src/loaders/lottie/rapidjson/schema.h @@ -264,7 +264,7 @@ public: virtual void DestroySchemaValidator(ISchemaValidator* validator) = 0; virtual void* CreateHasher() = 0; virtual uint64_t GetHashCode(void* hasher) = 0; - virtual void DestroryHasher(void* hasher) = 0; + virtual void DestroyHasher(void* hasher) = 0; virtual void* MallocState(size_t size) = 0; virtual void FreeState(void* p) = 0; }; @@ -311,7 +311,7 @@ public: virtual void StartMissingDependentProperties() = 0; virtual void AddMissingDependentProperty(const SValue& targetName) = 0; virtual void EndMissingDependentProperties(const SValue& sourceName) = 0; - virtual void AddDependencySchemaError(const SValue& souceName, ISchemaValidator* subvalidator) = 0; + virtual void AddDependencySchemaError(const SValue& sourceName, ISchemaValidator* subvalidator) = 0; virtual bool EndDependencyErrors() = 0; virtual void DisallowedValue(const ValidateErrorCode code) = 0; @@ -468,7 +468,7 @@ struct SchemaValidationContext { ~SchemaValidationContext() { if (hasher) - factory.DestroryHasher(hasher); + factory.DestroyHasher(hasher); if (validators) { for (SizeType i = 0; i < validatorCount; i++) { if (validators[i]) { @@ -2920,7 +2920,7 @@ public: return static_cast(hasher)->GetHashCode(); } - virtual void DestroryHasher(void* hasher) { + virtual void DestroyHasher(void* hasher) { HasherType* h = static_cast(hasher); h->~HasherType(); StateAllocator::Free(h); diff --git a/src/loaders/lottie/tvgLottieBuilder.cpp b/src/loaders/lottie/tvgLottieBuilder.cpp index 488d31b9..32700be6 100644 --- a/src/loaders/lottie/tvgLottieBuilder.cpp +++ b/src/loaders/lottie/tvgLottieBuilder.cpp @@ -64,8 +64,8 @@ struct RenderContext Matrix* transform = nullptr; float roundness = 0.0f; bool fragmenting = false; //render context has been fragmented by filling - bool reqFragment = false; //requirment to fragment the render context - bool ownPropagator = true; //this rendering context shares the propergator + bool reqFragment = false; //requirement to fragment the render context + bool ownPropagator = true; //this rendering context shares the propagator RenderContext() { diff --git a/src/loaders/lottie/tvgLottieExpressions.cpp b/src/loaders/lottie/tvgLottieExpressions.cpp index 73c2eae1..4fa90ea2 100644 --- a/src/loaders/lottie/tvgLottieExpressions.cpp +++ b/src/loaders/lottie/tvgLottieExpressions.cpp @@ -39,7 +39,7 @@ struct ExpContent }; -//reserved expressions speicifiers +//reserved expressions specifiers static const char* EXP_NAME = "name"; static const char* EXP_CONTENT = "content"; static const char* EXP_WIDTH = "width"; @@ -855,7 +855,7 @@ static jerry_value_t _key(const jerry_call_info_t* info, const jerry_value_t arg static jerry_value_t _createPath(const jerry_call_info_t* info, const jerry_value_t args[], const jerry_length_t argsCnt) { - //TODO: arg1: points, arg2: inTagents, arg3: outTangents, arg4: isClosed + //TODO: arg1: points, arg2: inTangents, arg3: outTangents, arg4: isClosed auto arg1 = jerry_value_to_object(args[0]); auto pathset = jerry_object_get_native_ptr(arg1, nullptr); if (!pathset) { @@ -876,7 +876,7 @@ static jerry_value_t _uniformPath(const jerry_call_info_t* info, const jerry_val auto pathset = static_cast(jerry_object_get_native_ptr(info->function, nullptr)); /* TODO: ThorVG prebuilds the path data for performance. - It acutally need to constructs the Array for points, inTangents, outTangents and then return here... */ + It actually need to constructs the Array for points, inTangents, outTangents and then return here... */ auto obj = jerry_object(); jerry_object_set_native_ptr(obj, nullptr, pathset); return obj; @@ -892,7 +892,7 @@ static jerry_value_t _isClosed(const jerry_call_info_t* info, const jerry_value_ static void _buildPath(jerry_value_t context, LottieExpression* exp) { - //Trick for fast buliding path. + //Trick for fast building path. auto points = jerry_function_external(_uniformPath); jerry_object_set_native_ptr(points, nullptr, exp->property); jerry_object_set_sz(context, "points", points); @@ -1218,7 +1218,7 @@ jerry_value_t LottieExpressions::evaluate(float frameNo, LottieExpression* exp) auto eval = jerry_eval((jerry_char_t *) exp->code, strlen(exp->code), JERRY_PARSE_NO_OPTS); if (jerry_value_is_exception(eval) || jerry_value_is_undefined(eval)) { - exp->enabled = false; // The feature is experimental, it will be forcely turned off if it's incompatible. + exp->enabled = false; // The feature is experimental, it will be forcefully turned off if it's incompatible. return jerry_undefined(); } diff --git a/src/loaders/lottie/tvgLottieLoader.cpp b/src/loaders/lottie/tvgLottieLoader.cpp index 04802937..2ca93877 100644 --- a/src/loaders/lottie/tvgLottieLoader.cpp +++ b/src/loaders/lottie/tvgLottieLoader.cpp @@ -299,13 +299,13 @@ bool LottieLoader::override(const char* slot) if (idx < 1) success = false; free(temp); - rebuild = overriden = success; + rebuild = overridden = success; //reset slots - } else if (overriden) { + } else if (overridden) { for (auto s = comp->slots.begin(); s < comp->slots.end(); ++s) { (*s)->reset(); } - overriden = false; + overridden = false; rebuild = true; } return success; diff --git a/src/loaders/lottie/tvgLottieLoader.h b/src/loaders/lottie/tvgLottieLoader.h index 5e64e704..e97749ed 100644 --- a/src/loaders/lottie/tvgLottieLoader.h +++ b/src/loaders/lottie/tvgLottieLoader.h @@ -44,7 +44,7 @@ public: char* dirName = nullptr; //base resource directory bool copy = false; //"content" is owned by this loader - bool overriden = false; //overridden properties with slots + bool overridden = false; //overridden properties with slots bool rebuild = false; //require building the lottie scene LottieLoader(); diff --git a/src/loaders/lottie/tvgLottieModel.cpp b/src/loaders/lottie/tvgLottieModel.cpp index b27ce733..696c1b7e 100644 --- a/src/loaders/lottie/tvgLottieModel.cpp +++ b/src/loaders/lottie/tvgLottieModel.cpp @@ -37,7 +37,7 @@ void LottieSlot::reset() { - if (!overriden) return; + if (!overridden) return; for (auto pair = pairs.begin(); pair < pairs.end(); ++pair) { switch (type) { @@ -64,7 +64,7 @@ void LottieSlot::reset() delete(pair->prop); pair->prop = nullptr; } - overriden = false; + overridden = false; } @@ -75,7 +75,7 @@ void LottieSlot::assign(LottieObject* target) //backup the original properties before overwriting switch (type) { case LottieProperty::Type::ColorStop: { - if (!overriden) { + if (!overridden) { pair->prop = new LottieColorStop; *static_cast(pair->prop) = static_cast(pair->obj)->colorStops; } @@ -84,7 +84,7 @@ void LottieSlot::assign(LottieObject* target) break; } case LottieProperty::Type::Color: { - if (!overriden) { + if (!overridden) { pair->prop = new LottieColor; *static_cast(pair->prop) = static_cast(pair->obj)->color; } @@ -93,7 +93,7 @@ void LottieSlot::assign(LottieObject* target) break; } case LottieProperty::Type::TextDoc: { - if (!overriden) { + if (!overridden) { pair->prop = new LottieTextDoc; *static_cast(pair->prop) = static_cast(pair->obj)->doc; } @@ -104,7 +104,7 @@ void LottieSlot::assign(LottieObject* target) default: break; } } - overriden = true; + overridden = true; } @@ -254,7 +254,7 @@ Fill* LottieGradient::fill(float frameNo, LottieExpressions* exps) auto angle = mathDeg2Rad((startAngle + this->angle(frameNo, exps))); auto fx = s.x + cos(angle) * progress * r; auto fy = s.y + sin(angle) * progress * r; - // Lottie dosen't have any focal radius concept + // Lottie doesn't have any focal radius concept P(static_cast(fill))->radial(s.x, s.y, r, fx, fy, 0.0f); } } diff --git a/src/loaders/lottie/tvgLottieModel.h b/src/loaders/lottie/tvgLottieModel.h index 2074a810..2ca9b2c7 100644 --- a/src/loaders/lottie/tvgLottieModel.h +++ b/src/loaders/lottie/tvgLottieModel.h @@ -516,7 +516,7 @@ struct LottieGroup : LottieObject Scene* scene = nullptr; //tvg render data Array children; - bool reqFragment = false; //requirment to fragment the render context + bool reqFragment = false; //requirement to fragment the render context bool buildDone = false; //completed in building the composition. bool allowMerge = true; //if this group is consisted of simple (transformed) shapes. bool trimpath = false; //this group has a trimpath. @@ -601,7 +601,7 @@ struct LottieSlot ~LottieSlot() { free(sid); - if (!overriden) return; + if (!overridden) return; for (auto pair = pairs.begin(); pair < pairs.end(); ++pair) { delete(pair->prop); } @@ -610,7 +610,7 @@ struct LottieSlot char* sid; Array pairs; LottieProperty::Type type; - bool overriden = false; + bool overridden = false; }; diff --git a/src/loaders/lottie/tvgLottieParser.cpp b/src/loaders/lottie/tvgLottieParser.cpp index e761c68f..8237e951 100644 --- a/src/loaders/lottie/tvgLottieParser.cpp +++ b/src/loaders/lottie/tvgLottieParser.cpp @@ -240,7 +240,7 @@ void LottieParser::getValue(PathSet& path) Array outPts; Array outCmds; - //Resuse the buffers + //Reuse the buffers outPts.data = path.pts; outPts.reserved = path.ptsCnt; outCmds.data = path.cmds; @@ -355,7 +355,7 @@ void LottieParser::getValue(RGB24& color) } -void LottieParser::getInperpolatorPoint(Point& pt) +void LottieParser::getInterpolatorPoint(Point& pt) { enterObject(); while (auto key = nextObjectKey()) { @@ -437,9 +437,9 @@ void LottieParser::parseKeyFrame(T& prop) while (auto key = nextObjectKey()) { if (KEY_AS("i")) { interpolator = true; - getInperpolatorPoint(inTangent); + getInterpolatorPoint(inTangent); } else if (KEY_AS("o")) { - getInperpolatorPoint(outTangent); + getInterpolatorPoint(outTangent); } else if (KEY_AS("n")) { if (peekType() == kStringType) { interpolatorKey = getString(); @@ -904,7 +904,7 @@ LottieImage* LottieParser::parseImage(const char* data, const char* subPath, boo //Used for Image Asset auto image = new LottieImage; - //embeded image resource. should start with "data:" + //embedded image resource. should start with "data:" //header look like "data:image/png;base64," so need to skip till ','. if (embedded && !strncmp(data, "data:", 5)) { //figure out the mimetype @@ -1013,7 +1013,7 @@ void LottieParser::parseMarkers() } } -void LottieParser::parseChars(Array& glyphes) +void LottieParser::parseChars(Array& glyphs) { enterArray(); while (nextArrayValue()) { @@ -1035,7 +1035,7 @@ void LottieParser::parseChars(Array& glyphes) } else skip(key); } glyph->prepare(); - glyphes.push(glyph); + glyphs.push(glyph); } } @@ -1260,11 +1260,11 @@ LottieLayer* LottieParser::parseLayers() } -void LottieParser::postProcess(Array& glyphes) +void LottieParser::postProcess(Array& glyphs) { //aggregate font characters - for (uint32_t g = 0; g < glyphes.count; ++g) { - auto glyph = glyphes[g]; + for (uint32_t g = 0; g < glyphs.count; ++g) { + auto glyph = glyphs[g]; for (uint32_t i = 0; i < comp->fonts.count; ++i) { auto& font = comp->fonts[i]; if (!strcmp(font->family, glyph->family) && !strcmp(font->style, glyph->style)) { @@ -1342,7 +1342,7 @@ bool LottieParser::parse() if (comp) delete(comp); comp = new LottieComposition; - Array glyphes; + Array glyphs; while (auto key = nextObjectKey()) { if (KEY_AS("v")) comp->version = getStringCopy(); @@ -1355,7 +1355,7 @@ bool LottieParser::parse() else if (KEY_AS("assets")) parseAssets(); else if (KEY_AS("layers")) comp->root = parseLayers(); else if (KEY_AS("fonts")) parseFonts(); - else if (KEY_AS("chars")) parseChars(glyphes); + else if (KEY_AS("chars")) parseChars(glyphs); else if (KEY_AS("markers")) parseMarkers(); else skip(key); } @@ -1368,7 +1368,7 @@ bool LottieParser::parse() comp->root->inFrame = comp->startFrame; comp->root->outFrame = comp->endFrame; - postProcess(glyphes); + postProcess(glyphs); return true; } diff --git a/src/loaders/lottie/tvgLottieParser.h b/src/loaders/lottie/tvgLottieParser.h index db2a31df..f50f022c 100644 --- a/src/loaders/lottie/tvgLottieParser.h +++ b/src/loaders/lottie/tvgLottieParser.h @@ -53,7 +53,7 @@ private: LottieInterpolator* getInterpolator(const char* key, Point& in, Point& out); uint8_t getDirection(); - void getInperpolatorPoint(Point& pt); + void getInterpolatorPoint(Point& pt); void getPathSet(LottiePathSet& path); void getLayerSize(float& val); void getValue(TextDocument& doc); @@ -105,9 +105,9 @@ private: void parseTextRange(LottieText* text); void parseAssets(); void parseFonts(); - void parseChars(Array& glyphes); + void parseChars(Array& glyphs); void parseMarkers(); - void postProcess(Array& glyphes); + void postProcess(Array& glyphs); //Current parsing context struct Context { diff --git a/src/loaders/lottie/tvgLottieParserHandler.cpp b/src/loaders/lottie/tvgLottieParserHandler.cpp index bd9715ea..45a70e51 100644 --- a/src/loaders/lottie/tvgLottieParserHandler.cpp +++ b/src/loaders/lottie/tvgLottieParserHandler.cpp @@ -203,7 +203,7 @@ const char* LookaheadParserHandler::nextObjectKey() return result; } - /* SPECIAL CASE: The parser works with a prdefined rule that it will be only + /* SPECIAL CASE: The parser works with a predefined rule that it will be only while (nextObjectKey()) for each object but in case of our nested group object we can call multiple time nextObjectKey() while exiting the object so ignore those and don't put parser in the error state. */ diff --git a/src/loaders/svg/tvgSvgLoader.cpp b/src/loaders/svg/tvgSvgLoader.cpp index b2bab9f6..4b0143e0 100644 --- a/src/loaders/svg/tvgSvgLoader.cpp +++ b/src/loaders/svg/tvgSvgLoader.cpp @@ -3319,7 +3319,7 @@ static void _svgLoaderParserXmlOpen(SvgLoaderData* loader, const char* content, else parent = loader->doc; if (!strcmp(tagName, "style")) { // TODO: For now only the first style node is saved. After the css id selector - // is introduced this if condition shouldin't be necessary any more + // is introduced this if condition shouldn't be necessary any more if (!loader->cssStyle) { node = method(loader, nullptr, attrs, attrsLength, simpleXmlParseAttributes); loader->cssStyle = node; diff --git a/src/loaders/svg/tvgSvgPath.cpp b/src/loaders/svg/tvgSvgPath.cpp index 63e9ce53..a25d4239 100644 --- a/src/loaders/svg/tvgSvgPath.cpp +++ b/src/loaders/svg/tvgSvgPath.cpp @@ -190,7 +190,7 @@ void _pathAppendArcTo(Array* cmds, Array* pts, Point* cur, P cx += (sx + x) / 2.0f; cy += (sy + y) / 2.0f; - //Sstep 4 (F6.5.4) + //Step 4 (F6.5.4) //We dont' use arccos (as per w3c doc), see //http://www.euclideanspace.com/maths/algebra/vectors/angleBetween/index.htm //Note: atan2 (0.0, 1.0) == 0.0 diff --git a/src/loaders/svg/tvgSvgSceneBuilder.cpp b/src/loaders/svg/tvgSvgSceneBuilder.cpp index de05eb9b..c25ae833 100644 --- a/src/loaders/svg/tvgSvgSceneBuilder.cpp +++ b/src/loaders/svg/tvgSvgSceneBuilder.cpp @@ -153,7 +153,7 @@ static unique_ptr _applyRadialGradientProperty(SvgStyleGradient* if (isTransform) finalTransform = *g->transform; if (g->userSpace) { - //The radius scalling is done according to the Units section: + //The radius scaling is done according to the Units section: //https://www.w3.org/TR/2015/WD-SVG2-20150915/coords.html g->radial->cx = g->radial->cx * vBox.w; g->radial->cy = g->radial->cy * vBox.h; diff --git a/src/loaders/ttf/tvgTtfLoader.cpp b/src/loaders/ttf/tvgTtfLoader.cpp index 6bda38f4..288260fe 100644 --- a/src/loaders/ttf/tvgTtfLoader.cpp +++ b/src/loaders/ttf/tvgTtfLoader.cpp @@ -186,7 +186,7 @@ static uint32_t* _codepoints(const char* text, size_t n) return nullptr; } } - utf32[i] = 0; //end of the unicdoe + utf32[i] = 0; //end of the unicode return utf32; } diff --git a/src/loaders/ttf/tvgTtfReader.cpp b/src/loaders/ttf/tvgTtfReader.cpp index 25237190..d86ad2a2 100644 --- a/src/loaders/ttf/tvgTtfReader.cpp +++ b/src/loaders/ttf/tvgTtfReader.cpp @@ -459,7 +459,7 @@ bool TtfReader::convert(Shape* shape, TtfGlyphMetrics& gmetrics, const Point& of auto pts = (Point*)alloca(ptsCnt * sizeof(Point)); if (!this->points(outline, flags, pts, ptsCnt, offset + kerning)) return false; - //generate tvg pathes. + //generate tvg paths. auto& pathCmds = P(shape)->rs.path.cmds; auto& pathPts = P(shape)->rs.path.pts; pathCmds.reserve(ptsCnt); diff --git a/src/loaders/webp/utils/quant_levels_dec.cpp b/src/loaders/webp/utils/quant_levels_dec.cpp index 5d054e50..5250c477 100644 --- a/src/loaders/webp/utils/quant_levels_dec.cpp +++ b/src/loaders/webp/utils/quant_levels_dec.cpp @@ -190,7 +190,7 @@ static void CountLevels(const uint8_t* const data, int size, if (v > p->max_) p->max_ = v; used_levels[v] = 1; } - // Compute the mininum distance between two non-zero levels. + // Compute the minimum distance between two non-zero levels. p->min_level_dist_ = p->max_ - p->min_; last_level = -1; for (i = 0; i < 256; ++i) { diff --git a/src/renderer/gl_engine/tvgGlGeometry.cpp b/src/renderer/gl_engine/tvgGlGeometry.cpp index a64e7191..f9896dcb 100644 --- a/src/renderer/gl_engine/tvgGlGeometry.cpp +++ b/src/renderer/gl_engine/tvgGlGeometry.cpp @@ -241,7 +241,7 @@ void GlGeometry::setViewport(const RenderRegion& viewport) this->viewport = viewport; } -float* GlGeometry::getTransforMatrix() +float* GlGeometry::getTransformMatrix() { return mTransform; } diff --git a/src/renderer/gl_engine/tvgGlGeometry.h b/src/renderer/gl_engine/tvgGlGeometry.h index de4eea58..e7edcdde 100644 --- a/src/renderer/gl_engine/tvgGlGeometry.h +++ b/src/renderer/gl_engine/tvgGlGeometry.h @@ -194,7 +194,7 @@ public: bool draw(GlRenderTask* task, GlStageBuffer* gpuBuffer, RenderUpdateFlag flag); void updateTransform(const RenderTransform* transform, float w, float h); void setViewport(const RenderRegion& viewport); - float* getTransforMatrix(); + float* getTransformMatrix(); GlStencilMode getStencilMode(RenderUpdateFlag flag); RenderRegion getBounds() const; diff --git a/src/renderer/gl_engine/tvgGlRenderTask.h b/src/renderer/gl_engine/tvgGlRenderTask.h index ec068c3a..0c7c87be 100644 --- a/src/renderer/gl_engine/tvgGlRenderTask.h +++ b/src/renderer/gl_engine/tvgGlRenderTask.h @@ -150,7 +150,7 @@ public: void run() override; - GLuint getColorTextore() const { return mColorTex; } + GLuint getColorTexture() const { return mColorTex; } void setTargetViewport(const RenderRegion& vp) { mTargetViewport = vp; } private: diff --git a/src/renderer/gl_engine/tvgGlRenderer.cpp b/src/renderer/gl_engine/tvgGlRenderer.cpp index bcea192c..5485174f 100644 --- a/src/renderer/gl_engine/tvgGlRenderer.cpp +++ b/src/renderer/gl_engine/tvgGlRenderer.cpp @@ -227,7 +227,7 @@ bool GlRenderer::renderImage(void* data) // matrix buffer { - auto matrix = sdata->geometry->getTransforMatrix(); + auto matrix = sdata->geometry->getTransformMatrix(); uint32_t loc = task->getProgram()->getUniformBlockIndex("Matrix"); task->addBindResource(GlBindingResource{ @@ -505,7 +505,7 @@ GlRenderer* GlRenderer::gen() glGetIntegerv(GL_MAJOR_VERSION, &vMajor); glGetIntegerv(GL_MINOR_VERSION, &vMinor); if (vMajor < TVG_REQUIRE_GL_MAJOR_VER || (vMajor == TVG_REQUIRE_GL_MAJOR_VER && vMinor < TVG_REQUIRE_GL_MINOR_VER)) { - TVGERR("GL_ENGINE", "OpenGL/ES version is not statisfied. Current: v%d.%d, Required: v%d.%d", vMajor, vMinor, TVG_REQUIRE_GL_MAJOR_VER, TVG_REQUIRE_GL_MINOR_VER); + TVGERR("GL_ENGINE", "OpenGL/ES version is not satisfied. Current: v%d.%d, Required: v%d.%d", vMajor, vMinor, TVG_REQUIRE_GL_MAJOR_VER, TVG_REQUIRE_GL_MINOR_VER); return nullptr; } TVGLOG("GL_ENGINE", "OpenGL/ES version = v%d.%d", vMajor, vMinor); @@ -583,7 +583,7 @@ void GlRenderer::drawPrimitive(GlShape& sdata, uint8_t r, uint8_t g, uint8_t b, // matrix buffer { - auto matrix = sdata.geometry->getTransforMatrix(); + auto matrix = sdata.geometry->getTransformMatrix(); uint32_t loc = task->getProgram()->getUniformBlockIndex("Matrix"); uint32_t viewOffset = mGpuBuffer->push(matrix, 16 * sizeof(float), true); @@ -659,7 +659,7 @@ void GlRenderer::drawPrimitive(GlShape& sdata, const Fill* fill, RenderUpdateFla // matrix buffer { - auto matrix = sdata.geometry->getTransforMatrix(); + auto matrix = sdata.geometry->getTransformMatrix(); auto gradientTransform = fill->transform(); float invMat4[16]; @@ -814,13 +814,13 @@ void GlRenderer::drawClip(Array& clips) identityVertex.push(right); identityVertex.push(bottom); - Array indentityIndex(6); - indentityIndex.push(0); - indentityIndex.push(1); - indentityIndex.push(2); - indentityIndex.push(2); - indentityIndex.push(1); - indentityIndex.push(3); + Array identityIndex(6); + identityIndex.push(0); + identityIndex.push(1); + identityIndex.push(2); + identityIndex.push(2); + identityIndex.push(1); + identityIndex.push(3); float mat4[16]; memset(mat4, 0, sizeof(float) * 16); @@ -830,7 +830,7 @@ void GlRenderer::drawClip(Array& clips) mat4[15] = 1.f; auto identityVertexOffset = mGpuBuffer->push(identityVertex.data, 8 * sizeof(float)); - auto identityIndexOffset = mGpuBuffer->push(indentityIndex.data, 6 * sizeof(uint32_t)); + auto identityIndexOffset = mGpuBuffer->push(identityIndex.data, 6 * sizeof(uint32_t)); auto mat4Offset = mGpuBuffer->push(mat4, 16 * sizeof(float), true); Array clipDepths(clips.count); @@ -849,7 +849,7 @@ void GlRenderer::drawClip(Array& clips) sdata->geometry->draw(clipTask, mGpuBuffer.get(), RenderUpdateFlag::Path); - auto matrix = sdata->geometry->getTransforMatrix(); + auto matrix = sdata->geometry->getTransformMatrix(); uint32_t loc = clipTask->getProgram()->getUniformBlockIndex("Matrix"); @@ -895,7 +895,7 @@ void GlRenderer::prepareBlitTask(GlBlitTask* task) { uint32_t loc = task->getProgram()->getUniformLocation("uSrcTexture"); - task->addBindResource(GlBindingResource{0, task->getColorTextore(), loc}); + task->addBindResource(GlBindingResource{0, task->getColorTexture(), loc}); } } diff --git a/src/renderer/gl_engine/tvgGlShader.cpp b/src/renderer/gl_engine/tvgGlShader.cpp index b2c6c635..4aef1f73 100644 --- a/src/renderer/gl_engine/tvgGlShader.cpp +++ b/src/renderer/gl_engine/tvgGlShader.cpp @@ -54,12 +54,12 @@ uint32_t GlShader::getFragmentShader() void GlShader::createShader(const char* vertSrc, const char* fragSrc) { - mVtShader = complileShader(GL_VERTEX_SHADER, const_cast(vertSrc)); - mFrShader = complileShader(GL_FRAGMENT_SHADER, const_cast(fragSrc)); + mVtShader = compileShader(GL_VERTEX_SHADER, const_cast(vertSrc)); + mFrShader = compileShader(GL_FRAGMENT_SHADER, const_cast(fragSrc)); } -uint32_t GlShader::complileShader(uint32_t type, char* shaderSrc) +uint32_t GlShader::compileShader(uint32_t type, char* shaderSrc) { GLuint shader; GLint compiled; diff --git a/src/renderer/gl_engine/tvgGlShader.h b/src/renderer/gl_engine/tvgGlShader.h index 2c6f9e91..67cccc56 100644 --- a/src/renderer/gl_engine/tvgGlShader.h +++ b/src/renderer/gl_engine/tvgGlShader.h @@ -36,7 +36,7 @@ public: private: void createShader(const char* vertSrc, const char* fragSrc); - uint32_t complileShader(uint32_t type, char* shaderSrc); + uint32_t compileShader(uint32_t type, char* shaderSrc); uint32_t mVtShader; uint32_t mFrShader; diff --git a/src/renderer/gl_engine/tvgGlTessellator.cpp b/src/renderer/gl_engine/tvgGlTessellator.cpp index 6cca0402..e75dc9a4 100644 --- a/src/renderer/gl_engine/tvgGlTessellator.cpp +++ b/src/renderer/gl_engine/tvgGlTessellator.cpp @@ -979,7 +979,7 @@ void Tessellator::tessellate(const Array &shapes) void Tessellator::visitShape(const PathCommand *cmds, uint32_t cmd_count, const Point *pts, uint32_t pts_count) { // all points at least need to be visit once - // so the points cound is at least is the same as the count in shape + // so the points count is at least the same as the count in shape resGlPoints->reserve(pts_count * 2); // triangle fans, the indices count is at least triangles number * 3 resIndices->reserve((pts_count - 2) * 3); @@ -1003,7 +1003,7 @@ void Tessellator::visitShape(const PathCommand *cmds, uint32_t cmd_count, const pts++; } break; case PathCommand::CubicTo: { - // bezier curve needs to calcluate how many segment to split + // bezier curve needs to calculate how many segment to split // for now just break curve into 16 segments for convenient auto last = outlines.last(); @@ -1093,7 +1093,7 @@ void Tessellator::mergeVertices() } if (v->point == v->prev->point) { - // merve v into v->prev + // merge v into v->prev while (auto e = v->edge_above.head) { e->setBottom(v->prev); } @@ -1717,7 +1717,7 @@ void Stroker::doStroke(const PathCommand *cmds, uint32_t cmd_count, const Point } void Stroker::doDashStroke(const PathCommand *cmds, uint32_t cmd_count, const Point *pts, uint32_t pts_count, - uint32_t dast_count, const float *dash_pattern) + uint32_t dash_count, const float *dash_pattern) { Array dash_cmds{}; Array dash_pts{}; @@ -1725,7 +1725,7 @@ void Stroker::doDashStroke(const PathCommand *cmds, uint32_t cmd_count, const Po dash_cmds.reserve(20 * cmd_count); dash_pts.reserve(20 * pts_count); - DashStroke dash(&dash_cmds, &dash_pts, dast_count, dash_pattern); + DashStroke dash(&dash_cmds, &dash_pts, dash_count, dash_pattern); dash.doStroke(cmds, cmd_count, pts, pts_count); diff --git a/src/renderer/sw_engine/tvgSwCommon.h b/src/renderer/sw_engine/tvgSwCommon.h index 199c234a..ed72b7dd 100644 --- a/src/renderer/sw_engine/tvgSwCommon.h +++ b/src/renderer/sw_engine/tvgSwCommon.h @@ -491,7 +491,7 @@ bool mathSmallCubic(const SwPoint* base, SwFixed& angleIn, SwFixed& angleMid, Sw SwFixed mathMean(SwFixed angle1, SwFixed angle2); SwPoint mathTransform(const Point* to, const Matrix* transform); bool mathUpdateOutlineBBox(const SwOutline* outline, const SwBBox& clipRegion, SwBBox& renderRegion, bool fastTrack); -bool mathClipBBox(const SwBBox& clipper, SwBBox& clipee); +bool mathClipBBox(const SwBBox& clipper, SwBBox& clippee); void shapeReset(SwShape* shape); bool shapePrepare(SwShape* shape, const RenderShape* rshape, const Matrix* transform, const SwBBox& clipRegion, SwBBox& renderRegion, SwMpool* mpool, unsigned tid, bool hasComposite); diff --git a/src/renderer/sw_engine/tvgSwMath.cpp b/src/renderer/sw_engine/tvgSwMath.cpp index ad5a2b73..656d16e9 100644 --- a/src/renderer/sw_engine/tvgSwMath.cpp +++ b/src/renderer/sw_engine/tvgSwMath.cpp @@ -265,19 +265,19 @@ SwPoint mathTransform(const Point* to, const Matrix* transform) } -bool mathClipBBox(const SwBBox& clipper, SwBBox& clipee) +bool mathClipBBox(const SwBBox& clipper, SwBBox& clippee) { - clipee.max.x = (clipee.max.x < clipper.max.x) ? clipee.max.x : clipper.max.x; - clipee.max.y = (clipee.max.y < clipper.max.y) ? clipee.max.y : clipper.max.y; - clipee.min.x = (clipee.min.x > clipper.min.x) ? clipee.min.x : clipper.min.x; - clipee.min.y = (clipee.min.y > clipper.min.y) ? clipee.min.y : clipper.min.y; + clippee.max.x = (clippee.max.x < clipper.max.x) ? clippee.max.x : clipper.max.x; + clippee.max.y = (clippee.max.y < clipper.max.y) ? clippee.max.y : clipper.max.y; + clippee.min.x = (clippee.min.x > clipper.min.x) ? clippee.min.x : clipper.min.x; + clippee.min.y = (clippee.min.y > clipper.min.y) ? clippee.min.y : clipper.min.y; //Check valid region - if (clipee.max.x - clipee.min.x < 1 && clipee.max.y - clipee.min.y < 1) return false; + if (clippee.max.x - clippee.min.x < 1 && clippee.max.y - clippee.min.y < 1) return false; //Check boundary - if (clipee.min.x >= clipper.max.x || clipee.min.y >= clipper.max.y || - clipee.max.x <= clipper.min.x || clipee.max.y <= clipper.min.y) return false; + if (clippee.min.x >= clipper.max.x || clippee.min.y >= clipper.max.y || + clippee.max.x <= clipper.min.x || clippee.max.y <= clipper.min.y) return false; return true; } diff --git a/src/renderer/sw_engine/tvgSwRaster.cpp b/src/renderer/sw_engine/tvgSwRaster.cpp index 04f36c72..1535a951 100644 --- a/src/renderer/sw_engine/tvgSwRaster.cpp +++ b/src/renderer/sw_engine/tvgSwRaster.cpp @@ -1946,7 +1946,7 @@ bool rasterConvertCS(Surface* surface, ColorSpace to) ScopedLock lock(surface->key); if (surface->cs == to) return true; - //TOOD: Support SIMD accelerations + //TODO: Support SIMD accelerations auto from = surface->cs; if (((from == ColorSpace::ABGR8888) || (from == ColorSpace::ABGR8888S)) && ((to == ColorSpace::ARGB8888) || (to == ColorSpace::ARGB8888S))) { diff --git a/src/renderer/sw_engine/tvgSwRasterAvx.h b/src/renderer/sw_engine/tvgSwRasterAvx.h index a072a888..052f08dc 100644 --- a/src/renderer/sw_engine/tvgSwRasterAvx.h +++ b/src/renderer/sw_engine/tvgSwRasterAvx.h @@ -185,7 +185,7 @@ static bool avxRasterTranslucentRle(SwSurface* surface, const SwRleData* rle, ui } //2. fill the aligned memory using avx - N_32BITS_IN_128REG pixels processed at once - //In order to avoid unneccessary avx variables declarations a check is made whether there are any iterations at all + //In order to avoid unnecessary avx variables declarations a check is made whether there are any iterations at all uint32_t iterations = (span->len - notAligned) / N_32BITS_IN_128REG; uint32_t avxFilled = 0; if (iterations > 0) { diff --git a/src/renderer/sw_engine/tvgSwRenderer.cpp b/src/renderer/sw_engine/tvgSwRenderer.cpp index 2ceda172..6bdebfdd 100644 --- a/src/renderer/sw_engine/tvgSwRenderer.cpp +++ b/src/renderer/sw_engine/tvgSwRenderer.cpp @@ -228,7 +228,7 @@ struct SwSceneTask : SwTask void run(unsigned tid) override { - //TODO: Skip the run if the scene hans't changed. + //TODO: Skip the run if the scene hasn't changed. if (!sceneRle) sceneRle = static_cast(calloc(1, sizeof(SwRleData))); else rleReset(sceneRle); diff --git a/src/renderer/sw_engine/tvgSwRle.cpp b/src/renderer/sw_engine/tvgSwRle.cpp index 2b2eabf1..12f4a230 100644 --- a/src/renderer/sw_engine/tvgSwRle.cpp +++ b/src/renderer/sw_engine/tvgSwRle.cpp @@ -322,7 +322,7 @@ static void _genSpan(SwRleData* rle, const SwSpan* spans, uint32_t count) } -static void _horizLine(RleWorker& rw, SwCoord x, SwCoord y, SwCoord area, SwCoord acount) +static void _horizLine(RleWorker& rw, SwCoord x, SwCoord y, SwCoord area, SwCoord aCount) { x += rw.cellMin.x; y += rw.cellMin.y; @@ -346,11 +346,11 @@ static void _horizLine(RleWorker& rw, SwCoord x, SwCoord y, SwCoord area, SwCoor //span has ushort coordinates. check limit overflow if (x >= SHRT_MAX) { - TVGERR("SW_ENGINE", "X-coordiante overflow!"); + TVGERR("SW_ENGINE", "X-coordinate overflow!"); x = SHRT_MAX; } if (y >= SHRT_MAX) { - TVGERR("SW_ENGINE", "Y Coordiante overflow!"); + TVGERR("SW_ENGINE", "Y-coordinate overflow!"); y = SHRT_MAX; } @@ -365,11 +365,11 @@ static void _horizLine(RleWorker& rw, SwCoord x, SwCoord y, SwCoord area, SwCoor //Clip x range SwCoord xOver = 0; - if (x + acount >= rw.cellMax.x) xOver -= (x + acount - rw.cellMax.x); + if (x + aCount >= rw.cellMax.x) xOver -= (x + aCount - rw.cellMax.x); if (x < rw.cellMin.x) xOver -= (rw.cellMin.x - x); - //span->len += (acount + xOver) - 1; - span->len += (acount + xOver); + //span->len += (aCount + xOver) - 1; + span->len += (aCount + xOver); return; } @@ -384,19 +384,19 @@ static void _horizLine(RleWorker& rw, SwCoord x, SwCoord y, SwCoord area, SwCoor //Clip x range SwCoord xOver = 0; - if (x + acount >= rw.cellMax.x) xOver -= (x + acount - rw.cellMax.x); + if (x + aCount >= rw.cellMax.x) xOver -= (x + aCount - rw.cellMax.x); if (x < rw.cellMin.x) { xOver -= (rw.cellMin.x - x); x = rw.cellMin.x; } //Nothing to draw - if (acount + xOver <= 0) return; + if (aCount + xOver <= 0) return; //add a span to the current list span->x = x; span->y = y; - span->len = (acount + xOver); + span->len = (aCount + xOver); span->coverage = coverage; ++rw.spansCnt; rw.ySpan = y; @@ -769,7 +769,7 @@ static SwSpan* _intersectSpansRegion(const SwRleData *clip, const SwRleData *tar auto clipEnd = clip->spans + clip->size; while (spans < end && clipSpans < clipEnd) { - //align y cooridnates. + //align y-coordinates. if (clipSpans->y > spans->y) { ++spans; continue; @@ -779,7 +779,7 @@ static SwSpan* _intersectSpansRegion(const SwRleData *clip, const SwRleData *tar continue; } - //Try clipping with all clip spans which have a same y coordinate. + //Try clipping with all clip spans which have a same y-coordinate. auto temp = clipSpans; while(temp < clipEnd && outSpansCnt > 0 && temp->y == clipSpans->y) { auto sx1 = spans->x; diff --git a/src/renderer/sw_engine/tvgSwStroke.cpp b/src/renderer/sw_engine/tvgSwStroke.cpp index 18f5f3ec..441606a8 100644 --- a/src/renderer/sw_engine/tvgSwStroke.cpp +++ b/src/renderer/sw_engine/tvgSwStroke.cpp @@ -662,7 +662,7 @@ static void _beginSubPath(SwStroke& stroke, const SwPoint& to, bool closed) /* Determine if we need to check whether the border radius is greater than the radius of curvature of a curve, to handle this case specially. This is only required if bevel joins or butt caps may be created because - round & miter joins and round & square caps cover the nagative sector + round & miter joins and round & square caps cover the negative sector created with wide strokes. */ if ((stroke.join != StrokeJoin::Round) || (!stroke.closedSubPath && stroke.cap == StrokeCap::Butt)) stroke.handleWideStrokes = true; @@ -715,7 +715,7 @@ static void _endSubPath(SwStroke& stroke) _addCap(stroke, stroke.subPathAngle + SW_ANGLE_PI, 0); /* now end the right subpath accordingly. The left one is rewind - and deosn't need further processing */ + and doesn't need further processing */ _borderClose(right, false); } } @@ -859,7 +859,7 @@ bool strokeParseOutline(SwStroke* stroke, const SwOutline& outline) ++pt; ++types; - //emit a signel line_to + //emit a single line_to if (types[0] == SW_CURVE_TYPE_POINT) { _lineTo(*stroke, *pt); //types cubic diff --git a/src/renderer/tvgCanvas.h b/src/renderer/tvgCanvas.h index 54442408..7efd4cc6 100644 --- a/src/renderer/tvgCanvas.h +++ b/src/renderer/tvgCanvas.h @@ -26,7 +26,7 @@ #include "tvgPaint.h" -enum Status : uint8_t {Synced = 0, Updating, Drawing, Damanged}; +enum Status : uint8_t {Synced = 0, Updating, Drawing, Damaged}; struct Canvas::Impl { @@ -42,7 +42,7 @@ struct Canvas::Impl ~Impl() { - //make it sure any deffered jobs + //make it sure any deferred jobs renderer->sync(); clearPaints(); @@ -60,7 +60,7 @@ struct Canvas::Impl Result push(unique_ptr paint) { - //You can not push paints during rendering. + //You cannot push paints during rendering. if (status == Status::Drawing) return Result::InsufficientCondition; auto p = paint.release(); @@ -91,7 +91,7 @@ struct Canvas::Impl Array clips; auto flag = RenderUpdateFlag::None; - if (status == Status::Damanged || force) flag = RenderUpdateFlag::All; + if (status == Status::Damaged || force) flag = RenderUpdateFlag::All; if (paint) { paint->pImpl->update(renderer, nullptr, clips, 255, flag); @@ -106,7 +106,7 @@ struct Canvas::Impl Result draw() { - if (status == Status::Damanged) update(nullptr, false); + if (status == Status::Damaged) update(nullptr, false); if (status == Status::Drawing || paints.empty() || !renderer->preRender()) return Result::InsufficientCondition; bool rendered = false; @@ -122,7 +122,7 @@ struct Canvas::Impl Result sync() { - if (status == Status::Synced || status == Status::Damanged) return Result::InsufficientCondition; + if (status == Status::Synced || status == Status::Damaged) return Result::InsufficientCondition; if (renderer->sync()) { status = Status::Synced; @@ -134,7 +134,7 @@ struct Canvas::Impl Result viewport(int32_t x, int32_t y, int32_t w, int32_t h) { - if (status != Status::Damanged && status != Status::Synced) return Result::InsufficientCondition; + if (status != Status::Damaged && status != Status::Synced) return Result::InsufficientCondition; RenderRegion val = {x, y, w, h}; //intersect if the target buffer is already set. @@ -145,7 +145,7 @@ struct Canvas::Impl if (vport == val) return Result::Success; renderer->viewport(val); vport = val; - status = Status::Damanged; + status = Status::Damaged; return Result::Success; } }; diff --git a/src/renderer/tvgGlCanvas.cpp b/src/renderer/tvgGlCanvas.cpp index 82666b7a..24e2fb8b 100644 --- a/src/renderer/tvgGlCanvas.cpp +++ b/src/renderer/tvgGlCanvas.cpp @@ -62,7 +62,7 @@ GlCanvas::~GlCanvas() Result GlCanvas::target(int32_t id, uint32_t w, uint32_t h) noexcept { #ifdef THORVG_GL_RASTER_SUPPORT - if (Canvas::pImpl->status != Status::Damanged && Canvas::pImpl->status != Status::Synced) { + if (Canvas::pImpl->status != Status::Damaged && Canvas::pImpl->status != Status::Synced) { return Result::InsufficientCondition; } @@ -75,7 +75,7 @@ Result GlCanvas::target(int32_t id, uint32_t w, uint32_t h) noexcept renderer->viewport(Canvas::pImpl->vport); //Paints must be updated again with this new target. - Canvas::pImpl->status = Status::Damanged; + Canvas::pImpl->status = Status::Damaged; return Result::Success; #endif diff --git a/src/renderer/tvgLoader.cpp b/src/renderer/tvgLoader.cpp index 6f5715de..f128c03a 100644 --- a/src/renderer/tvgLoader.cpp +++ b/src/renderer/tvgLoader.cpp @@ -317,7 +317,7 @@ LoadModule* LoaderMgr::loader(const string& path, bool* invalid) } delete(loader); } - //Unkown MimeType. Try with the candidates in the order + //Unknown MimeType. Try with the candidates in the order for (int i = 0; i < static_cast(FileType::Raw); i++) { if (auto loader = _find(static_cast(i))) { if (loader->open(path)) { @@ -392,7 +392,7 @@ LoadModule* LoaderMgr::loader(const char* data, uint32_t size, const string& mim } } } - //Unkown MimeType. Try with the candidates in the order + //Unknown MimeType. Try with the candidates in the order for (int i = 0; i < static_cast(FileType::Raw); i++) { auto loader = _find(static_cast(i)); if (loader) { diff --git a/src/renderer/tvgSaver.cpp b/src/renderer/tvgSaver.cpp index ac18dabe..bd604d25 100644 --- a/src/renderer/tvgSaver.cpp +++ b/src/renderer/tvgSaver.cpp @@ -122,7 +122,7 @@ Result Saver::save(unique_ptr paint, const string& path, uint32_t quality auto p = paint.release(); if (!p) return Result::MemoryCorruption; - //Already on saving an other resource. + //Already on saving another resource. if (pImpl->saveModule) { if (P(p)->refCnt == 0) delete(p); return Result::InsufficientCondition; @@ -165,7 +165,7 @@ Result Saver::save(unique_ptr animation, const string& path, uint32_t return Result::InsufficientCondition; } - //Already on saving an other resource. + //Already on saving another resource. if (pImpl->saveModule) { if (remove) delete(a); return Result::InsufficientCondition; diff --git a/src/renderer/tvgScene.h b/src/renderer/tvgScene.h index 8b1981ed..b466591c 100644 --- a/src/renderer/tvgScene.h +++ b/src/renderer/tvgScene.h @@ -105,7 +105,7 @@ struct Scene::Impl { if ((needComp = needComposition(opacity))) { /* Overriding opacity value. If this scene is half-translucent, - It must do intermeidate composition with that opacity value. */ + It must do intermediate composition with that opacity value. */ this->opacity = opacity; opacity = 255; } diff --git a/src/renderer/tvgShape.h b/src/renderer/tvgShape.h index 42945639..eccae0d8 100644 --- a/src/renderer/tvgShape.h +++ b/src/renderer/tvgShape.h @@ -99,7 +99,7 @@ struct Shape::Impl { if ((needComp = needComposition(opacity))) { /* Overriding opacity value. If this scene is half-translucent, - It must do intermeidate composition with that opacity value. */ + It must do intermediate composition with that opacity value. */ this->opacity = opacity; opacity = 255; } diff --git a/src/renderer/tvgSwCanvas.cpp b/src/renderer/tvgSwCanvas.cpp index d762492f..6c4b6da1 100644 --- a/src/renderer/tvgSwCanvas.cpp +++ b/src/renderer/tvgSwCanvas.cpp @@ -82,7 +82,7 @@ Result SwCanvas::mempool(MempoolPolicy policy) noexcept Result SwCanvas::target(uint32_t* buffer, uint32_t stride, uint32_t w, uint32_t h, Colorspace cs) noexcept { #ifdef THORVG_SW_RASTER_SUPPORT - if (Canvas::pImpl->status != Status::Damanged && Canvas::pImpl->status != Status::Synced) { + if (Canvas::pImpl->status != Status::Damaged && Canvas::pImpl->status != Status::Synced) { return Result::InsufficientCondition; } @@ -98,7 +98,7 @@ Result SwCanvas::target(uint32_t* buffer, uint32_t stride, uint32_t w, uint32_t ImageLoader::cs = static_cast(cs); //Paints must be updated again with this new target. - Canvas::pImpl->status = Status::Damanged; + Canvas::pImpl->status = Status::Damaged; return Result::Success; #endif diff --git a/src/renderer/tvgWgCanvas.cpp b/src/renderer/tvgWgCanvas.cpp index 067e35b1..c094ae4d 100644 --- a/src/renderer/tvgWgCanvas.cpp +++ b/src/renderer/tvgWgCanvas.cpp @@ -57,7 +57,7 @@ WgCanvas::~WgCanvas() Result WgCanvas::target(void* instance, void* surface, uint32_t w, uint32_t h) noexcept { #ifdef THORVG_WG_RASTER_SUPPORT - if (Canvas::pImpl->status != Status::Damanged && Canvas::pImpl->status != Status::Synced) { + if (Canvas::pImpl->status != Status::Damaged && Canvas::pImpl->status != Status::Synced) { return Result::InsufficientCondition; } @@ -72,7 +72,7 @@ Result WgCanvas::target(void* instance, void* surface, uint32_t w, uint32_t h) n renderer->viewport(Canvas::pImpl->vport); //Paints must be updated again with this new target. - Canvas::pImpl->status = Status::Damanged; + Canvas::pImpl->status = Status::Damaged; return Result::Success; #endif diff --git a/src/renderer/wg_engine/tvgWgBindGroups.cpp b/src/renderer/wg_engine/tvgWgBindGroups.cpp index f3efa815..891bead4 100644 --- a/src/renderer/wg_engine/tvgWgBindGroups.cpp +++ b/src/renderer/wg_engine/tvgWgBindGroups.cpp @@ -31,7 +31,7 @@ WGPUBindGroupLayout WgBindGroupSolidColor::layout = nullptr; WGPUBindGroupLayout WgBindGroupLinearGradient::layout = nullptr; WGPUBindGroupLayout WgBindGroupRadialGradient::layout = nullptr; WGPUBindGroupLayout WgBindGroupPicture::layout = nullptr; -// composition and blending properties gropus +// composition and blending properties groups WGPUBindGroupLayout WgBindGroupTexture::layout = nullptr; WGPUBindGroupLayout WgBindGroupTextureStorageRgba::layout = nullptr; WGPUBindGroupLayout WgBindGroupTextureStorageBgra::layout = nullptr; @@ -643,11 +643,11 @@ WgBindGroupBlendMethod* WgBindGroupBlendMethodPool::allocate(WgContext& context, void WgBindGroupCompositeMethodPool::initialize(WgContext& context) { release(context); - for (uint8_t composeMethos = (uint8_t)CompositeMethod::None; - composeMethos <= (uint8_t)CompositeMethod::DifferenceMask; - composeMethos++) { - mPool[composeMethos] = new WgBindGroupCompositeMethod; - mPool[composeMethos]->initialize(context.device, context.queue, (CompositeMethod)composeMethos); + for (uint8_t composeMethods = (uint8_t)CompositeMethod::None; + composeMethods <= (uint8_t)CompositeMethod::DifferenceMask; + composeMethods++) { + mPool[composeMethods] = new WgBindGroupCompositeMethod; + mPool[composeMethods]->initialize(context.device, context.queue, (CompositeMethod)composeMethods); } } diff --git a/src/renderer/wg_engine/tvgWgCommon.cpp b/src/renderer/wg_engine/tvgWgCommon.cpp index 6278f37c..f2588ff3 100644 --- a/src/renderer/wg_engine/tvgWgCommon.cpp +++ b/src/renderer/wg_engine/tvgWgCommon.cpp @@ -52,12 +52,12 @@ void WgContext::initialize(WGPUInstance instance, WGPUSurface surface) wgpuInstanceRequestAdapter(instance, &requestAdapterOptions, onAdapterRequestEnded, &adapter); assert(adapter); - // adapter enumarate fueatures + // adapter enumerate features size_t featuresCount = wgpuAdapterEnumerateFeatures(adapter, featureNames); wgpuAdapterGetProperties(adapter, &adapterProperties); wgpuAdapterGetLimits(adapter, &supportedLimits); - // reguest device + // request device WGPUDeviceDescriptor deviceDesc{}; deviceDesc.nextInChain = nullptr; deviceDesc.label = "The device"; diff --git a/src/renderer/wg_engine/tvgWgGeometry.cpp b/src/renderer/wg_engine/tvgWgGeometry.cpp index 48749dfb..06cc79f2 100644 --- a/src/renderer/wg_engine/tvgWgGeometry.cpp +++ b/src/renderer/wg_engine/tvgWgGeometry.cpp @@ -308,8 +308,8 @@ void WgGeometryData::appendStrokeDashed(const WgPolyline* polyline, const Render assert(polyline); static WgPolyline dashed; dashed.clear(); - // ignore singpe points polyline - // append multy points dashed polyline + // ignore single points polyline + // append multiple points dashed polyline if (polyline->pts.count >= 2) { auto& pts = polyline->pts; auto& dist = polyline->dist; @@ -321,7 +321,7 @@ void WgGeometryData::appendStrokeDashed(const WgPolyline* polyline, const Render // append current polyline point if (dashIndex % 2 == 0) dashed.appendPoint(pts[i]); - // move inside polyline sergemnt + // move inside polyline segment while(currentLength < dist[i+1]) { // get current point float t = currentLength / dist[i+1]; diff --git a/src/renderer/wg_engine/tvgWgPipelines.cpp b/src/renderer/wg_engine/tvgWgPipelines.cpp index b066b719..2fcb9245 100644 --- a/src/renderer/wg_engine/tvgWgPipelines.cpp +++ b/src/renderer/wg_engine/tvgWgPipelines.cpp @@ -44,9 +44,9 @@ void WgPipelineFillShapeWinding::initialize(WGPUDevice device) }; // stencil function - WGPUCompareFunction stencilFuncionFront = WGPUCompareFunction_Always; + WGPUCompareFunction stencilFunctionFront = WGPUCompareFunction_Always; WGPUStencilOperation stencilOperationFront = WGPUStencilOperation_IncrementWrap; - WGPUCompareFunction stencilFuncionBack = WGPUCompareFunction_Always; + WGPUCompareFunction stencilFunctionBack = WGPUCompareFunction_Always; WGPUStencilOperation stencilOperationBack = WGPUStencilOperation_DecrementWrap; // sheder source and labels @@ -58,7 +58,7 @@ void WgPipelineFillShapeWinding::initialize(WGPUDevice device) allocate(device, WgPipelineBlendType::Add, WGPUColorWriteMask_None, vertexBufferLayouts, ARRAY_ELEMENTS_COUNT(vertexBufferLayouts), bindGroupLayouts, ARRAY_ELEMENTS_COUNT(bindGroupLayouts), - stencilFuncionFront, stencilOperationFront, stencilFuncionBack, stencilOperationBack, + stencilFunctionFront, stencilOperationFront, stencilFunctionBack, stencilOperationBack, shaderSource, shaderLabel, pipelineLabel); } @@ -78,9 +78,9 @@ void WgPipelineFillShapeEvenOdd::initialize(WGPUDevice device) }; // stencil function - WGPUCompareFunction stencilFuncionFront = WGPUCompareFunction_Always; + WGPUCompareFunction stencilFunctionFront = WGPUCompareFunction_Always; WGPUStencilOperation stencilOperationFront = WGPUStencilOperation_Invert; - WGPUCompareFunction stencilFuncionBack = WGPUCompareFunction_Always; + WGPUCompareFunction stencilFunctionBack = WGPUCompareFunction_Always; WGPUStencilOperation stencilOperationBack = WGPUStencilOperation_Invert; // sheder source and labels @@ -92,7 +92,7 @@ void WgPipelineFillShapeEvenOdd::initialize(WGPUDevice device) allocate(device, WgPipelineBlendType::Add, WGPUColorWriteMask_None, vertexBufferLayouts, ARRAY_ELEMENTS_COUNT(vertexBufferLayouts), bindGroupLayouts, ARRAY_ELEMENTS_COUNT(bindGroupLayouts), - stencilFuncionFront, stencilOperationFront, stencilFuncionBack, stencilOperationBack, + stencilFunctionFront, stencilOperationFront, stencilFunctionBack, stencilOperationBack, shaderSource, shaderLabel, pipelineLabel); } @@ -112,7 +112,7 @@ void WgPipelineFillStroke::initialize(WGPUDevice device) }; // stencil function - WGPUCompareFunction stencilFuncion = WGPUCompareFunction_Always; + WGPUCompareFunction stencilFunction = WGPUCompareFunction_Always; WGPUStencilOperation stencilOperation = WGPUStencilOperation_Replace; // sheder source and labels @@ -124,7 +124,7 @@ void WgPipelineFillStroke::initialize(WGPUDevice device) allocate(device, WgPipelineBlendType::Add, WGPUColorWriteMask_None, vertexBufferLayouts, ARRAY_ELEMENTS_COUNT(vertexBufferLayouts), bindGroupLayouts, ARRAY_ELEMENTS_COUNT(bindGroupLayouts), - stencilFuncion, stencilOperation, stencilFuncion, stencilOperation, + stencilFunction, stencilOperation, stencilFunction, stencilOperation, shaderSource, shaderLabel, pipelineLabel); } @@ -145,7 +145,7 @@ void WgPipelineSolid::initialize(WGPUDevice device, WgPipelineBlendType blendTyp }; // stencil function - WGPUCompareFunction stencilFuncion = WGPUCompareFunction_NotEqual; + WGPUCompareFunction stencilFunction = WGPUCompareFunction_NotEqual; WGPUStencilOperation stencilOperation = WGPUStencilOperation_Zero; // sheder source and labels @@ -157,7 +157,7 @@ void WgPipelineSolid::initialize(WGPUDevice device, WgPipelineBlendType blendTyp allocate(device, blendType, WGPUColorWriteMask_All, vertexBufferLayouts, ARRAY_ELEMENTS_COUNT(vertexBufferLayouts), bindGroupLayouts, ARRAY_ELEMENTS_COUNT(bindGroupLayouts), - stencilFuncion, stencilOperation, stencilFuncion, stencilOperation, + stencilFunction, stencilOperation, stencilFunction, stencilOperation, shaderSource, shaderLabel, pipelineLabel); } @@ -178,7 +178,7 @@ void WgPipelineLinear::initialize(WGPUDevice device, WgPipelineBlendType blendTy }; // stencil function - WGPUCompareFunction stencilFuncion = WGPUCompareFunction_NotEqual; + WGPUCompareFunction stencilFunction = WGPUCompareFunction_NotEqual; WGPUStencilOperation stencilOperation = WGPUStencilOperation_Zero; // sheder source and labels @@ -190,7 +190,7 @@ void WgPipelineLinear::initialize(WGPUDevice device, WgPipelineBlendType blendTy allocate(device, blendType, WGPUColorWriteMask_All, vertexBufferLayouts, ARRAY_ELEMENTS_COUNT(vertexBufferLayouts), bindGroupLayouts, ARRAY_ELEMENTS_COUNT(bindGroupLayouts), - stencilFuncion, stencilOperation, stencilFuncion, stencilOperation, + stencilFunction, stencilOperation, stencilFunction, stencilOperation, shaderSource, shaderLabel, pipelineLabel); } @@ -211,7 +211,7 @@ void WgPipelineRadial::initialize(WGPUDevice device, WgPipelineBlendType blendTy }; // stencil function - WGPUCompareFunction stencilFuncion = WGPUCompareFunction_NotEqual; + WGPUCompareFunction stencilFunction = WGPUCompareFunction_NotEqual; WGPUStencilOperation stencilOperation = WGPUStencilOperation_Zero; // sheder source and labels @@ -223,7 +223,7 @@ void WgPipelineRadial::initialize(WGPUDevice device, WgPipelineBlendType blendTy allocate(device, blendType, WGPUColorWriteMask_All, vertexBufferLayouts, ARRAY_ELEMENTS_COUNT(vertexBufferLayouts), bindGroupLayouts, ARRAY_ELEMENTS_COUNT(bindGroupLayouts), - stencilFuncion, stencilOperation, stencilFuncion, stencilOperation, + stencilFunction, stencilOperation, stencilFunction, stencilOperation, shaderSource, shaderLabel, pipelineLabel); } @@ -246,7 +246,7 @@ void WgPipelineImage::initialize(WGPUDevice device, WgPipelineBlendType blendTyp }; // stencil function - WGPUCompareFunction stencilFuncion = WGPUCompareFunction_Always; + WGPUCompareFunction stencilFunction = WGPUCompareFunction_Always; WGPUStencilOperation stencilOperation = WGPUStencilOperation_Zero; // sheder source and labels @@ -258,7 +258,7 @@ void WgPipelineImage::initialize(WGPUDevice device, WgPipelineBlendType blendTyp allocate(device, blendType, WGPUColorWriteMask_All, vertexBufferLayouts, ARRAY_ELEMENTS_COUNT(vertexBufferLayouts), bindGroupLayouts, ARRAY_ELEMENTS_COUNT(bindGroupLayouts), - stencilFuncion, stencilOperation, stencilFuncion, stencilOperation, + stencilFunction, stencilOperation, stencilFunction, stencilOperation, shaderSource, shaderLabel, pipelineLabel); } diff --git a/src/renderer/wg_engine/tvgWgShaderSrc.cpp b/src/renderer/wg_engine/tvgWgShaderSrc.cpp index ce394208..dcc72370 100644 --- a/src/renderer/wg_engine/tvgWgShaderSrc.cpp +++ b/src/renderer/wg_engine/tvgWgShaderSrc.cpp @@ -66,8 +66,8 @@ struct VertexInput { @location(0) position: vec2f }; -// BlendSettigs -struct BlendSettigs { +// BlendSettings +struct BlendSettings { format : u32, // ColorSpace dummy0 : f32, dummy1 : f32, @@ -82,7 +82,7 @@ struct VertexOutput { // uniforms @group(0) @binding(0) var uViewMat : mat4x4f; @group(1) @binding(0) var uModelMat : mat4x4f; -@group(1) @binding(1) var uBlendSettigs : BlendSettigs; +@group(1) @binding(1) var uBlendSettings : BlendSettings; @group(2) @binding(0) var uSolidColor : vec4f; @vertex @@ -101,7 +101,7 @@ fn fs_main(in: VertexOutput) -> @location(0) vec4f { // get color color = uSolidColor; - return vec4f(color.rgb, color.a * uBlendSettigs.opacity); + return vec4f(color.rgb, color.a * uBlendSettings.opacity); } )"; @@ -115,8 +115,8 @@ struct VertexInput { @location(0) position: vec2f }; -// BlendSettigs -struct BlendSettigs { +// BlendSettings +struct BlendSettings { format : u32, // ColorSpace dummy0 : f32, dummy1 : f32, @@ -146,7 +146,7 @@ struct VertexOutput { // uniforms @group(0) @binding(0) var uViewMat : mat4x4f; @group(1) @binding(0) var uModelMat : mat4x4f; -@group(1) @binding(1) var uBlendSettigs : BlendSettigs; +@group(1) @binding(1) var uBlendSettings : BlendSettings; @group(2) @binding(0) var uLinearGradient : LinearGradient; @vertex @@ -203,7 +203,7 @@ fn fs_main(in: VertexOutput) -> @location(0) vec4f { } } - return vec4f(color.rgb, color.a * uBlendSettigs.opacity); + return vec4f(color.rgb, color.a * uBlendSettings.opacity); } )"; @@ -217,8 +217,8 @@ struct VertexInput { @location(0) position: vec2f }; -// BlendSettigs -struct BlendSettigs { +// BlendSettings +struct BlendSettings { format : u32, // ColorSpace dummy0 : f32, dummy1 : f32, @@ -248,7 +248,7 @@ struct VertexOutput { // uniforms @group(0) @binding(0) var uViewMat : mat4x4f; @group(1) @binding(0) var uModelMat : mat4x4f; -@group(1) @binding(1) var uBlendSettigs : BlendSettigs; +@group(1) @binding(1) var uBlendSettings : BlendSettings; @group(2) @binding(0) var uRadialGradient : RadialGradient; @vertex @@ -299,7 +299,7 @@ fn fs_main(in: VertexOutput) -> @location(0) vec4f { } } - return vec4f(color.rgb, color.a * uBlendSettigs.opacity); + return vec4f(color.rgb, color.a * uBlendSettings.opacity); } )"; @@ -314,8 +314,8 @@ struct VertexInput { @location(1) texCoord: vec2f }; -// BlendSettigs -struct BlendSettigs { +// BlendSettings +struct BlendSettings { format : u32, // ColorSpace dummy0 : f32, dummy1 : f32, @@ -330,7 +330,7 @@ struct VertexOutput { @group(0) @binding(0) var uViewMat : mat4x4f; @group(1) @binding(0) var uModelMat : mat4x4f; -@group(1) @binding(1) var uBlendSettigs : BlendSettigs; +@group(1) @binding(1) var uBlendSettings : BlendSettings; @group(2) @binding(0) var uSampler : sampler; @group(2) @binding(1) var uTextureView : texture_2d; @@ -347,7 +347,7 @@ fn vs_main(in: VertexInput) -> VertexOutput { fn fs_main(in: VertexOutput) -> @location(0) vec4f { var color: vec4f = textureSample(uTextureView, uSampler, in.texCoord.xy); var result: vec4f = color; - var format: u32 = uBlendSettigs.format; + var format: u32 = uBlendSettings.format; if (format == 1u) { /* FMT_ARGB8888 */ result = color.bgra; } else if (format == 2u) { /* FMT_ABGR8888S */ @@ -355,7 +355,7 @@ fn fs_main(in: VertexOutput) -> @location(0) vec4f { } else if (format == 3u) { /* FMT_ARGB8888S */ result = vec4(color.bgr * color.a, color.a); } - return vec4f(result.rgb, result.a * uBlendSettigs.opacity); + return vec4f(result.rgb, result.a * uBlendSettings.opacity); }; )"; diff --git a/src/renderer/wg_engine/tvgWgShaderTypes.h b/src/renderer/wg_engine/tvgWgShaderTypes.h index cf28861c..5f156404 100644 --- a/src/renderer/wg_engine/tvgWgShaderTypes.h +++ b/src/renderer/wg_engine/tvgWgShaderTypes.h @@ -42,7 +42,7 @@ struct WgShaderTypeMat4x4f void update(size_t w, size_t h); }; -// struct BlendSettigs { +// struct BlendSettings { // format : u32, // ColorSpace // dummy0 : f32, // dummy1 : f32, @@ -87,8 +87,8 @@ struct WgShaderTypeLinearGradient { uint32_t nStops{}; uint32_t spread{}; - uint32_t dummy0{}; // allign with WGSL struct - uint32_t dummy1{}; // allign with WGSL struct + uint32_t dummy0{}; // align with WGSL struct + uint32_t dummy1{}; // align with WGSL struct float startPos[2]{}; float endPos[2]{}; float stopPoints[MAX_LINEAR_GRADIENT_STOPS]{}; @@ -114,8 +114,8 @@ struct WgShaderTypeRadialGradient { uint32_t nStops{}; uint32_t spread{}; - uint32_t dummy0{}; // allign with WGSL struct - uint32_t dummy1{}; // allign with WGSL struct + uint32_t dummy0{}; // align with WGSL struct + uint32_t dummy1{}; // align with WGSL struct float centerPos[2]{}; float radius[2]{}; float stopPoints[MAX_RADIAL_GRADIENT_STOPS]{}; diff --git a/src/savers/gif/tvgGifEncoder.cpp b/src/savers/gif/tvgGifEncoder.cpp index a3931eb8..8c53104c 100644 --- a/src/savers/gif/tvgGifEncoder.cpp +++ b/src/savers/gif/tvgGifEncoder.cpp @@ -326,7 +326,7 @@ void _palettizePixel(const uint8_t* nextFrame, uint8_t* outFrame, GifPalette* pP } -// Picks palette colors for the image using simple thresholding, no dithering +// Picks palette colors for the image using simple threshholding, no dithering static void _thresholdImage(GifWriter* writer, const uint8_t* lastFrame, const uint8_t* nextFrame, uint32_t width, uint32_t height, bool transparent) { auto outFrame = writer->oldImage; diff --git a/src/savers/tvg/tvgTvgSaver.cpp b/src/savers/tvg/tvgTvgSaver.cpp index cc68e489..90d6ffac 100644 --- a/src/savers/tvg/tvgTvgSaver.cpp +++ b/src/savers/tvg/tvgTvgSaver.cpp @@ -165,7 +165,7 @@ bool TvgSaver::saveEncoding(const std::string& path) memcpy(uncompressed, &uncompressedSize, TVG_HEADER_UNCOMPRESSED_SIZE); uncompressed += TVG_HEADER_UNCOMPRESSED_SIZE; - //Comprssed Size + //Compressed Size memcpy(uncompressed, &compressedSize, TVG_HEADER_COMPRESSED_SIZE); uncompressed += TVG_HEADER_COMPRESSED_SIZE; @@ -554,7 +554,7 @@ TvgBinCounter TvgSaver::serializeShape(const Shape* shape, const Matrix* pTransf cnt = writeTagProperty(TVG_TAG_SHAPE_FILLRULE, SIZE(TvgBinFlag), &flag); } - //the pre-transformation can't be applied in the case when the stroke is dashed or irregulary scaled + //the pre-transformation can't be applied in the case when the stroke is dashed or irregularly scaled bool preTransform = true; //stroke diff --git a/test/capi/capiPaint.cpp b/test/capi/capiPaint.cpp index 379e5ffe..b12da8fa 100644 --- a/test/capi/capiPaint.cpp +++ b/test/capi/capiPaint.cpp @@ -174,7 +174,7 @@ TEST_CASE("Paint Bounds", "[capiPaint]") REQUIRE(tvg_paint_del(paint) == TVG_RESULT_SUCCESS); } -TEST_CASE("Paint Dupliction", "[capiPaint]") +TEST_CASE("Paint Duplication", "[capiPaint]") { Tvg_Paint* paint = tvg_shape_new(); REQUIRE(paint); diff --git a/test/regression/settings_comparison.toml b/test/regression/settings_comparison.toml index fa2ab5c9..6ebdf9ab 100644 --- a/test/regression/settings_comparison.toml +++ b/test/regression/settings_comparison.toml @@ -9,14 +9,14 @@ px_size_of_generated_file = 400 ignore_conversion_step = false # Ignore step with conversion files from svg to png, just compare files ignore_similarity_checking_step = false # Useful to finding problems with generating files ignore_thorvg_not_supported_items = true # Thorvg not supports files with text, filters -max_difference = 5 # Bigger similiarity will show only broken files that are completelly different, looks that 0-100 is quite reasonable range +max_difference = 5 # Bigger similarity will show only broken files that are completely different, looks that 0-100 is quite reasonable range limit_files = 0 # Limit checked files, useful if you are just wanting to check how app works, 0 will remove limit of checked files remove_files_from_output_folder_at_start = true # Useful if you run app with different settings and you don't want to remove files one by one debug_show_always_output = false # Allows to find broken files return_error_when_finding_invalid_files = false # When finding invalid files(broken or problematic) app will close with status 1 remove_problematic_files_after_copying = false # Remove from output folder problematic svg files remove_broken_files_after_copying = false # Remove from output folder broken svg files -remove_ignored_files_after_copying = false # Removes not supported folders after copyting +remove_ignored_files_after_copying = false # Removes not supported folders after copying remove_generated_png_files_at_end = false # Remove all png from output folder at end lottie_path = "" lottie_broken_files_path = "" diff --git a/test/regression/settings_crash_leak.toml b/test/regression/settings_crash_leak.toml index f29e1295..836106da 100644 --- a/test/regression/settings_crash_leak.toml +++ b/test/regression/settings_crash_leak.toml @@ -9,14 +9,14 @@ px_size_of_generated_file = 400 ignore_conversion_step = false # Ignore step with conversion files from svg to png, just compare files ignore_similarity_checking_step = false # Useful to finding problems with generating files ignore_thorvg_not_supported_items = true # Thorvg not supports files with text, filters -max_difference = 5 # Bigger similiarity will show only broken files that are completelly different, looks that 0-100 is quite reasonable range +max_difference = 5 # Bigger similarity will show only broken files that are completely different, looks that 0-100 is quite reasonable range limit_files = 0 # Limit checked files, useful if you are just wanting to check how app works, 0 will remove limit of checked files remove_files_from_output_folder_at_start = true # Useful if you run app with different settings and you don't want to remove files one by one debug_show_always_output = false # Allows to find broken files return_error_when_finding_invalid_files = false # When finding invalid files(broken or problematic) app will close with status 1 remove_problematic_files_after_copying = false # Remove from output folder problematic svg files remove_broken_files_after_copying = false # Remove from output folder broken svg files -remove_ignored_files_after_copying = false # Removes not supported folders after copyting +remove_ignored_files_after_copying = false # Removes not supported folders after copying remove_generated_png_files_at_end = false # Remove all png from output folder at end lottie_path = "" lottie_broken_files_path = "" diff --git a/test/testFill.cpp b/test/testFill.cpp index 260fc280..1ffa3980 100644 --- a/test/testFill.cpp +++ b/test/testFill.cpp @@ -173,7 +173,7 @@ TEST_CASE("Radial Filling", "[tvgFill]") REQUIRE(radius == 0.0f); } -TEST_CASE("Linear Filling Dupliction", "[tvgFill]") +TEST_CASE("Linear Filling Duplication", "[tvgFill]") { auto fill = LinearGradient::gen(); REQUIRE(fill); @@ -228,7 +228,7 @@ TEST_CASE("Linear Filling Dupliction", "[tvgFill]") REQUIRE(mDup.e33 == Approx(m.e33).margin(0.000001)); } -TEST_CASE("Radial Filling Dupliction", "[tvgFill]") +TEST_CASE("Radial Filling Duplication", "[tvgFill]") { auto fill = RadialGradient::gen(); REQUIRE(fill); diff --git a/test/testShape.cpp b/test/testShape.cpp index 05943b0b..ad0cb29e 100644 --- a/test/testShape.cpp +++ b/test/testShape.cpp @@ -89,7 +89,7 @@ TEST_CASE("Appending Shapes", "[tvgShape]") REQUIRE(shape->appendArc(-99999999.0f, 99999999.0f, -99999999.0f, 99999999.0f, 400, true) == Result::Success); } -TEST_CASE("Appending Pathes", "[tvgShape]") +TEST_CASE("Appending Paths", "[tvgShape]") { auto shape = Shape::gen(); REQUIRE(shape); diff --git a/test/testSwCanvas.cpp b/test/testSwCanvas.cpp index 77a24e72..1122e971 100644 --- a/test/testSwCanvas.cpp +++ b/test/testSwCanvas.cpp @@ -286,7 +286,7 @@ TEST_CASE("Synchronized Drawing", "[tvgSwCanvas]") REQUIRE(Initializer::term() == Result::Success); } -TEST_CASE("Asynchronized Drawing", "[tvgSwCanvas]") +TEST_CASE("Asynchronous Drawing", "[tvgSwCanvas]") { //Use multi-threading REQUIRE(Initializer::init(2) == Result::Success); diff --git a/tools/svg2png/lodepng.cpp b/tools/svg2png/lodepng.cpp index ee8cf33d..3a29f6d3 100644 --- a/tools/svg2png/lodepng.cpp +++ b/tools/svg2png/lodepng.cpp @@ -1823,7 +1823,7 @@ static unsigned deflateDynamic(LodePNGBitWriter* writer, Hash* hash, size_t datasize = dataend - datapos; /* - If we could call "bitlen_cl" the the code length code lengths ("clcl"), that is the bit lengths of codes to represent + If we could call "bitlen_cl" the code length code lengths ("clcl"), that is the bit lengths of codes to represent tree_cl in CLCL_ORDER, then due to the huffman compression of huffman tree representations ("two levels"), there are some analogies: bitlen_lld is to tree_cl what data is to tree_ll and tree_d. diff --git a/tools/svg2png/lodepng.h b/tools/svg2png/lodepng.h index a386459f..87eedd24 100644 --- a/tools/svg2png/lodepng.h +++ b/tools/svg2png/lodepng.h @@ -880,7 +880,7 @@ unsigned lodepng_chunk_append(unsigned char** out, size_t* outsize, const unsign Appends new chunk to out. The chunk to append is given by giving its length, type and data separately. The type is a 4-letter string. The out variable and outsize are updated to reflect the new reallocated buffer. -Returne error code (0 if it went ok) +Return error code (0 if it went ok) */ unsigned lodepng_chunk_create(unsigned char** out, size_t* outsize, unsigned length, const char* type, const unsigned char* data); @@ -1737,7 +1737,7 @@ state.decoder.remember_unknown_chunks: whether to read in unknown chunks state.info_raw.colortype: desired color type for decoded image state.info_raw.bitdepth: desired bit depth for decoded image state.info_raw....: more color settings, see struct LodePNGColorMode -state.info_png....: no settings for decoder but ouput, see struct LodePNGInfo +state.info_png....: no settings for decoder but output, see struct LodePNGInfo For encoding:
    vertexThe three vertices that make up the polygon