/* * Copyright 1993, 1995 Christopher Seiwald. * * This file is part of Jam - see jam.c for Copyright information. */ /* * lists.h - the LIST structure and routines to manipulate them * * 04/13/94 (seiwald) - added shorthand L0 for null list pointer * 08/23/94 (seiwald) - new list_append() */ /* * LIST - list of strings */ typedef struct _list LIST; struct _list { LIST *next; LIST *tail; /* only valid in head node */ char *string; /* private copy */ } ; typedef struct _lol LOL; # define LOL_MAX 9 struct _lol { int count; LIST *list[ LOL_MAX ]; } ; LIST *list_append(); LIST *list_copy(); LIST *list_new(); void list_free(); void list_print(); LIST *list_sublist(); # define list_next( l ) ((l)->next) # define L0 ((LIST *)0) void lol_init(); void lol_add(); void lol_free(); LIST *lol_get(); void lol_print();
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#6 | 2501 | rmg |
Nascent jam work for header scan caching: new list_printq() for writing a list in a format suitable for being included by the Jambase, and move logic around in headers() to make room for eventual caching code. No functional change. === computer:1666: Change 38623 by seiwald@play-seiwald on 2002/12/09 16:22:59 |
||
#5 | 2493 | rmg |
Rewrite the past: update all jam's source with comments to reflect changes since about 2.3, very early 2001. Whitespace only change. === computer:1666: Change 37660 by seiwald@play-seiwald on 2002/11/06 22:41:35 Note: I regenerated jamgram.c on my linux 7.3 system prior to the submit, since patch was so unhappy trying to lay down the changes from Christopher's change. Presumably this is just due to different yacc/bison/whatever particulars on the system where Christopher made the changes originally. - rmg |
||
#4 | 2491 | rmg |
Some consting in jam to make it more compilable by C++ compilers. No functional change. === computer:1666: Change 37433 by perforce@perforce on 2002/10/30 16:08:51 Recreational const-ing of jam, for compilers that don't allow "string" to be passed as a non-const char *. This included a few places where we were modifying what could possibly have been read-only storage, oddly enough. No functional change. === computer:1666: Change 37602 by seiwald@play-seiwald on 2002/11/04 17:25:40 |
||
#3 | 2489 | rmg |
Jam tinkering: since all calls to list_new() must either newstr() or copystr() the added string, instead just pass a flag and let list_new() do the newstr/copystr. No functional change. === computer:1666: Change 37164 by seiwald@spice on 2002/10/22 01:21:58 |
||
#2 | 486 | Perforce staff |
Jam 2.3. See RELNOTES for a list of changes from 2.2.x. Just about every source file was touched when jam got ANSI-fied. |
||
#1 | 2 | laura | Add Jam/MR 2.2 source |