From f49cc60aa802862c595ff619dccc11271633a94b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 11 Nov 2018 15:21:05 +0100 Subject: patch 8.1.0519: cannot save and restore the tag stack Problem: Cannot save and restore the tag stack. Solution: Add gettagstack() and settagstack(). (Yegappan Lakshmanan, closes #3604) --- src/proto/dict.pro | 1 + src/proto/list.pro | 1 + src/proto/misc2.pro | 1 + src/proto/tag.pro | 2 ++ 4 files changed, 5 insertions(+) (limited to 'src/proto') diff --git a/src/proto/dict.pro b/src/proto/dict.pro index ede4f873b..21c8d6dac 100644 --- a/src/proto/dict.pro +++ b/src/proto/dict.pro @@ -1,5 +1,6 @@ /* dict.c */ dict_T *dict_alloc(void); +dict_T *dict_alloc_id(alloc_id_T id); dict_T *dict_alloc_lock(int lock); int rettv_dict_alloc(typval_T *rettv); void rettv_dict_set(typval_T *rettv, dict_T *d); diff --git a/src/proto/list.pro b/src/proto/list.pro index c4fd195f1..2f0b404d7 100644 --- a/src/proto/list.pro +++ b/src/proto/list.pro @@ -3,6 +3,7 @@ void list_add_watch(list_T *l, listwatch_T *lw); void list_rem_watch(list_T *l, listwatch_T *lwrem); void list_fix_watch(list_T *l, listitem_T *item); list_T *list_alloc(void); +list_T *list_alloc_id(alloc_id_T id); int rettv_list_alloc(typval_T *rettv); void rettv_list_set(typval_T *rettv, list_T *l); void list_unref(list_T *l); diff --git a/src/proto/misc2.pro b/src/proto/misc2.pro index 770bd33c4..b821417da 100644 --- a/src/proto/misc2.pro +++ b/src/proto/misc2.pro @@ -21,6 +21,7 @@ void adjust_cursor_col(void); int leftcol_changed(void); void vim_mem_profile_dump(void); char_u *alloc(unsigned size); +int alloc_does_fail(long_u size); char_u *alloc_id(unsigned size, alloc_id_T id); char_u *alloc_clear(unsigned size); char_u *alloc_check(unsigned size); diff --git a/src/proto/tag.pro b/src/proto/tag.pro index 497a76e38..c9bcb384e 100644 --- a/src/proto/tag.pro +++ b/src/proto/tag.pro @@ -9,4 +9,6 @@ void tagname_free(tagname_T *tnp); void simplify_filename(char_u *filename); int expand_tags(int tagnames, char_u *pat, int *num_file, char_u ***file); int get_tags(list_T *list, char_u *pat, char_u *buf_fname); +void get_tagstack(win_T *wp, dict_T *retdict); +int set_tagstack(win_T *wp, dict_T *d, int action); /* vim: set ft=c : */ -- cgit v1.2.1