HDTenEightyP/NetNews huggingface dataset:
From: rsm@delfax.OCunix.On.Ca (Rick Morrow)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: How do you get a SINGLE character read?
Distribution: world
X-NewsSoftware: Amiga GRn 1.16c (6/22/92) by Mike Schwartz & Michael B. Smith
Date: 2 Oct 92 08:12:26 EDT
Organization: -Chaos- (North)

In article <1992Sep28.164347.13534@scic.intel.com> gatlin@scic.intel.com (Robert Gatlin) writes:
>I am writting a program in C (Lattice) and need to read a single
>character from the keyboard without having to wait for the user
>to hit <CR>. I have tried to use the ansii getc() function, but
>obviously waits for a <CR>. The I*M version of Turbo C has a
>non-ansii standard function getch() which does what I want. Is
>a similar function or workaround available for Amiga C?


   Here is a simple little routine that I use to get a 'hotkey' type of
response. Because of the use of the SetMode() function this routine is
effectively 2.x only.

----------------------------[ cut ]----------------------------------------

char GetHotKey()
{
   BPTR FH;
   char c;

   FH=Input();            /* find stdin */

   SetMode(FH, 1);        /* switch stdin to RAW: mode (v36+) */

   if(WaitForChar(FH, 0)) /* if there is a character available right away get */
   {                      /* it, otherwise don't wait. NOTE** there are problems */
                          /* with WaitForChar() with a timeout of 0 under 1.2/1.3 */

      Read(FH, &c, 1);    /* get waiting character */
   }
   else c=0;

   return(c);             /* return character if one was waiting, or 0 if none */
}


----------------------------[ cut ]----------------------------------------


   I've found no problems with switching stdin to RAW: and not switching it
back, but you can switch it back to CON: before the return(c) if you like.
Also, there doesn't seem to be any problems with switching it to RAW:
every time, and since we _have_ to have it in RAW: for this to work, and
anything else can switch it to CON: then we have to switch it to make sure
we know its state.

   Hope this proves helpful...



>--
>|  Robert Gatlin - Supercomputer Interconnect Components - Intel Corporation |
>|   gatlin@scic.intel.com ...!any-MX-mailer-like-uunet!scic.intel.com!gatlin |
>  ______     _ ________ _     __    _
> / _____\   / \ __   __| |   | |\  | |
>| /        / _ \  | |  | |   | | \ | |
>| |   ____/ /_\ \ | |  | |   | |\ \| |
>| |  |__ |  ___  \| |  | |   | ||\ \ |
>| \____/ | /   \  \ |  | |___| || \  |



--
  +-------------------------------------+
 / Rick Morrow - rsm@delfax.ocunix.on.ca \
<----------------------------------------->
 \    North Bay - Ontario - Canada       /
  +-------------------------------------+

Xref: sparky comp.sys.amiga.programmer:13982 comp.sys.amiga.tech:102 comp.sys.amiga.misc:14653 comp.sys.amiga.graphics:6529 comp.sys.amiga.games:13637 comp.sys.amiga.audio:3528 comp.unix.amiga:2216
From: crystal@glia.biostr.washington.edu (Crystal)
Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.tech,comp.sys.amiga.misc,comp.sys.amiga.graphics,comp.sys.amiga.games,comp.sys.amiga.audio,comp.unix.amiga,alt.sys.amiga
Subject: Re: : -( Contest - win your own A4000 :-(
Date: 3 Oct 92 20:17:54 GMT
Article-I.D.: glia.crystal.718143474
Organization: University of Washington

In <1992Oct3.132223.23600@sserve.cc.adfa.oz.au> braca2@cspyr1.cs.adfa.oz.au (BRAY CHRISTOPHER) writes:

>HEY, IF ALL THE AUSSIES AND KIWIS AND EUROPEANS ARE GETTING SUCKED OFF

>ABOUT HOW POOR THEIR C= REPRESENTATIVE IS.  WRITE TO THE BASTARDS.

>IF WE ALL DO IT, THEN MAYBE THEY WILL LISTEN TO US.

>I was given and address when  I bought my amiga, I think it is about time
>I used it.

>sorry for shouting.
>dont complain, act.

>hook


TOUCHE' !  (three-shay?) :>

It's about time someone posted the proper response!

Why is it that people would rather sit around and complain and whine and not
do a THING about the problem, but instead, just sit back and wait for OTHERs
to do it for them??

Take responsibilit for your OWN lives!  If you don't like what some company
or individual is doing to you, then DO SOMETHING ABOUT IT!  Don't wait for
the *other guy* to do it -- he's likely waiting for YOU!

*hops off soapbox*

Crystal
  ;>

      __
     ///
__  ///=====================================================================
\\\/// Amiga | Great spirits have always encountered violent  | To *KNOW* it
 \XX/  2000  | opposition from mediocre minds. -- A. Einstein | Is to LOVE it!
============================================================================
From: Walt.Namitz@bbs.oit.unc.edu (Walt Namitz)
Newsgroups: comp.sys.amiga.programmer
Subject: GNC C compiler error
Date: 1 Oct 92 14:25:44 GMT
Organization: Extended Bulletin Board Service

Recently I got gcc2.1 and tried compiling the simple program 'Hello.c'.
The first line of the program is #include<stdio.h>. When compiling this
error is always generated. 
	Hello.c:1:stdio.h:undocumented I/O error
Does anyone know what this error is about? Thanx in advance.
--
   The opinions expressed are not necessarily those of the University of
     North Carolina at Chapel Hill, the Campus Office for Information
        Technology, or the Experimental Bulletin Board Service.
           internet:  bbs.oit.unc.edu or 152.2.22.80
From: heinz@edohwg.adsp.sub.org (Heinz Wrobel)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: CreateNewProc() woes
Date: 3 Oct 92 14:56:03 GMT
Organization: Edotronik GmbH

In article <=-nz82f@rpi.edu> pooler@vccnorthd.its.rpi.edu (Robert Peter Poole) writes:
>function...  What the heck am I doing wrong???  Does anybody understand how
>this stuff works?

Is the stack size for your child process ok?

>Rob "tearing his hair out" Poole

--
Heinz Wrobel, Edotronik GmbH (ECG018)
FAX +49 89 850 51 25 / TEL +49 89 850 25 20 (HOME!&VOICE, sometimes...)
"It's good to have a mouse, it's faster if you can do without one..."
"He who doesn't develop with an A2024 doesn't know about font independent
 user interfaces..."
Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.tech,comp.sys.amiga.misc,comp.sys.amiga.graphics,comp.sys.amiga.games,comp.sys.amiga.audio,comp.unix.amiga,alt.sys.amiga
From: peteru@hydra.maths.unsw.EDU.AU ()
Subject: :-( Contest - win your own A4000 :-(
Organization: school of Mathematics UNSW
Date: Mon, 28 Sep 1992 14:05:59 GMT

In article <35403@cbmvax.commodore.com> AmigaContest@cbmvax.commodore.com writes:
>4000 REASONS TO OWN AN AMIGA CONTEST
>
  [... Lots deleted, including the specs on the prizes ...]
>
>9. Contest is open only to residents of the U.S. and Canada.

That is just great... I am really fed up by being ignored by C= here in
Australia. And it's not just this competition that has me Pi**ed off.
How is this for a list of 4000 reasons to be dissapointed with C=

US: Power Up to A3000 deal		Australia: NOTHING
UK: Trade in your A500 for CDTV		Australia: NOTHING
US: Buy A3000 get CDTV for FREE		Australia: NOTHING
US: 4000 reasons to own Amiga		Australia: NOTHING

And I am sure that this list is nowhere near complete. Why, oh why, I ask
thee???

			Peter.

Peter Urbanec				  peteru@hydra.maths.unsw.oz.au
University of New South Wales		s1013734@cs.unsw.oz.au
Sydney, Australia
		The only sin is stupidity  - Machiavelli
From: fgd3@nifty.UUCP (Fabbian G. Dufoe, III)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: HELP!
Distribution: world
Date: 26 Sep 92 01:05:06 EDT
Organization: Fabbian G. Dufoe, III

In article <1992Sep24.183623.9287@ultb.isc.rit.edu> jms1086@ritvax.isc.rit.edu writes:
>Ok... Here's the problem... For a long while I've been trying to use certain
>programs like Imagine... For some reason, it gave me a finish all disk
>activity error... That was a while ago, so I gave up... Now I just picked
>up a GIF viewer (GifMachine, comp.binaries.amiga/volume91/graphics)..
>And when it goes to re-do the palette (I guess)... It gives me that same
>error... Now it shouldn't be memory... I went through and brought down
>everything to give my machine max memory... Here's my system:
>
>Amiga 2000, 20M SupraDrive, 2 floppies, 1M chip, 2M Fast, 2400modem, bridge-
>board (took out all boot up software for it though.. So it doesn't
>realize its there, I believe.)... 

   What about your software?  Which version of Workbench are you running?
When the requester appears and you click on the "Cancel" button, what is the
identification number of the system error (or, under Workbench 1.3, the Guru
meditation number)?  Post that information and you may get some better help.

--Fabbian G. Dufoe, III
   350 Ling-A-Mor Terrace South   | GEnie:    F.DUFOE3
   St. Petersburg, Florida  33705 | internet: fgd3%nifty@tct.com
   813-823-2350                   | uucp:     ...tct!deep6!nifty!fgd3

Newsgroups: comp.sys.amiga.programmer
From: Todd_Lewis@unc.edu (Todd M. Lewis)
Subject: Re: Aztec C compiler problems
Organization: UNC Office of Information Technology
Date: Mon, 28 Sep 1992 14:39:49 GMT

In article <1992Sep25.235654.20179@rsd0.rsd.dl.nec.com> hoag@rss.dl.nec.com  
(Bill Hoag) writes:
>In article <92269.122249IO00198@MAINE.MAINE.EDU>, Just some weird dude  
<IO00198@MAINE.MAINE.EDU> writes:
>|> Anyway, my
>|> problem is that my program won't link.
>|> The last 4 or 5 things it tried to link were listed as undefined.
>|> Should I link to another file as well, or is there a problem with
>|> the c.lib file?
>If you have a program in "foo.c", you'd compile it using:
>  cc foo.c
>This will produce "foo.o".  Link this using:
>  ln foo.o -lc
>This will produce an executable "foo".  The compile and link will only
>work if cc and ln are in your path and ln knows where the "c"
>library is.  Peruse your Aztec manual for further info.
If you are using any floats or doubles you need to link with m.lib
first.  ex:   ln foo.o -lm -lc
Good Luck,
--
Todd M. Lewis / Todd_Lewis@unc.edu / utoddl@guitar.oit.unc.edu
       An acorn's destiny is not to become an oak tree.
         An acorn's destiny is to become a squirrel.
Xref: sparky comp.sys.amiga.programmer:13817 comp.sys.amiga.misc:14490 comp.sys.amiga.graphics:6412 comp.sys.amiga.games:13467 comp.sys.amiga.audio:3487 comp.unix.amiga:2189
From: pad@probitas.cs.utas.edu.au (Paul A Daniels)
Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.misc,comp.sys.amiga.graphics,comp.sys.amiga.games,comp.sys.amiga.audio,comp.unix.amiga,alt.sys.amiga
Subject: Re: Contest - win your own A4000
Date: 28 Sep 92 22:59:49 GMT
Organization: University of Tasmania, Australia.

In <hkantola.36@katk.Helsinki.FI> hkantola@katk.Helsinki.FI (Kantola Heikki) writes:

>In article <35403@cbmvax.commodore.com> AmigaContest@cbmvax.commodore.com writes:

>>4000 REASONS TO OWN AN AMIGA CONTEST

><some stuff deleted>

>>9. Contest is open only to residents of the U.S. and Canada.
>                                             ^^^^^^^^^^^^^^^

>UNFAIR!

>I would have liked to win A4000, but I can't even try just because I'm 
>living on the wrong side of the pond (in other words: Europe).

>:-(

>Heikki Kantola,
>e-mail: hkantola@cc.helsinki.fi
>	heikki.kantola@helsinki.fi

	Well it is better than waiting 2-3 months for a magazine to arrive in
aus, and see all  the great prizes that were given out a month ago... 

Paul.
-
pad@probitas.cs.utas.edu.au
Some where in the world there is a person worse off than you! Poor bugger!
Newsgroups: comp.sys.amiga.programmer
From: ry41@rz.uni-karlsruhe.de (Bernhard Moellemann)
Subject: Re: Info needed on AmigaDOS executable format
Organization: University of Karlsruhe, Germany
Date: Mon, 28 Sep 1992 10:47:52 GMT

In article <rx0n4rk.harp@netcom.com>, harp@netcom.com (Gregory O. Harp) writes:
>Where can I find a definition of the format of an AmigaDOS executable
>file?  I need enough info to essentially write my own loader, i.e. I
>will want to be able to write some code to resolve the addresses, etc.
You will find this in the 
  The AmigaDOS Manual 3rd Edition
  ISBN 0-533-35403-5

It was published by 
  Bantam Books (800-223-6834, NY & Canada 212-765-6500)

-- 
 Bernhard Moellemann   <spare space>   Chairman of the Nessy-Fan-Club   //
 internet=zza@rz.uni-karlsruhe.de <space> FIDO=2:241/7506.42  IRC=ZZA  //
 nessynet=008  Lifenet=77:7700/11.42  greetings to my Marsupilami  \\ //
 2000/500 Technical Reference Manual:  "A1000, the original Amiga"  \X/
From: heinz@edohwg.adsp.sub.org (Heinz Wrobel)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Info needed on AmigaDOS executable format
Date: 28 Sep 92 20:10:03 GMT
Organization: Edotronik GmbH

In article <rx0n4rk.harp@netcom.com> harp@netcom.com (Gregory O. Harp) writes:
>This one's simple enough.
>
>Where can I find a definition of the format of an AmigaDOS executable

In the Bantam DOS book.

>file?	I need enough info to essentially write my own loader, i.e. I

Why don't you use LoadSeg() or InternalLoadSeg() or NewLoadSeg()?
If oyu don't use them, you probably won't stay compatible with future
OS-releases!

>  Greg

--
Heinz Wrobel, Edotronik GmbH (ECG018)
FAX +49 89 850 51 25 / TEL +49 89 850 25 20 (HOME!&VOICE, sometimes...)
From: ludde@nada.kth.se (Erik Lundevall)
Subject: Re: Comeau C++
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Tue, 29 Sep 1992 17:03:11 GMT

In article <1537@igd.fhg.de>, john@igd.fhg.de (Werner John) writes:

|> Hmmm that triggers some more thoughts.  How do you debug C++ programs compiled
|> with Comeau C++?  I think every one who does programming in C++ has seen
|> the nasty names that are created by the front end as C-function names.
|> I really hate to debug this kind of stuff.  printf, sorry, I should say

It is not too bad once you learn the name mangling scheme, in my opinion.
Of course it would be better with real C++ names, but in the meantime I
think magled names are acceptable and not such a big pain.

-- 
-Erik Lundevall             ludde@nada.kth.se 
                            ludde@adder.adsp.sub.org
                            cbmehq!cbmswe!adder!ludde@cbmvax.commodore.com
Your fault. Core dumped.
From: paulk@terapin.com (Paul Kienitz)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: How to insert chars into a STRGADGET?
Date: 6 Oct 92 11:48:42 PST
Organization: BBS

> I'd like to be able to insert a character into a STRGADGET at the
> current position by clicking a BOOLGADGET, so I'm messing with the
> StringInfo.Buffer and StringInfo.BufferPos fields.
 
This is fine if you remove the gadget, change the string, add it
again, and RefreshGList it.

Actually, RefreshGList alone might be perfectly okay.
Organization: Sophomore, Electrical and Computer Engineering, Carnegie Mellon, Pittsburgh, PA
Newsgroups: comp.sys.amiga.programmer
Date: Tue,  6 Oct 1992 19:51:50 -0400 
From: Jonathan Michael Kraly <jk72+@andrew.cmu.edu>
Subject: Nextlike

	Does anybody know if there is a PD util out that makes ADOS
move full windows, not just the flickering outline, like the Next
does?
If not does anybody have any ideas about how this might be done?
(jk72@andrew.cmu.edu)
From: paulk@terapin.com (Paul Kienitz)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Cun I yoos da Debugger wid Assembly?
Date: 27 Sep 92 17:50:02 GMT
Organization: BBS

>       Oh Yeah, and before I forget, (be prepared this is a really dumb
> question). How on earth is my assembler supposed to work when I have the
> following lines in the include files: e.g.
> 
>       dos/dos.i has the following lines:
> 
> STRUCTURE DateStamp,0
>       LONG  ds_Days      ;      Number of days since Jan. 1, 1978
>       LONG  ds_Minute         ; Number of minutes past midnight
>       LONG  ds_Tick                   ; Number of ticks past minute
>       LABEL ds_SIZEOF                 ; DateStamp
> 
> Now how can this assemble? It looks Cish to me, and of course, asm spews
> when it gets to these lines...
 
You need to include 'exec/types.i' -- it defines all the stuff used
there.
Newsgroups: comp.sys.amiga.programmer
From: pooler@aix02.ecs.rpi.edu (Robert Peter Poole)
Subject: Re: HDMem vs GigaMem for virtual memory on Amigas?
Organization: Rensselaer Polytechnic Institute, Troy, NY
Date: Sun, 4 Oct 1992 06:44:53 GMT

In article <paulk.1qpc@terapin.com> paulk@terapin.com (Paul Kienitz) writes:
>> Also, even if it were 68040 compatible, it would not work on the
>> A4000, as the A4000 uses the 68EC040 chip, the big brother of the
>> 68EC030. The 68EC040 chip has neither PMMU nor FPU math
>> coprocessor.
> 
>Am I to understand that the base A4000 has no MMU or FPU hardware at
>all??
> 
[rest of article deleted]

Who starts this bullshit rumormongering?  Inquiring minds want to know.

I'm still pissed that I actually got suckered once myself by this.

First it was the rumor that the Alice could address 4 meg of chip RAM.  (She
can't.)  Now this.

The Commodore engineers have repeatedly posted to the comp.sys.amiga
hierarchy to stomp out these rumors, but people keep blithely believing them.
And spreading them.  The 68040 in the Amiga 4000 is a REAL, genuine full
blown 68040, not a castrated '040.

Ah, well.
Newsgroups: comp.sys.amiga.programmer
From: pmiller@csugrad.cs.vt.edu (Paul Miller)
Subject: Using UNIT_WAITUNTIL Timer to set an alarm...
Organization: The Ohio State University Department of Computer and Information Science
Date: Wed, 30 Sep 1992 03:23:47 GMT

I'm writing a routine that needs to wake up at a specific time (say 3:00),
in military time. I want to use a UNIT_WAITUNTIL timer to signal me at this
time (relative to the current time, of course, even if 3:00 is still 14
hours away, ie. the next "day"). This requires calculations based on
the number of seconds beginning on January 1, 1978 and such. I don't want
to set a timer every second, get the current time, and compare hour and 
minute to my time, like some clock alarms work. Does anyone have an
algorithm which will accomplish what I want? 

Thanks in advance...

-- 
****************************************************************************
* Paul Miller                         |Nobody cares about my opinion anyway*
* Certified Amiga Developer           |                                    *
* INTERNET: pmiller@csugrad.cs.vt.edu |    - Have a JOLT and a smile! -    *
* ------------------------------------------------------------------------ *
* "What IS it, man?"                                "Happy Happy, Joy Joy" *
****************************************************************************
From: jhf@d0xs1.fnal.gov (John Featherly)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: GCC 2.2.2 works with 68030?
Date: 2 Oct 1992 16:35:48 GMT
Organization: D0 Experiment
Distribution: world
Reply-To: jhf@d0xs1.fnal.gov (John Featherly)
NNTP-Posting-Host: d0xs1.fnal.gov
Keywords: GCC, 68030


In article <1992Oct1.184742.14896@bernina.ethz.ch>, wild@nessie.cs.id.ethz.ch (Markus Wild) writes:
|>Newsgroups: comp.sys.amiga.programmer
|>Path: fnnews.fnal.gov!mp.cs.niu.edu!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!Sirius.dfn.de!chx400!bernina!wild
|>From: wild@nessie.cs.id.ethz.ch (Markus Wild)
|>Subject: Re: GCC 2.2.2 works with 68030?
|>Message-ID: <1992Oct1.184742.14896@bernina.ethz.ch>
|>Keywords: GCC, 68030
|>Sender: news@bernina.ethz.ch (USENET News System)
|>Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
|>References: <1af7odINNrvg@fnnews.fnal.gov>
|>Date: Thu, 1 Oct 92 13:47:42 GMT+6:00
|>Lines: 22
|>
|>In article <1af7odINNrvg@fnnews.fnal.gov> jhf@d0xs1.fnal.gov (John Featherly) writes:
|>>when run.  For example "gcc -v" runs and tells the version but
|>>"gcc -v -c hello.c" tells the version, then tries to run the compiler and dies
|>>with the illegal instruction message.  Another example, "man" will generate
|>>the usage message but "man man" dies with illegal instruction.
|>>
|>>I'm trying to run this on a GVP A530 with WB 1.3, stack set at 300000.
|>>Anyone have any ideas?  I think I've checked all the obvious things.
|>
|>All these symptoms sound like a small STACK, so I'm quite puzzled to hear
|>you have it at 300k. Could you make sure it really is at 300k before
|>running the compiler? Please excuse, I hardly can believe it;-) 
|>
|>There's a marginal chance that 1.3 is the culprit, but I think that at least
|>one or two 1.3 users should have tried 2.2.2 in the meantime, and you're the
|>first one having this problem...
|>

I've checked the stack setting a few times.  But it makes me think of something
else ...  How much memory does it need?  I have 1.5M of fast mem, may not be
enough for the compiler pieces but I would have thought "man" could run in
that much?  I'll be receiving a memory upgrade soon, will see if it helps.
--
--------------------------------------------------------------------------------
   John Featherly                                    jhf@d0xs1.fnal.gov
   D-Zero Experiment at Fermi Lab                        (708) 840-4508
--------------------------------------------------------------------------------
From: ccsw@bristol.ac.uk (EthaStorm)
Newsgroups: comp.sys.amiga.programmer
Subject: RE: - Viewport help!!!!
Date: 30 Sep 92 15:06:29 GMT
Organization: University of Bristol, England

Hiho.

   Viewports? Right!

The viewport structure is 40 bytes long. It has the following format to it's
structure

Viewport ---------  0
                    0       Next
                    4       Colormap
                    8       DspIns
                   12       SprIns
                   16       ClrIns
                   20       UCopIns
                   24       Dwidth
                   26       DHeight
                   28       DxOffset
                   30       DyOffset
                   32       Modes
                   34       SpritePriorites
                   35       Reserved
                   36       RasInfo

The numbers before the mnemonics are the BYTE offset of the element WITHIN the
structure. So, for example, to set the Sprite Priorities of this viewport, you
would change the byte stored at Viewport-start-address+34. OK?

Thus, if you know the address of the start of the viewport structure, you can
find the address of the NEXT viewport structure by using something similar to
the following

         move.l viewport,a0   ; address of current viewport structure into A0
         move.l 0(a0),a0      ; address of NEXT viewport structure into A0

This will give you the start address of the EXT vieport on your screen. 
Alternatively, if you are setting up the viewports manually, then you would
push the start address of the next viewport into this LONG WORD (4 byte) #
address pointer. Set this to NULL (zero) if there are no more viewports.

   Hope this helps,

    Steff  *8)
From: cse_stu@memstvx1.memst.edu
Newsgroups: comp.sys.amiga.programmer
Subject: Scripit?
Summary: Does anyone know about Scripit?
Date: 6 Oct 92 04:56:32 GMT
Article-I.D.: memstvx1.1992Oct6.105633.3542
Distribution: world
Organization: Memphis State University

Has anyone used Scripit (fish 288)?
I'm looking for example scripts or other programs like scripit.
==========
Video Man
CSE_TEST@memstvx1.memst.edu
==========
Newsgroups: comp.sys.amiga.programmer