bison-patches
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]