1 /*- 2 * Copyright (C) 1990 Free Software Foundation, Inc. 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * without restriction. 6 * 7 * This program is distributed in the hope that it will be useful, but WITHOUT 8 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 9 * FITNESS FOR A PARTICULAR PURPOSE. 10 * 11 * backupfile.h -- declarations for making Emacs style backup file names 12 * 13 * $OpenBSD: backupfile.h,v 1.6 2003/07/28 18:35:36 otto Exp $ 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 const char *simple_backup_suffix; 36 37 char *find_backup_file_name(const char *file); 38 enum backup_type get_version(const char *version); 39