poke-devel
[Top][All Lists]
Advanced

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

[PATCH v2 3/3] pkl: fix comment for `pkl_execute_{file,buffer}'


From: Mohammad-Reza Nabipoor
Subject: [PATCH v2 3/3] pkl: fix comment for `pkl_execute_{file,buffer}'
Date: Wed, 4 Oct 2023 00:36:19 +0200

2023-10-04  Mohammad-Reza Nabipoor  <mnabipoor@gnu.org>

        * libpoke/pkl.h (pkl_execute_file): Fix comment regarding
        EXIT_EXCEPTION.
        (pkl_execute_buffer): Likewise.
---
 ChangeLog     | 6 ++++++
 libpoke/pkl.h | 8 ++++----
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 74026b79..d600f262 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-10-04  Mohammad-Reza Nabipoor  <mnabipoor@gnu.org>
+
+       * libpoke/pkl.h (pkl_execute_file): Fix comment regarding
+       EXIT_EXCEPTION.
+       (pkl_execute_buffer): Likewise.
+
 2023-10-04  Mohammad-Reza Nabipoor  <mnabipoor@gnu.org>
 
        * libpoke/libpoke.h (pk_load): Add `exit_exception' parameter.
diff --git a/libpoke/pkl.h b/libpoke/pkl.h
index 60278eea..205f0132 100644
--- a/libpoke/pkl.h
+++ b/libpoke/pkl.h
@@ -93,8 +93,8 @@ void pkl_free (pkl_compiler compiler);
 /* Compile an execute a Poke program from the given file FNAME.
    Return 1 if the compilation was successful, 0 otherwise.
 
-   If not NULL, *EXIT_EXCEPTION is set to an exception value if the
-   execution of the program gets interrupted by an unhandled exception.
+   *EXIT_EXCEPTION is set to an exception value if the execution of
+   the program gets interrupted by an unhandled exception.
    Otherwise *EXIT_EXCEPTION is set to PK_NULL.  */
 
 int pkl_execute_file (pkl_compiler compiler, const char *fname,
@@ -112,8 +112,8 @@ int pkl_execute_file (pkl_compiler compiler, const char 
*fname,
    Both lines and columns start numbering at one, i.e. the first
    column/line is the column/line number 1.
 
-   If not NULL, *EXIT_EXCEPTION is set to an exception value if the
-   execution of the program gets interrupted by an unhandled exception.
+   *EXIT_EXCEPTION is set to an exception value if the execution of
+   the program gets interrupted by an unhandled exception.
    Otherwise *EXIT_EXCEPTION is set to PK_NULL.  */
 
 int pkl_execute_buffer (pkl_compiler compiler, const char *buffer,
-- 
2.42.0




reply via email to

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