Home | History | Annotate | Line # | Download | only in patch
backupfile.h revision 1.6
      1  1.6  joerg /*
      2  1.6  joerg  * $OpenBSD: backupfile.h,v 1.6 2003/07/28 18:35:36 otto Exp $
      3  1.6  joerg  * $DragonFly: src/usr.bin/patch/backupfile.h,v 1.3 2007/09/29 23:11:10 swildner Exp $
      4  1.6  joerg  * $NetBSD: backupfile.h,v 1.6 2008/09/19 18:33:34 joerg Exp $
      5  1.6  joerg  */
      6  1.6  joerg 
      7  1.6  joerg /*
      8  1.6  joerg  * backupfile.h -- declarations for making Emacs style backup file names
      9  1.6  joerg  * Copyright (C) 1990 Free Software Foundation, Inc.
     10  1.6  joerg  *
     11  1.6  joerg  * This program is free software; you can redistribute it and/or modify it
     12  1.6  joerg  * without restriction.
     13  1.6  joerg  *
     14  1.6  joerg  * This program is distributed in the hope that it will be useful, but WITHOUT
     15  1.6  joerg  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
     16  1.6  joerg  * FITNESS FOR A PARTICULAR PURPOSE.
     17  1.6  joerg  *
     18  1.6  joerg  */
     19  1.1    cgd 
     20  1.1    cgd /* When to make backup files. */
     21  1.6  joerg enum backup_type {
     22  1.6  joerg 	/* Never make backups. */
     23  1.6  joerg 	none,
     24  1.6  joerg 
     25  1.6  joerg 	/* Make simple backups of every file. */
     26  1.6  joerg 	simple,
     27  1.6  joerg 
     28  1.6  joerg 	/*
     29  1.6  joerg 	 * Make numbered backups of files that already have numbered backups,
     30  1.6  joerg 	 * and simple backups of the others.
     31  1.6  joerg 	 */
     32  1.6  joerg 	numbered_existing,
     33  1.1    cgd 
     34  1.6  joerg 	/* Make numbered backups of every file. */
     35  1.6  joerg 	numbered
     36  1.1    cgd };
     37  1.1    cgd 
     38  1.1    cgd extern enum backup_type backup_type;
     39  1.6  joerg extern const char	*simple_backup_suffix;
     40  1.1    cgd 
     41  1.6  joerg char		*find_backup_file_name(const char *file);
     42  1.6  joerg enum backup_type get_version(const char *version);
     43