TIP: Click on subject to list as thread! ANSI
echo: tub
to: Alan Ianson
from: Bob Jones
date: 2006-05-22 22:44:18
subject: Re: squish

AI> Squish & Maximus were originaly OS/2 programs that were then compiled
 AI> for DOS, and then later for Win/NT IIRC. Now it's being compiled on
 AI> *nix too. There must be quite a mix of stuff in there by now.. :)
 AI> I'm not a coder myself, I don't know if it's ANSI complient or not.

ANSI C?  Ha, ha, ha, ha, ha.....

I suspect Maximus version 1 predates the common usage of the ANSI C
standard....  Working with the segmented architecture of the 8086 / 8088
processor causes usage of some non-standard C coding conventions,
especially when it comes to needing to handle data (messages) over 64Kb in
size....

On a more pratical note, any code that properly handels a modem via a
serial port probably has at least some code that is not portable, and
probably not ANSI C.  Maximus has some assembly code in some of the target
systems.  It has hooks to seperately compiled DLL's in OS/2, and I think
also for WIN based systems.....  There is conditional compile stuff.... 
The code running on Linux is a probably bit better for being ANSI C
compliant.  I believe the person who put the initial effort into the port
even has it running on a 64 bit system, so it is better that it was.... 
But there are tricks used that aren't ANSI C at some points.....  Part of
the "fun" to get it to compile under Linux is to get the right
set of definitions and macros defined to clear certain declarations that
are needed in a segmented environment....

Bob Jones, 1:343/41

--- Maximus/2 3.01
* Origin: Top Hat 2 BBS (1:343/41)
SEEN-BY: 633/267 270
@PATH: 343/41 138/146 140/1 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.