Article View: comp.sys.atari.st
Article #27165Lattice C basepage
From: nowlin
Date: Wed, 10 Jun 1987 13:44
Date: Wed, 10 Jun 1987 13:44
27 lines
1854 bytes
1854 bytes
I have a request. I've modified ASH to pass the environment in the
format that seems to have become the defacto standard for Pexec()ed
programs. That is the
var=val\0var=val\0...var=val\0\0
type of (char *) value that some utilities use. I have now been able write
getenv() functions for Megamax and Alcyon (thanks to some pointers from
Allan Pratt) that access this environment. I need to be able to do so from
Lattice C as well. We ported the Icon Programming Language to the ST using
Lattice (needed the 32 bit ints).
I've poked around all over the place below the main() entry point in
Lattice programs and can't locate the basepage. Megamax and Alcyon give
you an extern _base that's all you need. Lattice provides no such
variable. In fact basepage and environment aren't even in the index for
their manual. Can anyone help me out? I actually broke down and called
their support phone number, which has now been changed to Bristol England,
and the person answering the phone basically told me to write a letter if I
had any questions. I'm hoping the net will work faster.
By the way, if anyone wants the getenv() for Megamax and Alcyon send me
mail and I'll mail the source back. Also, if you want the ASH that passes
the environment as mentioned above mail me.
Jerry Nowlin
(...!ihnp4!ihuxy!nowlin)
Technical Details
Message-ID:
<1992@ihuxy.ATT.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!ihuxy!nowlinShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!ihuxy!nowlin From: nowlin@ihuxy.UUCP Newsgroups: comp.sys.atari.st Subject: Lattice C basepage Message-ID: <1992@ihuxy.ATT.COM> Date: Wed, 10-Jun-87 09:44:42 EDT Article-I.D.: ihuxy.1992 Posted: Wed Jun 10 09:44:42 1987 Date-Received: Sat, 13-Jun-87 04:53:10 EDT Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 27 Keywords: basepage, environment, poor support