help-flex
[Top][All Lists]
Advanced

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

skelout patch


From: Danen Brücker
Subject: skelout patch
Date: 10 May 2002 01:13:04 -0700

Hello,

Here is a one liner for skelout() in flex 2.4.6. Trying to match the
wrong character in the buffer was preventing the proper replacement
causing a multitude of compiler errors. I don't know if the buffer has
been shorted in CVS (or if it should be) as I wasn't able to build the
snapshot. The patch below looks at the correct character in the buffer.

diff -urN flex-2.5.6.orig/misc.c flex-2.5.6/misc.c
--- flex-2.5.6.orig/misc.c      Fri Apr 19 15:20:24 2002
+++ flex-2.5.6/misc.c   Fri May 10 00:52:39 2002
@@ -802,7 +802,7 @@
                        /* print the control line as a comment. */
                        if (buf[1] != '#')
                                {
-                               if (buf[strlen(buf)-1]=='\\')
+                               if (buf[strlen(buf)-2]=='\\')
                                        out_str("/* %s */\\\n", buf);
                                else
                                        out_str("/* %s */\n", buf);

Danen Brücker
<address@hidden>




reply via email to

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