Lines Matching defs:dest

557 append_tokens_without_splicing (struct macro_buffer *dest,
560 int original_dest_len = dest->len;
564 gdb_assert (dest->last_token != -1);
568 appendmem (dest, src->text, src->len);
572 if (dest->last_token == original_dest_len)
574 dest->last_token = original_dest_len + src->last_token;
581 dest->text + dest->last_token,
582 dest->len - dest->last_token);
591 == dest->text + original_dest_len))
594 dest->last_token = original_dest_len + src->last_token;
598 /* Okay, a simple append caused a splice. Let's chop dest back to
601 dest->len = original_dest_len;
602 appendc (dest, ' ');
603 appendmem (dest, src->text, src->len);
606 dest->text + dest->last_token,
607 dest->len - dest->last_token);
612 == dest->text + original_dest_len))
615 dest->last_token = original_dest_len + 1 + src->last_token;
795 static void scan (struct macro_buffer *dest,
811 substitute_args (struct macro_buffer *dest,
824 gdb_assert (dest->len == 0);
825 dest->last_token = 0;
841 appendmem (dest, original_rl_start, tok.text - original_rl_start);
842 dest->last_token = dest->len;
874 and append the result to dest. Remember that scan
879 scan (dest, &arg_src, no_loop, lookup_func, lookup_baton);
887 append_tokens_without_splicing (dest, &tok);
904 struct macro_buffer *dest,
928 scan (dest, &replacement_list, &new_no_loop, lookup_func, lookup_baton);
991 scan (dest, &substituted_src, &new_no_loop, lookup_func, lookup_baton);
1010 maybe_expand (struct macro_buffer *dest,
1019 gdb_assert (! dest->shared);
1038 if (def && expand (id, def, dest, src_rest, no_loop,
1059 scan (struct macro_buffer *dest,
1066 gdb_assert (! dest->shared);
1081 appendmem (dest, original_src_start, tok.text - original_src_start);
1082 dest->last_token = dest->len;
1085 if (! maybe_expand (dest, &tok, src, no_loop, lookup_func, lookup_baton))
1087 simply append it to dest. */
1088 append_tokens_without_splicing (dest, &tok);
1092 src, copy it to dest. */
1095 appendmem (dest, src->text, src->len);
1096 dest->last_token = dest->len;
1106 struct macro_buffer src, dest;
1111 init_buffer (&dest, 0);
1112 dest.last_token = 0;
1113 back_to = make_cleanup (cleanup_macro_buffer, &dest);
1115 scan (&dest, &src, 0, lookup_func, lookup_func_baton);
1117 appendc (&dest, '\0');
1120 return dest.text;
1138 struct macro_buffer src, dest, tok;
1145 init_buffer (&dest, 0);
1146 dest.last_token = 0;
1147 back_to = make_cleanup (cleanup_macro_buffer, &dest);
1157 if (maybe_expand (&dest, &tok, &src, 0, lookup_func, lookup_baton))
1162 appendc (&dest, '\0');
1165 return dest.text;