backupfile.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* backupfile.h -- declarations for making Emacs style backup file names
  2. Copyright (C) 1990, 1991, 1992, 1997 Free Software Foundation, Inc.
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 2, or (at your option)
  6. any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; see the file COPYING.
  13. If not, write to the Free Software Foundation,
  14. 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
  15. /* When to make backup files. */
  16. enum backup_type
  17. {
  18. /* Never make backups. */
  19. none,
  20. /* Make simple backups of every file. */
  21. simple,
  22. /* Make numbered backups of files that already have numbered backups,
  23. and simple backups of the others. */
  24. numbered_existing,
  25. /* Make numbered backups of every file. */
  26. numbered
  27. };
  28. extern enum backup_type backup_type;
  29. extern char const *simple_backup_suffix;
  30. #ifndef __BACKUPFILE_P
  31. # if defined __STDC__ || __GNUC__
  32. # define __BACKUPFILE_P(args) args
  33. # else
  34. # define __BACKUPFILE_P(args) ()
  35. # endif
  36. #endif
  37. char *base_name __BACKUPFILE_P ((char const *));
  38. char *find_backup_file_name __BACKUPFILE_P ((char const *));
  39. enum backup_type get_version __BACKUPFILE_P ((char const *));
  40. void addext __BACKUPFILE_P ((char *, char const *, int));