merge
This commit is contained in:
parent
38fc2ad581
commit
668afe99c2
|
@ -58,11 +58,11 @@ This does not follow standard BNF/EBNF syntax, I will rewrite it once I get all
|
|||
<letters or digits> ::=
|
||||
<letter or digit> | <letters or digits> <letter or digit>
|
||||
|
||||
<letter> ::= one of
|
||||
[a-z][A-Z]
|
||||
<letter> ::=
|
||||
[a-z] | [A-Z]
|
||||
|
||||
<letter or digit> ::= one of
|
||||
[a-z][A-Z][0-9]
|
||||
<letter or digit> ::=
|
||||
<letter> | <digit>
|
||||
|
||||
<string variable identifier> ::=
|
||||
<arithmetic variable identifier>#
|
||||
|
|
4
buffer.c
4
buffer.c
|
@ -217,8 +217,8 @@ to cb_head at that offset
|
|||
*/
|
||||
char* b_setmark(Buffer* const pBD, short mark) {
|
||||
if (!pBD || mark < 0 || mark > pBD->addc_offset) { return NULL; }
|
||||
pBD->mark_coffset = mark;
|
||||
return (pBD->cb_head) + pBD->mark_coffset;
|
||||
pBD->mark_offset = mark;
|
||||
return (pBD->cb_head) + pBD->mark_offset;
|
||||
}
|
||||
|
||||
/* Reports the end-of-buffer flag state of the character buffer
|
||||
|
|
2
buffer.h
2
buffer.h
|
@ -19,7 +19,7 @@
|
|||
|
||||
/* standard header files */
|
||||
#include <stdio.h> /* standard input/output */
|
||||
#include <mm_malloc.h> /* for dynamic memory allocation.*/
|
||||
#include <malloc.h> /* for dynamic memory allocation.*/
|
||||
#include <limits.h> /* implementation-defined data type ranges and limits */
|
||||
|
||||
/* constant definitions */
|
||||
|
|
Loading…
Reference in New Issue