Browse Source

Update copyright

master
Carsten Sonne Larsen 9 months ago
parent
commit
9e712377a4
403 changed files with 1267 additions and 1267 deletions
  1. +1
    -1
      LICENSE
  2. +3
    -3
      amath.1
  3. +8
    -8
      builddeb
  4. +8
    -8
      builddebdev
  5. +5
    -5
      catalog/english/amath-help.ct
  6. +5
    -5
      catalog/english/amath-text.ct
  7. +1
    -1
      configure
  8. +2
    -2
      src/amath.h
  9. +2
    -2
      src/amathc.h
  10. +2
    -2
      src/amatht.h
  11. +2
    -2
      src/clib/alloccpy.c
  12. +50
    -50
      src/clib/amathc.3
  13. +2
    -2
      src/clib/mem.c
  14. +2
    -2
      src/clib/memset.c
  15. +2
    -2
      src/clib/strcmp.c
  16. +2
    -2
      src/clib/strlen.c
  17. +2
    -2
      src/clib/untag.c
  18. +177
    -177
      src/cplex/amathi.3
  19. +2
    -2
      src/cplex/cacos.c
  20. +2
    -2
      src/cplex/cacosh.c
  21. +2
    -2
      src/cplex/cacot.c
  22. +2
    -2
      src/cplex/cacoth.c
  23. +2
    -2
      src/cplex/cacsc.c
  24. +2
    -2
      src/cplex/cacsch.c
  25. +2
    -2
      src/cplex/casec.c
  26. +2
    -2
      src/cplex/casech.c
  27. +2
    -2
      src/cplex/casin.c
  28. +2
    -2
      src/cplex/casinh.c
  29. +2
    -2
      src/cplex/catan.c
  30. +2
    -2
      src/cplex/catanh.c
  31. +2
    -2
      src/cplex/ccbrt.c
  32. +2
    -2
      src/cplex/ccos.c
  33. +2
    -2
      src/cplex/ccosh.c
  34. +2
    -2
      src/cplex/ccot.c
  35. +2
    -2
      src/cplex/ccoth.c
  36. +2
    -2
      src/cplex/ccsc.c
  37. +2
    -2
      src/cplex/ccsch.c
  38. +2
    -2
      src/cplex/cexp.c
  39. +2
    -2
      src/cplex/clog.c
  40. +2
    -2
      src/cplex/clog10.c
  41. +2
    -2
      src/cplex/clogb.c
  42. +2
    -2
      src/cplex/cpow.c
  43. +2
    -2
      src/cplex/csec.c
  44. +2
    -2
      src/cplex/csech.c
  45. +2
    -2
      src/cplex/csgn.c
  46. +2
    -2
      src/cplex/csin.c
  47. +2
    -2
      src/cplex/csinh.c
  48. +2
    -2
      src/cplex/csqrt.c
  49. +2
    -2
      src/cplex/ctan.c
  50. +2
    -2
      src/cplex/ctanh.c
  51. +2
    -2
      src/cplex/prim.c
  52. +2
    -2
      src/cplex/prim.h
  53. +4
    -4
      src/lib/aengine.cpp
  54. +2
    -2
      src/lib/aengine.h
  55. +2
    -2
      src/lib/bigint.cpp
  56. +2
    -2
      src/lib/bigint.h
  57. +1
    -1
      src/lib/charbuf.cpp
  58. +1
    -1
      src/lib/charbuf.h
  59. +2
    -2
      src/lib/charval.h
  60. +3
    -3
      src/lib/cplex.cpp
  61. +2
    -2
      src/lib/cplex.h
  62. +5
    -5
      src/lib/nnumb.cpp
  63. +2
    -2
      src/lib/nnumb.h
  64. +2
    -2
      src/lib/ntext.cpp
  65. +2
    -2
      src/lib/ntext.h
  66. +4
    -4
      src/lib/ntextd.cpp
  67. +2
    -2
      src/lib/ntextd.h
  68. +2
    -2
      src/lib/ntextp.cpp
  69. +2
    -2
      src/lib/ntextp.h
  70. +2
    -2
      src/lib/numb.h
  71. +3
    -3
      src/lib/real.cpp
  72. +2
    -2
      src/lib/real.h
  73. +2
    -2
      src/loc/help.h
  74. +2
    -2
      src/loc/ident.h
  75. +2
    -2
      src/loc/kword.h
  76. +2
    -2
      src/loc/text.h
  77. +11
    -11
      src/main.cpp
  78. +4
    -4
      src/main.h
  79. +2
    -2
      src/main/evaluator.cpp
  80. +2
    -2
      src/main/evaluator.h
  81. +2
    -2
      src/main/fgrid.cpp
  82. +2
    -2
      src/main/fgrid.h
  83. +2
    -2
      src/main/function/absolute.cpp
  84. +2
    -2
      src/main/function/absolute.h
  85. +2
    -2
      src/main/function/aexcosecant.cpp
  86. +3
    -3
      src/main/function/aexcosecant.h
  87. +2
    -2
      src/main/function/aexsecant.cpp
  88. +3
    -3
      src/main/function/aexsecant.h
  89. +2
    -2
      src/main/function/arcchord.cpp
  90. +3
    -3
      src/main/function/arcchord.h
  91. +2
    -2
      src/main/function/arccos.cpp
  92. +3
    -3
      src/main/function/arccos.h
  93. +2
    -2
      src/main/function/arccosecant.cpp
  94. +3
    -3
      src/main/function/arccosecant.h
  95. +2
    -2
      src/main/function/arccotangent.cpp
  96. +3
    -3
      src/main/function/arccotangent.h
  97. +2
    -2
      src/main/function/arccovercosine.cpp
  98. +3
    -3
      src/main/function/arccovercosine.h
  99. +2
    -2
      src/main/function/arccoversine.cpp
  100. +3
    -3
      src/main/function/arccoversine.h

+ 1
- 1
LICENSE View File

@ -1,5 +1,5 @@
Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
Copyright (c) 2007 The NetBSD Foundation, Inc.
Copyright (c) 1990, 1993 The Regents of the University of California.
All rights reserved.


+ 3
- 3
amath.1 View File

@ -1,6 +1,6 @@
.\" Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
.\" Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
.\" All rights reserved.
.\"
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
@ -9,7 +9,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\"
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.


+ 8
- 8
builddeb View File

@ -1,8 +1,8 @@
#!/bin/sh
#
# Copyright {c} 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
#
# Copyright {c} 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
# All rights reserved.
#
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
@ -11,7 +11,7 @@
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@ -23,10 +23,10 @@
# LIABILITY, OR TORT {INCLUDING NEGLIGENCE OR OTHERWISE} ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
#
# Project homepage:
# https://amath.innolan.net
#
#
set -e
@ -103,9 +103,9 @@ chmod 0755 amath/DEBIAN/control
echo "Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/"
echo "Upstream-Name: amath"
echo "Source: https://amath.innolan.net"
echo
echo
echo "Files: *"
echo "Copyright: 2014-2018 Carsten Sonne Larsen <cs@innolan.net>"
echo "Copyright: 2014-2021 Carsten Sonne Larsen <cs@innolan.net>"
echo " 2007 The NetBSD Foundation, Inc."
echo " 1990, 1993 The Regents of the University of California."
echo "License: BSD-2-Clause"


+ 8
- 8
builddebdev View File

@ -1,8 +1,8 @@
#!/bin/sh
#
# Copyright {c} 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
#
# Copyright {c} 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
# All rights reserved.
#
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
@ -11,7 +11,7 @@
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@ -23,10 +23,10 @@
# LIABILITY, OR TORT {INCLUDING NEGLIGENCE OR OTHERWISE} ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
#
# Project homepage:
# https://amath.innolan.net
#
#
# THIS SCRIPT IS NOT READY FOR PRODUCTION !
@ -147,9 +147,9 @@ chmod 0755 amath/DEBIAN/control
echo "Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/"
echo "Upstream-Name: amath-dev"
echo "Source: https://amath.innolan.net"
echo
echo
echo "Files: *"
echo "Copyright: 2014-2018 Carsten Sonne Larsen <cs@innolan.net>"
echo "Copyright: 2014-2021 Carsten Sonne Larsen <cs@innolan.net>"
echo " 2007 The NetBSD Foundation, Inc."
echo " 1990, 1993 The Regents of the University of California."
echo "License: BSD-2-Clause"


+ 5
- 5
catalog/english/amath-help.ct View File

@ -2,19 +2,19 @@
## language english
## codeset 0
; #############################################################################
; Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
; Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
; All rights reserved.
;
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are met:
;
;
; * Redistributions of source code must retain the above copyright notice, this
; list of conditions and the following disclaimer.
;
;
; * Redistributions in binary form must reproduce the above copyright notice,
; this list of conditions and the following disclaimer in the documentation
; and/or other materials provided with the distribution.
;
;
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE


+ 5
- 5
catalog/english/amath-text.ct View File

@ -2,19 +2,19 @@
## language english
## codeset 0
; #############################################################################
; Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
; Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
; All rights reserved.
;
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are met:
;
;
; * Redistributions of source code must retain the above copyright notice, this
; list of conditions and the following disclaimer.
;
;
; * Redistributions in binary form must reproduce the above copyright notice,
; this list of conditions and the following disclaimer in the documentation
; and/or other materials provided with the distribution.
;
;
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE


+ 1
- 1
configure View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright {c} 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
# Copyright {c} 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without


+ 2
- 2
src/amath.h View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#ifndef AMATH_H


+ 2
- 2
src/amathc.h View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#ifndef AMATHC_H


+ 2
- 2
src/amatht.h View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#ifndef AMATHT_H


+ 2
- 2
src/clib/alloccpy.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "amathc.h"


+ 50
- 50
src/clib/amathc.3 View File

@ -1,6 +1,6 @@
.\" Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
.\" Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
.\" All rights reserved.
.\"
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
@ -9,7 +9,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\"
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
@ -82,7 +82,7 @@ amathc.h \- C functions for manipulating strings and memory
.PP
.SS "unsigned int AllocAndCopy (char ** destination, const char * source)"
.PP
Allocate memory and copy a string into the array\&.
Allocate memory and copy a string into the array\&.
.PP
Definition at line 40 of file alloccpy\&.c\&.
.PP
@ -90,32 +90,32 @@ Definition at line 40 of file alloccpy\&.c\&.
41 {
42 char *i, *s, *d;
43 unsigned int n, size;
44
44
45 if (source == nullptr)
46 {
47 *destination = nullptr;
48 return 0;
49 }
50
50
51 i = (char*)source;
52 s = (char*)source;
53 while (*i)
54 i++;
55
55
56 n = (unsigned int)(i - s + 1);
57 size = n;
58 *destination = AllocMemSafe(size);
59 d = *destination;
60
60
64 while (n--)
65 *d++ = *s++;
67
67
68 return size;
69 }
.fi
.SS "void* AllocMemSafe (size_t)"
.PP
Allocate memory and add it to the global memory list\&.
Allocate memory and add it to the global memory list\&.
.PP
Definition at line 86 of file mem\&.c\&.
.PP
@ -123,7 +123,7 @@ Definition at line 86 of file mem\&.c\&.
87 {
88 struct MemoryBlock* newblock;
89 size_t allocsize;
90
90
91 if (list == nullptr)
92 {
93 list = (struct MemoryList*)ALLOC_MEM(sizeof(struct MemoryList));
@ -132,13 +132,13 @@ Definition at line 86 of file mem\&.c\&.
96 alloc_error("list", sizeof(struct MemoryList));
97 return 0;
98 }
99
99
100 list->first = nullptr;
101 list->peak = 0;
102 list->size = 0;
103 list->count = 0;
104 }
105
105
106 #ifdef P64BIT
107 // Align to bytes of 8
108 allocsize = (size + 7) & ~0x07;
@ -146,14 +146,14 @@ Definition at line 86 of file mem\&.c\&.
110 // Align to bytes of 4
111 allocsize = (size + 3) & ~0x03;
112 #endif
113
113
114 newblock = (struct MemoryBlock*)ALLOC_MEM(sizeof(struct MemoryBlock));
115 if (!newblock)
116 {
117 alloc_error("block", sizeof(struct MemoryBlock));
118 return 0;
119 }
120
120
121 newblock->address = (struct MemoryBlock*)ALLOC_MEM(allocsize);
122 if (!newblock->address)
123 {
@ -161,25 +161,25 @@ Definition at line 86 of file mem\&.c\&.
125 alloc_error("memory", allocsize);
126 return 0;
127 }
128
128
129 newblock->size = allocsize;
130 newblock->next = list->first;
131 list->first = newblock;
132 list->size += allocsize;
133 list->count++;
134
134
135 if (list->size > list->peak)
136 {
137 list->peak = list->size;
138 }
139
139
140 // Memory allocated
141 return newblock->address;
142 }
.fi
.SS "void DetachMemSafe (void * block)"
.PP
Detach an allocated memory from the global memory list\&. The memory block is only detached, not deallocated\&.
Detach an allocated memory from the global memory list\&. The memory block is only detached, not deallocated\&.
.PP
Definition at line 209 of file mem\&.c\&.
.PP
@ -190,19 +190,19 @@ Definition at line 209 of file mem\&.c\&.
.fi
.SS "void FreeAllSafe ()"
.PP
Deallocate all memory in the global memory list\&.
Deallocate all memory in the global memory list\&.
.PP
Definition at line 217 of file mem\&.c\&.
.PP
.nf
218 {
219 struct MemoryBlock *current, *next;
220
220
221 if (list == nullptr)
222 {
223 return;
224 }
225
225
226 current = list->first;
227 while (current != nullptr)
228 {
@ -211,14 +211,14 @@ Definition at line 217 of file mem\&.c\&.
231 FREE_MEM(current);
232 current = next;
233 }
234
234
235 FREE_MEM(list);
236 list = nullptr;
237 }
.fi
.SS "void FreeMemSafe (void *)"
.PP
Deallocate memory from the global memory list\&.
Deallocate memory from the global memory list\&.
.PP
Definition at line 200 of file mem\&.c\&.
.PP
@ -229,7 +229,7 @@ Definition at line 200 of file mem\&.c\&.
.fi
.SS "void MemCopy (void * destination, const void * source, unsigned int length)"
.PP
Copy a block of memory, handling overlap\&.
Copy a block of memory, handling overlap\&.
.PP
Definition at line 75 of file memcpy\&.c\&.
.PP
@ -238,10 +238,10 @@ Definition at line 75 of file memcpy\&.c\&.
77 char* dst = (char*) destination;
78 const char* src = (const char*) source;
79 unsigned int t;
80
80
81 if (length == 0 || dst == src) // nothing to do
82 return;
83
83
84 if ((mem_ptr)dst < (mem_ptr)src)
85 {
86 // Copy forward
@ -254,14 +254,14 @@ Definition at line 75 of file memcpy\&.c\&.
96 else
97 t = wsize - (t & wmask);
98 length -= t;
99
99
100 TLOOP1(*dst++ = *src++);
101 }
102
102
103 // Copy whole words, then mop up any trailing bytes\&.
104 t = length / wsize;
105 TLOOP(*(word *)dst = *(word *)src; src += wsize; dst += wsize);
106
106
107 t = length & wmask;
108 TLOOP(*dst++ = *src++);
110 }
@ -280,13 +280,13 @@ Definition at line 75 of file memcpy\&.c\&.
123 else
124 t &= wmask;
125 length -= t;
126
126
127 TLOOP1(*--dst = *--src);
128 }
129
129
130 t = length / wsize;
131 TLOOP(src -= wsize; dst -= wsize; *(word *)dst = *(word *)src);
132
132
133 t = length & wmask;
134 TLOOP(*--dst = *--src);
135 }
@ -294,7 +294,7 @@ Definition at line 75 of file memcpy\&.c\&.
.fi
.SS "void MemSet (void * destination, int c0, unsigned int length)"
.PP
Fill block of memory with a constant value\&.
Fill block of memory with a constant value\&.
.PP
Definition at line 56 of file memset\&.c\&.
.PP
@ -303,7 +303,7 @@ Definition at line 56 of file memset\&.c\&.
58 unsigned char* dst = (unsigned char*) dst0;
59 unsigned int t;
60 unsigned int c;
61
61
62 /*
63 * If not enough words, just fill bytes\&. A length >= 2 words
64 * guarantees that at least one of them is `complete' after
@ -325,7 +325,7 @@ Definition at line 56 of file memset\&.c\&.
80 --length;
81 }
82 }
83
83
84 if ((c = (unsigned char)c0) != 0)
85 { /* Fill the word\&. */
86 c = (c << 8) | c; /* u_int is 16 bits\&. */
@ -336,7 +336,7 @@ Definition at line 56 of file memset\&.c\&.
91 c = (c << 32) | c; /* u_int is 64 bits\&. */
92 #endif
93 }
94
94
95 /* Align destination by filling in bytes\&. */
96 if ((t = (mem_ptr)dst & wmask) != 0)
97 {
@ -348,7 +348,7 @@ Definition at line 56 of file memset\&.c\&.
103 }
104 while (--t != 0);
105 }
106
106
107 /* Fill words\&. Length was >= 2*words so we know t >= 1 here\&. */
108 t = length / wsize;
109 do
@ -357,7 +357,7 @@ Definition at line 56 of file memset\&.c\&.
112 dst += wsize;
113 }
114 while (--t != 0);
115
115
116 /* Mop up trailing bytes, if any\&. */
117 t = length & wmask;
118 if (t != 0)
@ -370,7 +370,7 @@ Definition at line 56 of file memset\&.c\&.
.fi
.SS "void MemUsage (long *, long *, long *)"
.PP
Get memory usage in the global memory list\&.
Get memory usage in the global memory list\&.
.PP
Definition at line 242 of file mem\&.c\&.
.PP
@ -383,26 +383,26 @@ Definition at line 242 of file mem\&.c\&.
.fi
.SS "bool StrIsEqual (const char * s1, const char * s2)"
.PP
Compare two null terminated strings to each other\&.
Compare two null terminated strings to each other\&.
.PP
Definition at line 50 of file strcmp\&.c\&.
.PP
.nf
51 {
52 int r;
53
53
54 while (*s1 == *s2++)
55 if (*s1++ == '\0')
56 return true;
57
57
58 r = (*(const unsigned char *)s1 - *(const unsigned char *)(s2 - 1));
59
59
60 return r == 0;
61 }
.fi
.SS "int StrLen (const char * string)"
.PP
Get the length of a null terminated string\&.
Get the length of a null terminated string\&.
.PP
Definition at line 34 of file strlen\&.c\&.
.PP
@ -424,10 +424,10 @@ Definition at line 32 of file untag\&.c\&.
34 const char *pos, *tmp, *tag;
35 char* dest;
36 int unsigned i, j, found;
37
37
38 pos = source;
39 dest = destination;
40
40
41 while (*pos != '\0')
42 {
43 if (*pos != '#')
@ -449,7 +449,7 @@ Definition at line 32 of file untag\&.c\&.
59 tag++;
60 j++;
61 }
62
62
63 if (j > 1 && *(--tag) == '#')
64 {
65 // Tag found\&. Now replace\&.
@ -461,7 +461,7 @@ Definition at line 32 of file untag\&.c\&.
71 break;
72 }
73 }
74
74
75 if (!found)
76 {
77 (*dest++ = *pos++);
@ -479,7 +479,7 @@ Written by Carsten Sonne Larsen <cs@innolan.net>. The code in MemSet and
MemCopy is derived from software contributed to Berkeley by Mike Hibler and
Chris Torek.
.SH COPYRIGHT
Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
.br
Copyright (c) 2007 The NetBSD Foundation, Inc.
.br


+ 2
- 2
src/clib/mem.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "amathc.h"


+ 2
- 2
src/clib/memset.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 1990, 1993 The Regents of the University of California.
* All rights reserved.
*
@ -28,7 +28,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
/**


+ 2
- 2
src/clib/strcmp.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 1990, 1993 The Regents of the University of California.
* All rights reserved.
*
@ -28,7 +28,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
/**


+ 2
- 2
src/clib/strlen.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
/**


+ 2
- 2
src/clib/untag.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "amathc.h"


+ 177
- 177
src/cplex/amathi.3
File diff suppressed because it is too large
View File


+ 2
- 2
src/cplex/cacos.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/cacosh.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/cacot.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/cacoth.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/cacsc.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/cacsch.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/casec.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/casech.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/casin.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/casinh.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/catan.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/catanh.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/ccbrt.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/ccos.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@ -28,7 +28,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/ccosh.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@ -31,7 +31,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/ccot.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/ccoth.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/ccsc.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/ccsch.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/cexp.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@ -31,7 +31,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/clog.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@ -31,7 +31,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/clog10.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/clogb.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/cpow.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@ -31,7 +31,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/csec.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/csech.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/csgn.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/csin.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@ -31,7 +31,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/csinh.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@ -31,7 +31,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/csqrt.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@ -31,7 +31,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/ctan.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@ -31,7 +31,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/ctanh.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@ -31,7 +31,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/prim.c View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "prim.h"


+ 2
- 2
src/cplex/prim.h View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#ifndef AMATH_LIB_COMPLEX_PRIM_H


+ 4
- 4
src/lib/aengine.cpp View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#include "amath.h"
@ -190,7 +190,7 @@ const char* AnsiConoleEngine::ProcessChar(const unsigned char character)
}
else
{
out->Append(DELETE1CHARASC);
out->Append(DELETE1CHARASC);
}
endpos--;
linebuf->ptr = endpos;
@ -234,7 +234,7 @@ const char* AnsiConoleEngine::ProcessChar(const unsigned char character)
}
else
{
out->Append(DELETE1CHARASC);
out->Append(DELETE1CHARASC);
}
cursor--;
endpos--;


+ 2
- 2
src/lib/aengine.h View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
*
* Project homepage:
* https://amath.innolan.net
*
*
*/
#ifndef AMATH_ANSI_CONSOLE_ENGINE


+ 2
- 2
src/lib/bigint.cpp View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without