help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: skelout patch


From: Danen Brücker
Subject: Re: skelout patch
Date: 10 May 2002 11:04:15 -0700

This bit of test code shows what the last three characters in the buffer
are.

--- misc.c.old  Fri May 10 11:01:05 2002
+++ misc.c      Fri May 10 10:54:16 2002
@@ -803,9 +803,17 @@
                        if (buf[1] != '#')
                                {
                                if (buf[strlen(buf)-1]=='\\')
+                                       {
+                                       fprintf( stderr, "-2(%d) -1(%d) 
0(%d)\n", buf[strlen(buf)-2],
+                                               buf[strlen(buf)-1], 
buf[strlen(buf)] );
                                        out_str("/* %s */\\\n", buf);
+                                       }
                                else
+                                       {
+                                       fprintf( stderr, "-2(%d) -1(%d) 
0(%d)\n", buf[strlen(buf)-2],
+                                               buf[strlen(buf)-1], 
buf[strlen(buf)] );
                                        out_str("/* %s */\n", buf);
+                                       }
                                }
                                
                        switch ( buf[1] )


When run I get output like this:

-2(42) -1(10) 0(0)
-2(45) -1(10) 0(0)
-2(42) -1(10) 0(0)
-2(45) -1(10) 0(0)
-2(42) -1(10) 0(0)
-2(45) -1(10) 0(0)
-2(42) -1(10) 0(0)
-2(45) -1(10) 0(0)
-2(43) -1(10) 0(0)
-2(42) -1(10) 0(0)
-2(45) -1(10) 0(0)
-2(43) -1(10) 0(0)
-2(42) -1(10) 0(0)
-2(45) -1(10) 0(0)
-2(43) -1(10) 0(0)
-2(42) -1(10) 0(0)
-2(45) -1(10) 0(0)
-2(43) -1(10) 0(0)
-2(42) -1(10) 0(0)
-2(101) -1(10) 0(0)

On Fri, 2002-05-10 at 10:27, John W. Millaway wrote:
> --- Danen Brücker <address@hidden> wrote:
> > Those are exactly the errors that I'm getting. The '\' was not matched
> > so the else case on misc.c:808 is used instead which places the trailing
> > '\' inside the comment.
> 
> 
> Let me guess: You are on a Microsoft machine, and somehow managed to get '\r'
> characters into the flex skeleton, correct?
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Shopping - Mother's Day is May 12th!
> http://shopping.yahoo.com





reply via email to

[Prev in Thread] Current Thread [Next in Thread]