X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dfa%2Fset.c;h=aaf93136bee611a485d18a521b6aaa854df78c82;hb=28f3461a79a4569d736f4ffc66c6ae207e38c2ab;hp=285fe55c514c0a415127e10c5bca03073af0c306;hpb=e127268c91736bf5a116cbc24653da4b845ca046;p=idzebra-moved-to-github.git diff --git a/dfa/set.c b/dfa/set.c index 285fe55..aaf9313 100644 --- a/dfa/set.c +++ b/dfa/set.c @@ -1,10 +1,16 @@ /* - * Copyright (C) 1994, Index Data I/S + * Copyright (C) 1994-1999, Index Data * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: set.c,v $ - * Revision 1.5 1996-10-29 13:57:29 adam + * Revision 1.7 1999-05-26 07:49:12 adam + * C++ compilation. + * + * Revision 1.6 1999/02/02 14:50:13 adam + * Updated WIN32 code specific sections. Changed header. + * + * Revision 1.5 1996/10/29 13:57:29 adam * Include of zebrautl.h instead of alexutil.h. * * Revision 1.4 1995/09/04 12:33:27 adam @@ -137,16 +143,16 @@ Set rm_Set (SetType st, Set s) Set add_Set (SetType st, Set s, int n) { SetElement dummy; - Set p = &dummy, new; + Set p = &dummy, snew; p->next = s; while (p->next && p->next->value < n) p = p->next; assert (p); if (!(p->next && p->next->value == n)) { - new = mk_SetElement (st, n); - new->next = p->next; - p->next = new; + snew = mk_SetElement (st, n); + snew->next = p->next; + p->next = snew; } return dummy.next; }