gsch2pcb: Make --m4-file and -m4-pcbdir arguments work again.
[geda-gaf/peter-b.git] / gattrib / src / i_vars.c
blob26927b0086ab0eb12d241f3d5c11702388db5077
1 /* gEDA - GPL Electronic Design Automation
2 * gattrib -- gEDA component and net attribute manipulation using spreadsheet.
3 * Copyright (C) 2003-2010 Stuart D. Brorson.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 /*! \file
21 * \brief Functions for variable setting.
23 * Functions for variable setting.
26 #include <config.h>
28 #include <stdio.h>
30 #ifdef HAVE_STRING_H
31 #include <string.h>
32 #endif
36 /*------------------------------------------------------------------
37 * Gattrib specific includes. Note that include order is important.
38 *------------------------------------------------------------------*/
39 #include <libgeda/libgeda.h> /* geda library fcns */
40 #include "../include/struct.h" /* typdef and struct declarations */
41 #include "../include/prototype.h" /* function prototypes */
42 #include "../include/globals.h"
44 #include "../include/i_vars.h"
46 #ifdef HAVE_LIBDMALLOC
47 #include <dmalloc.h>
48 #endif
52 /*------------------------------------------------------------------*/
54 * Define the vars we'll use later
55 *------------------------------------------------------------------*/
56 int default_paper_width = 11000; /*!< width for letter paper (landscape)
57 * \todo Can this be const? */
58 int default_paper_height = 85000;/*!< height for letter paper (landscape)
59 * \todo Can this be const? */
62 /*------------------------------------------------------------------*/
63 /*! \brief Initialise variables in the TOPLEVEL
65 * Initialize the variables in toplevel. In practice, this is only
66 * the paper size for the sheet.
67 * \param toplevel pointer to the TOPLEVEL to set paper size in.
69 void i_vars_set (TOPLEVEL *toplevel)
71 i_vars_libgeda_set (toplevel);
73 toplevel->paper_width = default_paper_width;
74 toplevel->paper_height = default_paper_height;