From db9f2c2127a0e21ff1bffbeec61003757facaadd Mon Sep 17 00:00:00 2001 From: Alexandre Detiste Date: Wed, 17 Jan 2024 19:37:05 +0100 Subject: [PATCH] typos --- docs/html/pacparser.html | 4 ++-- docs/man/man3/pacparser.3 | 4 ++-- src/pac_utils.h | 2 +- src/pacparser.c | 4 ++-- src/pacparser.h | 4 ++-- src/pymod/pacparser_py.c | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/html/pacparser.html b/docs/html/pacparser.html index 49104878..75d435f4 100644 --- a/docs/html/pacparser.html +++ b/docs/html/pacparser.html @@ -155,7 +155,7 @@

Function Documentation

Returns
0 on failure and 1 on success.
-

Evaulates the given PAC script string in the JavaScript context created by pacparser_init.

+

Evaluates the given PAC script string in the JavaScript context created by pacparser_init.

@@ -218,7 +218,7 @@

Function Documentation

-
Returns
proxy string on sucess and NULL on error.
+
Returns
proxy string on success and NULL on error.

Finds proxy for the given URL and Host. This function should be called only after pacparser engine has been initialized (using pacparser_init) and pac script has been parsed (using pacparser_parse_pac_file or pacparser_parse_pac_string).

diff --git a/docs/man/man3/pacparser.3 b/docs/man/man3/pacparser.3 index 86937d3b..2e904f1e 100644 --- a/docs/man/man3/pacparser.3 +++ b/docs/man/man3/pacparser.3 @@ -118,7 +118,7 @@ Parses the given PAC script string\&. 0 on failure and 1 on success\&. .RE .PP -Evaulates the given PAC script string in the JavaScript context created by pacparser_init\&. +Evaluates the given PAC script string in the JavaScript context created by pacparser_init\&. .SS "int pacparser_parse_pac (const char *pacfile)" .PP @@ -156,7 +156,7 @@ Finds proxy for the given URL and Host\&. .PP \fBReturns:\fP .RS 4 -proxy string on sucess and NULL on error\&. +proxy string on success and NULL on error\&. .RE .PP Finds proxy for the given URL and Host\&. This function should be called only after pacparser engine has been initialized (using pacparser_init) and pac script has been parsed (using pacparser_parse_pac_file or pacparser_parse_pac_string)\&. diff --git a/src/pac_utils.h b/src/pac_utils.h index 142eff92..e2efb92e 100644 --- a/src/pac_utils.h +++ b/src/pac_utils.h @@ -214,7 +214,7 @@ static const char *pacUtils = " if (isGMT) {\n" " argc--;\n" " }\n" -" // function will work even without explict handling of this case\n" +" // function will work even without explicit handling of this case\n" " if (argc == 1) {\n" " var tmp = parseInt(arguments[0]);\n" " if (isNaN(tmp)) {\n" diff --git a/src/pacparser.c b/src/pacparser.c index c868883f..79ed9452 100644 --- a/src/pacparser.c +++ b/src/pacparser.c @@ -353,13 +353,13 @@ pacparser_init() "Could not evaluate pacUtils defined in pac_utils.h."); return 0; } - if (_debug()) print_error("DEBUG: Pacparser Initalized.\n"); + if (_debug()) print_error("DEBUG: Pacparser Initialized.\n"); return 1; } // Parses the given PAC script string. // -// Evaulates the given PAC script string in the JavaScript context created +// Evaluates the given PAC script string in the JavaScript context created // by pacparser_init. int // 0 (=Failure) or 1 (=Success) pacparser_parse_pac_string(const char *script) diff --git a/src/pacparser.h b/src/pacparser.h index 5c47b001..e7f9f14e 100644 --- a/src/pacparser.h +++ b/src/pacparser.h @@ -54,7 +54,7 @@ int pacparser_parse_pac_file(const char *pacfile // PAC file to parse /// @param pacstring PAC string to parse. /// @returns 0 on failure and 1 on success. /// -/// Evaulates the given PAC script string in the JavaScript context created +/// Evaluates the given PAC script string in the JavaScript context created /// by pacparser_init. int pacparser_parse_pac_string(const char *pacstring // PAC string to parse ); @@ -71,7 +71,7 @@ int pacparser_parse_pac(const char *pacfile // PAC file to parse /// @brief Finds proxy for the given URL and Host. /// @param url URL to find proxy for. /// @param host Host part of the URL. -/// @returns proxy string on sucess and NULL on error. +/// @returns proxy string on success and NULL on error. /// /// Finds proxy for the given URL and Host. This function should be called only /// after pacparser engine has been initialized (using pacparser_init) and pac diff --git a/src/pymod/pacparser_py.c b/src/pymod/pacparser_py.c index 0e272d09..e42b1538 100644 --- a/src/pymod/pacparser_py.c +++ b/src/pymod/pacparser_py.c @@ -68,7 +68,7 @@ py_pacparser_init(PyObject *self, PyObject *args) // Parses the PAC script string. // -// Evaulates the PAC script string in the JavaScript context created by +// Evaluates the PAC script string in the JavaScript context created by // pacparser_init. static PyObject * // 0 (=Failure) or 1 (=Success) py_pacparser_parse_pac_string(PyObject *self, PyObject *args)