gattrib

i_vars.c

Go to the documentation of this file.
00001 /* gEDA - GPL Electronic Design Automation
00002  * gattrib -- gEDA component and net attribute manipulation using spreadsheet.
00003  * Copyright (C) 2003-2010 Stuart D. Brorson.
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00018  */
00019 
00026 #include <config.h>
00027 
00028 #include <stdio.h>
00029 
00030 #ifdef HAVE_STRING_H
00031 #include <string.h>
00032 #endif
00033 
00034 
00035 
00036 /*------------------------------------------------------------------
00037  * Gattrib specific includes.  Note that include order is important.
00038  *------------------------------------------------------------------*/
00039 #include <libgeda/libgeda.h>       /* geda library fcns  */
00040 #include "../include/struct.h"     /* typdef and struct declarations */
00041 #include "../include/prototype.h"  /* function prototypes */
00042 #include "../include/globals.h"
00043 
00044 #include "../include/i_vars.h"
00045 
00046 #ifdef HAVE_LIBDMALLOC
00047 #include <dmalloc.h>
00048 #endif
00049 
00050 
00051 
00052 /*------------------------------------------------------------------*/
00053 /*
00054  * Define the vars we'll use later
00055  *------------------------------------------------------------------*/
00056 int   default_paper_width = 11000; 
00058 int   default_paper_height = 85000;
00062 /*------------------------------------------------------------------*/
00069 void i_vars_set (TOPLEVEL *toplevel)
00070 {
00071   i_vars_libgeda_set (toplevel);
00072 
00073   toplevel->paper_width = default_paper_width;
00074   toplevel->paper_height = default_paper_height;
00075 }
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines