Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/rofflwaffls/parrot into g…
Browse files Browse the repository at this point in the history
…ci_platform_export
  • Loading branch information
cotto committed Jan 1, 2011
2 parents 3c0a1de + 99cd2e6 commit d9b5338
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions include/parrot/platform_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,23 @@ void *mem_realloc_executable(void *, size_t, size_t);
** Process ID
*/

PARROT_EXPORT
UINTVAL Parrot_getpid(void);

/*
** Time
*/

PARROT_EXPORT
void Parrot_sleep(unsigned int seconds);

PARROT_EXPORT
void Parrot_usleep(unsigned int microseconds);

PARROT_EXPORT
INTVAL Parrot_intval_time(void);

PARROT_EXPORT
FLOATVAL Parrot_floatval_time(void);

PARROT_EXPORT
Expand All @@ -77,8 +85,13 @@ char* Parrot_asctime_r(const struct tm*, char *);
* Env
*/

PARROT_EXPORT
void Parrot_setenv(PARROT_INTERP, STRING *name, STRING *value);

PARROT_EXPORT
void Parrot_unsetenv(PARROT_INTERP, STRING *name);

PARROT_EXPORT
char * Parrot_getenv(PARROT_INTERP, STRING *name);

/*
Expand Down Expand Up @@ -139,12 +152,19 @@ int get_sys_timer_ms(void *handle);
* high-resolution timer support
*/

PARROT_EXPORT
UHUGEINTVAL Parrot_hires_get_time(void);

PARROT_EXPORT
UINTVAL Parrot_hires_get_tick_duration(void);


struct parrot_string_t;

PARROT_EXPORT
INTVAL Parrot_Run_OS_Command(Interp*, struct parrot_string_t *);

PARROT_EXPORT
INTVAL Parrot_Run_OS_Command_Argv(Interp*, struct PMC *);

#endif /* PARROT_PLATFORM_INTERFACE_H_GUARD */
Expand Down

0 comments on commit d9b5338

Please sign in to comment.