132672Sache/* backupfile.h -- declarations for making Emacs style backup file names
232672Sache   Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
332672Sache
432672Sache   This program is free software; you can redistribute it and/or modify
532672Sache   it under the terms of the GNU General Public License as published by
632672Sache   the Free Software Foundation; either version 2, or (at your option)
732672Sache   any later version.
832672Sache
932672Sache   This program is distributed in the hope that it will be useful,
1032672Sache   but WITHOUT ANY WARRANTY; without even the implied warranty of
1132672Sache   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1232672Sache   GNU General Public License for more details.
1332672Sache
1432672Sache   You should have received a copy of the GNU General Public License
1532672Sache   along with this program; if not, write to the Free Software
1632672Sache   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
1732672Sache
1895600Sgad/*
1995600Sgad * $FreeBSD$
2095600Sgad */
2195600Sgad
2232672Sache/* When to make backup files. */
2332672Sacheenum backup_type
2432672Sache{
2532672Sache  /* Never make backups. */
2632672Sache  none,
2732672Sache
2832672Sache  /* Make simple backups of every file. */
2932672Sache  simple,
3032672Sache
3132672Sache  /* Make numbered backups of files that already have numbered backups,
3232672Sache     and simple backups of the others. */
3332672Sache  numbered_existing,
3432672Sache
3532672Sache  /* Make numbered backups of every file. */
3632672Sache  numbered
3732672Sache};
3832672Sache
3932672Sacheextern enum backup_type backup_type;
4032672Sacheextern char *simple_backup_suffix;
4132672Sache
4295601Sgadchar	*find_backup_file_name (char *_file);
4395601Sgadenum backup_type	 get_version(char *_version);
4495601Sgadvoid	 addext(char *_filename, char *_ext, int _e);
45