libpulsar
A modular compiler for the pulsar programming language
Loading...
Searching...
No Matches
io.h
Go to the documentation of this file.
1
8#pragma once
9
10#include "def.h"
11
20
25void ps_file_ctx_init(struct ps_file_ctx* file_ctx, STR filename, char* buffer,
27
35char* ps_read_file_safe(STR filename, isize* length_ext);
Base definitions.
#define STR
Definition def.h:40
#define isize
Definition def.h:49
#define usize
Definition def.h:50
void ps_file_ctx_init(struct ps_file_ctx *file_ctx, STR filename, char *buffer, usize length)
Initializes file_ctx to describe the given file (filename, buffer, length).
Definition io.c:7
char * ps_read_file_safe(STR filename, isize *length_ext)
Reads the contents the file at filename.
char buffer[ITOA_BUFFER_SIZE]
Definition itoa.c:11
static void usize length
Definition lexer.h:71
Information captured in a file necessary for effective info/error reporting.
Definition io.h:15
usize length
Definition io.h:18
char * buffer
Definition io.h:17
STR filename
Definition io.h:16