open-axiom repository from github
/*1Copyright (C) 1991-2002, The Numerical ALgorithms Group Ltd.2All rights reserved.3Copyright (C) 2007-2008, Gabriel Dos Reis.4All rights reserved.56Redistribution and use in source and binary forms, with or without7modification, are permitted provided that the following conditions are8met:910- Redistributions of source code must retain the above copyright11notice, this list of conditions and the following disclaimer.1213- Redistributions in binary form must reproduce the above copyright14notice, this list of conditions and the following disclaimer in15the documentation and/or other materials provided with the16distribution.1718- Neither the name of The Numerical ALgorithms Group Ltd. nor the19names of its contributors may be used to endorse or promote products20derived from this software without specific prior written permission.2122THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS23IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED24TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A25PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER26OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,27EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,28PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR29PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF30LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING31NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS32SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.33*/3435extern int scrn;36extern Display *dsply;37extern XFontStruct *globalFont,*buttonFont,*headerFont,*titleFont,38*graphFont,*unitFont,*serverFont;39extern XrmDatabase rDB;4041extern char scaleXReport[5],scaleYReport[5],deltaXReport[5],42deltaYReport[5];43extern unsigned long *spadColors;44extern int followMouse,viewportKeyNum;45extern Window rtWindow,viewman;46extern GC globalGC1,globalGC2,anotherGC,globGC,trashGC,47controlMessageGC,graphGC,unitGC;48extern HashTable *table;49extern Colormap colorMap;50extern int Socket,ack;5152extern GC processGC;53extern viewPoints *viewport;54extern controlPanelStruct *control;55extern XGCValues gcVals;56extern const char* s;57extern int someInt;5859extern unsigned long foregroundColor, backgroundColor;6061extern int drawMore;62extern int spadMode,spadDraw;63extern jmp_buf jumpFlag;6465extern graphStruct graphArray[maxGraphs];66extern graphStateStruct graphStateArray[maxGraphs],67graphStateBackupArray[maxGraphs];68extern xPointStruct xPointsArray[maxGraphs];6970extern int pointsON, connectON, splineON, axesON, unitsON, zoomXON, zoomYON;71extern int transXON, transYON;7273extern char errorStr[80];7475extern int currentGraph;76extern int queriedGraph;77extern int picking,dropping;7879extern char filename[256];8081extern char *xDefault;8283extern int viewAloned;8485extern int mono, totalColors,86totalHues, totalSolidShades, totalDitheredAndSolids,totalShades;8788extern float aspectR;8990extern Atom wm_delete_window;919293