Mercurial > vim
view src/proto/hashtab.pro @ 7480:a49163681559 v7.4.1042
commit https://github.com/vim/vim/commit/ed767a2073ef150971b0439a58e7ee582af6984e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 3 22:49:16 2016 +0100
patch 7.4.1042
Problem: g-CTRL-G shows the word count, but there is no way to get the word
count in a script.
Solution: Add the wordcount() function. (Christian Brabandt)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 03 Jan 2016 23:00:04 +0100 |
parents | e63691e7c504 |
children | 21b0a39d13ed |
line wrap: on
line source
/* hashtab.c */ void hash_init __ARGS((hashtab_T *ht)); void hash_clear __ARGS((hashtab_T *ht)); void hash_clear_all __ARGS((hashtab_T *ht, int off)); hashitem_T *hash_find __ARGS((hashtab_T *ht, char_u *key)); hashitem_T *hash_lookup __ARGS((hashtab_T *ht, char_u *key, hash_T hash)); void hash_debug_results __ARGS((void)); int hash_add __ARGS((hashtab_T *ht, char_u *key)); int hash_add_item __ARGS((hashtab_T *ht, hashitem_T *hi, char_u *key, hash_T hash)); void hash_remove __ARGS((hashtab_T *ht, hashitem_T *hi)); void hash_lock __ARGS((hashtab_T *ht)); void hash_unlock __ARGS((hashtab_T *ht)); hash_T hash_hash __ARGS((char_u *key)); /* vim: set ft=c : */