xref: /netbsd-src/usr.bin/patch/backupfile.h (revision 1ca5c1b28139779176bd5c13ad7c5f25c0bcd5f8)
1 /*	$NetBSD: backupfile.h,v 1.3 1996/09/19 06:27:08 thorpej Exp $	*/
2 
3 /* backupfile.h -- declarations for making Emacs style backup file names
4    Copyright (C) 1990 Free Software Foundation, Inc.
5 
6    This program is free software; you can redistribute it and/or modify
7    it without restriction.
8 
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.
12 */
13 
14 /* When to make backup files. */
15 enum backup_type
16 {
17   /* Never make backups. */
18   none,
19 
20   /* Make simple backups of every file. */
21   simple,
22 
23   /* Make numbered backups of files that already have numbered backups,
24      and simple backups of the others. */
25   numbered_existing,
26 
27   /* Make numbered backups of every file. */
28   numbered
29 };
30 
31 extern enum backup_type backup_type;
32 extern char *simple_backup_suffix;
33 
34 #ifdef __STDC__
35 char *find_backup_file_name (char *file);
36 enum backup_type get_version (char *version);
37 #else
38 char *find_backup_file_name ();
39 enum backup_type get_version ();
40 #endif
41