Initial commit, stdint, added comments

This commit is contained in:
2026-03-08 16:21:05 -05:00
commit 2716e96d7a
10 changed files with 637 additions and 0 deletions

17
include/atom.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef ATOM_INCLUDED
#define ATOM_INCLUDED
#include <stdint.h>
// Return the length of a given atom.
extern int atom_len(const char *str);
// Create or retrieve an atom corresponding to a string with a given length
extern const char *atom_new (const char *str, int64_t len);
// Get the atom corresponding to a string
extern const char *atom_string(const char *str);
// Function to convert an integer to an atom (string representation of the number)
extern const char *atom_int(int64_t n);
#endif