HDTenEightyP/NetNews huggingface dataset:
From: sticht@edith.deg.sub.org (Stefan Sticht)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Edit hooks for gadtools' STRING_KIND/INTEGER_KIND
Date: 14 Apr 92 12:25:25 MET
Organization: private

In article <9204090720.AA21150@nettlerash.berkeley.edu> BRUNO@BRLNCC.BITNET (Bruno Costa) writes:
>Subject: Edit hooks for gadtools' STRING_KIND/INTEGER_KIND
>
>  Is it possible to use edit hooks for STRING_KIND gadgets (created,
>obviously, by gadtools.library)?

Sure, it works. Example for SAS/C 5.10b:

struct Hook stringhook = {
    {NULL, NULL},
    (ULONG)stringhookfunc,
    NULL,
    NULL
    };

#define ESC_KEY     0x45
#define UP_KEY      0x4c
#define DOWN_KEY    0x4d
#define RIGHT_KEY   0x4e
#define LEFT_KEY    0x4f
#define HELP_KEY    0x5f

unsigned long __saveds __asm
stringhookfunc(register __a0 struct Hook *h, register __a2 struct SGWork *sgw, register __a1 unsigned long *msg)
{
    if (*msg == SGH_KEY) {

        if (sgw->IEvent) switch (sgw->IEvent->ie_Code) {

            case ESC_KEY:
                sgw->Actions = SGA_END;
                break;

            case UP_KEY:
                sgw->Actions |= SGA_PREVACTIVE | SGA_END;
                break;

            case DOWN_KEY:
                sgw->Actions |= SGA_NEXTACTIVE | SGA_END;
                break;

            /* ALT + RIGHT jumps to start of next word */
            case RIGHT_KEY:
                if (sgw->IEvent->ie_Qualifier & (IEQUALIFIER_LALT | IEQUALIFIER_RALT)) {
                    while (sgw->BufferPos < sgw->NumChars && !isspace(sgw->WorkBuffer[sgw->BufferPos])) sgw->BufferPos++;
                    while (sgw->BufferPos < sgw->NumChars && isspace(sgw->WorkBuffer[sgw->BufferPos])) sgw->BufferPos++;
                    sgw->Actions |= SGA_REDISPLAY;
                    }
                break;

            /* ALT + LEFT jumps to start of previous word */
            case LEFT_KEY:
                if (sgw->IEvent->ie_Qualifier & (IEQUALIFIER_LALT | IEQUALIFIER_RALT)) {
                    while (sgw->BufferPos > 0 && !isspace(sgw->WorkBuffer[sgw->BufferPos - 1])) sgw->BufferPos--;
                    sgw->Actions |= SGA_REDISPLAY;
                    }
                break;

            }

        return(TRUE);

        }

    return(FALSE);
}

[The following cut off the function, which layouts and creates my gadgets]

#define DEFAULT_MAXCHARS 256
#define TAGPOS_GTST_MaxChars    0
#define TAGPOS_GT_Underscore    3
#define TAGPOS_GA_Disabled      4
#define TAGPOS_TAG_END          5
static struct TagItem stringtags[] = {
    GTST_MaxChars, DEFAULT_MAXCHARS,
    GTST_EditHook, &stringhook,
    GT_Underscore, '_',
    GA_Disabled, TRUE,
    TAG_END
    };

gad = CreateGadgetA(STRING_KIND, gad, &ng, stringtags);

Just add the right include files and it should work.

Greetings, Stefan
From: Dale.Schmitz@ivgate.omahug.org (Dale Schmitz)
Newsgroups: comp.sys.amiga.programmer
Subject: Over here!
Date: 12 Apr 92 00:16:00 CST
Reply-To: dale.schmitz@ivgate.omahug.org
Organization: 
Followup-To: comp.sys.amiga.programmer

Your quest for Fortran is over!  There is a Fortran 77 compiler available from DevWare, or you can call the Omaha AmigaNet at 402-330-4304 and find it in the programmers support section in a file called (what else?) Fortran.lzh.
Have fun.

Newsgroups: comp.sys.amiga.programmer
From: peterk@public.sub.org (Peter Kittel)
Subject: Re: AmigaBasic Compiler
Organization: Public News & Mailserver, Commodore Germany PM UNIX, Frankfurt
Date: Wed, 15 Apr 92 14:43:02 GMT

stacysm@sage.cc.purdue.edu (Steve Stacy) writes:

>Has there been any updates for Cursor ?  Are there any other Amiga
>Basic Compiler which supports more commands ?

There are a number of commercial compilers:
HiSoft Basic by HiSoft (British, I think)
AC/Basic by Absoft
(both these are compatible with Amigabasic, the others not:)
GFA-Basic by GFA Systemtechnik, Germany
AMOS
BlitzBasic ?
True Basic (withdrawn?)
 
-- 
Best regards, Dr. Peter Kittel  // E-Mail to  \\  Only my personal opinions... 
Commodore Frankfurt, Germany  \X/ {uunet|pyramid|rutgers}!cbmvax!cbmger!peterk
                                   or  peterk@public.sub.org
From: rock@lakes.trenton.sc.us (Rockerboy)
Newsgroups: comp.sys.amiga.programmer
Subject: Help with devices
Date: 6 Apr 92 08:33:17 GMT
Organization: The Greg Lake Fan Club

I am trying to learn proper usage of the various devices, and yes, I have 
the RKM's, but I just don't understand what they're telling me.  In the 
68K include files, I see a lot of statements I have no idea what they do. 
 For example, in exec/io.i, the io request structure is defined like 
this:

STRUCTURE   IO,MN_SIZE
    APTR    IO_DEVICE
    APTR    IO_UNIT
    UWORD   IO_COMMAND
    UBYTE   IO_FLAGS
    BYTE    IO_ERROR
    LABEL   IO_SIZE

Now, obviously this is defining something about the structure, but I'll 
be damned if I can figure how to use it.  (duh!)  How does this structure 
directive work, and what does aptr, uword, ubyte etc. mean?  If I include 
exec/io, can I use this structure instead of manually reserving it at the 
end of all my code?  (i.e.  is there an easier way that simply setting up 
the space on my own by using the include file?)  If so, could someone 
please send me 68K  (not c, as I don't speak C) source example of 
accessing, say, the console device (since it uses the standard request 
structure).  I'd really appreciate any help.


"Sometimes what you say is going to fly right in the faces of the 
powerful people who really run this world, but you don't care...you know 
it's your place to challenge authority..."

                                          Rockerboy
Newsgroups: comp.sys.amiga.programmer
From: epang@fraser.sfu.ca (Eugene Pang)
Subject: Re: Version checking
Organization: Simon Fraser University, Burnaby, B.C., Canada
Date: Sat, 11 Apr 1992 04:14:41 GMT

JLKARAU@MTUS5.BITNET writes:
>I have the following code in a program I am working on, which is supposed to
>tell a person if they don't have the right version on DOS.Library.  I request
>a version 37, 2.04.

>DOSBase = (struct DOSBase *) Open Library("dos.library",37L);
>if(!DOSBase)
> {printf("You need KS2.04cn");exit(20);}

>Beta testers with 2.04 are fine, Beta testers with 1.3 just guru on this.
>COuld someone tell me why?

First, I assume you meant OpenLibrary, without the space.

Second, your c.lib startup code already opens dos.library.  When your
OpenLibrary call gets called under 1.3, DOSBase becomes NULL.  The result
is that the printf eventually calls the AmigaDOS function Write()
but relative to the LibraryBase of 0!

Anyways, since all you need is a version check, try the following code
instead:

    if (!(temp = (struct Library *)OpenLibrary("dos.library", 37L))) {
        printf("You need KS2.04\n");
        exit(20);
    }
    CloseLibrary(temp);
Newsgroups: comp.sys.amiga.programmer
From: hessmann@r2d2.fmi.uni-passau.de (Georg Hessmann)
Subject: Re: PasTeX
Organization: University of Passau, Germany
Distribution: comp
Date: Fri, 10 Apr 1992 12:49:32 GMT

In article <3289@svin02.info.win.tue.nl> dedos3@info.win.tue.nl writes:
>In article <1992Apr8.142056.14521@srd.bt.co.uk> jhawes@everest.srd.bt.co.uk writes:
>>From article <ku1gtiINN1ep@utkcs2.cs.utk.edu>, by levi@cs.utk.edu (David Levi):
>>> 
>>> Since nobody in c.s.a.applications answered, I'm asking this here.  I need
>>> to get PasTeX working, but I'm having a problem with DVIPrint.  It keeps
>>> popping up requestors asking for volumes like '360x360.1' or '180x120.4'
>>> These look like printer resolutions.  What do I need to do?  Any help
>>> is really appreciated.
>>> 
>>> -Dave Levi    levi@cs.utk.edu
>>
>>Maybe these have to be logical assignments to drawers with fonts or
>>something in ??
>
>For DVIPrint to work, you indeed need the volumes 360x360.*, because these
>disks hold the various .pk files, containing the fonts. There is, however a
>way to get around buying (I don't think they are available on anonymous ftp)
>by downloading the metafont program. Metafont can generate the fonts, using
>.mf description files, it just takes a (very) long time. Once the fonts are
>generated, you can use them.

The 360x360.? disks are not available via ftp, but you can copy lharc 
files with the 360x360 dpi fonts.
Look at: ftp.uni-passau.de /pub/amiga/tex/fonts/360dpi/*

You have to copy the fonts on disks, relabel it and make entries for the
disks in TeX:config/FontVols.
Look at the preview disks how and at the file TeX:config/DVIprint.fnt
how to make it.

>By the way, has onyone else encountered the problem with using the $\Box$
>command in LaTeX. When I use it, it shows an element sign in the ShowDVI
>program, but it should be a box. DVIPrint prints the box alright, but gives
>a checksum error on the character.

Sorry, this is a bug into the fonts. :-(
I don't know, how this can happend, but all boxes are element signs...
(I've generated the fonts on a DEC Station, may be Metafont wasn't ok)

Delete the bogus font (I think it's a 'lasy' font) and generate it new
with Metafont on the Amiga. Than you will get a nice box. :)

	Georg.

-- 
  hessmann@unipas.fmi.uni-passau.de		hessmann@unipas.uucp
From: mwalter@theborg.mlb.fl.us (Mark Walter)
Newsgroups: comp.sys.amiga.programmer
Subject: Amos 1.32
Date: 15 Apr 92 21:23:16 EDT
Organization: The BORG BBS: 407-7224487 / Melbourne, FL. USA (Via CNet Amiga)

I am having a problem with menus and double buffering.  The double buffering
is on my menus flicker.  Since I need double buffering and there is no way I
know to turn it off I am stuck. Can anyone help?

***************************************************************************
*                       >>>>>> Jake Speed >>>>>>                          *
***************************************************************************
Newsgroups: comp.sys.amiga.programmer
From: mbs@adastra.cvl.va.us (Michael B. Smith)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: GCC and Amiga Libraries
Distribution: world
Reply-To: adastra!mbs@Virginia.Edu
Date: 12 Apr 92 14:13:44 EDT
Organization: Private UUCP Node

In article <1992Apr12.071013.4551@midway.uchicago.edu> asd2@ellis.uchicago.edu (Amish Dave) writes:
[stuff deleted]
>Actually, the above isn't really the question at all, now that I think
>about it.  The REAL question is, how can I do this WITHOUT writing the
>inline headers/stubs myself by manually looking at what's provided, and
>using the info from an fd file?
[more stuff deleted]
>p.s. A note to any besides me who are looking to get GCC2.0 working w/o
>having looked at GCC1.40:  hunk2gcc is in the earlier GCC (1.40 or 1.39,
>I forget) release, and will let you convert most link libraries and object
>files from at least SAS (don't know about other compilers).

Now, if you already knew the answer, why did you ask?	    :)

Use hunk2gcc against amiga.lib (which comes with SAS, DICE, Manx, the
Native Developers package, it was on a AWTJ disk, etc.), and create a
libamiga.a.
--
  //   Michael B. Smith
\X/    ...!uunet!virginia!adastra!mbs
Newsgroups: comp.sys.amiga.programmer
From: roachp@wl.aecl.ca
Subject: Spline Librarys?
Organization: AECL RESEARCH
Date: Wed, 8 Apr 1992 06:14:23 GMT

Are there any C librarys for Post Script, DXF, or other spline graphic creations?PJR
From: mykes@amiga0.SF-Bay.ORG (Mike Schwartz)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Version numbers
Distribution: world
X-NewsSoftware: Amiga GRn V1.28 2/25/92 (Beta) by Mike Schwartz
Date: 7 Apr 92 23:12:34 PST
Organization: Amiga makes it possible

In article <1992Apr6.164211.23350@jato.jpl.nasa.gov> jdickson@jato.jpl.nasa.gov (Jeff Dickson) writes:
>In article <1992Apr5.040159.24086@samba.oit.unc.edu> Frederick.Theilig@bbs.oit.unc.edu (Frederick Theilig) writes:
>>
>>     Once while browsing through the Amiga Style Guide, I noticed their
>> comment on using version numbers.  Somehow, one is to burn in the
>> text "$VER: <progname> x.xx" into their program.  All well and good.
>> Any ideas as to the best method for doing this?  At the moment, I do
>> char ver = "$VER: bla bla", which works.  Is there a better way?  I'm
>> using DICE.
>
>"$VER" appears to be an environmental variable. The leading $ just means
>that the remainder will be replaced with whatever it has been set to.
>

No, $VER is an embedded string of bytes in the executable that the version
command is able to find and print.  I wonder if there is some string that
makes the version command guru? :)

For DICE, which is ANSI 'C', I suggest:

const char ver[] = "$VER: Where's the new chipset?";

The const implies that the program does NOT modify the string, and therefore
shouldn't screw up a LINT-like program.

--
Author of Amiga GRn, MailMinder, Budokan, Beyond Dark Castle, Dark Castle,
and Genesis Dick Tracy and Marble Madness.
Mike Schwartz  (ames!zorch!amiga0!mykes or mykes@amiga0.sf-bay.org)
1124 Fremont Ave.
Los Altos, CA 94024
From: $brycerw@brandonu.ca
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Edit hooks for gadtools' STRING_KIND/INTEGER_KIND
Date: 11 Apr 92 18:22:31 GMT
Organization: Brandon University, Brandon, Manitoba, Canada

In article <30237@cbmvax.commodore.com>, peter@cbmvax.commodore.com (Peter Cherna) writes:
> In article <9204090720.AA21150@nettlerash.berkeley.edu> BRUNO@BRLNCC.BITNET (Bruno Costa) writes:
>>Subject: Edit hooks for gadtools' STRING_KIND/INTEGER_KIND
>>
>>  Is it possible to use edit hooks for STRING_KIND gadgets (created,
>>obviously, by gadtools.library)?

All the documentation I could find is a little vague on what this edit hook
can and cannot do.  (ie. can it allow for elimination of certain characters -
so I can make a "money gadget", or taking a character and replacing it - so
for example, all characters are uppercase - I know there's other ways for this
just and example)

Could someone from Commodore, or who has successfully worked with these edit
hooks also please post, or email me an example of one, so I/we have a clue
of what they are to look like?

Thanks.

Robert Bryce
brycerw@brandonu.ca
$brycerw@brandonu.ca
From: hadig@rama.informatik.rwth-aachen.de (Thomas Hadig)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: MSH heeeelp
Keywords: MSH
Date: 10 Apr 92 10:41:55 GMT
Organization: RBI - RWTH Aachen

hi,

You have to cd to ms1: first after mounting, maybe you forgot that ?

-----------------------------------------------------------------------------
Thomas Hadig, Otto-Petersen-Haus Zi.1009, Ruetscher Str.155, D-51 Aachen
       hadig@ouzo.rog.rwth-aachen.de
       hadig@messua.informatik.rwth-aachen.de
-----------------------------------------------------------------------------
From: jeannet@cerbere.enst.fr (Olivier Jeannet)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: ReadArgs() problem with /F and embedded newlines
Date: 15 Apr 92 14:24:12 GMT
Organization: Telecom Paris, France

In article <9204090717.AA21125@nettlerash.berkeley.edu>, BRUNO@BRLNCC.BITNET (Bruno Costa) writes:
-> Subject: ReadArgs() problem with /F and embedded newlines
-> 
->   I was trying to write a CLI command that received some parameters through
-> command line.  These parameters are parsed with ReadArgs(), with a template
-> similar to "OPTION/S,SIZE/N,COMMAND/F".  For most cases, the line is parsed
-> correctly, but if the user tries to use a '+' at the end of the line in the
-> shell, the COMMAND parameter seems to be wrong:
-> 
->   doit OPTION SIZE 10 this is a line+
->   this is a second line
-> 
->   The result of the parsing is:
->   args[0] = 1
->   args[1] = 10
->   args[2] = "this is a line"
-> 
->   I would expect args[2] to be "this is a line\nthis is a second line".

if you type a CLI command with a '+' at the end of the line, the CLI
waits for a second command line, which will be executed after the first
one normally. This feature can be very handy if you want to run a single
script :

2.RAM:> run wait 5 mins +
echo >speak: "five minutes have gone, i am going to save" +
copy *.c source:

by typing this you launch a Background CLI executing a script, this way you
don't have neither to edit a little script nor to open a NewCLI.

I hope this will clarify the effect of having a '+' at the end of a cmdline.
From: doug@dsij.uucp (Doug Johnson)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: programming sound-effects
Date: 10 Apr 92 17:05:17 GMT
Organization: Not an Organization

In article <92100.123129IO00198@MAINE.MAINE.EDU>
 IO00198@MAINE.MAINE.EDU (Just some weird dude) writes:
>This is my weak spot.  I have no trouble in creating whatever kind of
>wave I need, but I don't know what the wave I need is.  If I want to
>make a crash or explosion sound effect or a laser, how do I know
>what the wave should look like?  Any answers or names of sources will
>be appreciated.
>  COREY GRAY   IO00198@MAINE.MAINE.EDU  |

  The single most effective technique is to modulate the volume over the
duration of the sound. A crash will start very loud and quickly decrease in
volume. A laser might alternate about 5 or 10 times a second in volume.
A sawtooth wave gives the classic laser sound.

  Period modulation is also effective. For a laser, ramp the period up or down
from about per=n to per=2n, at 5 or 10 Hz.
  For an explosion, use white noise (random values) and a sample of about
10000 bytes to avoid noticable repetition. Ramp the period from about 1000 to
about 2000 in the first 1/2 second, while dropping the volume from 64 to about
10.


--
Doug Johnson			* "Sitting quietly, doing nothing,
Windsor, ON    jabba!dsij!doug	*  Spring comes, and the grass grows by itself."
Canada				*   - The Zenrin
Organization: Computing Technology Services, Michigan Technological Univ.
Date: Monday, 6 Apr 1992 02:09:22 EST
From: <JLKARAU@MTUS5.BITNET>
Newsgroups: comp.sys.amiga.programmer
Subject: DIV?

Is there an INteger Division operator in C?  I need something to return a
whole value and am at a sticking point.  Maybe it is to late?  Any help is appr
eciated.. JLKARAU@mtus5.cts.mtu.edu
From: dej@qpoint.amiga.ocunix.on.ca (David Jones)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Libraries & local data structures
Distribution: world
Date: 9 Apr 92 19:01:34 EST
Organization: Dejital Software

In article <stefanb.702646468@messua> stefanb@messua.informatik.rwth-aachen.de (Stefan Becker) writes:
> 1. Build a list of all task, which are using the library. When a library
>    function needs the data, do a FindTask(NULL) and scan the list.
>    Drawbacks: - time consuming
>	       - fails if a task opens the library more than once
>

That's what xferq.library is using.  Mention in your documentation
that a process must open a library once only.  Even that may cause no
problem depending on what you want to do.

Also consider the effect that ARexx has on this:

ARexx opens and closes the library for each function call.  If you
"clean up" the process-specific data in CloseLibrary, then you
probably won't want to do this if the call was from ARexx.  You must
set a flag in your query function that prevents the release of resources
upon close.

Someone once wrote me saying that if you attach your per-process data
to a RexxRsrc structure and install it in the environment of the calling
ARexx process, then your data will be deleted automatically when the
ARexx script terminates.  I don't have any examples; I plan to
experiment once I finish exams.

>-- 
>Mail  : Stefan Becker, Holsteinstrasse 9, D-5100 Aachen  ///    Only
>Phone : +49-241-505705			    Germany     ///  Amiga makes
>Domain: stefanb@cip-s01.informatik.rwth-aachen.de   \\\///  it possible..
>FIDO  : 2:242/7.6, Stefan_Becker@mowgli.fido.de	     \XX/  -->A3000/25<--

--

 David Jones               UUCP: dej@qpoint.amiga.ocunix.on.ca
 6730 Tooney Drive         Alt:  David_Jones@p8.f109.n163.z1.fidonet.org
 Orleans, Ontario          Fido: 1:163/109.8                    
 K1C 6R4                                                        
 CANADA                    AMIGA: Advanced Multimedia with
                                  Interactive Graphics and Audio
From: utoddl@next1.oit.unc.edu (Todd M. Lewis)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Input handler for Games (was Re: Custom Copperlist)
Date: 15 Apr 92 20:16:19 GMT
Distribution: usa
Organization: UNC Office of Information Technology

In article <1992Apr9.171735.488@jato.jpl.nasa.gov>  
jdickson@jato.jpl.nasa.gov (Jeff Dickson) writes:
>In article <1992Apr9.140942.14588@samba.oit.unc.edu>  
utoddl@next1.oit.unc.edu (Todd M. Lewis) writes:
>>Not meaning to beat a dead horse into a plowshare, but is there an
>>input handler template that could be just dropped into a program to 
>>handle this in a clean way?  Maybe I'm wrong, but sooner or later it
>>seems everyone wants to write some killer game that's OS friendly,
>
>Sure a game could install an input handler to retrieve input, but
>there is no automatic arbitration of the input device food chain with  
respect
>to the active window. Applications that are tied to windows receive IDCMP
>messages when their window is the active one, but never otherwise. How
>would a game determine to shut off the input handler? 

Ah.  Intuition gets whatever is left of the input chain after everybody
else gets what they want.  If you full-screen custom-view game is active,
then no Intuition windows are visible anyway.  So the game gets  
everything.  Every system-friendly game should provide some way for
the user to say "Let me go play with Intuition for a while."  That's
how a game would determine when to pass input events on.

>At least by sticking to using the console device and/or intuition -
>the input stream gets cutoff automatically when the window is 
>deselected in the process of selecting another window. 

For games that work within Intuition, this is fine, but some games would
run better _beside_ Intuition.  In that case you have two programs 
controling the display--Intiution and The Game.  They work at the
same level really, just neither at the same time.  The Game need not
even be a game--it could be your own Intuition replacement.  (Ha!)

>	Also, by not using the Console device you can't make use of the
>keyboard maps. Your game would fastly become unpopular amoung the inter-
>national community.

Nothing says you can't use the console device.  If you are doing
keyboard-for-text things, you should use it.  This doesn't exclude
the console device in any way.
--
Todd M. Lewis / utoddl@next1.oit.unc.edu