diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-07-11 22:45:37 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-07-11 22:45:37 +0000 |
commit | eb79907f63b7985751849d7a13e13879b6b8da9e (patch) | |
tree | eefbe4fc827242cb32f18a1ef0a4ffb4772630cd /src/graph.c | |
parent | 156b2a34fbc4dd3215c5b8cc2cc326f56dfb7df8 (diff) | |
download | tagr-eb79907f63b7985751849d7a13e13879b6b8da9e.tar.gz tagr-eb79907f63b7985751849d7a13e13879b6b8da9e.tar.bz2 |
Reorganize project directory layout.
* README-hacking: New file.
* src: New directory
* src/Makefile.am: New file.
* graph.c, readconfig.c, tagr.h, log.c, report.h,
queue.c: Move to src
* main.c: Move to src, fix a minor bug in main.
* html.l: Move to src/html.lex.l.
* html.y: Move to src/html.gram.y.
* lib/argcv.c, lib/argcv.h: Move to src.
* config, INSTALL: Remove
* README_hacking: New file.
* configure.ac, Makefile.am: Update for new gnulib and new
directory structure.
* bootstrap: Update from gnulib.
* gnulib.modules: New file.
* bootstrap.conf: New file.
git-svn-id: file:///svnroot/tagr/trunk@89 7c378d0d-a4e4-4a64-9229-dfce8bfd23d4
Diffstat (limited to 'src/graph.c')
-rw-r--r-- | src/graph.c | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/graph.c b/src/graph.c new file mode 100644 index 0000000..b88a5e8 --- /dev/null +++ b/src/graph.c @@ -0,0 +1,57 @@ +/* This file is part of tagr. + Copyright (C) 2006, Sergey Poznyakoff + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. */ + +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif + +#include <stdlib.h> +#include <string.h> +#include <unistd.h> +#include <limits.h> +#include <stdio.h> +#include <time.h> +#include <math.h> +#include <ctype.h> +#include <errno.h> +#include <gd.h> +#include <gdfonts.h> + +#include <tagr.h> + +int fill_incoming_option = 1; /* Fill incoming graph */ +int percent_option = 0; +int transparent_option = 1; +int zero_unknown_option = 1; + +int color_background[3] = { 245,245,245 }; +int color_light[3] = { 194,194,194 }; +int color_dark[3] = { 100,100,100 }; +int color_major[3] = { 255,0,0 }; +int color_in[3] = { 0,235,12 }; +int color_out[3] = { 0,94,255 }; +int color_grid[3] = { 0,0,0 }; +int color_in_max[3] = { 0,166,33 }; +int color_out_max[3] = { 255,0,255 }; +int color_percent[3] = { 239,159,79 }; + +static char *short_suffix[] = {"", "k", "M", "G", "T"}; +char **number_suffix = short_suffix; +size_t number_suffix_count = sizeof (short_suffix) / sizeof (short_suffix[0]); + +/* No functions so far */ |