]> git.cameronkatri.com Git - apple_cmds.git/blob - patch_cmds/patch/backupfile.h
Merge branch 'apple'
[apple_cmds.git] / patch_cmds / patch / backupfile.h
1 /* $OpenBSD: backupfile.h,v 1.6 2003/07/28 18:35:36 otto Exp $ */
2
3 /*
4 * backupfile.h -- declarations for making Emacs style backup file names
5 * Copyright (C) 1990 Free Software Foundation, Inc.
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * without restriction.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE.
13 *
14 */
15
16 /* When to make backup files. */
17 enum backup_type {
18 /* Never make backups. */
19 none,
20
21 /* Make simple backups of every file. */
22 simple,
23
24 /*
25 * Make numbered backups of files that already have numbered backups,
26 * and simple backups of the others.
27 */
28 numbered_existing,
29
30 /* Make numbered backups of every file. */
31 numbered
32 };
33
34 extern enum backup_type backup_type;
35 extern char *simple_backup_suffix;
36
37 char *find_backup_file_name(const char *file);
38 enum backup_type get_version(const char *version);