Annotation of src/usr.bin/patch/backupfile.h, Revision 1.4
1.4 ! deraadt 1: /* $OpenBSD: backupfile.h,v 1.3 2002/02/19 19:39:39 millert 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 it
! 7: * without restriction.
! 8: *
! 9: * This program is distributed in the hope that it will be useful, but WITHOUT
! 10: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
! 11: * FITNESS FOR A PARTICULAR PURPOSE.
! 12: *
! 13: */
1.1 deraadt 14:
15: /* When to make backup files. */
1.4 ! deraadt 16: enum backup_type {
! 17: /* Never make backups. */
! 18: none,
! 19:
! 20: /* Make simple backups of every file. */
! 21: simple,
! 22:
! 23: /*
! 24: * Make numbered backups of files that already have numbered backups,
! 25: * and simple backups of the others.
! 26: */
! 27: numbered_existing,
1.1 deraadt 28:
1.4 ! deraadt 29: /* Make numbered backups of every file. */
! 30: numbered
1.1 deraadt 31: };
32:
33: extern enum backup_type backup_type;
1.4 ! deraadt 34: extern char *simple_backup_suffix;
1.1 deraadt 35:
1.4 ! deraadt 36: char *find_backup_file_name(char *file);
! 37: enum backup_type get_version(char *version);