[jugglemaster] Pattern File Parsing [was: 1st Real Thread]

Barton Chittenden tiger at iglou.com
Wed Jun 9 06:35:32 EDT 2004


On Tue, 8 Jun 2004, Chunky Kibbles wrote:

> On Tue, Jun 08, 2004 at 11:51:44AM -0400, Chunky Kibbles wrote:
<snip>
>
> Simply, go into src/jmlib, and type "make p"

"no rule to make target p" ;-)

that's OK, I'll grab the new code in a bit.

> The code is actually C, but pulls in a C++ header for types. I think
> I'll fix this soon, but in the meantime, it requries C++ :-/
>
> I've not yet decided how I'm going to use this, but obviously it can
> replace huge swathes of code in patt.cpp in jmdlx, and aajm can now
> probably take advantage of it.

Yeah. I was looking at some of that code last night. It's ugly.

>
> Braodly speaking:
>
> struct groups_t g;
> struct styles_t s;
> FILE *f = fopen("patterns.jm","r");
> ParsePatterns(f, &g, &s);
> fclose(f);
>
>
> This can be used for whatever you want, including [possibly] a new
> file that contains all styles you want to make available through a
> styles menu [eg normal, windmill, mills].

Right.
>
> The FreeGroups and FreeStyles functions are currently rather rudely
> non-existant. I'll get round to it :-)

Memory? We don't need no steenkin Memory.

--Barton



More information about the Jugglemaster mailing list