Post Scarcity
A prototype for a post scarcity programming environment
Loading...
Searching...
No Matches
print.h File Reference
#include <ctype.h>
#include <stdio.h>
#include "io/fopen.h"
Include dependency graph for print.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct cons_pointer lisp_print (struct stack_frame *frame, struct cons_pointer frame_pointer, struct cons_pointer env)
 Function; print one complete lisp expression and return NIL.
 
struct cons_pointer lisp_println (struct stack_frame *frame, struct cons_pointer frame_pointer, struct cons_pointer env)
 (prinln out-stream): Print a new line character to out-stream, if it is specified and is an output stream, else to *out*.
 
struct cons_pointer print (URL_FILE *output, struct cons_pointer pointer)
 print.h
 
void println (URL_FILE *output)
 

Function Documentation

◆ lisp_print()

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

Function; print one complete lisp expression and return NIL.

If write-stream is specified and is a write stream, then print to that stream, else the stream which is the value of *out* in the environment.

  • (print expr)
  • (print expr write-stream)
Parameters
framemy stack_frame.
frame_pointera pointer to my stack_frame.
envmy environment (from which the stream may be extracted).
Returns
NIL.

Definition at line 295 of file print.c.

References debug_dump_object(), DEBUG_IO, debug_print(), dec_ref(), file_to_url_file(), get_default_stream(), inc_ref(), NIL, pointer2cell, print(), and writep.

Referenced by main().

◆ lisp_println()

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

(prinln out-stream): Print a new line character to out-stream, if it is specified and is an output stream, else to *out*.

Parameters
frame
frame_pointer
env
Returns
nil

Definition at line 343 of file print.c.

References dec_ref(), file_to_url_file(), get_default_stream(), inc_ref(), NIL, pointer2cell, println(), and writep.

◆ print()

◆ println()

void println ( URL_FILE output)

Definition at line 329 of file print.c.

References url_fputws.

Referenced by lisp_println(), and lisp_repl().