[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 05/12] timevar: rename init_timevar as timevar_init
From: |
Akim Demaille |
Subject: |
[PATCH 05/12] timevar: rename init_timevar as timevar_init |
Date: |
Sat, 22 Sep 2018 13:49:41 +0200 |
* lib/timevar.h, lib/timevar.c: here.
* src/main.c: Adjust.
---
lib/timevar.c | 2 +-
lib/timevar.h | 2 +-
src/main.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/timevar.c b/lib/timevar.c
index 0b5047e5..c5fd5eaf 100644
--- a/lib/timevar.c
+++ b/lib/timevar.c
@@ -208,7 +208,7 @@ timevar_accumulate (struct timevar_time_def *timer,
/* Initialize timing variables. */
void
-init_timevar ()
+timevar_init ()
{
if (!TIMEVAR_ENABLE)
return;
diff --git a/lib/timevar.h b/lib/timevar.h
index 3a8d617a..41b3dfef 100644
--- a/lib/timevar.h
+++ b/lib/timevar.h
@@ -75,7 +75,7 @@ typedef enum
timevar_id_t;
#undef DEFTIMEVAR
-extern void init_timevar (void);
+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);
diff --git a/src/main.c b/src/main.c
index 29324600..50c5c3eb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -81,7 +81,7 @@ main (int argc, char *argv[])
getargs (argc, argv);
timevar_report = trace_flag & trace_time;
- init_timevar ();
+ timevar_init ();
timevar_start (TV_TOTAL);
if (trace_flag & trace_bitsets)
--
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 <=
- [PATCH 06/12] timevar: remove useless 'extern' for prototypes, Akim Demaille, 2018/09/22
- [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