Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!cs.utexas.edu!csd4.milw.wisc.edu!uxc.cso.uiuc.edu!uxc.cso.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!cjr20670 From: cjr20670@uxa.cso.uiuc.edu Newsgroups: comp.sys.mac.programmer Subject: Endless inSANEity... Message-ID: <227700009@uxa.cso.uiuc.edu> Date: 19 Jun 89 01:46:00 GMT Lines: 31 Nf-ID: #N:uxa.cso.uiuc.edu:227700009:000:1317 Nf-From: uxa.cso.uiuc.edu!cjr20670 Jun 18 20:46:00 1989 I recently wrote a nifty do-dad program that some of you might have seen. It's called GDraw; it basically just whipped dots around the screen in facinating paths. I'm now working on version 2, but I've run across a problem that I can't figure a way around. One of the more complicated new features I'm adding is the ability to switch math modes on the fly, for example from Fixed to SANE. Presently, this is all it can do. I had planned to also add Direct 881 access, BUT LightSpeed C is giving me qualms. All the floating numbers are using this struct at present: typedef struct { double sn; /* SANE number */ Fixed fx; /* Fixed number */ } aNum; So that's the first big problem, how do I put the 881 "double" in the same struct? They're both called double, but one is 12 bytes and the other is 10 bytes. I can't specify one without the other. Gggrrrrr. If someone can help me with that problem, I've got another one for ya. Is there anyway I can use both the Math and Math881 libraries in the SAME project without renaming the needed functions in one of the libraries? Anyone with experience in mixing oil and water, please help! Charlie Reiman creiman@ncsa.uiuc.edu cjr20670@uxa.cso.uiuc.edu "My keyboard's busted. It keeps misspelling words." My boss