/* $Id: defs.h,v 1.5 2005/10/18 18:42:59 ellson Exp $ $Revision: 1.5 $ */
/* vim:set shiftwidth=4 ts=8: */
/* ********************************************************
* This software is part of the graphviz package *
* *
* Copyright (c) 1994-2004 AT&T Corp. *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Corp. *
* *
* Information and Software Systems Research *
* AT&T Research, Florham Park NJ *
**********************************************************/
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _DEFS_H_
#define _DEFS_H_
#include "neato.h"
#ifdef __cplusplus
struct vtx_data {
int nedges;
int *edges;
float *ewgts;
};
struct cluster_data {
};
inline double max(double x, double y) {
if (x >= y)
return x;
else
return y;
} inline double min(double x, double y) {
if (x <= y)
return x;
else
return y;
}
inline int max(int x, int y) {
if (x >= y)
return x;
else
return y;
}
inline int min(int x, int y) {
if (x <= y)
return x;
else
return y;
}
struct Point {
double x;
double y;
}};
#else
#undef inline
#define inline
#include <macros.h>
#ifdef USE_STYLES
#endif
typedef struct {
#ifdef USE_STYLES
#endif
#ifdef DIGCOLA
#endif
} vtx_data;
typedef struct cluster_data {
} cluster_data;
#ifdef UNUSED
typedef struct {
double x;
double y;
} Point;
#endif
#endif
#endif
#ifdef __cplusplus
}
#endif