summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/luma/arch.h15
-rw-r--r--include/luma/print.h15
-rw-r--r--include/luma/utf8dec.h17
-rw-r--r--include/luma/utf8enc.h17
4 files changed, 62 insertions, 2 deletions
diff --git a/include/luma/arch.h b/include/luma/arch.h
index b929ce4..c4ce2eb 100644
--- a/include/luma/arch.h
+++ b/include/luma/arch.h
@@ -1,3 +1,18 @@
+/*
+ Copyright 2021 Gabriel Jensen
+
+ This file is part of luma.
+
+ luma is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
+
+ luma 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 Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License along with luma.
+
+ If not, see <https://www.gnu.org/licenses/>.
+*/
# if !defined(LUMA_HDR_ARCH)
# define LUMA_HDR_ARCH
enum luma_arch {
diff --git a/include/luma/print.h b/include/luma/print.h
index 227823c..8a359fb 100644
--- a/include/luma/print.h
+++ b/include/luma/print.h
@@ -1,3 +1,18 @@
+/*
+ Copyright 2021 Gabriel Jensen
+
+ This file is part of luma.
+
+ luma is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
+
+ luma 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 Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License along with luma.
+
+ If not, see <https://www.gnu.org/licenses/>.
+*/
# if !defined(LUMA_HDR_PRINT)
# define LUMA_HDR_PRINT
# include <stdint.h>
diff --git a/include/luma/utf8dec.h b/include/luma/utf8dec.h
index 6d6fbe9..c9913b2 100644
--- a/include/luma/utf8dec.h
+++ b/include/luma/utf8dec.h
@@ -1,6 +1,21 @@
+/*
+ Copyright 2021 Gabriel Jensen
+
+ This file is part of luma.
+
+ luma is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
+
+ luma 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 Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License along with luma.
+
+ If not, see <https://www.gnu.org/licenses/>.
+*/
# if !defined(LUMA_HDR_UTF8DEC)
# define LUMA_HDR_UTF8DEC
# include <stddef.h>
# include <stdint.h>
-extern uint32_t * luma_utf8dec(uint8_t const * str,size_t * outszptr);
+extern int luma_utf8dec(uint8_t * utf,uint32_t * * codeps,size_t * outszptr);
# endif
diff --git a/include/luma/utf8enc.h b/include/luma/utf8enc.h
index 5d6d7cf..4426183 100644
--- a/include/luma/utf8enc.h
+++ b/include/luma/utf8enc.h
@@ -1,6 +1,21 @@
+/*
+ Copyright 2021 Gabriel Jensen
+
+ This file is part of luma.
+
+ luma is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
+
+ luma 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 Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License along with luma.
+
+ If not, see <https://www.gnu.org/licenses/>.
+*/
# if !defined(LUMA_HDR_UTF8ENC)
# define LUMA_HDR_UTF8ENC
# include <stddef.h>
# include <stdint.h>
-extern uint8_t const * luma_utf8enc(uint32_t * codep,size_t * outszptr);
+extern int luma_utf8enc(uint32_t * codeps,uint8_t * * utf,size_t * outszptr);
# endif