backupfile.h (1027B)
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 * $FreeBSD$ 15 */ 16 17 /* When to make backup files. */ 18 enum backup_type { 19 /* Never make backups. */ 20 none, 21 22 /* Make simple backups of every file. */ 23 simple, 24 25 /* 26 * Make numbered backups of files that already have numbered backups, 27 * and simple backups of the others. 28 */ 29 numbered_existing, 30 31 /* Make numbered backups of every file. */ 32 numbered 33 }; 34 35 extern enum backup_type backup_type; 36 extern const char *simple_backup_suffix; 37 38 char *find_backup_file_name(const char *file); 39 enum backup_type get_version(const char *version);