rcs: Fix gcc80 warnings (-Wdangling-else and -Wmisleading-indentation).
[dragonfly.git] / gnu / usr.bin / rcs / lib / maketime.h
blobfbe12562051df935a05ba9587c084cfc5ef2922f
1 /* Yield time_t from struct partime yielded by partime. */
3 /* Copyright 1993, 1994, 1995 Paul Eggert
4 Distributed under license by the Free Software Foundation, Inc.
6 This file is part of RCS.
8 RCS is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
13 RCS is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with RCS; see the file COPYING.
20 If not, write to the Free Software Foundation,
21 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 Report problems and direct all questions to:
25 rcs-bugs@cs.purdue.edu
29 #if defined(__STDC__) || has_prototypes
30 # define __MAKETIME_P(x) x
31 #else
32 # define __MAKETIME_P(x) ()
33 #endif
35 struct tm *time2tm __MAKETIME_P((time_t,int));
36 time_t difftm __MAKETIME_P((struct tm const *, struct tm const *));
37 time_t str2time __MAKETIME_P((char const *, time_t, long));
38 time_t tm2time __MAKETIME_P((struct tm *, int));
39 void adjzone __MAKETIME_P((struct tm *, long));