From: Chris La M. <lam...@gt...> - 1998-05-31 08:02:14
|
I have placed an update to the Textdata library at http://home1.gte.net/lamantia/gameprog/allegro/textdata.htm. The only change is that I fixed a bug in maketext.c; it wasn't returning EXIT_SUCCESS, so using maketext in a makefile would cause the makefile to fail even if maketext succeeded. If you are not using makefiles and are already using an older version of textdata, there is no need to download the update. For those who have not yet seen Textdata, it adds a text data object to Allegro. A text data object is an Allegro datafile object; it can be stored in an Allegro datafile and loaded as needed by the library. The actual data itself is simply a block of zero-delimited strings (a utility for converting lists of carriage-return delimited strings is included here). Allegro, with the help of the loader routines in textdata.c, will allocate the memory individually for each string, and will return a pointer to a table of string pointers; thus, a dynamically-allocated ragged array. --Chris +-------------------------------+-----------------------------------------+ | Chris La Mantia | Current project: Infinite Worlds, a | | lam...@gt... | CRPG with a dynamically generated world | | http://home1.gte.net/lamantia | http://home1.gte.net/lamantia/infinite | +-------------------------------+-----------------------------------------+ |