Skip to content

Commit

Permalink
Parrot_hires_get_tick_duration is now flagged as PARROT_CONST_FUNCTION
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed Nov 5, 2011
1 parent e20b3be commit 4119aa0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion include/parrot/platform_interface.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2003-2010, Parrot Foundation.
* Copyright (C) 2003-2011, Parrot Foundation.
*/

#ifndef PARROT_PLATFORM_INTERFACE_H_GUARD
Expand Down Expand Up @@ -388,6 +388,7 @@ PARROT_EXPORT
UHUGEINTVAL Parrot_hires_get_time(void);

PARROT_EXPORT
PARROT_CONST_FUNCTION
UINTVAL Parrot_hires_get_tick_duration(void);

/*
Expand Down
3 changes: 2 additions & 1 deletion src/platform/darwin/hires_timer.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2009, Parrot Foundation.
* Copyright (C) 2009-2011, Parrot Foundation.
*/

/*
Expand Down Expand Up @@ -61,6 +61,7 @@ Return the number of ns that each time unit from Parrot_hires_get_time represent
*/

PARROT_CONST_FUNCTION
UINTVAL
Parrot_hires_get_tick_duration(void)
{
Expand Down
3 changes: 2 additions & 1 deletion src/platform/generic/hires_timer.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2009, Parrot Foundation.
* Copyright (C) 2009-2011, Parrot Foundation.
*/

/*
Expand Down Expand Up @@ -78,6 +78,7 @@ Return the number of ns that each time unit from Parrot_hires_get_time represent
*/

PARROT_CONST_FUNCTION
UINTVAL
Parrot_hires_get_tick_duration(void)
{
Expand Down
5 changes: 2 additions & 3 deletions src/platform/win32/hires_timer.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2009, Parrot Foundation.
* Copyright (C) 2009-2011, Parrot Foundation.
*/

/*
Expand Down Expand Up @@ -54,6 +54,7 @@ Return the number of nanoseconds that each time unit from Parrot_hires_get_time
*/

PARROT_CONST_FUNCTION
UINTVAL
Parrot_hires_get_tick_duration(void)
{
Expand All @@ -65,8 +66,6 @@ Parrot_hires_get_tick_duration(void)
}




/*
=back
Expand Down

0 comments on commit 4119aa0

Please sign in to comment.