~ubuntu-branches/ubuntu/lucid/graphviz/lucid-updates

« back to all changes in this revision

Viewing changes to lib/graph/libgraph.h

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2008-06-19 20:23:23 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080619202323-ls23h96ntj9ny94m
Tags: 2.18-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Build depend on liblualib50-dev instead of liblua5.1-0-dev.
  - Drop libttf-dev (libttf-dev is in universe) (LP: #174749).
  - Replace gs-common with ghostscript.
  - Build-depend on python-dev instead of python2.4-dev or python2.5-dev.
  - Mention the correct python version for the python bindings in the
    package description.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: libgraph.h,v 1.5 2007/09/07 12:05:44 ellson Exp $ $Revision: 1.5 $ */
 
1
/* $Id: libgraph.h,v 1.7 2008/03/08 18:26:30 ellson Exp $ $Revision: 1.7 $ */
2
2
/* vim:set shiftwidth=4 ts=8: */
3
3
 
4
4
/**********************************************************
37
37
#ifndef EXTERN
38
38
#define EXTERN extern
39
39
#endif
40
 
#ifndef uchar
41
 
#define uchar   unsigned char
42
 
#endif
43
40
 
44
41
#ifndef NIL
45
42
#define NIL(t)  ((t)0)
68
65
 
69
66
#include "graph.h"
70
67
 
 
68
#ifdef HAVE_STDINT_H
 
69
#include <stdint.h>
 
70
#endif
 
71
#ifdef HAVE_INTTYPES_H
 
72
#include <inttypes.h>
 
73
#endif
 
74
 
71
75
#ifdef offsetof
72
76
#undef offsetof
73
77
#endif
 
78
#ifdef HAVE_INTPTR_T
 
79
#define offsetof(typ,fld)  ((intptr_t)(&(((typ*)0)->fld)))
 
80
#else
74
81
#define offsetof(typ,fld)  ((int)(&(((typ*)0)->fld)))
 
82
#endif
75
83
 
76
84
#ifndef NOT
77
85
#define NOT(v)          (!(v))
119
127
        char *edge_op;
120
128
        char *linebuf;
121
129
        short syntax_errors;
122
 
        uchar accepting_state, init_called;
 
130
        unsigned char accepting_state, init_called;
123
131
    } AG;
124
132
 
125
133
/* follow structs used in graph parser */