[comp.sys.atari.st] SPUFILE 2.0, C questions

glk01126@uxa.cso.uiuc.edu (10/19/89)

	Hammering out SPUFILE 2.0, I need some tech advice.

	1) Does Malloc(-1L) not work properly?
		I get various values after deleting a wide array
		(Mfree) of buffers, e.g. 16304 free.  Then after
		creating another of size ca. 512, I get back to
		the normal 100K+ value.  ??? Is it my program?
		(probably)

	2) Is there anyway to register a continual pressing of
		a dialog button without an event_multi to check
		position and state of the mouse, then checking
		if it is in button area?


	3) Is there a problem reading from PC format disks.  Some work,
		others give some bs when doing fsfirst(), fsnext().

	4) Using Laser C 2.0.


	People interested in SPUFILE 2.0, send your requests.  It is
	a shareware program I have written with a gem interface.  It
	reads files from a variety of types of disks including Aladin
	1/2 sided, Magic Sac 1/2 Sided, Atari/PC 1/2 Sided or Spectre
	1 sided disks and holds as many as fit in memory.  It then
	writes them back to any of the above type disks on command.
	Like two continual file selectors, one with files in memory,
	the other with files on disk.  If Dave Small is interested, I'll
	add Spectre two sided support and send it two him for distribution.

	Does anyone have the necessary c-code and instructions to turn
	it into a DA also?

	Thanks in advance.

		-Spieu!
		Gregory Mathias Lemperle-Kerr
		(Looks like University of Illinois)

glk01126@uxa.cso.uiuc.edu (10/19/89)

	ADDENDUM to note:

	Files written to STdisk if read from mac are
	FILENAME.MAC
	FILENAME.MRS
	FILENAME.MIN
	
	the .MIN file contains the original mac name (now converted
	to 8 chars, uppercase) along with finder info and attribute bits.

	If the R box is selected, .RSC or .MRS files with the same
	FILENAME portion will automatically be read along with the
	FILENAME.EXT file.  In addition if the FILENAME.MIN file is
	in the directory, it will be parsed for its information.

	When written to a mac disk, an ST file will be converted to
	filename (lower case) and the RSC included if there is one.
	(I don't know if there is any use for that unless macGEM comes
	out).

	Deleting files from disk or memory is an option as well as a
	move selector which deletes the selected files from memory
	after copying to disk.

	Any other options any one would like to see?  Information on
	the current 'checked in' disk is also shown as well as free
	space, block size, total space, free memory and files in memory.
	10 files of disk and memory each are shown on the screen at once.
	It only runs in monochrome now.  Any requests for color?  The
	resource seems messed up in medium, don't know why.  Used RSCTOC.TTP
	from terminator.

	-Spieu!

wallace@oldtmr.dec.com (Ray Wallace) (10/20/89)

In article <111500042@uxa.cso.uiuc.edu>, glk01126@uxa.cso.uiuc.edu writes...
>	1) Does Malloc(-1L) not work properly?
This only returns the size of the largest chunk of free memory. So if you have
holes in your free memory (non-contiguous) then it will return a number
smaller than the total of all free memory.

---
Ray Wallace		
		(INTERNET,UUCP) wallace@oldtmr.enet.dec.com
		(UUCP)		...!decwrl!oldtmr.enet!wallace
		(INTERNET)	wallace%oldtmr.enet@decwrl.dec.com
---