Fix bug with expanding text.
[geda-pcb/pcjc2.git] / src / file.h
blob0515882b01855e257b84917ba5a80bf1cdfd28c5
1 /*!
2 * \file src/file.h
4 * \brief Prototypes for file routines.
6 * <hr>
8 * <h1><b>Copyright.</b></h1>\n
10 * PCB, interactive printed circuit board design
12 * Copyright (C) 1994,1995,1996 Thomas Nau
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 * Contact addresses for paper mail and Email:
29 * Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany
30 * Thomas.Nau@rz.uni-ulm.de
33 #ifndef PCB_FILE_H
34 #define PCB_FILE_H
36 #include <stdio.h> /* needed to define 'FILE *' */
37 #include "global.h"
39 FILE *CheckAndOpenFile (char *, bool, bool, bool *, bool *);
40 FILE *OpenConnectionDataFile (void);
41 int SavePCB (char *);
42 int LoadPCB (char *);
43 int RevertPCB (void);
44 void EnableAutosave (void);
45 void Backup (void);
46 void SaveInTMP (void);
47 void EmergencySave (void);
48 void DisableEmergencySave (void);
49 int ReadLibraryContents (void);
50 int ImportNetlist (char *);
51 int SaveBufferElements (char *);
52 void sort_netlist (void);
54 int PCBFileVersionNeeded (void);
55 /*!< This is the version needed by the file we're saving. */
57 #define PCB_FILE_VERSION 20110603
58 /*!< \brief This is the version we support.
60 * Whenever the pcb file format is modified, this version number
61 * should be updated to the date when the new code is committed.
62 * It will be written out to the file and also used by pcb to
63 * give guidance to the user as to what the minimum version of
64 * pcb required is.
67 #ifndef HAS_ATEXIT
68 #ifdef HAS_ON_EXIT
69 void GlueEmergencySave (int, caddr_t);
70 #else
71 void SaveTMPData (void);
72 void RemoveTMPData (void);
73 #endif
74 #endif
76 #endif