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> ::=
|
<letters or digits> ::=
|
||||||
<letter or digit> | <letters or digits> <letter or digit>
|
<letter or digit> | <letters or digits> <letter or digit>
|
||||||
|
|
||||||
<letter> ::= one of
|
<letter> ::=
|
||||||
[a-z][A-Z]
|
[a-z] | [A-Z]
|
||||||
|
|
||||||
<letter or digit> ::= one of
|
<letter or digit> ::=
|
||||||
[a-z][A-Z][0-9]
|
<letter> | <digit>
|
||||||
|
|
||||||
<string variable identifier> ::=
|
<string variable identifier> ::=
|
||||||
<arithmetic 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) {
|
char* b_setmark(Buffer* const pBD, short mark) {
|
||||||
if (!pBD || mark < 0 || mark > pBD->addc_offset) { return NULL; }
|
if (!pBD || mark < 0 || mark > pBD->addc_offset) { return NULL; }
|
||||||
pBD->mark_coffset = mark;
|
pBD->mark_offset = mark;
|
||||||
return (pBD->cb_head) + pBD->mark_coffset;
|
return (pBD->cb_head) + pBD->mark_offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Reports the end-of-buffer flag state of the character buffer
|
/* Reports the end-of-buffer flag state of the character buffer
|
||||||
|
|
2
buffer.h
2
buffer.h
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
/* standard header files */
|
/* standard header files */
|
||||||
#include <stdio.h> /* standard input/output */
|
#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 */
|
#include <limits.h> /* implementation-defined data type ranges and limits */
|
||||||
|
|
||||||
/* constant definitions */
|
/* constant definitions */
|
||||||
|
|
Loading…
Reference in New Issue