- 09 May, 2022 20 commits
-
-
Michiel Verloop authored
• CTIerrorBasic will end up replacing CTIerror and its sibling variants. They are kept for now to keep the code running.
-
Michiel Verloop authored
This reverts commit 08699a1d.
-
Michiel Verloop authored
-
Michiel Verloop authored
• CTIerrorContinued remains broken for cti-single-line. • cti-message-length should fully work now but there are no automated tests for it yet.
-
Michiel Verloop authored
-
Michiel Verloop authored
• Change usage descriptions. • Fix CTIgetErrorMessageVA. • Break CTIerrorContinued - uses indents instead of cti-multi-line-format.
-
Michiel Verloop authored
-
Michiel Verloop authored
• Change default arguments for cti-header-format and cti-multiline-format in globals.mac • Add consistency warning for when -cti-single-line is enabled and -cti-message-line-length != 0 • Fix failing to parse format strings in errors • Fix incorrect documentation in str.c • Break CTIgetErrorMessageVA - the format now differs from the rest.
-
Michiel Verloop authored
This reverts commit f863830c.
-
Michiel Verloop authored
-
Sven-Bodo Scholz authored
-
Michiel Verloop authored
In the old system, warning messages were obtained in the format of `warning: <first line of warning_message>`. In the new system, warning messages are displayed on lines that follow lines containing nothing but "Warning:". The first grep setup grabs the warnings and the line after each warning. The first lines containing "Warning:" are then removed by the second grep. The third grep now greps on the first line of the warning message prefixed by two spaces, which should be close enough to the original behaviour.
-
Michiel Verloop authored
-
Michiel Verloop authored
-
Michiel Verloop authored
-
Michiel Verloop authored
-
Michiel Verloop authored
-
Michiel Verloop authored
-
Michiel Verloop authored
-
Michiel Verloop authored
• Add documentation to functions in str_buffer. • Add SBUFsubstToken to substitute tokens in the string buffer. • Fix the string buffer overflowing when instantiated with a size of 0. • Fix SBUFflush not setting a null byte, causing functions like SBUF2str to use the previous contents instead of an empty string. • Fix format string encoding errors silently leading to a memory overflow instead of crashing with a useful message. ○ Change CTIerrorInternal to not use PrintMessage to avoid a scenario where errors could potentially occur during error handling. • Some debug messages about buffer size now display before attempting to increase it, making debugging easier.
-
- 06 May, 2022 2 commits
-
-
Hans-Nikolai Viessmann authored
Refactor str_buffer, add tests for it. See merge request !191
-
-
- 29 Mar, 2022 2 commits
-
-
Hans-Nikolai Viessmann authored
[emrl] filter out used ERCs from pool See merge request !190
-
Hans-Nikolai Viessmann authored
Ahhh, for whatever reason the case that there might be several identically shaped ERCs needed for a loop was not correctly handled here. This led to the **same** candidate being used for all (of the same shape) WLs in a loop function, aaaaahahhhh. With this commit we filter out the candidate from the pool of possible candidates.
-
- 27 Mar, 2022 1 commit
-
-
Hans-Nikolai Viessmann authored
filter out invalid function ERCs See merge request !189
-
- 24 Mar, 2022 1 commit
-
-
Hans-Nikolai Viessmann authored
Through LivermoreLoop issue https://github.com/SacBase/LivermoreLoops/issues/5, it was discovered that EMRL can cause a race condition. Specifically, by design EMRL must find a suitable matching avis to use as part of a buffer-swap otherwise it **will not** cause a memory lift. In specific situations, the chosen candidate is not suitable as it has later references. For example: ``` a = alloc() emr_lift = alloc () x = loop (a, emr_lift) print (x) free (x) print (a) free (a) ``` here `a` is referenced both by the loop and a call to `print`. The return value `x` can in this situation be an alias to either `a` **or** `emr_lift` depending on the return criteria of the loop. In the first case the second free errors out as `a`, via `x`, has already been freed. The latter case does not display this problem. This commit extends FRC (filter reuse candidates) to additionally check function ERCs, thereby resolving the above example, e.g. `emr_lift` would never materialise as `a` is referenced twice in the body.
-
- 23 Mar, 2022 1 commit
-
-
Sven-Bodo Scholz authored
Make sac2c open source See merge request !170
-
- 09 Mar, 2022 4 commits
-
-
Hans-Nikolai Viessmann authored
-
Hans-Nikolai Viessmann authored
-
Hans-Nikolai Viessmann authored
-
Hans-Nikolai Viessmann authored
With this commit we move the sac2c project to a permissive OSS license called the Internet Software Consortium (ISC) license, which is similar to the simpler MIT/BSD licenses, but with a more concise text. Additionally we create a 'CONTRIBUTORS' file which includes all the names of individuals who contributed to the source code of the project. Finally, at compile time, the license and contributors lists is baked into the compiler directly replacing the fixed string messages in `usage.c`.
-
- 04 Mar, 2022 3 commits
-
-
Hans-Nikolai Viessmann authored
Hotfix 2302 Closes #2302 See merge request !187
-
Sven-Bodo Scholz authored
-
Sven-Bodo Scholz authored
-
- 03 Mar, 2022 5 commits
-
-
Hans-Nikolai Viessmann authored
fixed PMMskipPrf and SCS for and/or as exposed through issue 2308 See merge request !186
-
Sven-Bodo Scholz authored
-
Sven-Bodo Scholz authored
-
Sven-Bodo Scholz authored
-
Sven-Bodo Scholz authored
added some comments in ct_prf as well
-
- 02 Mar, 2022 1 commit
-
-
Sven-Bodo Scholz authored
-