Lines Matching defs:input_stack
206 friend class input_stack;
412 class input_stack {
450 input_iterator *input_stack::top = &nil_iterator;
451 int input_stack::level = 0;
452 int input_stack::limit = DEFAULT_INPUT_STACK_LIMIT;
453 int input_stack::div_level = 0;
454 statem *input_stack::diversion_state = NULL;
458 inline int input_stack::get_level()
463 inline void input_stack::increase_level()
468 inline void input_stack::decrease_level()
473 inline int input_stack::get_div_level()
478 inline int input_stack::get(node **np)
488 int input_stack::finish_get(node **np)
502 "in diversion level = %d\n", input_stack::get_div_level());
514 inline int input_stack::peek()
519 void input_stack::check_end_diversion(input_iterator *t)
527 int input_stack::finish_peek()
547 void input_stack::add_boundary()
552 void input_stack::add_return_boundary()
557 int input_stack::is_return_boundary()
562 void input_stack::remove_boundary()
573 void input_stack::push(input_iterator *in)
596 "in diversion level = %d\n", input_stack::get_div_level());
604 return input_stack::get_diversion_state();
607 statem *input_stack::get_diversion_state()
615 input_iterator *input_stack::get_arg(int i)
624 void input_stack::shift(int n)
633 int input_stack::nargs()
641 int input_stack::get_location(int allow_macro, const char **filenamep, int *linenop)
649 void input_stack::backtrace()
660 void input_stack::backtrace_all()
666 int input_stack::set_location(const char *filename, int lineno)
674 void input_stack::next_file(FILE *fp, const char *s)
686 void input_stack::end_file()
699 void input_stack::clear()
716 void input_stack::pop_macro()
737 inline void input_stack::save_compatible_flag(int f)
742 inline int input_stack::get_compatible_flag()
749 input_stack::backtrace_all();
760 input_stack::end_file();
767 input_stack::next_file(fp, nm.contents());
777 input_stack::shift(n);
794 input_stack::push(make_temp_iterator("\n"));
826 int start_level = input_stack::get_level();
857 if (c == ']' && input_stack::get_level() == start_level)
927 int c = input_stack::get(nd);
929 input_stack::save_compatible_flag(compatible_flag);
934 input_stack::save_compatible_flag(compatible_flag);
939 compatible_flag = input_stack::get_compatible_flag();
943 input_stack::increase_level();
947 input_stack::decrease_level();
954 c = input_stack::get(nd);
959 c = input_stack::peek();
964 (void)input_stack::get(0);
965 while ((c = input_stack::get(0)) != '\n' && c != EOF)
969 (void)input_stack::get(0);
970 while ((c = input_stack::get(0)) != '\n')
976 (void)input_stack::get(0);
984 (void)input_stack::get(0);
997 (void)input_stack::get(0);
1000 (void)input_stack::get(0);
1003 (void)input_stack::get(0);
1007 (void)input_stack::get(0);
1016 (void)input_stack::get(0);
1023 (void)input_stack::get(0);
1027 (void)input_stack::get(0);
1034 (void)input_stack::get(0);
1039 (void)input_stack::get(0);
1042 (void)input_stack::get(0);
1045 (void)input_stack::get(0);
1048 (void)input_stack::get(0);
1051 (void)input_stack::get(0);
1054 (void)input_stack::get(0);
1057 (void)input_stack::get(0);
1060 (void)input_stack::get(0);
1063 (void)input_stack::get(0);
1066 (void)input_stack::get(0);
1069 (void)input_stack::get(0);
1072 (void)input_stack::get(0);
1075 (void)input_stack::get(0);
1078 (void)input_stack::get(0);
1081 (void)input_stack::get(0);
1084 (void)input_stack::get(0);
1087 (void)input_stack::get(0);
1090 (void)input_stack::get(0);
1094 (void)input_stack::get(0);
1238 input_stack::push(make_temp_iterator(" "));
1239 input_stack::push(make_temp_iterator(s));
1267 input_stack::push(make_temp_iterator(" "));
1268 input_stack::push(make_temp_iterator(s));
1296 input_stack::push(make_temp_iterator(" "));
1297 input_stack::push(make_temp_iterator(s));
1326 input_stack::push(make_temp_iterator("\n"));
1327 input_stack::push(make_temp_iterator(s));
1391 int start_level = input_stack::get_level();
1397 input_stack::push(make_temp_iterator("\n"));
1401 && (compatible_flag || input_stack::get_level() == start_level))
1418 int start_level = input_stack::get_level();
1427 input_stack::push(make_temp_iterator("\n"));
1431 && (compatible_flag || input_stack::get_level() == start_level))
1447 int start_level = input_stack::get_level();
1454 input_stack::push(make_temp_iterator("\n"));
1458 && (compatible_flag || input_stack::get_level() == start_level))
1471 int start_level = input_stack::get_level();
1484 if (tok == start && input_stack::get_level() == start_level)
1491 input_stack::push(make_temp_iterator("\n"));
1494 if (tok == start && input_stack::get_level() == start_level)
1505 int start_level = input_stack::get_level();
1516 && (compatible_flag || input_stack::get_level() == start_level))
1542 int start_level = input_stack::get_level();
1547 input_stack::push(make_temp_iterator("\n"));
1551 && (compatible_flag || input_stack::get_level() == start_level))
1681 int cc = input_stack::get(&n);
1686 input_stack::save_compatible_flag(compatible_flag);
1690 input_stack::save_compatible_flag(compatible_flag);
1694 compatible_flag = input_stack::get_compatible_flag();
1697 input_stack::increase_level();
1700 input_stack::decrease_level();
1852 cc = input_stack::get(&n);
1903 while ((cc = input_stack::get(0)) != '\n' && cc != EOF)
1911 while ((cc = input_stack::get(0)) != '\n')
2510 input_stack::push(make_temp_iterator((char *)buf));
2531 input_stack::clear();
2541 input_stack::pop_macro();
2542 input_stack::pop_macro();
3156 if (!input_stack::get_location(1, &filename, &lineno)) {
3176 if (!input_stack::get_location(1, &filename, &lineno)) {
3405 (*np)->div_nest_level = input_stack::get_div_level();
3721 quote_input_level = input_stack::get_level();
3728 || input_stack::get_level() == quote_input_level)) {
3773 quote_input_level = input_stack::get_level();
3780 && input_stack::get_level() == quote_input_level) {
3810 input_stack::push(mi);
3889 input_stack::push(mi);
3901 int n = input_stack::nargs();
3904 input_iterator *p = input_stack::get_arg(i);
3951 input_stack::push(make_temp_iterator(buf2));
3955 input_stack::push(new macro_iterator(nm, *m, "trap-invoked macro"));
3958 input_stack::push(make_temp_iterator(buf));
4004 input_stack::push(mi);
4025 input_stack::push(new string_iterator(mac));
4193 input_stack::push(si);
4206 input_stack::push(mi);
4216 input_stack::push(input_stack::get_arg(s[0] - '0'));
4218 int limit = input_stack::nargs();
4221 input_iterator *p = input_stack::get_arg(i);
4230 input_stack::push(make_temp_iterator(args.contents()));
4234 int limit = input_stack::nargs();
4239 input_iterator *p = input_stack::get_arg(i);
4250 input_stack::push(make_temp_iterator(args.contents()));
4260 input_stack::push(input_stack::get_arg(atoi(s)));
4277 input_stack::push(new string_iterator(m));
4283 input_stack::push(make_temp_iterator(buf));
4293 input_stack::push(new string_iterator(mac));
4294 input_stack::push(make_temp_iterator(buf));
4317 input_stack::push(make_temp_iterator("\n"));
4320 input_stack::push(make_temp_iterator(" "));
4323 input_stack::push(make_temp_iterator(" "));
4340 int have_start_location = input_stack::get_location(0, &start_filename,
4757 input_stack::push(make_temp_iterator(s));
4767 input_stack::push(make_temp_iterator(r->get_string()));
4774 input_stack::push(make_temp_iterator(r->get_format()));
4811 int start_level = input_stack::get_level();
4818 if (!(start == tok && input_stack::get_level() == start_level)) {
4822 if (!(start == tok && input_stack::get_level() == start_level))
4949 int start_level = input_stack::get_level();
4971 && (compatible_flag || input_stack::get_level() == start_level))
5032 int start_level = input_stack::get_level();
5044 input_stack::push(make_temp_iterator("\n"));
5048 && (compatible_flag || input_stack::get_level() == start_level))
5054 input_stack::push(make_temp_iterator(i_to_a(x)));
5076 int start_level = input_stack::get_level();
5081 && (compatible_flag || input_stack::get_level() == start_level)) {
5221 int start_level = input_stack::get_level();
5224 tok != start || input_stack::get_level() != start_level;
5231 input_stack::push(make_temp_iterator("\n"));
5348 return input_stack::get_location(0, filename, lineno);
5360 (void)input_stack::set_location(filename, n-1);
5387 c = input_stack::get(0);
5395 switch(input_stack::get(0)) {
5403 while ((c = input_stack::get(0)) != '\n' && c != EOF)
5520 int delim_level = input_stack::get_level();
5536 && (compatible_flag || input_stack::get_level() == delim_level))
5605 int c = input_stack::get(&n);
5636 input_stack::add_boundary();
5638 input_stack::push(new string_iterator(mac, "while loop"));
5641 while (input_stack::get(0) != EOF)
5646 if (while_break_flag || input_stack::is_return_boundary()) {
5651 input_stack::remove_boundary();
5665 while (input_stack::get(0) != EOF)
5678 while (input_stack::get(0) != EOF)
5697 input_stack::push(new file_iterator(fp, nm.contents()));
5744 input_stack::push(new file_iterator(fp, symbol(buf).contents(), 1));
6716 return i_to_a(input_stack::nargs());
6728 if (!input_stack::get_location(0, &file, &line))
6748 if (!input_stack::get_location(0, &file, &line))
6756 input_stack::set_location(0, n);
6768 if (input_stack::get_location(0, &file, &line))
7071 input_stack::push(new file_iterator(fp, s));
7083 input_stack::push(new file_iterator(fp, symbol(path).contents()));
7125 input_stack::push(new file_iterator(fp, symbol(path).contents()));
7147 input_stack::push(new file_iterator(fp, name));
7156 input_stack::push(make_temp_iterator(expr));
7159 while (input_stack::get(0) != EOF)
7663 new variable_reg(&input_stack::limit));
7702 input_stack::add_boundary();
7705 input_stack::push(si);
7722 input_stack::remove_boundary();
7876 input_stack::push(make_temp_iterator("\n"));
7971 input_stack::backtrace();