groff
[Top][All Lists]
Advanced

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

[Groff] pic does not work any longer


From: Nicola Bernardini
Subject: [Groff] pic does not work any longer
Date: Fri, 21 Jul 2000 10:50:25 +0200 (CEST)

Dear Friends,

I use a lot pic as an algorithmic drawing language.
I am having problems with the latest CVS version of pic (tagged 1.16).
A very (very) simple pic script like this one:

        .PS
        scale=2.54
        .PE

does not get groked any longer by the pic preprocessor. It says:

./pic:/usr/local/user/nicb/tr/tmp/test.pic:2: parse error before `='
./pic:/usr/local/user/nicb/tr/tmp/test.pic:2: giving up on this picture
.lf 1 /usr/local/user/nicb/tr/tmp/test.pic
.lf 1
.lf 4

The version right before this one is groff-20000311 and it works as usual.
A diff -BbNu between the two versions gives:

--- pic.h       Sun Feb  6 10:38:22 2000
+++ ../pic-new-and-broken/pic.h Sun Jul  9 08:38:05 2000
@@ -24,11 +24,11 @@
 #include <stdlib.h>
 #include <errno.h>
 
-#ifndef MATH_H_DECLARES_HYPOT
+#ifdef NEED_DECLARATION_HYPOT
 extern "C" {
   double hypot(double, double);
 }
-#endif
+#endif /* NEED_DECLARATION_HYPOT */
 
 #include "assert.h"
 #include "cset.h"
--- pic.y       Sun Feb  6 10:38:27 2000
+++ ../pic-new-and-broken/pic.y Fri Jun  9 06:35:17 2000
@@ -40,7 +40,11 @@
 #undef srand
 extern "C" {
   int rand();
+#ifdef RET_TYPE_SRAND_IS_VOID
   void srand(unsigned int);
+#else
+  int srand(unsigned int);
+#endif
 }
 
 /* Maximum number of characters produced by printf("%g") */
--- lex.cc      Sun Feb  6 10:38:10 2000
+++ ../pic-new-and-broken/lex.cc        Sun Jul  9 08:38:04 2000
@@ -21,7 +21,7 @@
 #include "pic.h"
 #include "ptable.h"
 #include "object.h"
-#include "pic.tab.h"
+#include "pic_tab.h"
 
 declare_ptable(char)
 implement_ptable(char)
-8<---------------------------------------------------------------------

I cannot make head of tails out of this, so I restored the old version
of pic (thanks god we have CVS!) - but I want to submit this to the list...

Thanks a lot

Nicola
+----------------------+
|Nicola Bernardini     |
|E-mail: address@hidden |
+----------------------+


reply via email to

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