[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Pic macro arguments causes core dump.
From: |
Greger Asplund |
Subject: |
Pic macro arguments causes core dump. |
Date: |
Sat, 23 Mar 2002 20:14:49 GMT |
Hello, group!
Is there a limit to the number of arguments a pic macro can take?
I wrote a macro with ten arguments, which led to a core dump on my
system (OpenBSD 3.0, pic ver. 1.15).
An example:
# file.pic begins
..PS
scale = 10
define big_macro {
line $1
box wid $2
line $3
circle diam $4
line $5
ellipse ht $6 wid $7
line $8
box ht $9
line $10
}
big_macro(1,2,3,4,5,6,7,8,9,10)
..PE
# file.pic ends
Now; when processing this:
$ pic file.pic
..lf 1 file.pic
..lf 1
Memory fault (core dumped)
With the call
big_macro(1,2,3,4,5,6,7,8,9)
it works. Two digits is obviously too much for it to handle!
Why is this?
Regards
/Greger Asplund
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Pic macro arguments causes core dump.,
Greger Asplund <=