You are viewing a plain text version of this content. The canonical link for it is here.
Posted to websh-cvs@tcl.apache.org by da...@apache.org on 2001/11/07 13:57:01 UTC

cvs commit: tcl-websh/src/generic tcldecmt.tcl uricode.c

davidw      01/11/07 04:57:01

  Modified:    src      ChangeLog
               src/generic tcldecmt.tcl uricode.c
  Log:
  Changed 'utf' to be a signed character, fixing the comparison with 0
  which was broken on some architectures.
  
  Add comment about tcldecmt.tcl's ability to strip comments.
  
  Revision  Changes    Path
  1.3       +4 -0      tcl-websh/src/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /home/cvs/tcl-websh/src/ChangeLog,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ChangeLog	2001/11/06 23:12:43	1.2
  +++ ChangeLog	2001/11/07 12:57:01	1.3
  @@ -1,5 +1,9 @@
   2001-11-07  David N. Welton  <da...@dedasys.com>
   
  +	* generic/uricode.c (uriDecode): changed 'utf' to be a signed
  +	character, so that the comparison with 0 works on all
  +	architectures.
  +
   	* generic/tcldecmt.tcl: Extend functionality to do multiple files,
   	and properly quote \ and " characters for use in a C string.
   
  
  
  
  1.3       +8 -0      tcl-websh/src/generic/tcldecmt.tcl
  
  Index: tcldecmt.tcl
  ===================================================================
  RCS file: /home/cvs/tcl-websh/src/generic/tcldecmt.tcl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- tcldecmt.tcl	2001/11/06 23:12:44	1.2
  +++ tcldecmt.tcl	2001/11/07 12:57:01	1.3
  @@ -1,3 +1,11 @@
  +# 
  +# tcldecmt.tcl -- strip white space and some comments from Tcl source code.
  +
  +# The comment stripper is rather simplistic and doesn't handle all
  +# code perfectly.
  +
  +# $Id: tcldecmt.tcl,v 1.3 2001/11/07 12:57:01 davidw Exp $
  +
   proc DoFile { fileName } { 
       global argv0
       # ----------------------------------------------------------------------------
  
  
  
  1.3       +2 -2      tcl-websh/src/generic/uricode.c
  
  Index: uricode.c
  ===================================================================
  RCS file: /home/cvs/tcl-websh/src/generic/uricode.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- uricode.c	2001/10/25 17:50:13	1.2
  +++ uricode.c	2001/11/07 12:57:01	1.3
  @@ -3,7 +3,7 @@
    *
    * (c) 1996-20009 netcetera AG (simon.hefti@netcetera.ch)
    *
  - * @(#) $Id: uricode.c,v 1.2 2001/10/25 17:50:13 davidw Exp $
  + * @(#) $Id: uricode.c,v 1.3 2001/11/07 12:57:01 davidw Exp $
    *
    */
   
  @@ -138,7 +138,7 @@
   
       int length;
       Tcl_Obj *res = NULL;
  -    char *utf = NULL;
  +    signed char *utf = NULL;
       Tcl_UniChar unic;
       char buf[3];