|
Luma 0.1.0
A low-level compiled alternative to C, C++, and more!
|
#include "std_path.h"
Functions | |
| bool | file_exists (const char *path) |
| Check if a file exists at the given path. | |
| const char * | normalize_std_import (const char *path) |
| Normalize a path by removing "std/" prefix if present. | |
| bool | get_system_std_path (char *buffer, size_t buffer_size) |
| Get the system-wide Luma standard library path. | |
| bool | get_user_std_path (char *buffer, size_t buffer_size) |
| Get the user-local Luma standard library path. | |
| bool | resolve_std_path (const char *import_path, char *buffer, size_t buffer_size) |
| Resolve a std/ import path to an actual file path. | |
| void | print_std_search_paths (void) |
| bool file_exists | ( | const char * | path | ) |
Check if a file exists at the given path.
| path | Path to check |
| bool get_system_std_path | ( | char * | buffer, |
| size_t | buffer_size | ||
| ) |
Get the system-wide Luma standard library path.
| buffer | Buffer to store the path |
| buffer_size | Size of the buffer |
| bool get_user_std_path | ( | char * | buffer, |
| size_t | buffer_size | ||
| ) |
Get the user-local Luma standard library path.
| buffer | Buffer to store the path |
| buffer_size | Size of the buffer |
| const char * normalize_std_import | ( | const char * | path | ) |
Normalize a path by removing "std/" prefix if present.
| path | The input path |
| void print_std_search_paths | ( | void | ) |
| bool resolve_std_path | ( | const char * | import_path, |
| char * | buffer, | ||
| size_t | buffer_size | ||
| ) |
Resolve a std/ import path to an actual file path.
| import_path | The import path (e.g., "std/io" or "std/math") |
| buffer | Buffer to store the resolved path |
| buffer_size | Size of the buffer |