/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * 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 /* Lefteris Koutsofios - AT&T Labs Research */ #ifndef _COMMON_H #define _COMMON_H /* some config and conversion definitions from graphviz distribution */ #ifdef HAVE_CONFIG_H #include "config.h" /* we set some parameters which graphviz assumes. * At some point, we could consider allowing these to be set in configure * See Makefile.old for others. */ #define FEATURE_MINTSIZE 1 #define FEATURE_DOT 1 #ifndef MSWIN32 #define FEATURE_X11 1 #endif #endif #ifdef _PACKAGE_ast #include #define HAVE_STRERROR 1 #else #include #include #include #include #include #include #ifndef MSWIN32 #include #endif #endif #include #include #include #include #ifdef FEATURE_WIN32 #include #include #endif #ifdef FEATURE_MS #include #endif #define POS __FILE__, __LINE__ #ifndef TRUE #define TRUE 1 #define FALSE 0 #endif #ifndef L_SUCCESS #define L_SUCCESS 1 #define L_FAILURE 0 #endif #define CHARSRC 0 #define FILESRC 1 #ifndef M_PI #define M_PI 3.14159265358979323846 #endif extern int warnflag; extern char *leftypath, *leftyoptions, *shellpath; extern jmp_buf exitljbuf; extern int idlerunmode; extern fd_set inputfds; int init (char *); void term (void); char *buildpath (char *, int); char *buildcommand (char *, char *, int, int, char *); void warning (char *, int, char *, char *, ...); void panic (char *, int, char *, char *, ...); void panic2 (char *, int, char *, char *, ...); #endif /* _COMMON_H */ #ifdef __cplusplus } #endif