Annotation of src/usr.bin/patch/backupfile.h, Revision 1.6
1.6 ! otto 1: /* $OpenBSD: backupfile.h,v 1.5 2003/07/21 14:32:21 deraadt Exp $ */
1.5 deraadt 2:
1.4 deraadt 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: */
1.1 deraadt 15:
16: /* When to make backup files. */
1.4 deraadt 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,
1.1 deraadt 29:
1.4 deraadt 30: /* Make numbered backups of every file. */
31: numbered
1.1 deraadt 32: };
33:
34: extern enum backup_type backup_type;
1.4 deraadt 35: extern char *simple_backup_suffix;
1.1 deraadt 36:
1.6 ! otto 37: char *find_backup_file_name(const char *file);
! 38: enum backup_type get_version(const char *version);