aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Romanko <me@blankhex.com>2025-06-22 18:48:26 +0300
committerMikhail Romanko <me@blankhex.com>2025-06-22 18:48:26 +0300
commit77470adbcdecb14934ec56734be1fcd9b5c42304 (patch)
tree06b593285cb65f67443d036df7dbce5d6b88350d
parent6ff689696949aeac13fe7059a30e4fb999c876e0 (diff)
downloadbhlib-77470adbcdecb14934ec56734be1fcd9b5c42304.tar.gz
Remove trailing whitespace
-rw-r--r--Makefile8
-rw-r--r--Makefile.gnu2
-rw-r--r--Makefile.mingw2
-rw-r--r--Makefile.osx2
-rw-r--r--doc/Manual/en/BH_Algo.pod24
-rw-r--r--doc/Manual/en/BH_Args.pod8
-rw-r--r--doc/Manual/en/BH_Box2f.pod2
-rw-r--r--doc/Manual/en/BH_Box3f.pod6
-rw-r--r--doc/Manual/en/BH_Hashmap.pod8
-rw-r--r--doc/Manual/en/BH_Line.pod8
-rw-r--r--doc/Manual/en/BH_Mat3f.pod4
-rw-r--r--doc/Manual/en/BH_Mat4f.pod8
-rw-r--r--doc/Manual/en/BH_Math.pod6
-rw-r--r--doc/Manual/en/BH_Plane.pod10
-rw-r--r--doc/Manual/en/BH_Quat.pod16
-rw-r--r--doc/Manual/en/BH_Queue.pod12
-rw-r--r--doc/Manual/en/BH_Ray2f.pod10
-rw-r--r--doc/Manual/en/BH_Ray3f.pod10
-rw-r--r--doc/Manual/en/BH_String.pod70
-rw-r--r--doc/Manual/en/BH_Thread.pod10
-rw-r--r--doc/Manual/en/BH_Unicode.pod16
-rw-r--r--doc/Manual/en/BH_Util.pod20
-rw-r--r--doc/Manual/en/BH_Vec2f.pod4
-rw-r--r--doc/Manual/en/BH_Vec2i.pod2
-rw-r--r--doc/Manual/en/BH_Vec3f.pod2
-rw-r--r--doc/Manual/en/BH_Vec3i.pod6
-rw-r--r--doc/Manual/en/BH_Vec4f.pod6
-rw-r--r--doc/Manual/en/BH_Vec4i.pod4
-rw-r--r--doc/Manual/ru/BH_Algo.pod8
-rw-r--r--doc/Manual/ru/BH_Box2f.pod8
-rw-r--r--doc/Manual/ru/BH_Box3f.pod8
-rw-r--r--doc/Manual/ru/BH_Hashmap.pod10
-rw-r--r--doc/Manual/ru/BH_Line.pod4
-rw-r--r--doc/Manual/ru/BH_Mat3f.pod2
-rw-r--r--doc/Manual/ru/BH_Mat4f.pod4
-rw-r--r--doc/Manual/ru/BH_Math.pod6
-rw-r--r--doc/Manual/ru/BH_Plane.pod2
-rw-r--r--doc/Manual/ru/BH_Quat.pod8
-rw-r--r--doc/Manual/ru/BH_Queue.pod10
-rw-r--r--doc/Manual/ru/BH_Ray2f.pod6
-rw-r--r--doc/Manual/ru/BH_Ray3f.pod8
-rw-r--r--doc/Manual/ru/BH_String.pod56
-rw-r--r--doc/Manual/ru/BH_Thread.pod6
-rw-r--r--doc/Manual/ru/BH_Util.pod30
-rw-r--r--doc/Manual/ru/BH_Vec2i.pod4
-rw-r--r--doc/Manual/ru/BH_Vec3i.pod2
-rw-r--r--doc/Manual/ru/BH_Vec4f.pod2
-rw-r--r--doc/Manual/ru/BH_Vec4i.pod4
-rw-r--r--src/Platform/Posix/Semaphore.c2
49 files changed, 238 insertions, 238 deletions
diff --git a/Makefile b/Makefile
index 48ccd3e..b918707 100644
--- a/Makefile
+++ b/Makefile
@@ -12,13 +12,13 @@ endif
# Targets
default:
- $(MAKE) -f Makefile.$(MAKEFILE)
+ $(MAKE) -f Makefile.$(MAKEFILE)
all:
- $(MAKE) -f Makefile.$(MAKEFILE) all
+ $(MAKE) -f Makefile.$(MAKEFILE) all
dist:
- $(MAKE) -f Makefile.$(MAKEFILE) dist
+ $(MAKE) -f Makefile.$(MAKEFILE) dist
clean:
- $(MAKE) -f Makefile.$(MAKEFILE) clean
+ $(MAKE) -f Makefile.$(MAKEFILE) clean
diff --git a/Makefile.gnu b/Makefile.gnu
index d8b039b..42547f6 100644
--- a/Makefile.gnu
+++ b/Makefile.gnu
@@ -1,4 +1,4 @@
-# GNU makefile
+# GNU makefile
# User configuration
diff --git a/Makefile.mingw b/Makefile.mingw
index 3345e77..836c423 100644
--- a/Makefile.mingw
+++ b/Makefile.mingw
@@ -1,4 +1,4 @@
-# GNU makefile
+# GNU makefile
# User configuration
diff --git a/Makefile.osx b/Makefile.osx
index 6447a07..5364274 100644
--- a/Makefile.osx
+++ b/Makefile.osx
@@ -1,4 +1,4 @@
-# GNU makefile
+# GNU makefile
# User configuration
diff --git a/doc/Manual/en/BH_Algo.pod b/doc/Manual/en/BH_Algo.pod
index 109fda4..24ab0b7 100644
--- a/doc/Manual/en/BH_Algo.pod
+++ b/doc/Manual/en/BH_Algo.pod
@@ -27,7 +27,7 @@ The BH_Algo library provides a set of algorithms for working with data:
=over
-=item *
+=item *
Value swapping (L</BH_Swap>)
@@ -35,18 +35,18 @@ Value swapping (L</BH_Swap>)
Array partitioning (L</BH_Partition>)
-=item *
+=item *
Sorting (L</BH_Sort>)
-=item *
+=item *
Heap operations (L</BH_HeapMake>, L</BH_HeapRemove>, L</BH_HeapInsert>,
L</BH_HeapReplace>)
=back
-These algorithms allow you to efficiently perform various operations on arrays
+These algorithms allow you to efficiently perform various operations on arrays
and other data structures.
@@ -72,7 +72,7 @@ I<size>.
BH_EqualCallback equal);
Partitions the array of elements I<array> (with the number of elements I<size>
-and the size of the element I<element>) into two groups relative to the pivot
+and the size of the element I<element>) into two groups relative to the pivot
element I<pivot>.
The I<equal> parameter takes a pointer to a function that compares two elements.
@@ -90,7 +90,7 @@ the second group.
size_t element,
BH_EqualCallback equal);
-Sorts the array of elements I<array> (with the number of elements I<size> and
+Sorts the array of elements I<array> (with the number of elements I<size> and
the size of the element I<element>).
The I<equal> parameter takes a pointer to a function that compares two elements.
@@ -103,7 +103,7 @@ The I<equal> parameter takes a pointer to a function that compares two elements.
size_t element,
BH_EqualCallback equal);
-Creates a heap in the array I<array> (with the number of elements I<size> and
+Creates a heap in the array I<array> (with the number of elements I<size> and
the size of the element I<element>).
The I<equal> parameter takes a pointer to a function that compares two elements.
@@ -116,7 +116,7 @@ The I<equal> parameter takes a pointer to a function that compares two elements.
size_t element,
BH_EqualCallback equal);
-Extracts the top element of the heap in the array I<array> (with the number of
+Extracts the top element of the heap in the array I<array> (with the number of
elements I<size> and the size of the element I<element>).
The I<equal> parameter takes a pointer to a function that compares two elements.
@@ -133,7 +133,7 @@ The I<equal> parameter takes a pointer to a function that compares two elements.
Adds the element I<value> to the heap in the array I<array> (with the number of
elements I<size> and the size of the element I<element>).
-If I<value> is NULL, it is assumed that the new value is at the end of the
+If I<value> is NULL, it is assumed that the new value is at the end of the
array.
The I<equal> parameter takes a pointer to a function that compares two elements.
@@ -147,11 +147,11 @@ The I<equal> parameter takes a pointer to a function that compares two elements.
size_t element,
BH_EqualCallback equal);
-Extracts the top element of the heap in the array I<array> (with the number of
-elements I<size> and the size of the element I<element>) and adds the element
+Extracts the top element of the heap in the array I<array> (with the number of
+elements I<size> and the size of the element I<element>) and adds the element
I<value> to it.
-If I<value> is NULL, it is assumed that the new value is at the end of the
+If I<value> is NULL, it is assumed that the new value is at the end of the
array.
The I<equal> parameter takes a pointer to a function that compares two elements.
diff --git a/doc/Manual/en/BH_Args.pod b/doc/Manual/en/BH_Args.pod
index 8375358..cd3d633 100644
--- a/doc/Manual/en/BH_Args.pod
+++ b/doc/Manual/en/BH_Args.pod
@@ -61,8 +61,8 @@ BH_Args - command line argument processing
=head1 DESCRIPTION
-The BH_Args library is designed for convenient handling of command line
-arguments in programs. It allows you to define a set of options that can be
+The BH_Args library is designed for convenient handling of command line
+arguments in programs. It allows you to define a set of options that can be
specified when starting a program and provides mechanisms for their analysis and
processing.
@@ -137,7 +137,7 @@ If the I<padding> parameter is 0, the default value (30) will be used.
The I<key> field contains the option identifier. If the I<key> identifier is a
printable ASCII character, it will be used as a short argument.
-The optional I<name> field contains a string that will be used as a long
+The optional I<name> field contains a string that will be used as a long
argument.
The I<flags> field contains argument flags. A combination of the following flags
@@ -155,7 +155,7 @@ The argument value is optional.
=back
-The I<description> field contains a string that will be used when displaying
+The I<description> field contains a string that will be used when displaying
help information using the L</BH_ArgsHelp> function.
diff --git a/doc/Manual/en/BH_Box2f.pod b/doc/Manual/en/BH_Box2f.pod
index 6b24e36..6f5da8e 100644
--- a/doc/Manual/en/BH_Box2f.pod
+++ b/doc/Manual/en/BH_Box2f.pod
@@ -16,7 +16,7 @@ BH_Box2f - two-dimensional bounding box
=head1 DESCRIPTION
The BH_Box2f module provides functions for working with two-dimensional bounding
-boxes. It includes operations for union, intersection, checking if a point is
+boxes. It includes operations for union, intersection, checking if a point is
inside a rectangle, and calculating the bounding box for a set of points.
diff --git a/doc/Manual/en/BH_Box3f.pod b/doc/Manual/en/BH_Box3f.pod
index 2689513..1911195 100644
--- a/doc/Manual/en/BH_Box3f.pod
+++ b/doc/Manual/en/BH_Box3f.pod
@@ -9,14 +9,14 @@ BH_Box3f - three-dimensional bounding box
=head1 SYNTAX
#include <BH/Math/Box3f.h>
-
+
cc prog.c -o prog -lbh
=head1 DESCRIPTION
-The BH_Box3f module provides functions for working with three-dimensional
-bounding boxes. It includes operations for union, intersection, checking if a
+The BH_Box3f module provides functions for working with three-dimensional
+bounding boxes. It includes operations for union, intersection, checking if a
point is inside a box, and calculating the bounding box for a set of points.
diff --git a/doc/Manual/en/BH_Hashmap.pod b/doc/Manual/en/BH_Hashmap.pod
index 1688a2a..5e8545c 100644
--- a/doc/Manual/en/BH_Hashmap.pod
+++ b/doc/Manual/en/BH_Hashmap.pod
@@ -9,14 +9,14 @@ BH_Hashmap - unordered associative array
=head1 SYNTAX
#include <BH/Hashmap.h>
-
+
cc prog.c -o prog -lbh
=head1 DESCRIPTION
-The BH_Hashmap library provides an implementation of an unordered associative
-array based on a hash table. It allows you to store and retrieve data by key
+The BH_Hashmap library provides an implementation of an unordered associative
+array based on a hash table. It allows you to store and retrieve data by key
efficiently.
@@ -142,7 +142,7 @@ Returns the maximum load factor.
Sets the maximum load factor I<factor>.
-The new value of the maximum load factor will be applied on the next call to
+The new value of the maximum load factor will be applied on the next call to
L</BH_HashmapInsert> or L</BH_HashmapReserve>.
diff --git a/doc/Manual/en/BH_Line.pod b/doc/Manual/en/BH_Line.pod
index f8c7938..903c3bf 100644
--- a/doc/Manual/en/BH_Line.pod
+++ b/doc/Manual/en/BH_Line.pod
@@ -15,9 +15,9 @@ BH_Line - a straight line on a plane.
=head1 DESCRIPTION
-The BH_Line module provides functions for working with straight lines on a
-plane. It allows you to calculate the coefficients of a line based on two
-points, find the distance from a point to a line, and determine the closest
+The BH_Line module provides functions for working with straight lines on a
+plane. It allows you to calculate the coefficients of a line based on two
+points, find the distance from a point to a line, and determine the closest
point on the line to a given point.
@@ -30,7 +30,7 @@ point on the line to a given point.
const float b[2],
float out[3]);
-Calculates the coefficients of a line on a plane based on two points I<a> and
+Calculates the coefficients of a line on a plane based on two points I<a> and
I<b>.
The I<out> parameter describes the resulting line on the plane.
diff --git a/doc/Manual/en/BH_Mat3f.pod b/doc/Manual/en/BH_Mat3f.pod
index 67b35cb..918f8a3 100644
--- a/doc/Manual/en/BH_Mat3f.pod
+++ b/doc/Manual/en/BH_Mat3f.pod
@@ -9,13 +9,13 @@ BH_Mat3f - a real 3x3 matrix
=head1 SYNTAX
#include <BH/Math/Mat3f.h>
-
+
cc prog.c -o prog -lbh
=head1 DESCRIPTION
-The BH_Mat3f module provides a set of functions for working with real 3x3
+The BH_Mat3f module provides a set of functions for working with real 3x3
matrices.
diff --git a/doc/Manual/en/BH_Mat4f.pod b/doc/Manual/en/BH_Mat4f.pod
index f30c76a..7a4d651 100644
--- a/doc/Manual/en/BH_Mat4f.pod
+++ b/doc/Manual/en/BH_Mat4f.pod
@@ -9,15 +9,15 @@ BH_Mat4f - real 4x4 matrix
=head1 SYNTAX
#include <BH/Math/Mat4f.h>
-
+
cc prog.c -o prog -lbh
=head1 DESCRIPTION
-The BH_Mat4f module provides a set of functions for working with real 4x4
-matrices. These functions allow you to perform various operations on matrices,
-such as addition, subtraction, multiplication, transposition, determinant
+The BH_Mat4f module provides a set of functions for working with real 4x4
+matrices. These functions allow you to perform various operations on matrices,
+such as addition, subtraction, multiplication, transposition, determinant
calculation, and others.
diff --git a/doc/Manual/en/BH_Math.pod b/doc/Manual/en/BH_Math.pod
index f1d6d8e..680cc34 100644
--- a/doc/Manual/en/BH_Math.pod
+++ b/doc/Manual/en/BH_Math.pod
@@ -15,7 +15,7 @@ BH_Math - Mathematical functions
=head1 DESCRIPTION
-The BH_Math library provides a set of mathematical functions for various
+The BH_Math library provides a set of mathematical functions for various
calculations.
@@ -25,7 +25,7 @@ calculations.
=head2 BH_Lerpf
float BH_Lerpf(float a,
- float b,
+ float b,
float t);
Interpolates the value between I<a> and I<b> with a given coefficient I<t>.
@@ -39,7 +39,7 @@ Interpolates the value between I<a> and I<b> with a given coefficient I<t>.
const float point[3],
float out[3]);
-Calculates the barycentric coordinates of the I<point> relative to the
+Calculates the barycentric coordinates of the I<point> relative to the
triangle defined by points I<a>, I<b>, I<c>.
The I<out> parameter describes the resulting vector.
diff --git a/doc/Manual/en/BH_Plane.pod b/doc/Manual/en/BH_Plane.pod
index 6943e86..b8c468a 100644
--- a/doc/Manual/en/BH_Plane.pod
+++ b/doc/Manual/en/BH_Plane.pod
@@ -9,15 +9,15 @@ BH_Plane - Plane in space
=head1 SYNTAX
#include <BH/Math.h>
-
+
cc prog.c -o prog -lbh
-
+
=head1 DESCRIPTION
-The BH_Plane module provides functions for working with planes in
-three-dimensional space. It allows you to calculate the coefficients of a plane
-from three points, determine the distance from a point to a plane, and find the
+The BH_Plane module provides functions for working with planes in
+three-dimensional space. It allows you to calculate the coefficients of a plane
+from three points, determine the distance from a point to a plane, and find the
closest point on the plane to a given point.
diff --git a/doc/Manual/en/BH_Quat.pod b/doc/Manual/en/BH_Quat.pod
index 7e4d322..34ba268 100644
--- a/doc/Manual/en/BH_Quat.pod
+++ b/doc/Manual/en/BH_Quat.pod
@@ -9,16 +9,16 @@ BH_Quat - Quaternion
=head1 SYNTAX
#include <BH/Math/Quat.h>
-
+
cc prog.c -o prog -lbh
=head1 DESCRIPTION
-This module provides a set of functions for working with quaternions.
-Quaternions are used to represent rotations in three-dimensional space and have
-advantages over other methods, such as rotation matrices or Euler angles, in
-terms of stability against error accumulation during multiple rotation
+This module provides a set of functions for working with quaternions.
+Quaternions are used to represent rotations in three-dimensional space and have
+advantages over other methods, such as rotation matrices or Euler angles, in
+terms of stability against error accumulation during multiple rotation
operations.
@@ -98,7 +98,7 @@ The parameter I<out> describes the resulting quaternion.
#define BH_Quat4fLerp(a, b, t, out) \
BH_Vec4fLerp(a, b, t, out)
-Performs linear interpolation between two quaternions I<a> and I<b> with
+Performs linear interpolation between two quaternions I<a> and I<b> with
parameter I<t>.
The parameter I<out> describes the resulting quaternion.
@@ -149,7 +149,7 @@ The parameter I<out> describes the resulting quaternion.
float t,
float out[4]);
-Performs spherical linear interpolation between two quaternions I<a> and I<b>
+Performs spherical linear interpolation between two quaternions I<a> and I<b>
with parameter I<t>.
The parameter I<out> describes the resulting quaternion.
@@ -176,7 +176,7 @@ The parameter I<out> describes the resulting quaternion.
float angle,
float out[4]);
-Calculates the quaternion from rotation around the I<axis> with the given
+Calculates the quaternion from rotation around the I<axis> with the given
I<angle>.
The parameter I<out> describes the resulting quaternion.
diff --git a/doc/Manual/en/BH_Queue.pod b/doc/Manual/en/BH_Queue.pod
index 958bf88..38b8f0c 100644
--- a/doc/Manual/en/BH_Queue.pod
+++ b/doc/Manual/en/BH_Queue.pod
@@ -17,7 +17,7 @@ BH_Queue - queue container
The BH_Queue module provides an implementation of a queue container that allows
adding elements to the end and removing them from the beginning. The queue is
-based on a dynamic array, which ensures efficient memory usage and fast access
+based on a dynamic array, which ensures efficient memory usage and fast access
to elements.
@@ -30,7 +30,7 @@ to elements.
Creates a queue.
-If successful, the function returns a pointer to a new BH_Queue object, or NULL
+If successful, the function returns a pointer to a new BH_Queue object, or NULL
in case of an error.
@@ -50,7 +50,7 @@ Clears the queue.
=head2 BH_QueueReserve
- int BH_QueueReserve(BH_Queue *queue,
+ int BH_QueueReserve(BH_Queue *queue,
size_t size);
Reserves space for at least I<size> elements.
@@ -62,7 +62,7 @@ If successful, the function returns 0; otherwise, it returns an error code.
=head2 BH_QueueInsert
- int BH_QueueInsert(BH_Queue *queue,
+ int BH_QueueInsert(BH_Queue *queue,
void *value);
Inserts an element I<value>.
@@ -83,7 +83,7 @@ Calling this function invalidates existing iterators.
=head2 BH_QueueFront
- int BH_QueueFront(BH_Queue *queue,
+ int BH_QueueFront(BH_Queue *queue,
void **value);
Returns the first element of the queue.
@@ -116,7 +116,7 @@ Returns the capacity.
=head2 BH_QueueIterNext
- void *BH_QueueIterNext(BH_Queue *queue,
+ void *BH_QueueIterNext(BH_Queue *queue,
void *iter);
Returns an iterator to the next element.
diff --git a/doc/Manual/en/BH_Ray2f.pod b/doc/Manual/en/BH_Ray2f.pod
index c116a0a..673b047 100644
--- a/doc/Manual/en/BH_Ray2f.pod
+++ b/doc/Manual/en/BH_Ray2f.pod
@@ -9,14 +9,14 @@ BH_Ray2f, BH_Segment2f - Ray/segment on a plane
=head1 SYNTAX
#include <BH/Math/Ray2f.h>
-
+
cc prog.c -o prog -lbh
=head1 DESCRIPTION
This module provides functions for working with rays and segments on a plane.
-It includes functions for checking intersections between rays, segments, lines,
+It includes functions for checking intersections between rays, segments, lines,
and bounding rectangles.
@@ -59,10 +59,10 @@ The parameters I<aStart> and I<aDirection> describe the first ray.
The parameters I<bStart> and I<bDirection> describe the second ray.
-The parameter I<time1> describes the resulting intersection time of the first
+The parameter I<time1> describes the resulting intersection time of the first
ray.
-The parameter I<time2> describes the resulting intersection time of the second
+The parameter I<time2> describes the resulting intersection time of the second
ray.
If successful, the function returns 0, otherwise it returns an error code.
@@ -148,7 +148,7 @@ The parameters I<aStart> and I<aEnd> describe the first segment.
The parameters I<bStart> and I<bEnd> describe the second segment.
-The parameter I<t> describes the resulting intersection time of the first
+The parameter I<t> describes the resulting intersection time of the first
segment.
The parameter I<out> describes the resulting intersection point.
diff --git a/doc/Manual/en/BH_Ray3f.pod b/doc/Manual/en/BH_Ray3f.pod
index 3f7f8ef..ba9380b 100644
--- a/doc/Manual/en/BH_Ray3f.pod
+++ b/doc/Manual/en/BH_Ray3f.pod
@@ -9,14 +9,14 @@ BH_Ray3f, BH_Segment3f - ray/segment in space
=head1 SYNTAX
#include <BH/Math/Ray3f.h>
-
+
cc prog.c -o prog -lbh
=head1 DESCRIPTION
-This module provides functions for working with rays and segments in
-three-dimensional space. It includes methods for checking intersections of rays
+This module provides functions for working with rays and segments in
+three-dimensional space. It includes methods for checking intersections of rays
and segments with planes, triangles, and bounding boxes.
@@ -126,7 +126,7 @@ The parameters I<aStart> and I<aDirection> describe the ray.
The parameters I<bMin> and I<bMax> describe the bounding box.
-The parameter I<t> describes the resulting time of the first segment's
+The parameter I<t> describes the resulting time of the first segment's
intersection.
The parameter I<out> describes the resulting point of intersection.
@@ -149,7 +149,7 @@ The parameters I<aStart> and I<aEnd> describe the segment.
The parameters I<bMin> and I<bMax> describe the bounding box.
-The parameter I<t> describes the resulting time of the first segment's
+The parameter I<t> describes the resulting time of the first segment's
intersection.
The parameter I<out> describes the resulting point of intersection.
diff --git a/doc/Manual/en/BH_String.pod b/doc/Manual/en/BH_String.pod
index 39414a2..b9d78d1 100644
--- a/doc/Manual/en/BH_String.pod
+++ b/doc/Manual/en/BH_String.pod
@@ -15,18 +15,18 @@ BH_String - Working with strings
=head1 DESCRIPTION
-The BH_String library provides a set of functions for working with strings,
+The BH_String library provides a set of functions for working with strings,
including converting numbers to strings and back.
=head1 DEFINING THE BASE
-The functions of the I<StringToInt> family have an algorithm for determining the
-base of a number by string prefixes:
+The functions of the I<StringToInt> family have an algorithm for determining
+the base of a number by string prefixes:
=over
-=item *
+=item *
If the prefix I<0b>, then base 2
@@ -61,7 +61,7 @@ Otherwise, base 10.
Formats a real number I<value> into a null-terminated string I<string>
(with a length limit of I<size>).
-The I<format> parameter specifies the format for converting a number to a
+The I<format> parameter specifies the format for converting a number to a
string. Acceptable formats:
=over
@@ -80,9 +80,9 @@ Fixed or scientific format, depending on which one is shorter.
=back
-The I<precision> parameter sets the precision of converting a number to a
-string. If the accuracy value is negative, the conversion will be performed with
-the minimum required accuracy so that the reverse conversion results in the
+The I<precision> parameter sets the precision of converting a number to a
+string. If the accuracy value is negative, the conversion will be performed with
+the minimum required accuracy so that the reverse conversion results in the
original number.
The optional parameter I<actual> returns the length of the recorded string.
@@ -100,8 +100,8 @@ If successful, it returns 0 or an error code.
int base,
size_t *actual);
-Formats an 8-bit signed integer I<value> into a null-terminated string
-I<string> (with a length limit of I<size>).
+Formats an 8-bit signed integer I<value> into a null-terminated string
+I<string> (with a length limit of I<size>).
The I<base> parameter sets the base for the conversion.
@@ -118,8 +118,8 @@ If successful, it returns 0 or an error code.
int base,
size_t *actual);
-Formats a 16-bit signed integer I<value> into a null-terminated string I<string>
-(with a length limit of I<size>).
+Formats a 16-bit signed integer I<value> into a null-terminated string I<string>
+(with a length limit of I<size>).
The I<base> parameter sets the base for the conversion.
@@ -137,7 +137,7 @@ If successful, it returns 0 or an error code.
size_t *actual);
Formats a 32-bit signed integer I<value> into a null-terminated string I<string>
-(with a length limit of I<size>).
+(with a length limit of I<size>).
The I<base> parameter sets the base for the conversion.
@@ -155,7 +155,7 @@ If successful, it returns 0 or an error code.
size_t *actual);
Formats a 64-bit signed integer I<value> into a null-terminated string I<string>
-(with a length limit of I<size>).
+(with a length limit of I<size>).
The I<base> parameter sets the base for the conversion.
@@ -172,8 +172,8 @@ If successful, it returns 0 or an error code.
int base,
size_t *actual);
-Formats an 8-bit unsigned integer I<value> into a null-terminated string
-I<string> (with a length limit of I<size>).
+Formats an 8-bit unsigned integer I<value> into a null-terminated string
+I<string> (with a length limit of I<size>).
The I<base> parameter sets the base for the conversion.
@@ -190,8 +190,8 @@ If successful, it returns 0 or an error code.
int base,
size_t *actual);
-Formats a 16-bit unsigned integer I<value> into a null-terminated string
-I<string> (with a length limit of I<size>).
+Formats a 16-bit unsigned integer I<value> into a null-terminated string
+I<string> (with a length limit of I<size>).
The I<base> parameter sets the base for the conversion.
@@ -208,8 +208,8 @@ If successful, it returns 0 or an error code.
int base,
size_t *actual);
-Formats a 32-bit unsigned integer I<value> into a null-terminated string
-I<string> (with a length limit of I<size>).
+Formats a 32-bit unsigned integer I<value> into a null-terminated string
+I<string> (with a length limit of I<size>).
The I<base> parameter sets the base for the conversion.
@@ -226,8 +226,8 @@ If successful, it returns 0 or an error code.
int base,
size_t *actual);
-Formats a 64-bit unsigned integer I<value> into a null-terminated string
-I<string> (with a length limit of I<size>).
+Formats a 64-bit unsigned integer I<value> into a null-terminated string
+I<string> (with a length limit of I<size>).
The I<base> parameter sets the base for the conversion.
@@ -243,8 +243,8 @@ If successful, it returns 0 or an error code.
Converts the string I<string> to a real number.
-The optional parameter I<size> returns the number of characters read from the
-string.
+The optional parameter I<size> returns the number of characters read from the
+string.
If successful, it returns the converted number or 0.
@@ -257,8 +257,8 @@ If successful, it returns the converted number or 0.
Converts the string I<string> to an 8-bit signed integer.
-The optional parameter I<size> returns the number of characters read from the
-string.
+The optional parameter I<size> returns the number of characters read from the
+string.
The optional parameter I<base> specifies the base of the number.
@@ -273,8 +273,8 @@ If successful, it returns the converted number or 0.
Converts the string I<string> to a signed 16-bit integer.
-The optional parameter I<size> returns the number of characters read from the
-string.
+The optional parameter I<size> returns the number of characters read from the
+string.
The optional parameter I<base> specifies the base of the number.
@@ -289,8 +289,8 @@ If successful, it returns the converted number or 0.
Converts the string I<string> to a signed 32-bit integer.
-The optional parameter I<size> returns the number of characters read from the
-string.
+The optional parameter I<size> returns the number of characters read from the
+string.
The optional parameter I<base> specifies the base of the number.
@@ -306,7 +306,7 @@ If successful, it returns the converted number or 0.
Converts the string I<string> to a signed 64-bit integer.
The optional parameter I<size> returns the number of characters read from the
-string.
+string.
The optional parameter I<base> specifies the base of the number.
@@ -322,7 +322,7 @@ If successful, it returns the converted number or 0.
Converts the string I<string> to an unsigned 8-bit integer.
The optional parameter I<size> returns the number of characters read from the
-string.
+string.
The optional parameter I<base> specifies the base of the number.
@@ -338,7 +338,7 @@ If successful, it returns the converted number or 0.
Converts the string I<string> to an unsigned 16-bit integer.
The optional parameter I<size> returns the number of characters read from the
-string.
+string.
The optional parameter I<base> specifies the base of the number.
@@ -354,7 +354,7 @@ If successful, it returns the converted number or 0.
Converts the string I<string> to an unsigned 32-bit integer.
The optional parameter I<size> returns the number of characters read from the
-string.
+string.
The optional parameter I<base> specifies the base of the number.
@@ -370,7 +370,7 @@ If successful, it returns the converted number or 0.
Converts the string I<string> to an unsigned 64-bit integer.
The optional parameter I<size> returns the number of characters read from the
-string.
+string.
The optional parameter I<base> specifies the base of the number.
diff --git a/doc/Manual/en/BH_Thread.pod b/doc/Manual/en/BH_Thread.pod
index 0780965..1be67b6 100644
--- a/doc/Manual/en/BH_Thread.pod
+++ b/doc/Manual/en/BH_Thread.pod
@@ -9,14 +9,14 @@ BH_Thread - multithreading and synchronization primitives
=head1 SYNTAX
#include <BH/Thread.h>
-
+
cc prog.c -o prog -lbh
=head1 DESCRIPTION
-The BH_Thread library provides a set of functions for working with
-multithreading and thread synchronization. It includes functions for creating
+The BH_Thread library provides a set of functions for working with
+multithreading and thread synchronization. It includes functions for creating
and managing threads, working with mutexes, semaphores, condition variables, and
spinlocks.
@@ -194,7 +194,7 @@ a change in the condition.
In some situations, the signal of a condition change may be false.
-The I<mutex> parameter specifies the mutex used in conjunction with the
+The I<mutex> parameter specifies the mutex used in conjunction with the
condition variable.
Returns 0 on success, otherwise an error code.
@@ -211,7 +211,7 @@ signals a change in the condition within a specified time I<timeout>.
In some situations, the signal of a condition change may be false.
-The I<mutex> parameter specifies the mutex used in conjunction with the
+The I<mutex> parameter specifies the mutex used in conjunction with the
condition variable.
The I<timeout> parameter specifies the waiting time in milliseconds.
diff --git a/doc/Manual/en/BH_Unicode.pod b/doc/Manual/en/BH_Unicode.pod
index 0ca8075..bc98ba4 100644
--- a/doc/Manual/en/BH_Unicode.pod
+++ b/doc/Manual/en/BH_Unicode.pod
@@ -30,7 +30,7 @@ strings in the specified encodings.
Converts the Unicode code I<unit> to lowercase.
-The conversion is performed for characters in the Basic Multilingual Plane
+The conversion is performed for characters in the Basic Multilingual Plane
(i.e., the first 65,536 codes).
@@ -40,7 +40,7 @@ The conversion is performed for characters in the Basic Multilingual Plane
Converts the Unicode code I<unit> to uppercase.
-The conversion is performed for characters in the Basic Multilingual Plane
+The conversion is performed for characters in the Basic Multilingual Plane
(i.e., the first 65,536 codes).
@@ -50,12 +50,12 @@ The conversion is performed for characters in the Basic Multilingual Plane
size_t size,
uint32_t *unit);
-Decodes the UTF-8 sequence from I<string> (with the specified length I<size>)
+Decodes the UTF-8 sequence from I<string> (with the specified length I<size>)
and writes the code to I<unit>.
Invalid UTF-8 sequences will be converted to code -1.
-If successful, the function returns the number of bytes read or 0 if I<string>
+If successful, the function returns the number of bytes read or 0 if I<string>
contains only part of the sequence.
@@ -82,7 +82,7 @@ and writes the code to I<unit>.
Invalid UTF-16LE sequences will be converted to code -1.
-If successful, the function returns the number of bytes read or 0 if I<string>
+If successful, the function returns the number of bytes read or 0 if I<string>
contains only part of the sequence.
@@ -97,7 +97,7 @@ and writes the code to I<unit>.
Invalid UTF-16BE sequences will be converted to code -1.
-If successful, the function returns the number of bytes read or 0 if I<string>
+If successful, the function returns the number of bytes read or 0 if I<string>
contains only part of the sequence.
@@ -136,7 +136,7 @@ and writes the code to I<unit>.
Invalid UTF-32LE sequences will be converted to code -1.
-If successful, the function returns the number of bytes read or 0 if I<string>
+If successful, the function returns the number of bytes read or 0 if I<string>
contains only part of the sequence.
@@ -151,7 +151,7 @@ and writes the code to I<unit>.
Invalid UTF-32BE sequences will be converted to code -1.
-If successful, the function returns the number of bytes read or 0 if I<string>
+If successful, the function returns the number of bytes read or 0 if I<string>
contains only part of the sequence.
diff --git a/doc/Manual/en/BH_Util.pod b/doc/Manual/en/BH_Util.pod
index 366e7ae..663d911 100644
--- a/doc/Manual/en/BH_Util.pod
+++ b/doc/Manual/en/BH_Util.pod
@@ -9,14 +9,14 @@ BH_Util - Utility Functions
=head1 SYNTAX
#include <BH/Math.h>
-
+
cc prog.c -o prog -lbh
=head1 DESCRIPTION
-The BH_Util library provides a set of functions for working with numbers in
-little-endian and big-endian formats, as well as for classifying floating-point
+The BH_Util library provides a set of functions for working with numbers in
+little-endian and big-endian formats, as well as for classifying floating-point
values.
@@ -142,7 +142,7 @@ Reads a signed 64-bit big-endian integer from the buffer.
=head2 BH_Write16LEu
- void BH_Write16LEu(char *buffer,
+ void BH_Write16LEu(char *buffer,
uint16_t value);
Writes an unsigned 16-bit little-endian integer to the buffer.
@@ -158,7 +158,7 @@ Writes a signed 16-bit little-endian integer to the buffer.
=head2 BH_Write32LEu
- void BH_Write32LEu(char *buffer,
+ void BH_Write32LEu(char *buffer,
uint32_t value);
Writes an unsigned 32-bit little-endian integer to the buffer.
@@ -166,7 +166,7 @@ Writes an unsigned 32-bit little-endian integer to the buffer.
=head2 BH_Write32LEs
- void BH_Write32LEs(char *buffer,
+ void BH_Write32LEs(char *buffer,
int32_t value);
Writes a signed 32-bit little-endian integer to the buffer.
@@ -206,7 +206,7 @@ Writes a signed 16-bit big-endian integer to the buffer.
=head2 BH_Write32BEu
- void BH_Write32BEu(char *buffer,
+ void BH_Write32BEu(char *buffer,
uint32_t value);
Writes an unsigned 32-bit big-endian integer to the buffer.
@@ -214,7 +214,7 @@ Writes an unsigned 32-bit big-endian integer to the buffer.
=head2 BH_Write32BEs
- void BH_Write32BEs(char *buffer,
+ void BH_Write32BEs(char *buffer,
int32_t value);
Writes a signed 32-bit big-endian integer to the buffer.
@@ -222,7 +222,7 @@ Writes a signed 32-bit big-endian integer to the buffer.
=head2 BH_Write64BEu
- void BH_Write64BEu(char *buffer,
+ void BH_Write64BEu(char *buffer,
uint64_t value);
Writes an unsigned 64-bit big-endian integer to the buffer.
@@ -230,7 +230,7 @@ Writes an unsigned 64-bit big-endian integer to the buffer.
=head2 BH_Write64BEs
- void BH_Write64BEs(char *buffer,
+ void BH_Write64BEs(char *buffer,
int64_t value);
Writes a signed 64-bit big-endian integer to the buffer.
diff --git a/doc/Manual/en/BH_Vec2f.pod b/doc/Manual/en/BH_Vec2f.pod
index e3122b3..f2ec314 100644
--- a/doc/Manual/en/BH_Vec2f.pod
+++ b/doc/Manual/en/BH_Vec2f.pod
@@ -16,7 +16,7 @@ BH_Vec2f - two-dimensional real vector
=head1 DESCRIPTION
The BH_Vec2f module provides a set of functions for working with two-dimensional
-vectors. It includes operations for addition, subtraction, multiplication,
+vectors. It includes operations for addition, subtraction, multiplication,
scaling, calculating the dot and cross product, as well as normalizing vectors.
@@ -161,7 +161,7 @@ The I<out> parameter describes the resulting vector.
float t,
float out[2]);
-Performs linear interpolation between two vectors I<a> and I<b> with parameter
+Performs linear interpolation between two vectors I<a> and I<b> with parameter
I<t>.
The I<out> parameter describes the resulting vector.
diff --git a/doc/Manual/en/BH_Vec2i.pod b/doc/Manual/en/BH_Vec2i.pod
index c4e0666..bdfeb5e 100644
--- a/doc/Manual/en/BH_Vec2i.pod
+++ b/doc/Manual/en/BH_Vec2i.pod
@@ -9,7 +9,7 @@ BH_Vec2i - two-dimensional integer vector
=head1 SYNTAX
#include <BH/Math.h>
-
+
cc prog.c -o prog -lbh
diff --git a/doc/Manual/en/BH_Vec3f.pod b/doc/Manual/en/BH_Vec3f.pod
index af44d0a..5f7b591 100644
--- a/doc/Manual/en/BH_Vec3f.pod
+++ b/doc/Manual/en/BH_Vec3f.pod
@@ -15,7 +15,7 @@ BH_Vec3f - three-dimensional real vector
=head1 DESCRIPTION
-The BH_Vec3f module provides a set of functions for working with
+The BH_Vec3f module provides a set of functions for working with
three-dimensional vectors. The functions allow performing arithmetic operations,
calculating scalar and vector products, normalizing vectors, and performing
other vector operations.
diff --git a/doc/Manual/en/BH_Vec3i.pod b/doc/Manual/en/BH_Vec3i.pod
index e0ec762..fabe59c 100644
--- a/doc/Manual/en/BH_Vec3i.pod
+++ b/doc/Manual/en/BH_Vec3i.pod
@@ -9,13 +9,13 @@ BH_Vec3i - three-dimensional integer vector
=head1 SYNTAX
#include <BH/Math.h>
-
+
cc prog.c -o prog -lbh
=head1 DESCRIPTION
-The BH_Vec3i module provides a set of functions for working with
+The BH_Vec3i module provides a set of functions for working with
three-dimensional integer vectors.
@@ -73,7 +73,7 @@ The I<out> parameter describes the resulting vector.
const int c[3],
int out[3]);
-Calculates the result of the sum I<c> and the result of multiplying vectors
+Calculates the result of the sum I<c> and the result of multiplying vectors
I<a> and I<b>.
The I<out> parameter describes the resulting vector.
diff --git a/doc/Manual/en/BH_Vec4f.pod b/doc/Manual/en/BH_Vec4f.pod
index 44a31ae..7ca2222 100644
--- a/doc/Manual/en/BH_Vec4f.pod
+++ b/doc/Manual/en/BH_Vec4f.pod
@@ -15,9 +15,9 @@ BH_Vec4f - four-dimensional real vector
=head1 DESCRIPTION
-The BH_Vec4f module provides a set of functions for working with
+The BH_Vec4f module provides a set of functions for working with
four-dimensional vectors. The functions allow performing arithmetic operations,
-normalization, calculating the dot product, and other mathematical operations
+normalization, calculating the dot product, and other mathematical operations
on vectors.
@@ -155,7 +155,7 @@ The I<out> parameter describes the resulting vector.
float t,
float out[4]);
-Performs linear interpolation between two vectors I<a> and I<b> with parameter
+Performs linear interpolation between two vectors I<a> and I<b> with parameter
I<t>.
The I<out> parameter describes the resulting vector.
diff --git a/doc/Manual/en/BH_Vec4i.pod b/doc/Manual/en/BH_Vec4i.pod
index 54328ff..b640139 100644
--- a/doc/Manual/en/BH_Vec4i.pod
+++ b/doc/Manual/en/BH_Vec4i.pod
@@ -9,13 +9,13 @@ BH_Vec4i - four-dimensional integer vector
=head1 SYNTAX
#include <BH/Math.h>
-
+
cc prog.c -o prog -lbh
=head1 DESCRIPTION
-The BH_Vec4i module provides a set of functions for working with
+The BH_Vec4i module provides a set of functions for working with
four-dimensional integer vectors.
diff --git a/doc/Manual/ru/BH_Algo.pod b/doc/Manual/ru/BH_Algo.pod
index 87ca07e..0d134fd 100644
--- a/doc/Manual/ru/BH_Algo.pod
+++ b/doc/Manual/ru/BH_Algo.pod
@@ -27,19 +27,19 @@ BH_Algo - Общие алгоритмы
=over
-=item *
+=item *
Обмен значениями (L</BH_Swap>)
-=item *
+=item *
Разбиение массива (L</BH_Partition>)
-=item *
+=item *
Сортировка (L</BH_Sort>)
-=item *
+=item *
Работа с кучей (L</BH_HeapMake>, L</BH_HeapRemove>, L</BH_HeapInsert>,
L</BH_HeapReplace>)
diff --git a/doc/Manual/ru/BH_Box2f.pod b/doc/Manual/ru/BH_Box2f.pod
index 072fc6a..62a2e64 100644
--- a/doc/Manual/ru/BH_Box2f.pod
+++ b/doc/Manual/ru/BH_Box2f.pod
@@ -15,7 +15,7 @@ BH_Box2f - двухмерный ограничивающий прямоугол
=head1 ОПИСАНИЕ
-Модуль BH_Box2f предоставляет функции для работы с двухмерными ограничивающими
+Модуль BH_Box2f предоставляет функции для работы с двухмерными ограничивающими
прямоугольниками. Он включает в себя операции объединения, пересечения, проверки
вхождения точки в прямоугольник и вычисления ограничивающего прямоугольника по
набору точек.
@@ -39,7 +39,7 @@ BH_Box2f - двухмерный ограничивающий прямоугол
Параметры I<bMin> и I<bMax> описывают ограничивающий прямоугольник B.
-Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
+Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
прямоугольник.
@@ -58,7 +58,7 @@ BH_Box2f - двухмерный ограничивающий прямоугол
Параметры I<bMin> и I<bMax> описывают ограничивающий прямоугольник B.
-Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
+Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
прямоугольник.
Возвращает 0 в случае успешного пересечения или код ошибки.
@@ -90,7 +90,7 @@ BH_Box2f - двухмерный ограничивающий прямоугол
Параметры I<points> и I<size> описывают входной массив точек.
-Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
+Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
прямоугольник.
Возвращает 0 в случае успешного вычисления или код ошибки.
diff --git a/doc/Manual/ru/BH_Box3f.pod b/doc/Manual/ru/BH_Box3f.pod
index 31d267d..e4234fc 100644
--- a/doc/Manual/ru/BH_Box3f.pod
+++ b/doc/Manual/ru/BH_Box3f.pod
@@ -9,7 +9,7 @@ BH_Box3f - трёхмерный ограничивающий прямоугол
=head1 СИНТАКСИС
#include <BH/Math/Box3f.h>
-
+
cc prog.c -o prog -lbh
@@ -39,7 +39,7 @@ BH_Box3f - трёхмерный ограничивающий прямоугол
Параметры I<bMin> и I<bMax> описывают ограничивающий прямоугольник B.
-Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
+Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
прямоугольник.
@@ -58,7 +58,7 @@ BH_Box3f - трёхмерный ограничивающий прямоугол
Параметры I<bMin> и I<bMax> описывают ограничивающий прямоугольник B.
-Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
+Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
прямоугольник.
Возвращает 0 в случае успешного пересечения или код ошибки.
@@ -91,7 +91,7 @@ BH_Box3f - трёхмерный ограничивающий прямоугол
Параметры I<points> и I<size> описывают входной массив точек.
-Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
+Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
прямоугольник.
Возвращает 0 в случае успеха или код ошибки.
diff --git a/doc/Manual/ru/BH_Hashmap.pod b/doc/Manual/ru/BH_Hashmap.pod
index 30a1116..673b825 100644
--- a/doc/Manual/ru/BH_Hashmap.pod
+++ b/doc/Manual/ru/BH_Hashmap.pod
@@ -9,14 +9,14 @@ BH_Hashmap - неупорядочный ассоциативный массив
=head1 СИНТАКСИС
#include <BH/Hashmap.h>
-
+
cc prog.c -o prog -lbh
=head1 ОПИСАНИЕ
Библиотека BH_Hashmap предоставляет реализацию неупорядоченного ассоциативного
-массива, основанного на хэш-таблице. Она позволяет эффективно хранить и
+массива, основанного на хэш-таблице. Она позволяет эффективно хранить и
извлекать данные по ключу.
@@ -30,10 +30,10 @@ BH_Hashmap - неупорядочный ассоциативный массив
Создаёт ассоциативный массив.
-Параметр I<equal> принимает указатель на функцию, которая сравнивает два
+Параметр I<equal> принимает указатель на функцию, которая сравнивает два
элемента.
-Параметр I<hash> принимает указатель на функцию, вычисляющую хэш-значение
+Параметр I<hash> принимает указатель на функцию, вычисляющую хэш-значение
элемента.
В случае успеха функция возвращает указатель на новый объект BH_Hashmap или NULL
@@ -88,7 +88,7 @@ BH_Hashmap - неупорядочный ассоциативный массив
Удаляет элемент с заданным значением ключа I<key>.
-Если ассоциативный массив содержит несколько элементов с одинаковым значением
+Если ассоциативный массив содержит несколько элементов с одинаковым значением
ключа, функция удалит только одну пару ключ-значение.
Вызов этой функции делает существующие итераторы недействительными.
diff --git a/doc/Manual/ru/BH_Line.pod b/doc/Manual/ru/BH_Line.pod
index ea25dbb..8feec2e 100644
--- a/doc/Manual/ru/BH_Line.pod
+++ b/doc/Manual/ru/BH_Line.pod
@@ -15,8 +15,8 @@ BH_Line - прямая на плоскости.
=head1 ОПИСАНИЕ
-Модуль BH_Line предоставляет функции для работы с прямыми на плоскости. Он
-позволяет вычислять коэффициенты прямой по двум точкам, находить расстояние от
+Модуль BH_Line предоставляет функции для работы с прямыми на плоскости. Он
+позволяет вычислять коэффициенты прямой по двум точкам, находить расстояние от
точки до прямой и определять ближайшую точку на прямой к заданной точке.
diff --git a/doc/Manual/ru/BH_Mat3f.pod b/doc/Manual/ru/BH_Mat3f.pod
index 7b67487..58226da 100644
--- a/doc/Manual/ru/BH_Mat3f.pod
+++ b/doc/Manual/ru/BH_Mat3f.pod
@@ -9,7 +9,7 @@ BH_Mat3f - вещественная матрица 3x3
=head1 СИНТАКСИС
#include <BH/Math/Mat3f.h>
-
+
cc prog.c -o prog -lbh
diff --git a/doc/Manual/ru/BH_Mat4f.pod b/doc/Manual/ru/BH_Mat4f.pod
index 35c45ff..e3978ae 100644
--- a/doc/Manual/ru/BH_Mat4f.pod
+++ b/doc/Manual/ru/BH_Mat4f.pod
@@ -9,7 +9,7 @@ BH_Mat4f - вещественная матрица 4x4
=head1 СИНТАКСИС
#include <BH/Math/Mat4f.h>
-
+
cc prog.c -o prog -lbh
@@ -17,7 +17,7 @@ BH_Mat4f - вещественная матрица 4x4
Модуль BH_Mat4f предоставляет набор функций для работы с вещественными матрицами
размером 4x4. Эти функции позволяют выполнять различные операции над матрицами,
-такие как сложение, вычитание, умножение, транспонирование, вычисление
+такие как сложение, вычитание, умножение, транспонирование, вычисление
определителя и другие.
diff --git a/doc/Manual/ru/BH_Math.pod b/doc/Manual/ru/BH_Math.pod
index e7db7dd..fd0cca5 100644
--- a/doc/Manual/ru/BH_Math.pod
+++ b/doc/Manual/ru/BH_Math.pod
@@ -9,13 +9,13 @@ BH_Math - Математические функции
=head1 СИНТАКСИС
#include <BH/Math.h>
-
+
cc prog.c -o prog -lbh
=head1 ОПИСАНИЕ
-Библиотека BH_Math предоставляет набор математических функций для различных
+Библиотека BH_Math предоставляет набор математических функций для различных
вычислений.
@@ -37,7 +37,7 @@ BH_Math - Математические функции
const float point[3],
float out[3]);
-Вычисляет барицентрические координаты точки I<point> относительно треугольника,
+Вычисляет барицентрические координаты точки I<point> относительно треугольника,
заданного точками I<a>, I<b>, I<c>.
Параметр I<out> описывает результирующий вектор.
diff --git a/doc/Manual/ru/BH_Plane.pod b/doc/Manual/ru/BH_Plane.pod
index 66ebf55..d7a5574 100644
--- a/doc/Manual/ru/BH_Plane.pod
+++ b/doc/Manual/ru/BH_Plane.pod
@@ -9,7 +9,7 @@ BH_Plane - Плоскость в пространстве
=head1 СИНТАКСИС
#include <BH/Math.h>
-
+
cc prog.c -o prog -lbh
diff --git a/doc/Manual/ru/BH_Quat.pod b/doc/Manual/ru/BH_Quat.pod
index 5a1d1d3..a6f3c91 100644
--- a/doc/Manual/ru/BH_Quat.pod
+++ b/doc/Manual/ru/BH_Quat.pod
@@ -15,9 +15,9 @@ cc prog.c -o prog -lbh
=head1 ОПИСАНИЕ
-Данный модуль предоставляет набор функций для работы с кватернионами.
-Кватернионы используются для представления вращений в трёхмерном пространстве и
-обладают преимуществами перед другими методами, такими как матрицы вращения или
+Данный модуль предоставляет набор функций для работы с кватернионами.
+Кватернионы используются для представления вращений в трёхмерном пространстве и
+обладают преимуществами перед другими методами, такими как матрицы вращения или
углы Эйлера, в части устойчивости к накоплению ошибок при многократных операциях
вращения.
@@ -98,7 +98,7 @@ float BH_Vec4fLength(const float in[4]);
#define BH_Quat4fLerp(a, b, t, out) \
BH_Vec4fLerp(a, b, t, out)
-Выполняет линейную интерполяцию между двумя кватернионами I<a> и I<b> с
+Выполняет линейную интерполяцию между двумя кватернионами I<a> и I<b> с
параметром I<t>.
Параметр I<out> описывает результирующий кватернион.
diff --git a/doc/Manual/ru/BH_Queue.pod b/doc/Manual/ru/BH_Queue.pod
index 4aeb9e3..a9b6a74 100644
--- a/doc/Manual/ru/BH_Queue.pod
+++ b/doc/Manual/ru/BH_Queue.pod
@@ -9,7 +9,7 @@ BH_Queue - контейнер очереди
=head1 СИНТАКСИС
#include <BH/Queue.h>
-
+
cc prog.c -o prog -lbh
@@ -17,7 +17,7 @@ BH_Queue - контейнер очереди
Модуль BH_Queue предоставляет реализацию контейнера очереди, который позволяет
добавлять элементы в конец и извлекать их из начала. Очередь основана на
-динамическом массиве, что обеспечивает эффективное использование памяти и
+динамическом массиве, что обеспечивает эффективное использование памяти и
быстрый доступ к элементам.
@@ -50,7 +50,7 @@ BH_Queue - контейнер очереди
=head2 BH_QueueReserve
- int BH_QueueReserve(BH_Queue *queue,
+ int BH_QueueReserve(BH_Queue *queue,
size_t size);
Резервирует место как минимум для I<size> элементов.
@@ -62,7 +62,7 @@ BH_Queue - контейнер очереди
=head2 BH_QueueInsert
- int BH_QueueInsert(BH_Queue *queue,
+ int BH_QueueInsert(BH_Queue *queue,
void *value);
Вставляет элемент I<value>.
@@ -83,7 +83,7 @@ BH_Queue - контейнер очереди
=head2 BH_QueueFront
- int BH_QueueFront(BH_Queue *queue,
+ int BH_QueueFront(BH_Queue *queue,
void **value);
Возвращает первый элемент очереди.
diff --git a/doc/Manual/ru/BH_Ray2f.pod b/doc/Manual/ru/BH_Ray2f.pod
index a99e578..5f9c232 100644
--- a/doc/Manual/ru/BH_Ray2f.pod
+++ b/doc/Manual/ru/BH_Ray2f.pod
@@ -9,14 +9,14 @@ BH_Ray2f, BH_Segment2f - Луч/сегмент на плоскости
=head1 СИНТАКСИС
#include <BH/Math/Ray2f.h>
-
+
cc prog.c -o prog -lbh
=head1 ОПИСАНИЕ
-Данный модуль предоставляет функции для работы с лучами и сегментами на
-плоскости. Он включает в себя функции для проверки пересечений между лучами,
+Данный модуль предоставляет функции для работы с лучами и сегментами на
+плоскости. Он включает в себя функции для проверки пересечений между лучами,
сегментами, прямыми и ограничивающими прямоугольниками.
diff --git a/doc/Manual/ru/BH_Ray3f.pod b/doc/Manual/ru/BH_Ray3f.pod
index d9c92d2..8905426 100644
--- a/doc/Manual/ru/BH_Ray3f.pod
+++ b/doc/Manual/ru/BH_Ray3f.pod
@@ -9,15 +9,15 @@ BH_Ray3f, BH_Segment3f - луч/сегмент в пространстве
=head1 СИНТАКСИС
#include <BH/Math/Ray3f.h>
-
+
cc prog.c -o prog -lbh
=head1 ОПИСАНИЕ
-Данный модуль предоставляет функции для работы с лучами и сегментами в
-трёхмерном пространстве. Он включает в себя методы для проверки пересечений
-лучей и сегментов с плоскостями, треугольниками и ограничивающими
+Данный модуль предоставляет функции для работы с лучами и сегментами в
+трёхмерном пространстве. Он включает в себя методы для проверки пересечений
+лучей и сегментов с плоскостями, треугольниками и ограничивающими
прямоугольниками.
diff --git a/doc/Manual/ru/BH_String.pod b/doc/Manual/ru/BH_String.pod
index 08aeed7..bd7f8b3 100644
--- a/doc/Manual/ru/BH_String.pod
+++ b/doc/Manual/ru/BH_String.pod
@@ -26,7 +26,7 @@ BH_String - Работа со строками
=over
-=item *
+=item *
Если префикс I<0b> - основние 2
@@ -61,7 +61,7 @@ BH_String - Работа со строками
Форматирует вещественное число I<value> в нуль-терминированную строку I<string>
(с ограничением по длинне I<size>).
-Параметр I<format> задает формат преобразования числа в строку. Допустимые
+Параметр I<format> задает формат преобразования числа в строку. Допустимые
форматы:
=over
@@ -81,8 +81,8 @@ BH_String - Работа со строками
=back
Параметр I<precision> задает точность преобразования числа в строку. Если
-значение точности отрицательное, преобразование будет выполнено с минимально
-необходимой точностью, чтобы при обратном преобразовании получилось исходное
+значение точности отрицательное, преобразование будет выполнено с минимально
+необходимой точностью, чтобы при обратном преобразовании получилось исходное
число.
Опциональный параметр I<actual> возвращает длину записанной строки.
@@ -101,7 +101,7 @@ BH_String - Работа со строками
size_t *actual);
Форматирует целое 8-битное знаковое число I<value> в нуль-терминированную строку
-I<string> (с ограничением по длинне I<size>).
+I<string> (с ограничением по длинне I<size>).
Параметр I<base> задает основание для преобразования.
@@ -118,8 +118,8 @@ I<string> (с ограничением по длинне I<size>).
int base,
size_t *actual);
-Форматирует целое 16-битное знаковое число I<value> в нуль-терминированную
-строку I<string> (с ограничением по длинне I<size>).
+Форматирует целое 16-битное знаковое число I<value> в нуль-терминированную
+строку I<string> (с ограничением по длинне I<size>).
Параметр I<base> задает основание для преобразования.
@@ -136,8 +136,8 @@ I<string> (с ограничением по длинне I<size>).
int base,
size_t *actual);
-Форматирует целое 32-битное знаковое число I<value> в нуль-терминированную
-строку I<string> (с ограничением по длинне I<size>).
+Форматирует целое 32-битное знаковое число I<value> в нуль-терминированную
+строку I<string> (с ограничением по длинне I<size>).
Параметр I<base> задает основание для преобразования.
@@ -154,8 +154,8 @@ I<string> (с ограничением по длинне I<size>).
int base,
size_t *actual);
-Форматирует целое 64-битное знаковое число I<value> в нуль-терминированную
-строку I<string> (с ограничением по длинне I<size>).
+Форматирует целое 64-битное знаковое число I<value> в нуль-терминированную
+строку I<string> (с ограничением по длинне I<size>).
Параметр I<base> задает основание для преобразования.
@@ -172,8 +172,8 @@ I<string> (с ограничением по длинне I<size>).
int base,
size_t *actual);
-Форматирует целое 8-битное беззнаковое число I<value> в нуль-терминированную
-строку I<string> (с ограничением по длинне I<size>).
+Форматирует целое 8-битное беззнаковое число I<value> в нуль-терминированную
+строку I<string> (с ограничением по длинне I<size>).
Параметр I<base> задает основание для преобразования.
@@ -190,8 +190,8 @@ I<string> (с ограничением по длинне I<size>).
int base,
size_t *actual);
-Форматирует целое 16-битное беззнаковое число I<value> в нуль-терминированную
-строку I<string> (с ограничением по длинне I<size>).
+Форматирует целое 16-битное беззнаковое число I<value> в нуль-терминированную
+строку I<string> (с ограничением по длинне I<size>).
Параметр I<base> задает основание для преобразования.
@@ -208,8 +208,8 @@ I<string> (с ограничением по длинне I<size>).
int base,
size_t *actual);
-Форматирует целое 32-битное беззнаковое число I<value> в нуль-терминированную
-строку I<string> (с ограничением по длинне I<size>).
+Форматирует целое 32-битное беззнаковое число I<value> в нуль-терминированную
+строку I<string> (с ограничением по длинне I<size>).
Параметр I<base> задает основание для преобразования.
@@ -226,8 +226,8 @@ I<string> (с ограничением по длинне I<size>).
int base,
size_t *actual);
-Форматирует целое 64-битное беззнаковое число I<value> в нуль-терминированную
-строку I<string> (с ограничением по длинне I<size>).
+Форматирует целое 64-битное беззнаковое число I<value> в нуль-терминированную
+строку I<string> (с ограничением по длинне I<size>).
Параметр I<base> задает основание для преобразования.
@@ -243,7 +243,7 @@ I<string> (с ограничением по длинне I<size>).
Преобразовывает строку I<string> в вещественное число.
-Опциональный параметр I<size> возвращает число прочитанных символов из строки.
+Опциональный параметр I<size> возвращает число прочитанных символов из строки.
В случае успеха, возвращает преобразованное число или 0.
@@ -256,7 +256,7 @@ I<string> (с ограничением по длинне I<size>).
Преобразовывает строку I<string> в целое знаковое 8-битное число.
-Опциональный параметр I<size> возвращает число прочитанных символов из строки.
+Опциональный параметр I<size> возвращает число прочитанных символов из строки.
Опциональный параметр I<base> задает основание числа.
@@ -271,7 +271,7 @@ I<string> (с ограничением по длинне I<size>).
Преобразовывает строку I<string> в целое знаковое 16-битное число.
-Опциональный параметр I<size> возвращает число прочитанных символов из строки.
+Опциональный параметр I<size> возвращает число прочитанных символов из строки.
Опциональный параметр I<base> задает основание числа.
@@ -286,7 +286,7 @@ I<string> (с ограничением по длинне I<size>).
Преобразовывает строку I<string> в целое знаковое 32-битное число.
-Опциональный параметр I<size> возвращает число прочитанных символов из строки.
+Опциональный параметр I<size> возвращает число прочитанных символов из строки.
Опциональный параметр I<base> задает основание числа.
@@ -301,7 +301,7 @@ I<string> (с ограничением по длинне I<size>).
Преобразовывает строку I<string> в целое знаковое 64-битное число.
-Опциональный параметр I<size> возвращает число прочитанных символов из строки.
+Опциональный параметр I<size> возвращает число прочитанных символов из строки.
Опциональный параметр I<base> задает основание числа.
@@ -316,7 +316,7 @@ I<string> (с ограничением по длинне I<size>).
Преобразовывает строку I<string> в целое беззнаковое 8-битное число.
-Опциональный параметр I<size> возвращает число прочитанных символов из строки.
+Опциональный параметр I<size> возвращает число прочитанных символов из строки.
Опциональный параметр I<base> задает основание числа.
@@ -331,7 +331,7 @@ I<string> (с ограничением по длинне I<size>).
Преобразовывает строку I<string> в целое беззнаковое 16-битное число.
-Опциональный параметр I<size> возвращает число прочитанных символов из строки.
+Опциональный параметр I<size> возвращает число прочитанных символов из строки.
Опциональный параметр I<base> задает основание числа.
@@ -346,7 +346,7 @@ I<string> (с ограничением по длинне I<size>).
Преобразовывает строку I<string> в целое беззнаковое 32-битное число.
-Опциональный параметр I<size> возвращает число прочитанных символов из строки.
+Опциональный параметр I<size> возвращает число прочитанных символов из строки.
Опциональный параметр I<base> задает основание числа.
@@ -361,7 +361,7 @@ I<string> (с ограничением по длинне I<size>).
Преобразовывает строку I<string> в целое беззнаковое 64-битное число.
-Опциональный параметр I<size> возвращает число прочитанных символов из строки.
+Опциональный параметр I<size> возвращает число прочитанных символов из строки.
Опциональный параметр I<base> задает основание числа.
diff --git a/doc/Manual/ru/BH_Thread.pod b/doc/Manual/ru/BH_Thread.pod
index f0923e9..083c421 100644
--- a/doc/Manual/ru/BH_Thread.pod
+++ b/doc/Manual/ru/BH_Thread.pod
@@ -9,7 +9,7 @@ BH_Thread - многопоточность и примитивы синхрон
=head1 СИНТАКСИС
#include <BH/Thread.h>
-
+
cc prog.c -o prog -lbh
@@ -188,7 +188,7 @@ I<timeout>.
int BH_ConditionWait(BH_Condition *condition,
BH_Mutex *mutex);
-Блокирует исполнение текущего потока до тех пор, пока другой поток не
+Блокирует исполнение текущего потока до тех пор, пока другой поток не
просигнализирует об изменении условия.
В некоторых ситуациях сигнал об изменении условия может быть ложным.
@@ -206,7 +206,7 @@ I<timeout>.
uint32_t timeout);
Пытается заблокировать исполнение текущего потока до тех пор, пока другой поток
-не просигнализирует об изменении условия в пределах заданного времени
+не просигнализирует об изменении условия в пределах заданного времени
I<timeout>.
В некоторых ситуациях сигнал об изменении условия может быть ложным.
diff --git a/doc/Manual/ru/BH_Util.pod b/doc/Manual/ru/BH_Util.pod
index 02244d7..f023f7f 100644
--- a/doc/Manual/ru/BH_Util.pod
+++ b/doc/Manual/ru/BH_Util.pod
@@ -9,14 +9,14 @@ BH_Util - Вспомогательные функции
=head1 СИНТАКСИС
#include <BH/Math.h>
-
+
cc prog.c -o prog -lbh
=head1 ОПИСАНИЕ
-Библиотека BH_Util предоставляет набор функций для работы с числами в форматах
-little-endian и big-endian, а также для классификации значений с плавающей
+Библиотека BH_Util предоставляет набор функций для работы с числами в форматах
+little-endian и big-endian, а также для классификации значений с плавающей
точкой.
@@ -142,7 +142,7 @@ little-endian и big-endian, а также для классификации з
=head2 BH_Write16LEu
- void BH_Write16LEu(char *buffer,
+ void BH_Write16LEu(char *buffer,
uint16_t value);
Записывает целое 16-битное беззнаковое little-endian число в буфер.
@@ -150,7 +150,7 @@ little-endian и big-endian, а также для классификации з
=head2 BH_Write16LEs
- void BH_Write16LEs(char *buffer,
+ void BH_Write16LEs(char *buffer,
int16_t value);
Записывает целое 16-битное знаковое little-endian число в буфер.
@@ -158,7 +158,7 @@ little-endian и big-endian, а также для классификации з
=head2 BH_Write32LEu
- void BH_Write32LEu(char *buffer,
+ void BH_Write32LEu(char *buffer,
uint32_t value);
Записывает целое 32-битное беззнаковое little-endian число в буфер.
@@ -166,7 +166,7 @@ little-endian и big-endian, а также для классификации з
=head2 BH_Write32LEs
- void BH_Write32LEs(char *buffer,
+ void BH_Write32LEs(char *buffer,
int32_t value);
Записывает целое 32-битное знаковое little-endian число в буфер.
@@ -174,7 +174,7 @@ little-endian и big-endian, а также для классификации з
=head2 BH_Write64LEu
- void BH_Write64LEu(char *buffer,
+ void BH_Write64LEu(char *buffer,
uint64_t value);
Записывает целое 64-битное беззнаковое little-endian число в буфер.
@@ -182,7 +182,7 @@ little-endian и big-endian, а также для классификации з
=head2 BH_Write64LEs
- void BH_Write64LEs(char *buffer,
+ void BH_Write64LEs(char *buffer,
int64_t value);
Записывает целое 64-битное знаковое little-endian число в буфер.
@@ -190,7 +190,7 @@ little-endian и big-endian, а также для классификации з
=head2 BH_Write16BEu
- void BH_Write16BEu(char *buffer,
+ void BH_Write16BEu(char *buffer,
uint16_t value);
Записывает целое 16-битное беззнаковое big-endian число в буфер.
@@ -198,7 +198,7 @@ little-endian и big-endian, а также для классификации з
=head2 BH_Write16BEs
- void BH_Write16BEs(char *buffer,
+ void BH_Write16BEs(char *buffer,
int16_t value);
Записывает целое 16-битное знаковое big-endian число в буфер.
@@ -206,7 +206,7 @@ little-endian и big-endian, а также для классификации з
=head2 BH_Write32BEu
- void BH_Write32BEu(char *buffer,
+ void BH_Write32BEu(char *buffer,
uint32_t value);
Записывает целое 32-битное беззнаковое big-endian число в буфер.
@@ -214,7 +214,7 @@ little-endian и big-endian, а также для классификации з
=head2 BH_Write32BEs
- void BH_Write32BEs(char *buffer,
+ void BH_Write32BEs(char *buffer,
int32_t value);
Записывает целое 32-битное знаковое big-endian число в буфер.
@@ -222,7 +222,7 @@ little-endian и big-endian, а также для классификации з
=head2 BH_Write64BEu
- void BH_Write64BEu(char *buffer,
+ void BH_Write64BEu(char *buffer,
uint64_t value);
Записывает целое 64-битное беззнаковое big-endian число в буфер.
@@ -230,7 +230,7 @@ little-endian и big-endian, а также для классификации з
=head2 BH_Write64BEs
- void BH_Write64BEs(char *buffer,
+ void BH_Write64BEs(char *buffer,
int64_t value);
Записывает целое 64-битное знаковое big-endian число в буфер.
diff --git a/doc/Manual/ru/BH_Vec2i.pod b/doc/Manual/ru/BH_Vec2i.pod
index 9f8bd7e..f0d8af3 100644
--- a/doc/Manual/ru/BH_Vec2i.pod
+++ b/doc/Manual/ru/BH_Vec2i.pod
@@ -9,13 +9,13 @@ BH_Vec2i - двухмерный целочисленный вектор
=head1 СИНТАКСИС
#include <BH/Math.h>
-
+
cc prog.c -o prog -lbh
=head1 ОПИСАНИЕ
-Модуль BH_Vec2i предоставляет набор функций для работы с двухмерными
+Модуль BH_Vec2i предоставляет набор функций для работы с двухмерными
целочисленными векторами.
diff --git a/doc/Manual/ru/BH_Vec3i.pod b/doc/Manual/ru/BH_Vec3i.pod
index 906ca25..1ead1d5 100644
--- a/doc/Manual/ru/BH_Vec3i.pod
+++ b/doc/Manual/ru/BH_Vec3i.pod
@@ -9,7 +9,7 @@ BH_Vec3i - трёхмерный целочисленный вектор
=head1 СИНТАКСИС
#include <BH/Math.h>
-
+
cc prog.c -o prog -lbh
diff --git a/doc/Manual/ru/BH_Vec4f.pod b/doc/Manual/ru/BH_Vec4f.pod
index fe1480b..ee10887 100644
--- a/doc/Manual/ru/BH_Vec4f.pod
+++ b/doc/Manual/ru/BH_Vec4f.pod
@@ -17,7 +17,7 @@ BH_Vec4f - четырёхмерный вещественный вектор
Модуль BH_Vec4f предоставляет набор функций для работы с четырёхмерными
векторами. Функции позволяют выполнять арифметические операции, нормализацию,
-вычисление скалярного произведения и другие математические операции над
+вычисление скалярного произведения и другие математические операции над
векторами.
diff --git a/doc/Manual/ru/BH_Vec4i.pod b/doc/Manual/ru/BH_Vec4i.pod
index d109349..4c77568 100644
--- a/doc/Manual/ru/BH_Vec4i.pod
+++ b/doc/Manual/ru/BH_Vec4i.pod
@@ -9,13 +9,13 @@ BH_Vec4i - четырёхмерный целочисленный вектор
=head1 СИНТАКСИС
#include <BH/Math.h>
-
+
cc prog.c -o prog -lbh
=head1 ОПИСАНИЕ
-Модуль BH_Vec4i предоставляет набор функций для работы с четырёхмерными
+Модуль BH_Vec4i предоставляет набор функций для работы с четырёхмерными
целочисленными векторами.
diff --git a/src/Platform/Posix/Semaphore.c b/src/Platform/Posix/Semaphore.c
index c7b9d25..aeaf3bd 100644
--- a/src/Platform/Posix/Semaphore.c
+++ b/src/Platform/Posix/Semaphore.c
@@ -60,7 +60,7 @@ int BH_SemaphoreWaitFor(BH_Semaphore *semaphore,
uint32_t timeout)
{
struct timespec ts;
-
+
/* Calculate absoulute time for timed wait */
clock_gettime(CLOCK_REALTIME, &ts);
ts.tv_sec += timeout / 1000;