[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/12] timevar: remove useless 'extern' for prototypes
From: |
Akim Demaille |
Subject: |
[PATCH 06/12] timevar: remove useless 'extern' for prototypes |
Date: |
Sat, 22 Sep 2018 13:49:42 +0200 |
* lib/timevar.h, lib/timevar.c: here.
---
lib/timevar.c | 6 +++---
lib/timevar.h | 14 +++++++-------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/lib/timevar.c b/lib/timevar.c
index c5fd5eaf..68035b36 100644
--- a/lib/timevar.c
+++ b/lib/timevar.c
@@ -50,13 +50,13 @@ struct tms
#endif
#if defined HAVE_DECL_GETRUSAGE && !HAVE_DECL_GETRUSAGE
-extern int getrusage (int, struct rusage *);
+int getrusage (int, struct rusage *);
#endif
#if defined HAVE_DECL_TIMES && !HAVE_DECL_TIMES
-extern clock_t times (struct tms *);
+clock_t times (struct tms *);
#endif
#if defined HAVE_DECL_CLOCK && !HAVE_DECL_CLOCK
-extern clock_t clock (void);
+clock_t clock (void);
#endif
/* Calculation of scale factor to convert ticks to microseconds.
diff --git a/lib/timevar.h b/lib/timevar.h
index 41b3dfef..8f39343e 100644
--- a/lib/timevar.h
+++ b/lib/timevar.h
@@ -75,13 +75,13 @@ typedef enum
timevar_id_t;
#undef DEFTIMEVAR
-extern void timevar_init (void);
-extern void timevar_push (timevar_id_t);
-extern void timevar_pop (timevar_id_t);
-extern void timevar_start (timevar_id_t);
-extern void timevar_stop (timevar_id_t);
-extern void timevar_get (timevar_id_t, struct timevar_time_def *);
-extern void timevar_print (FILE *);
+void timevar_init (void);
+void timevar_push (timevar_id_t);
+void timevar_pop (timevar_id_t);
+void timevar_start (timevar_id_t);
+void timevar_stop (timevar_id_t);
+void timevar_get (timevar_id_t, struct timevar_time_def *);
+void timevar_print (FILE *);
extern int timevar_report;
--
2.19.0
- [PATCH 00/12] timevar: clean up, for a possible integration to gnulib, Akim Demaille, 2018/09/22
- [PATCH 01/12] timevar: remove remains of GCC, Akim Demaille, 2018/09/22
- [PATCH 03/12] timevar: prefer #elif, Akim Demaille, 2018/09/22
- [PATCH 02/12] timevar: assume ANSI C, Akim Demaille, 2018/09/22
- [PATCH 04/12] timevar: we don't care about backward compatibility, Akim Demaille, 2018/09/22
- [PATCH 05/12] timevar: rename init_timevar as timevar_init, Akim Demaille, 2018/09/22
- [PATCH 06/12] timevar: remove useless 'extern' for prototypes,
Akim Demaille <=
- [PATCH 12/12] timevar: don't declare getrusage if we don't use it, Akim Demaille, 2018/09/22
- [PATCH 08/12] timevar: reduce scopes, Akim Demaille, 2018/09/22
- [PATCH 07/12] timevar: document in the header, not in the implementation, Akim Demaille, 2018/09/22
- [PATCH 10/12] timevar: introduce and use get_current_time, Akim Demaille, 2018/09/22
- [PATCH 11/12] timevar: get rid of a useless macro, Akim Demaille, 2018/09/22
- [PATCH 09/12] timevar: rename get_time as set_to_current_time, Akim Demaille, 2018/09/22