This commit is contained in:
Victor Fernandes 2017-03-13 19:14:01 -04:00
parent 38fc2ad581
commit 668afe99c2
3 changed files with 7 additions and 7 deletions

View File

@ -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>#

View File

@ -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

View File

@ -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 */