[svn:parrot] r41530 - in trunk/config/gen/platform: darwin generic win32
NotFound at svn.parrot.org
NotFound at svn.parrot.org
Sun Sep 27 16:32:07 UTC 2009
Author: NotFound
Date: Sun Sep 27 16:32:06 2009
New Revision: 41530
URL: https://trac.parrot.org/parrot/changeset/41530
Log:
[cage] fix declarations of Parrot_hires... platform functions for ansi C style
Modified:
trunk/config/gen/platform/darwin/hires_timer.c
trunk/config/gen/platform/generic/hires_timer.c
trunk/config/gen/platform/win32/hires_timer.c
Modified: trunk/config/gen/platform/darwin/hires_timer.c
==============================================================================
--- trunk/config/gen/platform/darwin/hires_timer.c Sun Sep 27 16:12:47 2009 (r41529)
+++ trunk/config/gen/platform/darwin/hires_timer.c Sun Sep 27 16:32:06 2009 (r41530)
@@ -27,7 +27,7 @@
/*
-=item C<UHUGEINTVAL Parrot_hires_get_time()>
+=item C<UHUGEINTVAL Parrot_hires_get_time(void)>
Return a high-resolution number representing how long Parrot has been running.
@@ -35,7 +35,7 @@
*/
-UHUGEINTVAL Parrot_hires_get_time()
+UHUGEINTVAL Parrot_hires_get_time(void)
{
struct timespec ts;
struct timeval tv;
@@ -49,7 +49,7 @@
/*
-=item C<UINTVAL Parrot_hires_get_tick_duration()>
+=item C<UINTVAL Parrot_hires_get_tick_duration(void)>
Return the number of ns that each time unit from Parrot_hires_get_time represents.
@@ -57,7 +57,7 @@
*/
-UINTVAL Parrot_hires_get_tick_duration()
+UINTVAL Parrot_hires_get_tick_duration(void)
{
return (UINTVAL) 1;
}
Modified: trunk/config/gen/platform/generic/hires_timer.c
==============================================================================
--- trunk/config/gen/platform/generic/hires_timer.c Sun Sep 27 16:12:47 2009 (r41529)
+++ trunk/config/gen/platform/generic/hires_timer.c Sun Sep 27 16:32:06 2009 (r41530)
@@ -32,7 +32,7 @@
/*
-=item C<UHUGEINTVAL Parrot_hires_get_time()>
+=item C<UHUGEINTVAL Parrot_hires_get_time(void)>
Return a high-resolution number representing how long Parrot has been running.
@@ -40,7 +40,7 @@
*/
-UHUGEINTVAL Parrot_hires_get_time()
+UHUGEINTVAL Parrot_hires_get_time(void)
{
struct timespec ts;
#if _POSIX_TIMERS
@@ -57,7 +57,7 @@
/*
-=item C<UINTVAL Parrot_hires_get_tick_duration()>
+=item C<UINTVAL Parrot_hires_get_tick_duration(void)>
Return the number of ns that each time unit from Parrot_hires_get_time represents.
@@ -65,7 +65,7 @@
*/
-UINTVAL Parrot_hires_get_tick_duration()
+UINTVAL Parrot_hires_get_tick_duration(void)
{
return (UINTVAL) 1;
}
Modified: trunk/config/gen/platform/win32/hires_timer.c
==============================================================================
--- trunk/config/gen/platform/win32/hires_timer.c Sun Sep 27 16:12:47 2009 (r41529)
+++ trunk/config/gen/platform/win32/hires_timer.c Sun Sep 27 16:32:06 2009 (r41530)
@@ -17,7 +17,7 @@
=over 4
-=item C<UHUGEINTVAL Parrot_hires_get_time()>
+=item C<UHUGEINTVAL Parrot_hires_get_time(void)>
Return a high-resolution number representing how long Parrot has been running.
@@ -25,7 +25,7 @@
*/
-UHUGEINTVAL Parrot_hires_get_time()
+UHUGEINTVAL Parrot_hires_get_time(void)
{
LARGE_INTEGER ticks;
QueryPerformanceCounter(&ticks);
@@ -34,7 +34,7 @@
/*
-=item C<UINTVAL Parrot_hires_get_tick_duration()>
+=item C<UINTVAL Parrot_hires_get_tick_duration(void)>
Return the number of nanoseconds that each time unit from Parrot_hires_get_time represents.
@@ -42,7 +42,7 @@
*/
-UINTVAL Parrot_hires_get_tick_duration()
+UINTVAL Parrot_hires_get_tick_duration(void)
{
LARGE_INTEGER ticks;
/* QueryPerformanceCounter returns ticks per second, so divide 1 billion by
More information about the parrot-commits
mailing list