removed the unneeded code

This commit is contained in:
hyunghwan.chung 2016-09-07 07:51:04 +00:00
parent 155babff74
commit 2b97473c5e
2 changed files with 0 additions and 35 deletions

View File

@ -669,40 +669,6 @@ static int get_char (stix_t* stix)
} }
lc = stix->c->curinp->buf[stix->c->curinp->b.pos++]; 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.c = lc;
stix->c->curinp->lxc.l.line = stix->c->curinp->line; stix->c->curinp->lxc.l.line = stix->c->curinp->line;

View File

@ -395,7 +395,6 @@ struct stix_ntime_t
* PRIMITIVE MACROS * PRIMITIVE MACROS
* ========================================================================= */ * ========================================================================= */
#define STIX_UCI_EOF ((stix_ooci_t)-1) #define STIX_UCI_EOF ((stix_ooci_t)-1)
#define STIX_UCI_NL ((stix_ooci_t)'\n')
#define STIX_SIZEOF(x) (sizeof(x)) #define STIX_SIZEOF(x) (sizeof(x))
#define STIX_COUNTOF(x) (sizeof(x) / sizeof(x[0])) #define STIX_COUNTOF(x) (sizeof(x) / sizeof(x[0]))