[SCM] The rsync repository. - branch master updated

Rsync CVS commit messages rsync-cvs at lists.samba.org
Wed Jul 1 15:12:25 UTC 2020


The branch, master has been updated
       via  d88db22a Add support for the remaining parser types.
      from  a1cc50ba Preparing for release of 3.2.2pre3

https://git.samba.org/?p=rsync.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit d88db22ae8aa3f75b21d897bd16587a85f0804e5
Author: Wayne Davison <wayne at opencoder.net>
Date:   Wed Jul 1 08:07:07 2020 -0700

    Add support for the remaining parser types.

-----------------------------------------------------------------------

Summary of changes:
 daemon-parm.awk | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)


Changeset truncated at 500 lines:

diff --git a/daemon-parm.awk b/daemon-parm.awk
index efc15474..8fc4c237 100755
--- a/daemon-parm.awk
+++ b/daemon-parm.awk
@@ -8,7 +8,7 @@ BEGIN {
     sect = psect = defines = accessors = prior_ptype = ""
     values = "\nstatic const all_vars Defaults = {\n    { /* Globals: */\n"
     params = "\nstatic struct parm_struct parm_table[] = {"
-    exp_line = "\n/********** EXP **********/\n"
+    comment_fmt = "\n/********** %s **********/\n"
     tdstruct = "typedef struct {"
 }
 
@@ -22,7 +22,7 @@ BEGIN {
 	exit
     }
     defines = tdstruct
-    exps = exp_values = exp_line
+    exps = exp_values = sprintf(comment_fmt, "EXP")
     sect = "GLOBAL"
     psect = ", P_GLOBAL, &Vars.g."
     next
@@ -35,21 +35,22 @@ BEGIN {
     }
     defines = defines exps "} global_vars;\n\n" tdstruct
     values = values exp_values "\n    }, { /* Locals: */\n"
-    exps = exp_values = exp_line
+    exps = exp_values = sprintf(comment_fmt, "EXP")
     sect = "LOCAL"
     psect = ", P_LOCAL, &Vars.l."
     next
 }
 
-/^(STRING|PATH|INTEGER|ENUM|BOOL)/ {
+/^(STRING|CHAR|PATH|INTEGER|ENUM|OCTAL|BOOL|BOOLREV)[ \t]/ {
     ptype = $1
     name = $2
     $1 = $2 = ""
     sub(/^[ \t]+/, "")
 
     if (ptype != prior_ptype) {
-	defines = defines "\n/********** " ptype " **********/\n"
-	values = values "\n/********** " ptype " **********/\n"
+	comment = sprintf(comment_fmt, ptype)
+	defines = defines comment
+	values = values comment
 	params = params "\n"
 	accessors = accessors "\n"
 	prior_ptype = ptype
@@ -58,8 +59,11 @@ BEGIN {
     if (ptype == "STRING" || ptype == "PATH") {
 	atype = "STRING"
 	vtype = "char*"
-    } else if (ptype == "BOOL") {
+    } else if (ptype == "BOOL" || ptype == "BOOLREV") {
 	atype = vtype = "BOOL"
+    } else if (ptype == "CHAR") {
+	atype = "CHAR"
+	vtype = "char"
     } else {
 	atype = "INTEGER"
 	vtype = "int"


-- 
The rsync repository.



More information about the rsync-cvs mailing list