diff --git a/alisp.h b/alisp.h index dfd1487..29effac 100644 --- a/alisp.h +++ b/alisp.h @@ -1,15 +1,8 @@ -/* Copyright (C) 2025 Aryadev Chavali - - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the Unlicense for details. - - * You may distribute and modify this code under the terms of the Unlicense, - * which you should have received a copy of along with this program. If not, - * please go to . - +/* alisp.h: Single header for all the definitions. * Created: 2025-08-19 - * Description: All the definitions required for the lisp system + * Author: Aryadev Chavali + * License: See end of file + * Commentary: */ #ifndef ALISP_H @@ -267,3 +260,15 @@ read_err_t read(sys_t *, stream_t *, lisp_t **); read_err_t read_all(sys_t *, stream_t *, vec_t *); #endif + +/* Copyright (C) 2025, 2026 Aryadev Chavali + + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the Unlicense for details. + + * You may distribute and modify this code under the terms of the Unlicense, + * which you should have received a copy of along with this program. If not, + * please go to . + + */ diff --git a/main.c b/main.c index 6d0f9ff..7eccac3 100644 --- a/main.c +++ b/main.c @@ -1,15 +1,8 @@ -/* Copyright (C) 2025 Aryadev Chavali - - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the Unlicense for details. - - * You may distribute and modify this code under the terms of the Unlicense, - * which you should have received a copy of along with this program. If not, - * please go to . - +/* main.c: Entrypoint * Created: 2025-08-19 - * Description: Entrypoint + * Author: Aryadev Chavali + * License: See end of file + * Commentary: */ #include @@ -40,3 +33,15 @@ int main(void) fclose(fp); return 0; } + +/* Copyright (C) 2025, 2026 Aryadev Chavali + + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the Unlicense for details. + + * You may distribute and modify this code under the terms of the Unlicense, + * which you should have received a copy of along with this program. If not, + * please go to . + + */ diff --git a/runtime/constructor.c b/runtime/constructor.c index 8b0e669..e767081 100644 --- a/runtime/constructor.c +++ b/runtime/constructor.c @@ -1,15 +1,8 @@ -/* Copyright (C) 2025 Aryadev Chavali - - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the Unlicense for details. - - * You may distribute and modify this code under the terms of the Unlicense, - * which you should have received a copy of along with this program. If not, - * please go to . - +/* constructor.c: Lisp constructors/destructors * Created: 2025-08-20 - * Description: Lisp constructors/destructors + * Author: Aryadev Chavali + * License: See end of file + * Commentary: */ #include @@ -62,3 +55,15 @@ lisp_t *cdr(lisp_t *lsp) else return CDR(lsp); } + +/* Copyright (C) 2025, 2026 Aryadev Chavali + + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the Unlicense for details. + + * You may distribute and modify this code under the terms of the Unlicense, + * which you should have received a copy of along with this program. If not, + * please go to . + + */ diff --git a/runtime/stream.c b/runtime/stream.c index 2206dd4..52fbb37 100644 --- a/runtime/stream.c +++ b/runtime/stream.c @@ -1,15 +1,8 @@ -/* Copyright (C) 2025 Aryadev Chavali - - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the Unlicense for details. - - * You may distribute and modify this code under the terms of the Unlicense, - * which you should have received a copy of along with this program. If not, - * please go to . - +/* stream.c: Stream implementation * Created: 2025-08-26 - * Description: Stream implementation + * Author: Aryadev Chavali + * License: See end of file + * Commentary: */ #include @@ -367,3 +360,15 @@ sv_t stream_while(stream_t *stream, const char *str) return SV(NULL, 0); return stream_substr_abs(stream, current_position, size - 1); } + +/* Copyright (C) 2025, 2026 Aryadev Chavali + + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the Unlicense for details. + + * You may distribute and modify this code under the terms of the Unlicense, + * which you should have received a copy of along with this program. If not, + * please go to . + + */ diff --git a/runtime/sv.c b/runtime/sv.c index bdc5353..ce6aca7 100644 --- a/runtime/sv.c +++ b/runtime/sv.c @@ -1,16 +1,8 @@ -/* Copyright (C) 2025 Aryadev Chavali - - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Unlicense - * for details. - - * You may distribute and modify this code under the terms of the - * Unlicense, which you should have received a copy of along with this - * program. If not, please go to . - +/* sv.c: String views * Created: 2025-08-21 - * Description: String views + * Author: Aryadev Chavali + * License: See end of file + * Commentary: */ #include @@ -25,3 +17,15 @@ sv_t sv_copy(sv_t old) newstr[old.size] = '\0'; return SV(newstr, old.size); } + +/* Copyright (C) 2025, 2026 Aryadev Chavali + + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the Unlicense for details. + + * You may distribute and modify this code under the terms of the Unlicense, + * which you should have received a copy of along with this program. If not, + * please go to . + + */ diff --git a/runtime/symtable.c b/runtime/symtable.c index 9331e6c..2f4dbd8 100644 --- a/runtime/symtable.c +++ b/runtime/symtable.c @@ -1,15 +1,8 @@ -/* Copyright (C) 2025 Aryadev Chavali - - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the Unlicense for details. - - * You may distribute and modify this code under the terms of the Unlicense, - * which you should have received a copy of along with this program. If not, - * please go to . - +/* symtable.c: Symbol Table implementation * Created: 2025-08-19 - * Description: Symbol Table implementation + * Author: Aryadev Chavali + * License: See end of file + * Commentary: */ #include "../alisp.h" @@ -73,3 +66,15 @@ void sym_table_cleanup(sym_table_t *table) vec_free(&table->entries); memset(table, 0, sizeof(*table)); } + +/* Copyright (C) 2025, 2026 Aryadev Chavali + + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the Unlicense for details. + + * You may distribute and modify this code under the terms of the Unlicense, + * which you should have received a copy of along with this program. If not, + * please go to . + + */ diff --git a/runtime/sys.c b/runtime/sys.c index 3b63bc5..e3a0357 100644 --- a/runtime/sys.c +++ b/runtime/sys.c @@ -1,15 +1,8 @@ -/* Copyright (C) 2025 Aryadev Chavali - - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the Unlicense for details. - - * You may distribute and modify this code under the terms of the Unlicense, - * which you should have received a copy of along with this program. If not, - * please go to . - +/* sys.c: System management * Created: 2025-08-20 - * Description: System management + * Author: Aryadev Chavali + * License: See end of file + * Commentary: */ #include "../alisp.h" @@ -70,3 +63,15 @@ void sys_cleanup(sys_t *sys) // Ensure no one treats this as active in any sense memset(sys, 0, sizeof(*sys)); } + +/* Copyright (C) 2025, 2026 Aryadev Chavali + + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the Unlicense for details. + + * You may distribute and modify this code under the terms of the Unlicense, + * which you should have received a copy of along with this program. If not, + * please go to . + + */ diff --git a/runtime/tag.c b/runtime/tag.c index 3b3a3e7..9e27267 100644 --- a/runtime/tag.c +++ b/runtime/tag.c @@ -1,15 +1,8 @@ -/* Copyright (C) 2025 Aryadev Chavali - - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the Unlicense for details. - - * You may distribute and modify this code under the terms of the Unlicense, - * which you should have received a copy of along with this program. If not, - * please go to . - +/* tag.c: Pointer tagging * Created: 2025-08-19 - * Description: Pointer tagging + * Author: Aryadev Chavali + * License: See end of file + * Commentary: */ #include @@ -74,3 +67,15 @@ vec_t *as_vec(lisp_t *obj) assert(IS_TAG(obj, VEC)); return (vec_t *)UNTAG(obj, VEC); } + +/* Copyright (C) 2025, 2026 Aryadev Chavali + + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the Unlicense for details. + + * You may distribute and modify this code under the terms of the Unlicense, + * which you should have received a copy of along with this program. If not, + * please go to . + + */ diff --git a/runtime/vec.c b/runtime/vec.c index 3c7e4c5..e837ba1 100644 --- a/runtime/vec.c +++ b/runtime/vec.c @@ -1,16 +1,8 @@ -/* Copyright (C) 2025 Aryadev Chavali - - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Unlicense - * for details. - - * You may distribute and modify this code under the terms of the - * Unlicense, which you should have received a copy of along with this - * program. If not, please go to . - +/* vec.c: Stable Vector implementation * Created: 2025-08-20 - * Description: Stable Vector implementation + * Author: Aryadev Chavali + * License: See end of file + * Commentary: */ #include @@ -92,3 +84,15 @@ void vec_clone(vec_t *dest, vec_t *src) vec_init(dest, src->capacity); memcpy(vec_data(dest), vec_data(src), src->size); } + +/* Copyright (C) 2025, 2026 Aryadev Chavali + + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the Unlicense for details. + + * You may distribute and modify this code under the terms of the Unlicense, + * which you should have received a copy of along with this program. If not, + * please go to . + + */ diff --git a/test/test.c b/test/test.c index 3c2c247..e70fed7 100644 --- a/test/test.c +++ b/test/test.c @@ -1,16 +1,8 @@ -/* Copyright (C) 2025 Aryadev Chavali - - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Unlicense - * for details. - - * You may distribute and modify this code under the terms of the - * Unlicense, which you should have received a copy of along with this - * program. If not, please go to . - +/* test.c: Tests * Created: 2025-08-21 - * Description: Tests + * Author: Aryadev Chavali + * License: See end of file + * Commentary: */ #include @@ -236,3 +228,15 @@ int main(void) } return 0; } + +/* Copyright (C) 2025, 2026 Aryadev Chavali + + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the Unlicense for details. + + * You may distribute and modify this code under the terms of the Unlicense, + * which you should have received a copy of along with this program. If not, + * please go to . + + */