Mercurial > hg > octave-kai > gnulib-hg
changeset 1220:6ec465c0d5c4
Use ANSI function definitions.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Tue, 20 Jan 1998 11:34:38 +0000 |
parents | 4a1aab12ab37 |
children | 49cc092e40d1 |
files | lib/backupfile.c |
diffstat | 1 files changed, 6 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/backupfile.c +++ b/lib/backupfile.c @@ -1,5 +1,5 @@ /* backupfile.c -- make Emacs style backup file names - Copyright (C) 1990,1991,1992,1993,1995,1997 Free Software Foundation, Inc. + Copyright (C) 1990,1991,1992,1993,1995,1997, 1998 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -74,7 +74,7 @@ # include <limits.h> #endif #ifndef CHAR_BIT -#define CHAR_BIT 8 +# define CHAR_BIT 8 #endif /* Upper bound on the string length of an integer converted to string. 302 / 1000 is ceil (log10 (2.0)). Subtract 1 for the sign bit; @@ -113,8 +113,7 @@ Do not call this function if backup_type == none. */ char * -find_backup_file_name (file) - const char *file; +find_backup_file_name (const char *file) { size_t backup_suffix_size_max; size_t file_len = strlen (file); @@ -163,9 +162,7 @@ */ static int -max_backup_version (file, dir) - const char *file; - const char *dir; +max_backup_version (const char *file, const char *dir) { DIR *dirp; struct dirent *dp; @@ -199,10 +196,7 @@ */ static int -version_number (base, backup, base_length) - const char *base; - const char *backup; - size_t base_length; +version_number (const char *base, const char *backup, size_t base_length) { int version; const char *p; @@ -235,8 +229,7 @@ Unique abbreviations are accepted. */ enum backup_type -get_version (version) - const char *version; +get_version (const char *version) { int i;