You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tcl.apache.org by mx...@apache.org on 2019/01/16 17:40:54 UTC

[tcl-rivet] branch master updated (2e2f6b7 -> a280718)

This is an automated email from the ASF dual-hosted git repository.

mxmanghi pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/tcl-rivet.git.


    from 2e2f6b7  adding automatic reference to current version in configure command example
     new adb0175  add check on stdbool.h
     new cc6e3cd  add bool datatype definition
     new a280718  manual pages corrections and improvements

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 configure.ac                   |  1 +
 doc/rivet.xml                  |  2 +-
 doc/rivet.xml.in               |  2 +-
 doc/xml/internals.xml          | 15 ++++++++-------
 doc/xml/processing.xml         |  3 ++-
 src/mod_rivet_ng/rivet_types.h | 27 +++++++++++++++++++++++++--
 6 files changed, 38 insertions(+), 12 deletions(-)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tcl.apache.org
For additional commands, e-mail: commits-help@tcl.apache.org


[tcl-rivet] 02/03: add bool datatype definition

Posted by mx...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mxmanghi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tcl-rivet.git

commit cc6e3cdab648458080a73fbacb2cc5241ac06b43
Author: Massimo Manghi <mx...@apache.org>
AuthorDate: Wed Jan 16 18:39:58 2019 +0100

    add bool datatype definition
---
 src/mod_rivet_ng/rivet_types.h | 27 +++++++++++++++++++++++++--
 1 file changed, 25 insertions(+), 2 deletions(-)

diff --git a/src/mod_rivet_ng/rivet_types.h b/src/mod_rivet_ng/rivet_types.h
index b8cda08..787a15f 100644
--- a/src/mod_rivet_ng/rivet_types.h
+++ b/src/mod_rivet_ng/rivet_types.h
@@ -23,12 +23,35 @@
 
 /* $Id$ */
 
-#ifndef _RIVET_TYPES_H_
-#define _RIVET_TYPES_H_
+#ifndef __RIVET_TYPES_H__
+#define __RIVET_TYPES_H__
 
 #include <httpd.h>
 #include <tcl.h>
 
+/* Definition suggested in
+ *
+ * https://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Particular-Headers.html
+ *
+ * in order to have a portable definition of the 'bool' data type
+ */
+
+#ifdef HAVE_STDBOOL_H
+# include <stdbool.h>
+#else
+# ifndef HAVE__BOOL
+#  ifdef __cplusplus
+typedef bool _Bool;
+#  else
+#   define _Bool signed char
+#  endif
+# endif
+# define bool _Bool
+# define false 0
+# define true 1
+# define __bool_true_false_are_defined 1
+#endif
+
 typedef struct _ApacheRequest   ApacheRequest;
 typedef struct _ApacheUpload    ApacheUpload;
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tcl.apache.org
For additional commands, e-mail: commits-help@tcl.apache.org


[tcl-rivet] 01/03: add check on stdbool.h

Posted by mx...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mxmanghi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tcl-rivet.git

commit adb0175b1cc3ac576eef851534688e1ee67d0f9b
Author: Massimo Manghi <mx...@apache.org>
AuthorDate: Wed Jan 16 18:39:23 2019 +0100

    add check on stdbool.h
---
 configure.ac          | 1 +
 doc/xml/internals.xml | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index b652bf9..1f5c279 100644
--- a/configure.ac
+++ b/configure.ac
@@ -836,6 +836,7 @@ RIVET_CORE_CMDS
 RIVET_CHANNEL
 SINGLE_WORKER_TCL_THREAD
 HTTP_REQUESTS_MUTEX
+AC_HEADER_STDBOOL
 
 # Let's separate the point version from the major and minor version
 # to build a Rivet version to be substituted as basic version for 
diff --git a/doc/xml/internals.xml b/doc/xml/internals.xml
index 24c9f69..146e185 100644
--- a/doc/xml/internals.xml
+++ b/doc/xml/internals.xml
@@ -283,7 +283,7 @@
     THREAD_PRIVATE_DATA(private)
 
 	/* if ::rivet::mycmd works within a request processing we have
-	 * to check if 'private' is bringing a non null request_rec pointer
+	 * to check if 'private' is carrying a non null request_rec pointer
 	 */
     
     CHECK_REQUEST_REC(private,"::rivet::mycmd");


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tcl.apache.org
For additional commands, e-mail: commits-help@tcl.apache.org


[tcl-rivet] 03/03: manual pages corrections and improvements

Posted by mx...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mxmanghi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tcl-rivet.git

commit a280718ea5a94724693b1007c0802829d275ae60
Author: Massimo Manghi <mx...@apache.org>
AuthorDate: Wed Jan 16 18:40:39 2019 +0100

    manual pages corrections and improvements
---
 doc/rivet.xml          |  2 +-
 doc/rivet.xml.in       |  2 +-
 doc/xml/internals.xml  | 13 +++++++------
 doc/xml/processing.xml |  3 ++-
 4 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/doc/rivet.xml b/doc/rivet.xml
index 3022a6b..a4fe95e 100644
--- a/doc/rivet.xml
+++ b/doc/rivet.xml
@@ -37,7 +37,7 @@
     <!ENTITY formbroker.xml        SYSTEM "xml/formbroker.xml" >
     <!ENTITY version	           	  "3.2" >
     <!ENTITY fullversion           "3.2.0" >
-    <!ENTITY version2-series	     "2.0,2.1,2.2,2.3" >
+    <!ENTITY version2-series	     "2.0,2.1,2.2,2.3,2.4" >
     <!ENTITY version2-generic	     "2.x" >
     <!ENTITY version30		        "3.0" >
     <!ENTITY version31		        "3.1" >
diff --git a/doc/rivet.xml.in b/doc/rivet.xml.in
index 2772fab..4cda7bb 100644
--- a/doc/rivet.xml.in
+++ b/doc/rivet.xml.in
@@ -37,7 +37,7 @@
     <!ENTITY formbroker.xml        SYSTEM "xml/formbroker.xml" >
     <!ENTITY version	           	  "@INIT_VERSION@" >
     <!ENTITY fullversion           "@PACKAGE_VERSION@" >
-    <!ENTITY version2-series	     "2.0,2.1,2.2,2.3" >
+    <!ENTITY version2-series	     "2.0,2.1,2.2,2.3,2.4" >
     <!ENTITY version2-generic	     "2.x" >
     <!ENTITY version30		        "3.0" >
     <!ENTITY version31		        "3.1" >
diff --git a/doc/xml/internals.xml b/doc/xml/internals.xml
index 146e185..6e0083d 100644
--- a/doc/xml/internals.xml
+++ b/doc/xml/internals.xml
@@ -59,13 +59,13 @@
     	<para>
     		A bridge is a loadable library implementing different ways to handle
     		specific features needed to mod_rivet. It was originally meant as a way
-    		to handle the prefork/worker/event MPM specificities that prevented mod_rivet
-    		from supporting each of them, at the same time avoiding the need to stuff the 
+    		to handle the prefork/worker/event MPM specificities, at the same time 
+    		avoiding the need to stuff the 
     		code with conditional statements that would have implied useless complexity (an
     		instance of the Apache web server can run only an MPM at a time), 
     		error prone programming and performance costs. 
     		New bridges could be imagined also to implement different models of workload
-    		and resource management (like the resources demanded by the Tcl interpreters). 
+    		and resource management (like the resources demanded by the Tcl interpreters).
 			We designed an interface between the core of mod_rivet and its MPM bridges 
 			based on a set of functions defined in the rivet_bridge_table structure. 
     	</para>
@@ -82,10 +82,11 @@
 				<listitem>
 					<emphasis>mpm_server_init</emphasis>: pointer to any
 					specific server inititalization function. This field can be NULL
-					if no bridge specific initialization has to be done. The core of
+					if no bridge specific initialization is needed. The core of
 					mod_rivet runs the <command>ServerInitScript</command> before
-					calling this function.</listitem>
-					<listitem><emphasis>mpm_child_init</emphasis>: Bridge specific
+					calling this function.
+				</listitem>
+				<listitem><emphasis>mpm_child_init</emphasis>: Bridge specific
 					child process initialization. If the pointer is assigned with
 					a non-NULL value the function is called by Rivet_ChildInit. 
 				</listitem>
diff --git a/doc/xml/processing.xml b/doc/xml/processing.xml
index 763e922..a218094 100644
--- a/doc/xml/processing.xml
+++ b/doc/xml/processing.xml
@@ -77,7 +77,8 @@
 			which provides a very basic interface for both initialization
 			and request processing. Such script will be sourced into the
 			Tcl interpreter at the mod_rivet initialization stage. In the
-			Apache configuration (most likely within a &lt;VirtualHost myrivetapp.com:80&gt;...&lt;/VirtualHost&gt;
+			Apache configuration (most
+			likely within a &lt;VirtualHost myrivetapp.com:80&gt;...&lt;/VirtualHost&gt;
 			definition block)
 		</para>
 		<programlisting>&lt;IfModule rivet_module&gt;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tcl.apache.org
For additional commands, e-mail: commits-help@tcl.apache.org