reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/polly/lib/External/isl/isl_stream.c
  372 	int old_line = s->last_line;
  374 	if (s->n_token) {
  375 		if (same_line && s->tokens[s->n_token - 1]->on_new_line)
  375 		if (same_line && s->tokens[s->n_token - 1]->on_new_line)
  377 		return s->tokens[--s->n_token];
  377 		return s->tokens[--s->n_token];
  380 	if (same_line && s->c == '\n')
  383 	s->len = 0;
  386 	while ((c = isl_stream_getc(s)) != -1) {
  388 			if (isl_stream_skip_line(s) < 0)
  397 	line = s->start_line;
  398 	col = s->start_col;
  402 	s->last_line = line;
  420 		tok = isl_token_new(s->ctx, line, col, old_line != line);
  428 		if ((c = isl_stream_getc(s)) == '>') {
  429 			tok = isl_token_new(s->ctx, line, col, old_line != line);
  437 			isl_stream_ungetc(s, c);
  439 			tok = isl_token_new(s->ctx, line, col, old_line != line);
  448 		tok = isl_token_new(s->ctx, line, col, old_line != line);
  453 		if (isl_stream_push_char(s, c))
  455 		while ((c = isl_stream_getc(s)) != -1 && isdigit(c))
  456 			if (isl_stream_push_char(s, c))
  459 			isl_stream_ungetc(s, c);
  460 		isl_stream_push_char(s, '\0');
  461 		isl_int_read(tok->u.v, s->buffer);
  465 			isl_stream_push_token(s, tok);
  466 			tok = isl_token_new(s->ctx, line, col, old_line != line);
  474 		tok = isl_token_new(s->ctx, line, col, old_line != line);
  477 		isl_stream_push_char(s, c);
  478 		while ((c = isl_stream_getc(s)) != -1 &&
  480 			isl_stream_push_char(s, c);
  482 			isl_stream_ungetc(s, c);
  483 		while ((c = isl_stream_getc(s)) != -1 && c == '\'')
  484 			isl_stream_push_char(s, c);
  486 			isl_stream_ungetc(s, c);
  487 		isl_stream_push_char(s, '\0');
  488 		tok->type = check_keywords(s);
  491 		tok->u.s = strdup(s->buffer);
  497 		tok = isl_token_new(s->ctx, line, col, old_line != line);
  502 		while ((c = isl_stream_getc(s)) != -1 && c != '"' && c != '\n')
  503 			isl_stream_push_char(s, c);
  505 			isl_stream_error(s, NULL, "unterminated string");
  508 		isl_stream_push_char(s, '\0');
  509 		tok->u.s = strdup(s->buffer);
  514 		tok = isl_token_new(s->ctx, line, col, old_line != line);
  517 		if ((c = isl_stream_getc(s)) == '=') {
  523 			isl_stream_ungetc(s, c);
  529 		tok = isl_token_new(s->ctx, line, col, old_line != line);
  532 		if ((c = isl_stream_getc(s)) == '=') {
  538 			isl_stream_ungetc(s, c);
  544 		tok = isl_token_new(s->ctx, line, col, old_line != line);
  547 		if ((c = isl_stream_getc(s)) == '=') {
  552 			if ((c = isl_stream_getc(s)) == '=') {
  564 			isl_stream_ungetc(s, c);
  569 		tok = isl_token_new(s->ctx, line, col, old_line != line);
  572 		if ((c = isl_stream_getc(s)) == '=') {
  577 			if ((c = isl_stream_getc(s)) == '=') {
  589 			isl_stream_ungetc(s, c);
  593 		tok = isl_token_new(s->ctx, line, col, old_line != line);
  597 		if ((c = isl_stream_getc(s)) != '&' && c != -1) {
  599 			isl_stream_ungetc(s, c);
  605 		tok = isl_token_new(s->ctx, line, col, old_line != line);
  609 		if ((c = isl_stream_getc(s)) != '|' && c != -1) {
  611 			isl_stream_ungetc(s, c);
  617 		tok = isl_token_new(s->ctx, line, col, old_line != line);
  620 		if ((c = isl_stream_getc(s)) != '\\' && c != -1) {
  622 			isl_stream_ungetc(s, c);
  630 		tok = isl_token_new(s->ctx, line, col, old_line != line);
  633 		if ((c = isl_stream_getc(s)) != '/' && c != -1) {
  635 			isl_stream_ungetc(s, c);
  643 		tok = isl_token_new(s->ctx, line, col, old_line != line);
  646 		if ((c = isl_stream_getc(s)) == '=') {
  655 			isl_stream_ungetc(s, c);
  659 	tok = isl_token_new(s->ctx, line, col, old_line != line);