poke-devel
[Top][All Lists]
Advanced

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

[PATCH 1/2] Add const to buffer param of pkl_parse_buffer


From: Tim Rühsen
Subject: [PATCH 1/2] Add const to buffer param of pkl_parse_buffer
Date: Thu, 2 Apr 2020 13:27:58 +0200

2020-04-02 Tim Rühsen  <address@hidden>

        * src/pkl-parser.c (pkl_parse_buffer): Add const to buffer param.
        * src/pkl-parser.h (pkl_parse_buffer): Likewise.
---
 ChangeLog        | 5 +++++
 src/pkl-parser.c | 2 +-
 src/pkl-parser.h | 2 +-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 926a1285..20185502 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-04-02 Tim Rühsen  <address@hidden>
+
+       * src/pkl-parser.c (pkl_parse_buffer): Add const to buffer param.
+       * src/pkl-parser.h (pkl_parse_buffer): Likewise.
+
 2020-04-01  Jose E. Marchesi  <address@hidden>

        * src/pkl-gen.c (pkl_gen_ps_decl): Complete assert expression.
diff --git a/src/pkl-parser.c b/src/pkl-parser.c
index b04a7f6e..4ca1d1ec 100644
--- a/src/pkl-parser.c
+++ b/src/pkl-parser.c
@@ -106,7 +106,7 @@ pkl_parse_file (pkl_compiler compiler, pkl_env *env,

 int
 pkl_parse_buffer (pkl_compiler compiler, pkl_env *env,
-                  pkl_ast *ast, int what, char *buffer, char **end)
+                  pkl_ast *ast, int what, const char *buffer, char **end)
 {
   YY_BUFFER_STATE yybuffer;
   struct pkl_parser *parser;
diff --git a/src/pkl-parser.h b/src/pkl-parser.h
index 59a30375..d9b39b40 100644
--- a/src/pkl-parser.h
+++ b/src/pkl-parser.h
@@ -57,7 +57,7 @@ struct pkl_parser
 int pkl_parse_file (pkl_compiler compiler, pkl_env *env, pkl_ast *ast,
                     FILE *fd, const char *fname);
 int pkl_parse_buffer (pkl_compiler compiler, pkl_env *env, pkl_ast *ast,
-                      int what, char *buffer, char **end);
+                      int what, const char *buffer, char **end);



--
2.26.0




reply via email to

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