~ubuntu-branches/ubuntu/wily/gargoyle-free/wily-proposed

« back to all changes in this revision

Viewing changes to tads/tads2/dat.h

  • Committer: Bazaar Package Importer
  • Author(s): Sylvain Beucler
  • Date: 2009-09-11 20:09:43 UTC
  • Revision ID: james.westby@ubuntu.com-20090911200943-idgzoyupq6650zpn
Tags: upstream-2009-08-25
ImportĀ upstreamĀ versionĀ 2009-08-25

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
$Header: d:/cvsroot/tads/TADS2/DAT.H,v 1.2 1999/05/17 02:52:11 MJRoberts Exp $
 
3
*/
 
4
 
 
5
/* 
 
6
 *   Copyright (c) 1991, 2002 Michael J. Roberts.  All Rights Reserved.
 
7
 *   
 
8
 *   Please see the accompanying license file, LICENSE.TXT, for information
 
9
 *   on using and copying this software.  
 
10
 */
 
11
/*
 
12
Name
 
13
  dat.h - datatype definitions
 
14
Function
 
15
  Defines datatypes for TADS
 
16
Notes
 
17
  None
 
18
Modified
 
19
  08/11/91 MJRoberts     - creation
 
20
*/
 
21
 
 
22
#ifndef DAT_INCLUDED
 
23
#define DAT_INCLUDED
 
24
 
 
25
#ifndef STD_INCLUDED
 
26
#include "std.h"
 
27
#endif
 
28
 
 
29
/* a type of a piece of data */
 
30
typedef int dattyp;
 
31
 
 
32
/* datatype numbers */
 
33
#define DAT_NUMBER  1
 
34
#define DAT_OBJECT  2
 
35
#define DAT_SSTRING 3
 
36
#define DAT_BASEPTR 4
 
37
#define DAT_NIL     5                     /* nil, as in FALSE or empty list */
 
38
#define DAT_CODE    6
 
39
#define DAT_LIST    7
 
40
#define DAT_TRUE    8                                     /* inverse of nil */
 
41
#define DAT_DSTRING 9
 
42
#define DAT_FNADDR  10                                /* a function address */
 
43
#define DAT_TPL     11                             /* template list pointer */
 
44
#define DAT_PROPNUM 13                                 /* a property number */
 
45
#define DAT_DEMAND  14          /* special flag: use callback to set on use */
 
46
#define DAT_SYN     15               /* synonym to indicated property value */
 
47
#define DAT_REDIR   16                   /* redirection to different object */
 
48
#define DAT_TPL2    17                                /* new-style template */
 
49
 
 
50
/* determine the size of a piece of data */
 
51
uint datsiz(dattyp typ, void *valptr);
 
52
 
 
53
#endif /* DAT_INCLUDED */