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/10/14 13:52:14 UTC
[tcl-rivet] branch master updated: removed svn entity
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
The following commit(s) were added to refs/heads/master by this push:
new fc65c75 removed svn entity
fc65c75 is described below
commit fc65c75cf940d04b6368170b71a6238db9e3588c
Author: Massimo Manghi <mx...@apache.org>
AuthorDate: Mon Oct 14 09:21:22 2019 +0200
removed svn entity
---
doc/Makefile.am | 2 --
src/librivet/rivetWWW.c | 19 +++++++++++--------
2 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/doc/Makefile.am b/doc/Makefile.am
index ea50a9f..169b516 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -14,8 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-# $Id$
-
.PHONY: clean
MANDIRS = $(srcdir)/html/ $(srcdir)/html/images
diff --git a/src/librivet/rivetWWW.c b/src/librivet/rivetWWW.c
index 48ea2c0..6f71e92 100644
--- a/src/librivet/rivetWWW.c
+++ b/src/librivet/rivetWWW.c
@@ -95,8 +95,8 @@ TCL_CMD_HEADER( Rivet_UnescapeStringCmd )
/* for all the characters in the source string */
for (origStringP = origString, newStringP = newString;
- *origStringP != '\0';
- origStringP++) {
+ *origStringP != '\0';
+ origStringP++) {
char c = *origStringP;
char c2;
@@ -107,7 +107,7 @@ TCL_CMD_HEADER( Rivet_UnescapeStringCmd )
continue;
}
- /* if there's a percent sign, decode the two-character
+ /* if there's a percent sign, decode the two-character
* hex sequence that follows and copy it to the target
* string */
if (c == '%') {
@@ -123,14 +123,17 @@ TCL_CMD_HEADER( Rivet_UnescapeStringCmd )
return TCL_ERROR;
}
- *newStringP++ = (digit1 * 16 + digit2);
- continue;
- }
+ *newStringP++ = (digit1 * 16 + digit2);
+ continue;
+ }
+
+ /* it wasn't a plus or percent, just copy the char across */
- /* it wasn't a plus or percent, just copy the char across */
- *newStringP++ = c;
+ *newStringP++ = c;
}
+
/* Don't forget to null-terminate the target string */
+
*newStringP = '\0';
Tcl_SetObjResult( interp, Tcl_NewStringObj( newString, -1 ) );
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tcl.apache.org
For additional commands, e-mail: commits-help@tcl.apache.org