From 2612e4e1fb7e6b1447af30bcb4153518ec5a05cb Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 21 Dec 2004 15:52:23 +0000 Subject: [PATCH] moved struct timing_env to .c file, added config.h [r4697] --- ir/ana2/timing.c | 14 +++++++++++++- ir/ana2/timing.h | 9 ++++----- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/ir/ana2/timing.c b/ir/ana2/timing.c index 0f6dc2676..cb1088a9d 100644 --- a/ir/ana2/timing.c +++ b/ir/ana2/timing.c @@ -16,6 +16,9 @@ /* Timing stuff. Not really part of ana2, but where else should it go. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include @@ -23,6 +26,12 @@ # include "timing.h" +struct timing_env +{ + struct timeval *start; + struct timeval *end; +}; + /* Helpers @@ -51,7 +60,7 @@ timeval_subtract (struct timeval *x, struct timeval *y) Public Interface */ timing_t * -start_timing () +start_timing (void) { timing_t *t = (timing_t*) malloc (sizeof (timing_t)); @@ -87,6 +96,9 @@ end_timing (timing_t *t) /* $Log$ + Revision 1.2 2004/12/21 15:52:23 beck + moved struct timing_env to .c file, added config.h + Revision 1.1 2004/10/29 18:55:52 liekweg (mostly) generic timimg diff --git a/ir/ana2/timing.h b/ir/ana2/timing.h index b43f0b77b..b149383b7 100644 --- a/ir/ana2/timing.h +++ b/ir/ana2/timing.h @@ -19,11 +19,7 @@ /* Data structures */ -typedef struct timing_env -{ - struct timeval *start; - struct timeval *end; -} timing_t; +typedef struct timing_env timing_t; /* Protos @@ -36,6 +32,9 @@ int end_timing (timing_t*); /* $Log$ + Revision 1.2 2004/12/21 15:52:23 beck + moved struct timing_env to .c file, added config.h + Revision 1.1 2004/10/29 18:55:52 liekweg (mostly) generic timimg -- 2.20.1