Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dthelp / parser / pass2 / build / except.c
1 /* $XConsortium: except.c /main/3 1995/11/08 10:42:31 rswiston $ */
2 /*
3               Copyright 1986 Tandem Computers Incorporated.
4 This product and information is proprietary of Tandem Computers Incorporated.
5                    Copyright (c) 1986, 1987, 1988, 1989 Hewlett-Packard Co.
6 */
7
8 /* Except.c contains procedures related to exceptions for program BUILD */
9
10 #include "build.h"
11
12 /* Add an exception (inclusion or exclusion) for the current element */
13 void addex(M_NOPAR)
14   {
15     excount++ ;
16     *nextex = (EXCEPTION *) m_malloc(sizeof(EXCEPTION), "exception") ;
17     if (exlist) exlist->next = *nextex ;
18     exlist = *nextex ;
19     (*nextex)->next = NULL ;
20     (*nextex)->nextptr = NULL ;
21     (*nextex)->element = ntrelt(name)->eltno ;
22     nextex = &(*nextex)->nextptr ;
23     }