annotate src/proto/cmdhist.pro @ 18045:af0b4ffab794 v8.1.2018

patch 8.1.2018: using freed memory when out of memory and displaying message Commit: https://github.com/vim/vim/commit/e5fbd7393067c279860598ac8359d1617b1082b9 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Sep 9 20:04:13 2019 +0200 patch 8.1.2018: using freed memory when out of memory and displaying message Problem: Using freed memory when out of memory and displaying message. Solution: Make a copy of the message first.
author Bram Moolenaar <Bram@vim.org>
date Mon, 09 Sep 2019 20:15:03 +0200
parents 9efb4dda9720
children 05b240971884
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17652
9efb4dda9720 patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 /* cmdhist.c */
9efb4dda9720 patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 int get_hislen(void);
9efb4dda9720 patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 histentry_T *get_histentry(int hist_type);
9efb4dda9720 patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 void set_histentry(int hist_type, histentry_T *entry);
9efb4dda9720 patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5 int *get_hisidx(int hist_type);
9efb4dda9720 patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 int *get_hisnum(int hist_type);
9efb4dda9720 patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 int hist_char2type(int c);
9efb4dda9720 patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 char_u *get_history_arg(expand_T *xp, int idx);
9efb4dda9720 patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 void init_history(void);
9efb4dda9720 patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 void clear_hist_entry(histentry_T *hisptr);
9efb4dda9720 patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 int in_history(int type, char_u *str, int move_to_front, int sep, int writing);
9efb4dda9720 patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 void add_to_history(int histype, char_u *new_entry, int in_map, int sep);
9efb4dda9720 patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 void remove_key_from_history(void);
9efb4dda9720 patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 void ex_history(exarg_T *eap);
9efb4dda9720 patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 void f_histadd(typval_T *argvars, typval_T *rettv);
9efb4dda9720 patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 void f_histdel(typval_T *argvars, typval_T *rettv);
9efb4dda9720 patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17 void f_histget(typval_T *argvars, typval_T *rettv);
9efb4dda9720 patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 void f_histnr(typval_T *argvars, typval_T *rettv);
9efb4dda9720 patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 /* vim: set ft=c : */