Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / lib / backupfile.h
blob6d12187f19f9343c44faea0533e4e9359b9c7e20
1 /* backupfile.h -- declarations for making Emacs style backup file names
2 Copyright (C) 1990-1992, 1997-1999, 2001-2003 Free Software Foundation, Inc.
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; see the file COPYING.
16 If not, write to the Free Software Foundation,
17 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19 #ifndef BACKUPFILE_H_
20 # define BACKUPFILE_H_
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
27 /* When to make backup files. */
28 enum backup_type
30 /* Never make backups. */
31 none,
33 /* Make simple backups of every file. */
34 simple,
36 /* Make numbered backups of files that already have numbered backups,
37 and simple backups of the others. */
38 numbered_existing,
40 /* Make numbered backups of every file. */
41 numbered
44 # define VALID_BACKUP_TYPE(Type) \
45 ((Type) == none \
46 || (Type) == simple \
47 || (Type) == numbered_existing \
48 || (Type) == numbered)
50 extern DLL_VARIABLE char const *simple_backup_suffix;
52 extern char *find_backup_file_name (char const *file,
53 enum backup_type backup_type);
54 extern enum backup_type get_version (char const *context, char const *arg);
55 extern enum backup_type xget_version (char const *context, char const *arg);
56 extern void addext (char *filename, char const *ext, char e);
59 #ifdef __cplusplus
61 #endif
63 #endif /* ! BACKUPFILE_H_ */