Lines Matching refs:buff

741 	  _cpp_buff *buff = _cpp_get_buff (pfile, len);  in stringify_arg()  local
742 unsigned char *buf = BUFF_FRONT (buff); in stringify_arg()
745 _cpp_release_buff (pfile, buff); in stringify_arg()
987 _cpp_buff *buff, *base_buff; in collect_args() local
1005 buff = _cpp_get_buff (pfile, argc * (DEFAULT_NUM_TOKENS_PER_MACRO_ARG in collect_args()
1008 base_buff = buff; in collect_args()
1009 args = (macro_arg *) buff->base; in collect_args()
1011 buff->cur = (unsigned char *) &args[argc]; in collect_args()
1025 arg->first = (const cpp_token **) buff->cur; in collect_args()
1036 if ((unsigned char *) &arg->first[ntokens + 2] > buff->limit) in collect_args()
1038 buff = _cpp_append_extend_buff (pfile, buff, in collect_args()
1041 arg->first = (const cpp_token **) buff->cur; in collect_args()
1142 buff->cur = (unsigned char *) &arg->first[ntokens + 1]; in collect_args()
1293 _cpp_buff *buff; in enter_macro_context() local
1299 buff = funlike_invocation_p (pfile, node, &pragma_buff, in enter_macro_context()
1305 if (buff == NULL) in enter_macro_context()
1321 (macro_arg *) buff->base, in enter_macro_context()
1326 delete_macro_args (buff, num_args); in enter_macro_context()
1443 delete_macro_args (_cpp_buff *buff, unsigned num_args) in delete_macro_args() argument
1448 if (buff == NULL) in delete_macro_args()
1451 macro_args = (macro_arg *) buff->base; in delete_macro_args()
1473 _cpp_free_buff (buff); in delete_macro_args()
1725 last_token_is (_cpp_buff *buff, const cpp_token **ptr) in last_token_is() argument
1727 return (ptr && tokens_buff_last_token_ptr (buff) == ptr); in last_token_is()
1744 _cpp_buff *buff = NULL; in replace_args() local
1826 buff = tokens_buff_new (pfile, total, track_macro_exp ? &virt_locs : NULL); in replace_args()
1828 first = (const cpp_token **) buff->base; in replace_args()
1884 tokens_buff_add_token (buff, virt_locs, t, in replace_args()
1888 vaopt_start = tokens_buff_last_token_ptr (buff); in replace_args()
1896 paste_flag = tokens_buff_last_token_ptr (buff); in replace_args()
1900 tokens_buff_remove_last_token (buff); in replace_args()
1901 paste_flag = tokens_buff_last_token_ptr (buff); in replace_args()
1916 tokens_buff_add_token (buff, virt_locs, in replace_args()
1930 tokens_buff_add_token (buff, virt_locs, src, in replace_args()
1976 num_toks = tokens_buff_count (buff); in replace_args()
1985 tmp_token_ptr = tokens_buff_last_token_ptr (buff); in replace_args()
1997 tokens_buff_remove_last_token (buff); in replace_args()
2018 if (last_token_is (buff, vaopt_start)) in replace_args()
2036 && !last_token_is (buff, vaopt_start)) in replace_args()
2043 tokens_buff_add_token (buff, virt_locs, t, in replace_args()
2080 tokens_buff_add_token (buff, virt_locs, in replace_args()
2091 = (const cpp_token **) tokens_buff_last_token_ptr (buff); in replace_args()
2122 && !last_token_is (buff, vaopt_start)) in replace_args()
2125 tokens_buff_add_token (buff, virt_locs, in replace_args()
2138 push_extended_tokens_context (pfile, node, buff, virt_locs, first, in replace_args()
2139 tokens_buff_count (buff)); in replace_args()
2141 push_ptoken_context (pfile, node, buff, first, in replace_args()
2142 tokens_buff_count (buff)); in replace_args()
2144 num_macro_tokens_counter += tokens_buff_count (buff); in replace_args()
2184 push_ptoken_context (cpp_reader *pfile, cpp_hashnode *macro, _cpp_buff *buff, in push_ptoken_context() argument
2191 context->buff = buff; in push_ptoken_context()
2214 context->buff = NULL; in _cpp_push_token_context()
2246 context->buff = token_buff; in push_extended_tokens_context()
2266 context->buff = NULL; in _cpp_push_text_context()
2293 tokens_buff_count (_cpp_buff *buff) in tokens_buff_count() argument
2295 return (BUFF_FRONT (buff) - buff->base) / sizeof (cpp_token *); in tokens_buff_count()
2301 tokens_buff_last_token_ptr (_cpp_buff *buff) in tokens_buff_last_token_ptr() argument
2303 if (BUFF_FRONT (buff) == buff->base) in tokens_buff_last_token_ptr()
2305 return &((const cpp_token **) BUFF_FRONT (buff))[-1]; in tokens_buff_last_token_ptr()
2567 if (context->buff && mc->virt_locs) in _cpp_pop_context()
2598 if (context->buff) in _cpp_pop_context()
2602 _cpp_free_buff (context->buff); in _cpp_pop_context()