This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository efm2.

View the commit online.

commit 1e4db4541cdc8d2129a908e1b2ff634286f80e85
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
AuthorDate: Sat Jun 21 10:54:36 2025 +0100

    comment and cleans of esc funcs
---
 src/shared/esc.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/shared/esc.c b/src/shared/esc.c
index edb05ab..cb734ad 100644
--- a/src/shared/esc.c
+++ b/src/shared/esc.c
@@ -5,7 +5,7 @@
 
 static inline int
 _xtov(char x)
-{
+{ // return a uint value of a hexh character
   if ((x >= '0') && (x <= '9')) return x - '0';
   if ((x >= 'a') && (x <= 'f')) return 10 + (x - 'a');
   if ((x >= 'A') && (x <= 'F')) return 10 + (x - 'A');
@@ -14,7 +14,7 @@ _xtov(char x)
 
 unsigned int
 xtoi(const char *str)
-{
+{ // return a uint value of a whole hex string of multiple chars
   unsigned int v = 0;
   const char  *s;
 
@@ -28,7 +28,7 @@ xtoi(const char *str)
 
 char *
 unescape(const char *src_in)
-{
+{ // parse a string with url like %2b escapes as a string
   char       *dest = malloc(strlen(src_in) + 1);
   char       *d;
   const char *s;
@@ -56,7 +56,7 @@ unescape(const char *src_in)
 
 void
 strbuf_escape_append(Eina_Strbuf *strbuf, const char *str)
-{
+{ // append an escaped version of the string to a strbuf
   const char  hex[] = "0123456789abcdef";
   const char *s;
 
@@ -75,7 +75,7 @@ strbuf_escape_append(Eina_Strbuf *strbuf, const char *str)
 
 char *
 escape(const char *src_in)
-{
+{ // return a whole escaped version of a string (malloced)
   Eina_Strbuf *strbuf = eina_strbuf_new();
   char        *str;
 
@@ -87,7 +87,7 @@ escape(const char *src_in)
 
 char *
 env_var_resolve(const char *str)
-{
+{ // take a string and resolve $ENV $VAR vars in it and return (malloced)
   Eina_Strbuf *buf = eina_strbuf_new();
   char        *s, *e, *tmp, save, *env = NULL, *strout = NULL;
 
@@ -127,8 +127,8 @@ env_var_resolve(const char *str)
     }
 
   strout = eina_strbuf_string_steal(buf);
-err:
   free(tmp);
+err:
   eina_strbuf_free(buf);
   return strout;
 }
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to