removed the unneeded code
This commit is contained in:
		| @ -669,40 +669,6 @@ static int get_char (stix_t* stix) | ||||
| 	} | ||||
|  | ||||
| 	lc = stix->c->curinp->buf[stix->c->curinp->b.pos++]; | ||||
| 	if (lc == '\n' || lc == '\r') | ||||
| 	{ | ||||
| 		/* handle common newline conventions. | ||||
| 		 *   LF+CR | ||||
| 		 *   CR+LF | ||||
| 		 *   LF | ||||
| 		 *   CR | ||||
| 		 */ | ||||
| 		if (stix->c->curinp->b.pos >= stix->c->curinp->b.len) | ||||
| 		{ | ||||
| 			n = stix->c->impl (stix, STIX_IO_READ, stix->c->curinp); | ||||
| 			if (n <= -1)  | ||||
| 			{ | ||||
| 				stix->c->curinp->b.state = -1; | ||||
| 				goto done; | ||||
| 			} | ||||
| 			else if (n == 0) | ||||
| 			{ | ||||
| 				stix->c->curinp->b.state = 1; | ||||
| 				goto done; | ||||
| 			} | ||||
| 			else | ||||
| 			{ | ||||
| 				stix->c->curinp->b.pos = 0; | ||||
| 				stix->c->curinp->b.len = n; | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
| 		ec = (lc == '\n')? '\r': '\n'; | ||||
| 		if (stix->c->curinp->buf[stix->c->curinp->b.pos] == ec) stix->c->curinp->b.pos++; | ||||
|  | ||||
| 	done: | ||||
| 		lc = STIX_UCI_NL; | ||||
| 	} | ||||
|  | ||||
| 	stix->c->curinp->lxc.c = lc; | ||||
| 	stix->c->curinp->lxc.l.line = stix->c->curinp->line; | ||||
|  | ||||
| @ -395,7 +395,6 @@ struct stix_ntime_t | ||||
|  * PRIMITIVE MACROS | ||||
|  * ========================================================================= */ | ||||
| #define STIX_UCI_EOF ((stix_ooci_t)-1) | ||||
| #define STIX_UCI_NL  ((stix_ooci_t)'\n') | ||||
|  | ||||
| #define STIX_SIZEOF(x) (sizeof(x)) | ||||
| #define STIX_COUNTOF(x) (sizeof(x) / sizeof(x[0])) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user