[Magic-dev] Font Gone Haywire

R. Timothy Edwards tim at opencircuitdesign.com
Mon Oct 22 21:42:09 EDT 2007


Dear Dean,

> txInput.c though, not txOutput.c? I know I had to hack up txOutput.c
> pretty bad to get it working with stdarg instead of varargs, so I wouldn't
> be surprised if that was the problem.

Well, with that information, I'd probably put my money on txOutput.c
as well.  You might find it helpful to look at Magic version 7.4,
just to see the corrections made for stdarg uses.  Some of this
stuff can be very abstruse.  Since most of my development has been
on the Tcl/Tk based version, there won't be many changes to the
textio routines other than those necessary to make the thing compile
under gcc 3.0 and up.  Just note that the definition "MAGIC_WRAPPER"
refers to the Tcl/Tk version.  In particular, you'll want to note
the use of "va_copy".  On some hardware, arguments are all pointers
and can be copied just with an "=" operator.  This is not true in
Linux and x86 hardware, so copying stdarg arguments with "=" will
tend to produce trash.  I have no idea if that has anything to do
with your problem or not, but it's one of the trickier aspects of
stdarg that I've had to deal with.

					---Tim

+--------------------------------+-------------------------------------+
| Dr. R. Timothy Edwards (Tim)   | email: tim at opencircuitdesign.com    |
| Open Circuit Design, Inc.	 | web:   http://opencircuitdesign.com |
| 22815 Timber Creek Lane        | phone: (301) 528-9364               |
| Clarksburg, MD 20871-4001      | cell:  (240) 401-0616               |
+--------------------------------+-------------------------------------+



More information about the magic-dev mailing list