backupfile.h revision 1.7 1 1.6 joerg /*
2 1.6 joerg * $OpenBSD: backupfile.h,v 1.6 2003/07/28 18:35:36 otto Exp $
3 1.6 joerg * $DragonFly: src/usr.bin/patch/backupfile.h,v 1.3 2007/09/29 23:11:10 swildner Exp $
4 1.7 nia * $NetBSD: backupfile.h,v 1.7 2021/02/19 17:46:53 nia Exp $
5 1.6 joerg */
6 1.6 joerg
7 1.6 joerg /*
8 1.6 joerg * backupfile.h -- declarations for making Emacs style backup file names
9 1.6 joerg * Copyright (C) 1990 Free Software Foundation, Inc.
10 1.6 joerg *
11 1.6 joerg * This program is free software; you can redistribute it and/or modify it
12 1.6 joerg * without restriction.
13 1.6 joerg *
14 1.6 joerg * This program is distributed in the hope that it will be useful, but WITHOUT
15 1.6 joerg * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 1.6 joerg * FITNESS FOR A PARTICULAR PURPOSE.
17 1.6 joerg *
18 1.6 joerg */
19 1.1 cgd
20 1.1 cgd /* When to make backup files. */
21 1.6 joerg enum backup_type {
22 1.7 nia undefined,
23 1.7 nia
24 1.6 joerg /* Never make backups. */
25 1.6 joerg none,
26 1.6 joerg
27 1.6 joerg /* Make simple backups of every file. */
28 1.6 joerg simple,
29 1.6 joerg
30 1.6 joerg /*
31 1.6 joerg * Make numbered backups of files that already have numbered backups,
32 1.6 joerg * and simple backups of the others.
33 1.6 joerg */
34 1.6 joerg numbered_existing,
35 1.1 cgd
36 1.6 joerg /* Make numbered backups of every file. */
37 1.6 joerg numbered
38 1.1 cgd };
39 1.1 cgd
40 1.1 cgd extern enum backup_type backup_type;
41 1.6 joerg extern const char *simple_backup_suffix;
42 1.1 cgd
43 1.6 joerg char *find_backup_file_name(const char *file);
44 1.6 joerg enum backup_type get_version(const char *version);
45