summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter <peter@pmikkelsen.com>2026-09-02 20:07:50 +0000
committerpeter <peter@pmikkelsen.com>2026-09-02 20:07:50 +0000
commitfa85b6ad25cbf4d98d80082e44921fc351533204 (patch)
treefac47d174a6f66439ad6c51e0eeeee4a2bc4861c /src
parent062f2723c7792668cc3e14391cc2c587edcd387e (diff)
[13ed99ff5b] Give the sources a license: GPLv3+
FossilOrigin-Name: 877496d6f607bc4b7cd35f2b763b2633f73804c5860542d59432c1974318d72c
Diffstat (limited to 'src')
-rw-r--r--src/bin/aplwc_repl.h19
-rw-r--r--src/bin/main.c19
-rw-r--r--src/bin/util.c19
-rw-r--r--src/bin/wrappers.c19
-rw-r--r--src/include/aplwc.h19
-rw-r--r--src/include/aplwc_macros.h19
-rw-r--r--src/lib/aplwc_internal.h19
-rw-r--r--src/lib/boot.aplwc19
-rw-r--r--src/lib/eval.c19
-rw-r--r--src/lib/main.c19
-rw-r--r--src/lib/memory.c19
-rw-r--r--src/lib/module.c19
-rw-r--r--src/lib/string.c19
-rw-r--r--src/lib/syntax.c19
14 files changed, 266 insertions, 0 deletions
diff --git a/src/bin/aplwc_repl.h b/src/bin/aplwc_repl.h
index c189b77..7de1c59 100644
--- a/src/bin/aplwc_repl.h
+++ b/src/bin/aplwc_repl.h
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 2026 Peter Mikkelsen <petermikkelsen10@gmail.com>
+ *
+ * This file is part of aplwc.
+ *
+ * Aplwc is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Aplwc 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
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with aplwc. If not, see <https://www.gnu.org/licenses/>.
+ */
+
#ifndef APLWC_REPL_H
#define APLWC_REPL_H
diff --git a/src/bin/main.c b/src/bin/main.c
index c3743f2..00fd88b 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 2026 Peter Mikkelsen <petermikkelsen10@gmail.com>
+ *
+ * This file is part of aplwc.
+ *
+ * Aplwc is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Aplwc 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
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with aplwc. If not, see <https://www.gnu.org/licenses/>.
+ */
+
#define _POSIX_C_SOURCE 200809L
#include <stdio.h>
#include <unistd.h>
diff --git a/src/bin/util.c b/src/bin/util.c
index c8218fd..b887447 100644
--- a/src/bin/util.c
+++ b/src/bin/util.c
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 2026 Peter Mikkelsen <petermikkelsen10@gmail.com>
+ *
+ * This file is part of aplwc.
+ *
+ * Aplwc is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Aplwc 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
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with aplwc. If not, see <https://www.gnu.org/licenses/>.
+ */
+
#include "aplwc_repl.h"
unsigned long
diff --git a/src/bin/wrappers.c b/src/bin/wrappers.c
index 18e179a..e1e6de7 100644
--- a/src/bin/wrappers.c
+++ b/src/bin/wrappers.c
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 2026 Peter Mikkelsen <petermikkelsen10@gmail.com>
+ *
+ * This file is part of aplwc.
+ *
+ * Aplwc is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Aplwc 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
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with aplwc. If not, see <https://www.gnu.org/licenses/>.
+ */
+
#include "aplwc_repl.h"
static uint64_t malloc_count = 0;
diff --git a/src/include/aplwc.h b/src/include/aplwc.h
index 6ba2e35..5bd2d89 100644
--- a/src/include/aplwc.h
+++ b/src/include/aplwc.h
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 2026 Peter Mikkelsen <petermikkelsen10@gmail.com>
+ *
+ * This file is part of aplwc.
+ *
+ * Aplwc is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Aplwc 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
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with aplwc. If not, see <https://www.gnu.org/licenses/>.
+ */
+
#ifndef APLWC_H
#define APLWC_H
diff --git a/src/include/aplwc_macros.h b/src/include/aplwc_macros.h
index cf05803..b65848f 100644
--- a/src/include/aplwc_macros.h
+++ b/src/include/aplwc_macros.h
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 2026 Peter Mikkelsen <petermikkelsen10@gmail.com>
+ *
+ * This file is part of aplwc.
+ *
+ * Aplwc is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Aplwc 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
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with aplwc. If not, see <https://www.gnu.org/licenses/>.
+ */
+
#ifndef APLWC_MACROS_H
#define APLWC_MACROS_H
diff --git a/src/lib/aplwc_internal.h b/src/lib/aplwc_internal.h
index 1637ef2..5c6f1dc 100644
--- a/src/lib/aplwc_internal.h
+++ b/src/lib/aplwc_internal.h
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 2026 Peter Mikkelsen <petermikkelsen10@gmail.com>
+ *
+ * This file is part of aplwc.
+ *
+ * Aplwc is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Aplwc 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
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with aplwc. If not, see <https://www.gnu.org/licenses/>.
+ */
+
#ifndef APLWC_INTERNAL_H
#define APLWC_INTERNAL_H
diff --git a/src/lib/boot.aplwc b/src/lib/boot.aplwc
index 6248427..ef6b479 100644
--- a/src/lib/boot.aplwc
+++ b/src/lib/boot.aplwc
@@ -1,3 +1,22 @@
+⍝
+⍝ Copyright (C) 2026 Peter Mikkelsen <petermikkelsen10@gmail.com>
+⍝
+⍝ This file is part of aplwc.
+⍝
+⍝ Aplwc is free software: you can redistribute it and/or modify
+⍝ it under the terms of the GNU General Public License as published by
+⍝ the Free Software Foundation, either version 3 of the License, or
+⍝ (at your option) any later version.
+⍝
+⍝ Aplwc 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
+⍝ GNU General Public License for more details.
+⍝
+⍝ You should have received a copy of the GNU General Public License
+⍝ along with aplwc. If not, see <https://www.gnu.org/licenses/>.
+⍝
+
:module Boot
:symbol plus '+'
:symbol minus '-'
diff --git a/src/lib/eval.c b/src/lib/eval.c
index 0da90db..c2dc344 100644
--- a/src/lib/eval.c
+++ b/src/lib/eval.c
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 2026 Peter Mikkelsen <petermikkelsen10@gmail.com>
+ *
+ * This file is part of aplwc.
+ *
+ * Aplwc is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Aplwc 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
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with aplwc. If not, see <https://www.gnu.org/licenses/>.
+ */
+
#include "aplwc_internal.h"
struct aplwc_value *
diff --git a/src/lib/main.c b/src/lib/main.c
index 8aceded..3ea08e5 100644
--- a/src/lib/main.c
+++ b/src/lib/main.c
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 2026 Peter Mikkelsen <petermikkelsen10@gmail.com>
+ *
+ * This file is part of aplwc.
+ *
+ * Aplwc is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Aplwc 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
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with aplwc. If not, see <https://www.gnu.org/licenses/>.
+ */
+
#include "aplwc_internal.h"
#include "boot.h"
diff --git a/src/lib/memory.c b/src/lib/memory.c
index 61360b1..e277bd7 100644
--- a/src/lib/memory.c
+++ b/src/lib/memory.c
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 2026 Peter Mikkelsen <petermikkelsen10@gmail.com>
+ *
+ * This file is part of aplwc.
+ *
+ * Aplwc is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Aplwc 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
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with aplwc. If not, see <https://www.gnu.org/licenses/>.
+ */
+
#include "aplwc_internal.h"
#define ALIGNMENT 8
diff --git a/src/lib/module.c b/src/lib/module.c
index 2524eca..d14b822 100644
--- a/src/lib/module.c
+++ b/src/lib/module.c
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 2026 Peter Mikkelsen <petermikkelsen10@gmail.com>
+ *
+ * This file is part of aplwc.
+ *
+ * Aplwc is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Aplwc 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
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with aplwc. If not, see <https://www.gnu.org/licenses/>.
+ */
+
#include "aplwc_internal.h"
static int
diff --git a/src/lib/string.c b/src/lib/string.c
index cc6c6cb..05549e0 100644
--- a/src/lib/string.c
+++ b/src/lib/string.c
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 2026 Peter Mikkelsen <petermikkelsen10@gmail.com>
+ *
+ * This file is part of aplwc.
+ *
+ * Aplwc is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Aplwc 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
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with aplwc. If not, see <https://www.gnu.org/licenses/>.
+ */
+
#include "aplwc_internal.h"
struct string *
diff --git a/src/lib/syntax.c b/src/lib/syntax.c
index ae52343..d20c058 100644
--- a/src/lib/syntax.c
+++ b/src/lib/syntax.c
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 2026 Peter Mikkelsen <petermikkelsen10@gmail.com>
+ *
+ * This file is part of aplwc.
+ *
+ * Aplwc is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Aplwc 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
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with aplwc. If not, see <https://www.gnu.org/licenses/>.
+ */
+
#include "aplwc_internal.h"
struct scan_state {