]> andersk Git - splint.git/blobdiff - src/scanline.c
noexpand always false.
[splint.git] / src / scanline.c
index a0be78da9f68c70b853ca361baf781e75e5fae6e..5b0baa824375004f4bbc2a30c622b981fc6924bd 100644 (file)
@@ -1,6 +1,6 @@
 /*
 ** Splint - annotation-assisted static program checker
-** Copyright (C) 1994-2002 University of Virginia,
+** Copyright (C) 1994-2003 University of Virginia,
 **         Massachusetts Institute of Technology
 **
 ** This program is free software; you can redistribute it and/or modify it
@@ -17,8 +17,8 @@
 ** the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
 ** MA 02111-1307, USA.
 **
-** For information on lclint: lclint-request@cs.virginia.edu
-** To report a bug: lclint-bug@cs.virginia.edu
+** For information on splint: info@splint.org
+** To report a bug: splint-bug@splint.org
 ** For more information: http://www.splint.org
 */
 /*
@@ -39,8 +39,8 @@
 **     and determine its kind.
 */
 
-# include "lclintMacros.nf"
-# include "llbasic.h"
+# include "splintMacros.nf"
+# include "basic.h"
 # include "signature.h"
 # include "signature2.h"
 # include "scan.h"
@@ -51,8 +51,9 @@
 /*@notfunction@*/
 # define MOVECHAR()   do { *bufptr++ = c; c = *currentLine++; colNumber++; } while (FALSE) 
 
-/*@constant static int MAXCHAR;@*/
-# define MAXCHAR 512      
+/* evans 2003-04-21: changed name to avoid conflict with MS VC++ */
+/*@constant static int SCANMAXCHAR;@*/ 
+# define SCANMAXCHAR 512      
 
 /*@constant static int TABSIZE;@*/
 # define TABSIZE 8     
@@ -66,7 +67,7 @@ static int startCol;
 static bool reportEOL;         
 static bool reportComments;    
 
-static char tokenBuffer[MAXCHAR];
+static char tokenBuffer[SCANMAXCHAR];
 
 static const charClassData charClassDef[] =
 {
@@ -755,7 +756,7 @@ lscanLineInit (void)
   ltoken_compose = LSLReserveToken (LST_COMPOSESYM, "\\composeSort");
   ltoken_if = LSLReserveToken (LST_ifTOKEN, "if");
 
-  (void) LSLReserveToken (LST_LPAR, "(");
+  (void) LSLReserveToken (LST_LPAR, " (");
   (void) LSLReserveToken (LST_RPAR, ")");
   (void) LSLReserveToken (LST_COMMA, ",");
   (void) LSLReserveToken (LST_COLON, ":");
@@ -803,20 +804,20 @@ lscanLineCleanup (void)
 
 charCode lscanCharClass (char c)
 {
-  return charClass[(int)(c)].code;
+  return charClass[ (int) (c)].code;
 }
 
 bool LSLIsEndComment (char c)
 {
-  return charClass[(int)(c)].endCommentChar;
+  return charClass[ (int) (c)].endCommentChar;
 }
 
 void lsetCharClass (char c, charCode cod)
 {
-  charClass[(int)(c)].code = cod;
+  charClass[ (int) (c)].code = cod;
 }
 
 void lsetEndCommentChar (char c, bool flag)
 {
-  charClass[(int)(c)].endCommentChar = flag;
+  charClass[ (int) (c)].endCommentChar = flag;
 }
This page took 0.041778 seconds and 4 git commands to generate.