Debian Codegraph @

terps/tads/tads2/lst.c

raw symbols SCIP
1 #ifdef RCSID
2 static char RCSid[] =
3 "$Header: d:/cvsroot/tads/TADS2/LST.C,v 1.2 1999/05/17 02:52:12 MJRoberts Exp $";
4 #endif
5
6 /*
7 * Copyright (c) 1991, 2002 Michael J. Roberts. All Rights Reserved.
8 *
9 * Please see the accompanying license file, LICENSE.TXT, for information
10 * on using and copying this software.
11 */
12 /*
13 Name
14 lst.c - list manipulation routines
15 Function
16 Routines to manipulate TADS run-time lists
17 Notes
18 None
19 Modified
20 08/13/91 MJRoberts - creation
21 */
22
23 #include <assert.h>
24 #include "os.h"
25 #include "lst.h"
26 #include "dat.h"
27
28 void lstadv(uchar **lstp, uint *sizp)
29 {
30 uint siz;
31
32 siz = datsiz(**lstp, (*lstp)+1) + 1;
33 assert(siz <= *sizp);
34 *lstp += siz;
35 *sizp -= siz;
36 }
37