From 2c59edaad8d501cd495a444983bd50917453b381 Mon Sep 17 00:00:00 2001 From: Igor Cananea Date: Mon, 13 Nov 2023 10:19:35 -0500 Subject: [PATCH] Added GPLv3 notices to every file. (#1) --- makefile | 16 ++++++++++++++++ old/aed.s | 28 ++++++++++++++++++++++------ src/char_buffer.c | 18 ++++++++++++++++++ src/char_buffer.h | 18 ++++++++++++++++++ src/cmd_ops.c | 18 ++++++++++++++++++ src/cmd_ops.h | 18 ++++++++++++++++++ src/conv.c | 18 ++++++++++++++++++ src/conv.h | 18 ++++++++++++++++++ src/editor.c | 18 ++++++++++++++++++ src/editor.h | 18 ++++++++++++++++++ src/line_buffer.c | 18 ++++++++++++++++++ src/line_buffer.h | 18 ++++++++++++++++++ src/main.c | 18 ++++++++++++++++++ src/screen.c | 18 ++++++++++++++++++ src/screen.h | 18 ++++++++++++++++++ src/text_buffer.c | 18 ++++++++++++++++++ src/text_buffer.h | 18 ++++++++++++++++++ src/vkey.h | 18 ++++++++++++++++++ 18 files changed, 326 insertions(+), 6 deletions(-) diff --git a/makefile b/makefile index 67b4489..6e2a0d0 100644 --- a/makefile +++ b/makefile @@ -1,3 +1,19 @@ +# Copyright (C) 2023 Igor Cananea +# Author: Igor Cananea +# +# This program 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. +# +# 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 +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + # ---------------------------- # Makefile Options # ---------------------------- diff --git a/old/aed.s b/old/aed.s index 7c4d787..a301698 100644 --- a/old/aed.s +++ b/old/aed.s @@ -1,3 +1,19 @@ +; Copyright (C) 2023 Igor Cananea +; Author: Igor Cananea +; +; This program 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. +; +; 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 +; GNU General Public License for more details. +; +; You should have received a copy of the GNU General Public License +; along with this program. If not, see . + .assume ADL = 1 .org $A0000 @@ -384,7 +400,7 @@ _s_scur: ; Now print the cursor. rst.lil 10h - + ; First reverse fg/bg. ; Because printing the cursor moves it on vdp, we need to bring it ; back. @@ -449,7 +465,7 @@ _s_putc: ld a, (_s_curx) inc a ld (_s_curx), a - + ; Increment eos if we haven't filled the line. ld a, (_s_maxw) ld b, a @@ -486,7 +502,7 @@ _s_pview: ; - Cursor at EOL: ; * Shift everyone to the left to create a space. No tail work. ; - Cursor somewhere in line: - ; * Move everyone after the cursor to the right, removing char if + ; * Move everyone after the cursor to the right, removing char if ; needed. ; So first, let's figure out where we are. @@ -596,7 +612,7 @@ _s_pview: ; Move the cursor back to _s_curx,_s_cury call _s_cback - + @done: pop hl pop bc @@ -617,7 +633,7 @@ _s_bkspace: ; Remove cursor from screen call _replace_cur - + ; Move cursor to the left. dec a ld (_s_curx), a @@ -819,7 +835,7 @@ tb_putc: ; We can't store if there is no more space. For now, just return. jr Z, @done - + ; First we add the char to the text buffer. ld de, (_ccur) ld (de), a diff --git a/src/char_buffer.c b/src/char_buffer.c index 5945af2..babdc24 100644 --- a/src/char_buffer.c +++ b/src/char_buffer.c @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023 Igor Cananea + * Author: Igor Cananea + * + * This program 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. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include "char_buffer.h" #include diff --git a/src/char_buffer.h b/src/char_buffer.h index 57e11b5..ff895b8 100644 --- a/src/char_buffer.h +++ b/src/char_buffer.h @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023 Igor Cananea + * Author: Igor Cananea + * + * This program 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. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #ifndef _CHAR_BUFFER_H_ #define _CHAR_BUFFER_H_ diff --git a/src/cmd_ops.c b/src/cmd_ops.c index 5be8eb2..d582de9 100644 --- a/src/cmd_ops.c +++ b/src/cmd_ops.c @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023 Igor Cananea + * Author: Igor Cananea + * + * This program 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. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include "cmd_ops.h" #include diff --git a/src/cmd_ops.h b/src/cmd_ops.h index b1230e4..ae0f587 100644 --- a/src/cmd_ops.h +++ b/src/cmd_ops.h @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023 Igor Cananea + * Author: Igor Cananea + * + * This program 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. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #ifndef _CMD_OPS_H_ #define _CMD_OPS_H_ diff --git a/src/conv.c b/src/conv.c index 6e216d5..dd007a4 100644 --- a/src/conv.c +++ b/src/conv.c @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023 Igor Cananea + * Author: Igor Cananea + * + * This program 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. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include "conv.h" #include diff --git a/src/conv.h b/src/conv.h index f159ba2..459896e 100644 --- a/src/conv.h +++ b/src/conv.h @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023 Igor Cananea + * Author: Igor Cananea + * + * This program 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. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #ifndef _CONV_H_ #define _CONV_H_ diff --git a/src/editor.c b/src/editor.c index b226eaa..e9f537b 100644 --- a/src/editor.c +++ b/src/editor.c @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023 Igor Cananea + * Author: Igor Cananea + * + * This program 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. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include "editor.h" #include diff --git a/src/editor.h b/src/editor.h index 82a15a7..5cc9e0f 100644 --- a/src/editor.h +++ b/src/editor.h @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023 Igor Cananea + * Author: Igor Cananea + * + * This program 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. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #ifndef _EDITOR_H_ #define _EDITOR_H_ diff --git a/src/line_buffer.c b/src/line_buffer.c index e37df6f..6bae7d5 100644 --- a/src/line_buffer.c +++ b/src/line_buffer.c @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023 Igor Cananea + * Author: Igor Cananea + * + * This program 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. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include "line_buffer.h" #include diff --git a/src/line_buffer.h b/src/line_buffer.h index a5edac3..4f12cb9 100644 --- a/src/line_buffer.h +++ b/src/line_buffer.h @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023 Igor Cananea + * Author: Igor Cananea + * + * This program 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. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #ifndef _LINE_BUFFER_H_ #define _LINE_BUFFER_H_ diff --git a/src/main.c b/src/main.c index 658f717..6a996e8 100644 --- a/src/main.c +++ b/src/main.c @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023 Igor Cananea + * Author: Igor Cananea + * + * This program 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. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include "editor.h" #include "editor.h" #include "screen.h" diff --git a/src/screen.c b/src/screen.c index 21c30ac..51ff0a9 100644 --- a/src/screen.c +++ b/src/screen.c @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023 Igor Cananea + * Author: Igor Cananea + * + * This program 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. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include "screen.h" #include diff --git a/src/screen.h b/src/screen.h index 6a7d43d..88c4caf 100644 --- a/src/screen.h +++ b/src/screen.h @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023 Igor Cananea + * Author: Igor Cananea + * + * This program 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. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #ifndef _SCREEN_H_ #define _SCREEN_H_ diff --git a/src/text_buffer.c b/src/text_buffer.c index 754b57e..3d89b85 100644 --- a/src/text_buffer.c +++ b/src/text_buffer.c @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023 Igor Cananea + * Author: Igor Cananea + * + * This program 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. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include "text_buffer.h" #include diff --git a/src/text_buffer.h b/src/text_buffer.h index 4a86473..f04cd80 100644 --- a/src/text_buffer.h +++ b/src/text_buffer.h @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023 Igor Cananea + * Author: Igor Cananea + * + * This program 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. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #ifndef _TEXT_BUFFER_H_ #define _TEXT_BUFFER_H_ diff --git a/src/vkey.h b/src/vkey.h index 576f9f4..309c64f 100644 --- a/src/vkey.h +++ b/src/vkey.h @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023 Igor Cananea + * Author: Igor Cananea + * + * This program 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. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + // FabGL / vdp-gl virtual key mappings. typedef enum VirtualKey {