Move internationalization macros to one header
[geda-pcb/gde.git] / src / file.h
blob64eba233891f5d4cf4c982a47e6c81742c5e78b0
1 /*
2 * COPYRIGHT
4 * PCB, interactive printed circuit board design
5 * Copyright (C) 1994,1995,1996 Thomas Nau
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 * Contact addresses for paper mail and Email:
22 * Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany
23 * Thomas.Nau@rz.uni-ulm.de
27 /* prototypes for file routines
30 #ifndef __FILE_INCLUDED__
31 #define __FILE_INCLUDED__
33 #include <stdio.h> /* needed to define 'FILE *' */
34 #include "global.h"
36 FILE *CheckAndOpenFile (char *, Boolean, Boolean, Boolean *, Boolean *);
37 FILE *OpenConnectionDataFile (void);
38 int SavePCB (char *);
39 int LoadPCB (char *);
40 void EnableAutosave (void);
41 void Backup (void);
42 void SaveInTMP (void);
43 void EmergencySave (void);
44 void DisableEmergencySave (void);
45 int ReadLibraryContents (void);
46 int ImportNetlist (char *);
47 int SaveBufferElements (char *);
48 void PreLoadElementPCB (void);
49 void PostLoadElementPCB (void);
50 void sort_netlist (void);
52 /*
53 * Whenever the pcb file format is modified, this version number
54 * should be updated to the date when the new code is committed.
55 * It will be written out to the file and also used by pcb to give
56 * guidance to the user as to what the minimum version of pcb required
57 * is.
59 #define PCB_FILE_VERSION 20070407
62 #ifndef HAS_ATEXIT
63 #ifdef HAS_ON_EXIT
64 void GlueEmergencySave (int, caddr_t);
65 #else
66 void SaveTMPData (void);
67 void RemoveTMPData (void);
68 #endif
69 #endif
71 #endif