Post Scarcity
A prototype for a post scarcity programming environment
Loading...
Searching...
No Matches
psse_time.h File Reference
#include "consspaceobject.h"
Include dependency graph for psse_time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 

Functions

struct cons_pointer lisp_time (struct stack_frame *frame, struct cons_pointer frame_pointer, struct cons_pointer env)
 Function; return a time representation of the first argument in the frame; further arguments are ignored.
 
struct cons_pointer time_to_string (struct cons_pointer pointer)
 This is temporary, for bootstrapping.
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 13 of file psse_time.h.

Function Documentation

◆ lisp_time()

struct cons_pointer lisp_time ( struct stack_frame frame,
struct cons_pointer  frame_pointer,
struct cons_pointer  env 
)

Function; return a time representation of the first argument in the frame; further arguments are ignored.

  • (time integer_or_nil)
Parameters
framemy stack_frame.
frame_pointera pointer to my stack_frame.
envmy environment.
Returns
a lisp time; if integer_or_nil is an integer, return a time which is that number of microseconds after the notional big bang; else the current time.

Definition at line 86 of file psse_time.c.

References make_time().

Referenced by main().

◆ time_to_string()

struct cons_pointer time_to_string ( struct cons_pointer  pointer)

This is temporary, for bootstrapping.

Definition at line 95 of file psse_time.c.

References c_string_to_lisp_string(), lisp_time_to_unix_time(), and NIL.

Referenced by print().