Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

globals.h

Go to the documentation of this file.
00001 /* $Id: globals.h,v 1.1 2005/04/09 03:38:19 roxo Exp $ $Revision: 1.1 $ */
00002 /* vim:set shiftwidth=4 ts=8: */
00003 
00004 /**********************************************************
00005 *      This software is part of the graphviz package      *
00006 *                http://www.graphviz.org/                 *
00007 *                                                         *
00008 *            Copyright (c) 1994-2004 AT&T Corp.           *
00009 *                and is licensed under the                *
00010 *            Common Public License, Version 1.0           *
00011 *                      by AT&T Corp.                      *
00012 *                                                         *
00013 *        Information and Software Systems Research        *
00014 *              AT&T Research, Florham Park NJ             *
00015 **********************************************************/
00016 
00017 
00018 /* this is to get the following win32 DLL junk to work.
00019  * if ever tempted to remove this, first please read:
00020  * http://joel.editthispage.com/stories/storyReader$47
00021  */
00022 #ifndef GLOBALS_H
00023 #define GLOBALS_H
00024 
00025 #ifdef _UWIN
00026 #ifndef _POSIX_                 /* ncc doesn't define _POSIX_ */
00027 /* i.e. if this is the win32 build using nmake with CC=ncc (native C) */
00028 /* this was the easiest way to get some simple libc interfaces. */
00029 #include "C:\Program Files\UWIN\usr\include\astwin32.h"
00030 #undef _UWIN                    /* don't assume ANY _UWIN features in the execution environment */
00031 #endif                          /* _POSIX_ */
00032 #endif                          /* _UWIN */
00033 
00034 #ifndef __CYGWIN__
00035 #if defined(_BLD_dotneato) && defined(_DLL)
00036 #   define external __EXPORT__
00037 #endif
00038 #if !defined(_BLD_dotneato) && defined(__IMPORT__)
00039 #   define external __IMPORT__
00040 #endif
00041 #endif
00042 
00043 #ifndef external
00044 #   define external   extern
00045 #endif
00046 #ifndef EXTERN
00047 #define EXTERN extern
00048 #endif
00049 
00050 #ifdef __cplusplus
00051 extern "C" {
00052 #endif
00053 
00054     EXTERN char *Version;
00055     EXTERN char **Files;        /* from command line */
00056     EXTERN char **Lib;          /* from command line */
00057     EXTERN char *CmdName;
00058     EXTERN char *specificFlags;
00059     EXTERN char *specificItems;
00060     external char *Gvfilepath;  /* Path of files allowed in 'shapefile' attrib  (also ps libs) */
00061     external int y_invert;      /* invert y in dot & plain output */
00062 
00063 #if ENABLE_CODEGENS
00064     external int Output_lang;   /* POSTSCRIPT, DOT, etc. */
00065     external FILE *Output_file;
00066     external int Obj;
00067 
00068     extern codegen_t FIG_CodeGen, HPGL_CodeGen,
00069         MAP_CodeGen, MIF_CodeGen,
00070         XDot_CodeGen, MP_CodeGen, PIC_CodeGen, PS_CodeGen,
00071         DIA_CodeGen, SVG_CodeGen, VRML_CodeGen, VTX_CodeGen;
00072 
00073 #ifdef GD_RENDER
00074     extern codegen_t GD_CodeGen, memGD_CodeGen;
00075 #endif
00076 #ifdef QUARTZ_RENDER
00077     extern codegen_t QPDF_CodeGen, QEPDF_CodeGen, QBM_CodeGen;
00078 #endif
00079 
00080 #endif
00081 
00082     EXTERN boolean Verbose, Reduce, UseRankdir;
00083     EXTERN char *HTTPServerEnVar;
00084     EXTERN char *Output_file_name;
00085     EXTERN int graphviz_errors;
00086     EXTERN int Nop;
00087     EXTERN double PSinputscale;
00088     EXTERN int Syntax_errors;
00089     EXTERN int Show_boxes;      /* emit code for correct box coordinates */
00090     EXTERN int CL_type;         /* NONE, LOCAL, GLOBAL */
00091     EXTERN boolean Concentrate; /* if parallel edges should be merged */
00092     EXTERN double Epsilon;      /* defined in input_graph */
00093     EXTERN double Nodesep;
00094     EXTERN double Nodefactor;
00095     EXTERN int MaxIter;
00096     EXTERN int Ndim;
00097     EXTERN int State;           /* last finished phase */
00098     EXTERN double Initial_dist;
00099     EXTERN double Damping;
00100     external char *BaseLineStyle[];     /* solid, width = 1 */
00101 
00102     EXTERN attrsym_t
00103         * N_height, *N_width, *N_shape, *N_color, *N_fillcolor,
00104         *N_fontsize, *N_fontname, *N_fontcolor,
00105         *N_label, *N_nojustify, *N_style, *N_showboxes,
00106         *N_sides, *N_peripheries, *N_orientation,
00107         *N_skew, *N_distortion, *N_fixed, *N_layer,
00108         *N_group, *N_comment, *N_vertices, *N_z;
00109 
00110     EXTERN attrsym_t *E_weight, *E_minlen, *E_color,
00111         *E_fontsize, *E_fontname, *E_fontcolor,
00112         *E_label, *E_dir, *E_style, *E_decorate,
00113         *E_showboxes, *E_arrowsz, *E_constr, *E_layer,
00114         *E_comment, *E_label_float;
00115 /* vladimir */
00116     EXTERN attrsym_t *E_samehead, *E_sametail,
00117         *E_arrowhead, *E_arrowtail,
00118         *E_headlabel, *E_taillabel,
00119         *E_labelfontsize, *E_labelfontname, *E_labelfontcolor,
00120         *E_labeldistance, *E_labelangle;
00121 
00122 /* north */
00123     EXTERN attrsym_t *E_tailclip, *E_headclip;
00124 #undef external
00125 
00126 
00127 #ifdef __cplusplus
00128 }
00129 #endif
00130 #endif
Untitled Document Pesquisa Psi SourceForge.net Logo