~ubuntu-branches/ubuntu/lucid/graphviz/lucid-security

« back to all changes in this revision

Viewing changes to incr/dispatch.c

  • Committer: Bazaar Package Importer
  • Author(s): Stephen M Moraco
  • Date: 2002-02-05 18:52:12 UTC
  • Revision ID: james.westby@ubuntu.com-20020205185212-8i04c70te00rc40y
Tags: upstream-1.7.16
ImportĀ upstreamĀ versionĀ 1.7.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <incr.h>
 
2
 
 
3
#ifdef DMALLOC
 
4
#include "dmalloc.h"
 
5
#endif
 
6
 
 
7
ilbool ildispatch(ILview_t *view, ILobj_t *spec, ILfnlist_t *f)
 
8
{
 
9
        ilbool  rv;
 
10
        rv = FALSE;
 
11
        switch(spec->tag) {
 
12
        case ILNODE:    if (f->n) rv = (*(f->n))(view,(ILnode_t*)spec); break;
 
13
        case ILEDGE:    if (f->e) rv = (*(f->e))(view,(ILedge_t*)spec); break;
 
14
        case ILHYPER:   if (f->m) rv = (*(f->m))(view,(ILhyper_t*)spec); break;
 
15
        case ILVIEW:    if (f->v) rv = (*(f->v))(view,(ILview_t*)spec); break;
 
16
        default: break;
 
17
        }
 
18
        return rv;
 
19
}