[teklib-general] teklib: HAL: removed GetSysTime()
Timm S. Mueller
tmueller at neoscientists.org
Wed Jan 14 13:36:44 CET 2009
details: http://hg.teklib.org/teklib/rev/14287d3956c2
changeset: 231:14287d3956c2
user: Timm S. Mueller <tmueller at neoscientists.org>
date: Tue Jan 13 23:01:55 2009 +0100
description:
HAL: removed GetSysTime()
diffs (truncated from 194 to 100 lines):
diff -r 6b42e04f32bb -r 14287d3956c2 src/exec/exec_mod.c
--- a/src/exec/exec_mod.c Tue Jan 13 22:50:08 2009 +0100
+++ b/src/exec/exec_mod.c Tue Jan 13 23:01:55 2009 +0100
@@ -49,7 +49,7 @@
/* overwrite TExecCopyMem vector with THALCopyMem vector,
for getting rid of one callframe */
- ((TMFPTR *) exec)[-16] = ((TMFPTR *) exec->texb_HALBase)[-14];
+ ((TMFPTR *) exec)[-16] = ((TMFPTR *) exec->texb_HALBase)[-13];
return TTRUE;
}
diff -r 6b42e04f32bb -r 14287d3956c2 src/exec/exec_time.c
--- a/src/exec/exec_time.c Tue Jan 13 22:50:08 2009 +0100
+++ b/src/exec/exec_time.c Tue Jan 13 23:01:55 2009 +0100
@@ -37,7 +37,7 @@
/*****************************************************************************/
/*
-** exec_query(time, treq, time)
+** exec_getsystemtime(time, treq, time)
** Insert system time into *time
*/
diff -r 6b42e04f32bb -r 14287d3956c2 src/hal/hal_mod.c
--- a/src/hal/hal_mod.c Tue Jan 13 22:50:08 2009 +0100
+++ b/src/hal/hal_mod.c Tue Jan 13 23:01:55 2009 +0100
@@ -12,9 +12,9 @@
#include <tek/mod/exec.h>
#include <tek/debug.h>
-#define HAL_VERSION 3
+#define HAL_VERSION 4
#define HAL_REVISION 0
-#define HAL_NUMVECTORS 29
+#define HAL_NUMVECTORS 28
static THOOKENTRY TTAG hal_dispatch(struct THook *hook, TAPTR obj, TTAG msg);
static const TMFPTR hal_vectors[HAL_NUMVECTORS];
@@ -100,7 +100,6 @@
(TMFPTR) TNULL,
(TMFPTR) hal_getattr,
- (TMFPTR) hal_getsystime,
(TMFPTR) hal_alloc,
(TMFPTR) hal_free,
diff -r 6b42e04f32bb -r 14287d3956c2 src/hal/hal_mod.h
--- a/src/hal/hal_mod.h Tue Jan 13 22:50:08 2009 +0100
+++ b/src/hal/hal_mod.h Tue Jan 13 23:01:55 2009 +0100
@@ -58,7 +58,6 @@
EXPORT void hal_beginio(struct THALBase *hal, struct TTimeRequest *req);
EXPORT TINT hal_abortio(struct THALBase *hal, struct TTimeRequest *req);
-
EXPORT TAPTR hal_alloc(struct THALBase *hal, TUINT size);
EXPORT void hal_free(struct THALBase *hal, TAPTR mem, TUINT size);
EXPORT TAPTR hal_realloc(struct THALBase *hal, TAPTR mem, TUINT oldsize,
@@ -79,12 +78,10 @@
EXPORT TBOOL hal_callmodule(struct THALBase *hal, TAPTR halmod, struct TTask *task,
TAPTR mod);
EXPORT void hal_unloadmodule(struct THALBase *hal, TAPTR halmod);
-
EXPORT TBOOL hal_scanmodules(struct THALBase *hal, TSTRPTR path, struct THook *hook);
EXPORT TTAG hal_getattr(struct THALBase *hal, TUINT tag, TTAG defval);
EXPORT TUINT hal_wait(struct THALBase *hal, TUINT signals);
EXPORT void hal_signal(struct THALBase *hal, struct THALObject *thread, TUINT signals);
EXPORT TUINT hal_setsignal(struct THALBase *hal, TUINT newsig, TUINT sigmask);
-EXPORT void hal_getsystime(struct THALBase *hal, TTIME *time);
#endif
diff -r 6b42e04f32bb -r 14287d3956c2 src/hal/posix/hal.c
--- a/src/hal/posix/hal.c Tue Jan 13 22:50:08 2009 +0100
+++ b/src/hal/posix/hal.c Tue Jan 13 23:01:55 2009 +0100
@@ -440,7 +440,7 @@
** Time and date
*/
-EXPORT void
+static void
hal_getsystime(struct THALBase *hal, TTIME *time)
{
struct timeval tv;
diff -r 6b42e04f32bb -r 14287d3956c2 src/hal/winnt/hal.c
--- a/src/hal/winnt/hal.c Tue Jan 13 22:50:08 2009 +0100
+++ b/src/hal/winnt/hal.c Tue Jan 13 23:01:55 2009 +0100
@@ -375,7 +375,7 @@
** Time and date
*/
-EXPORT void
+static void
hal_getsystime(struct THALBase *hal, TTIME *time)
{
struct HALSpecific *hws = hal->hmb_Specific;
diff -r 6b42e04f32bb -r 14287d3956c2 tek/idf/hal.idf
--- a/tek/idf/hal.idf Tue Jan 13 22:50:08 2009 +0100
+++ b/tek/idf/hal.idf Tue Jan 13 23:01:55 2009 +0100
@@ -23,7 +23,6 @@
More information about the teklib-general
mailing list