aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-11-20Make SourceHut badge show status of master branch commitsMarc André Tanner1-1/+1
2020-11-19correct a couple of typos and distinguish between immediate and waiting ↵Greg Reagle1-11/+20
operators
2020-11-19test/vim: remove test involving g~Marc André Tanner2-4/+0
This test does not seem to be stable on the GitHub macOS CI.
2020-11-14vis: fix <C-c> processing after SIGINTMarc André Tanner1-1/+2
There are two main ways how the input queue is managed in vis: - vis_keys_feed(..) appends new input to the queue and immediately starts processing it. Starting from the position before the call i.e. ignoring any previously queued input. This is typically used in key binding handlers where the input queue still contains the mapping leading to the invocation of the handler. In that case new input should be interpreted immediately, before the handler eventually returns and its mapping is consumed. - vis_keys_push(..) with pos=0, appends new input to the end of the queue and starts processing it from the start of the queue, taking the full content into consideration. This is used by the main loop when new input becomes available. This patch switches the handling of <C-c> after a SIGINT from the former to the latter mechanism and fixes mappings using <C-c> in a non-leading position.
2020-11-14build: fix curses library/pkg-config nameLeonardo Taccari1-1/+1
Gracefully fallback to curses(3) (no libcurses `.pc' file is present and `-l$libcurses' is used and hence `-lcurses' (not `-llibcurses'!)).
2020-11-13vis: use localtime_r(3) instead of localtime(3)Marc André Tanner1-1/+2
This makes it thread safe. While it is unlikely that we use threads in the near future, it is sensible to avoid unnecessary global state.
2020-11-13sam: simplify boolean expression, start < end implies end > 0Marc André Tanner1-1/+1
2020-11-13map: remove no longer used map_leaf functionMarc André Tanner2-18/+0
2020-11-13Merge branch 'master' of https://github.com/ccao001/visMarc André Tanner1-1/+1
2020-11-13build: use feature test macros for memrchr configure checkMarc André Tanner1-1/+1
Previously these were only used to compile the main project source, resulting in inconsistencies between the feature detection and actual usage.
2020-11-12build: add -D_NETBSD_SOURCE for NetBSDSilas1-0/+1
memrchr() signature is not exposed by default for NetBSD. If one does not add -D_NETBSD_SOURCE, the compiler uses its own signature for memrchr() that returns a 32-bit integer, leading to misbehaviour in some situations. Defining _BSD_SOURCE doesn't work, so we define _NETBSD_SOURCE.
2020-11-12lua: fix typo in lilypond file extensionCarla Cao1-1/+1
There is no .lily file but there is a .ily file in lilypond for stylesheets. They are like css for lilypond. See here: http://lilypond.org/doc/v2.18/Documentation/learning/style-sheets
2020-10-30test: updateMarc André Tanner1-5/+8
2020-10-30text: simplify iterator_initMarc André Tanner1-2/+1
This was added in c240368d5da8208c15e0263034384414d938afb3 to work around a possibly bogus tis-interpreter warning regarding multiple accesses in the same expression.
2020-10-30text: fix invalid pointer comparisonMarc André Tanner1-1/+1
2020-10-30text: avoid invalid pointer arithmeticMarc André Tanner1-2/+2
2020-10-25test/core: add labs(3) implementation for TIS analyzerMarc André Tanner1-0/+5
While the ACSL specification for the function prototype is present, the actual implementation is missing. Not sure why?
2020-10-24text/core: add basic test for branching of revision treeMarc André Tanner1-0/+68
2020-10-24text/core: skip failing I/O test on CygwinMarc André Tanner1-0/+4
Cygwin does seemingly not support overlapping mmap(2) regions.
2020-10-23text/core: add basic test for linear text_{earlier,later}Marc André Tanner1-0/+14
2020-10-23text/core: test all load/save method combinationsMarc André Tanner1-10/+14
This should trigger the re-mapping case during file save.
2020-10-23text/core: add basic undo/redo sanity check for empty fileMarc André Tanner1-0/+4
2020-10-23text/core: fix undo test name numberingMarc André Tanner1-2/+2
2020-10-23test/core: add basic array_{peek,pop} testMarc André Tanner1-2/+7
2020-10-20test/core: add time(3) stub for tis-interpreterMarc André Tanner1-0/+9
Not sure why a deterministic stub implementation is not provided by the CI environment[1], even though the public tis-interpreter repositories contain relevant code[2,3]. [1] https://github.com/TrustInSoft-CI/TrustInSoft-CI/issues/12 [2] https://github.com/TrustInSoft/tis-kernel/blob/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/share/tis-interpreter/common_time.c#L148 [3] https://github.com/TrustInSoft/tis-interpreter/blob/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/tis-interpreter/common_helpers/common_time.c#L138
2020-10-20test/core: avoid puts("") to print a new lineMarc André Tanner1-2/+2
2020-10-20test/core: fix relative #include directiveMarc André Tanner1-1/+1
The correct location is ensured by specifying the desired include directory (-I flag) to the compiler driver.
2020-10-10test: updateMarc André Tanner1-9/+5
2020-10-10text: move higher level utility functions to separate fileMarc André Tanner3-68/+73
The moved functions do not need access to internals of text.c, but instead use the public interfaces. Splitting them out should facilitate experimentation with different core text management data structures.
2020-10-10test: adapt source list in MakefilesMarc André Tanner2-2/+2
2020-10-10text: move generic iterator functionality to separate fileMarc André Tanner3-170/+178
2020-10-10text: move I/O related code to separate fileMarc André Tanner4-562/+587
This groups all I/O related code together to make it reusable in different core text data structure implementations.
2020-10-10build: list source files on separate linesMarc André Tanner1-4/+22
2020-10-10text: provide public text_iterator_initMarc André Tanner2-2/+7
It can be used to initialize a (stack allocated) Iterator structure, avoiding the copying of the return value as done by text_iterator_get which depending on the implementation might be problematic.
2020-10-10text: rename internal text_iterator_initMarc André Tanner1-4/+4
This is in preparation for a public function of the same name.
2020-10-10text: mark return value of text_iterator_text as constMarc André Tanner2-5/+5
2020-10-10text: make text_snapshot return whether it succeededMarc André Tanner2-2/+3
Currently this can't fail, but one can imagine implementations which do.
2020-10-10array: mark array_peek argument as constMarc André Tanner2-2/+2
2020-10-10array: mark array_capacity argument as constMarc André Tanner2-2/+2
2020-10-10array: mark array_init_from argument as constMarc André Tanner2-2/+2
2020-10-10text: mark text_delete_range range argument as constMarc André Tanner2-2/+2
2020-10-10text: mark text_save_write_range range argument as constMarc André Tanner2-2/+2
2020-10-10text: mark text_mmaped argument as constMarc André Tanner2-2/+2
2020-10-10array: mark array_get_ptr argument as constMarc André Tanner2-2/+2
2020-10-10array: mark array_get argument as constMarc André Tanner2-2/+2
2020-10-10array: mark array_length argument as constMarc André Tanner2-2/+2
2020-10-10text: mark text_write{,_range} argument as constMarc André Tanner2-4/+4
2020-10-10text: mark text_size argument as constMarc André Tanner2-2/+2
2020-10-10text: mark text_mark_get argument as constMarc André Tanner2-2/+2
2020-10-10text: mark text_iterator_byte_get argument as constMarc André Tanner2-2/+2