1246074Sgabor/*-
2246074Sgabor * Copyright (C) 1990 Free Software Foundation, Inc.
3246074Sgabor *
4246074Sgabor * This program is free software; you can redistribute it and/or modify it
5246074Sgabor * without restriction.
6246074Sgabor *
7246074Sgabor * This program is distributed in the hope that it will be useful, but WITHOUT
8246074Sgabor * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9246074Sgabor * FITNESS FOR A PARTICULAR PURPOSE.
10246091Sdelphij *
11246091Sdelphij * backupfile.h -- declarations for making Emacs style backup file names
12246091Sdelphij *
13246074Sgabor * $OpenBSD: backupfile.h,v 1.6 2003/07/28 18:35:36 otto Exp $
14246091Sdelphij * $FreeBSD$
15246074Sgabor */
16246074Sgabor
17246074Sgabor/* When to make backup files. */
18246074Sgaborenum backup_type {
19246074Sgabor	/* Never make backups. */
20246074Sgabor	none,
21246074Sgabor
22246074Sgabor	/* Make simple backups of every file. */
23246074Sgabor	simple,
24246074Sgabor
25246074Sgabor	/*
26246074Sgabor	 * Make numbered backups of files that already have numbered backups,
27246074Sgabor	 * and simple backups of the others.
28246074Sgabor	 */
29246074Sgabor	numbered_existing,
30246074Sgabor
31246074Sgabor	/* Make numbered backups of every file. */
32246074Sgabor	numbered
33246074Sgabor};
34246074Sgabor
35246074Sgaborextern enum backup_type backup_type;
36246074Sgaborextern const char	*simple_backup_suffix;
37246074Sgabor
38246074Sgaborchar		*find_backup_file_name(const char *file);
39246074Sgaborenum backup_type get_version(const char *version);
40