cmark

My personal build of CMark ✏️

Commit
95176e81845f1274c70c4707887ed1a9298accfd
Parent
6e25c889cf33a6217a9b4cf37ea1a6361883901b
Author
John MacFarlane <jgm@berkeley.edu>
Date

scanners.re: use cmark_chunk rather than chunk.

Diffstat

2 files changed, 6 insertions, 6 deletions

Status File Name N° Changes Insertions Deletions
Modified src/scanners.c 10 5 5
Modified src/scanners.re 2 1 1
diff --git a/src/scanners.c b/src/scanners.c
@@ -1,4 +1,4 @@
-/* Generated by re2c 0.13.6 */
+/* Generated by re2c 0.13.5 */
 #include <stdlib.h>
 #include "chunk.h"
 #include "scanners.h"
@@ -10506,7 +10506,7 @@ yy1114:
 yy1115:
 	p = marker;
 	if (yyaccept <= 1) {
-		if (yyaccept == 0) {
+		if (yyaccept <= 0) {
 			goto yy1103;
 		} else {
 			goto yy1110;
@@ -10890,13 +10890,13 @@ yy1147:
 yy1148:
 	p = marker;
 	if (yyaccept <= 1) {
-		if (yyaccept == 0) {
+		if (yyaccept <= 0) {
 			goto yy1141;
 		} else {
 			goto yy1152;
 		}
 	} else {
-		if (yyaccept == 2) {
+		if (yyaccept <= 2) {
 			goto yy1159;
 		} else {
 			goto yy1166;
@@ -11670,7 +11670,7 @@ yy1275:
 	}
 yy1276:
 	p = marker;
-	if (yyaccept == 0) {
+	if (yyaccept <= 0) {
 		goto yy1271;
 	} else {
 		goto yy1283;
diff --git a/src/scanners.re b/src/scanners.re
@@ -2,7 +2,7 @@
 #include "chunk.h"
 #include "scanners.h"
 
-int _scan_at(int (*scanner)(const unsigned char *), chunk *c, int offset)
+int _scan_at(int (*scanner)(const unsigned char *), cmark_chunk *c, int offset)
 {
 	int res;
 	unsigned char *ptr = (unsigned char *)c->data;