Mercurial > vim
comparison src/undo.c @ 8128:985cd5917560 v7.4.1358
commit https://github.com/vim/vim/commit/1d6fbe654066845ff2a182ed258e6e9d3408fa90
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 19 22:46:34 2016 +0100
patch 7.4.1358
Problem: Compiler warning when not building with +crypt.
Solution: Add #ifdef. (John Marriott)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 19 Feb 2016 23:00:05 +0100 |
parents | 4d7ce6c03fda |
children | 05b88224cea1 |
comparison
equal
deleted
inserted
replaced
8127:e40404256a23 | 8128:985cd5917560 |
---|---|
114 static void u_freeentry(u_entry_T *, long); | 114 static void u_freeentry(u_entry_T *, long); |
115 #ifdef FEAT_PERSISTENT_UNDO | 115 #ifdef FEAT_PERSISTENT_UNDO |
116 static void corruption_error(char *mesg, char_u *file_name); | 116 static void corruption_error(char *mesg, char_u *file_name); |
117 static void u_free_uhp(u_header_T *uhp); | 117 static void u_free_uhp(u_header_T *uhp); |
118 static int undo_write(bufinfo_T *bi, char_u *ptr, size_t len); | 118 static int undo_write(bufinfo_T *bi, char_u *ptr, size_t len); |
119 # ifdef FEAT_CRYPT | |
119 static int undo_flush(bufinfo_T *bi); | 120 static int undo_flush(bufinfo_T *bi); |
121 # endif | |
120 static int fwrite_crypt(bufinfo_T *bi, char_u *ptr, size_t len); | 122 static int fwrite_crypt(bufinfo_T *bi, char_u *ptr, size_t len); |
121 static int undo_write_bytes(bufinfo_T *bi, long_u nr, int len); | 123 static int undo_write_bytes(bufinfo_T *bi, long_u nr, int len); |
122 static void put_header_ptr(bufinfo_T *bi, u_header_T *uhp); | 124 static void put_header_ptr(bufinfo_T *bi, u_header_T *uhp); |
123 static int undo_read_4c(bufinfo_T *bi); | 125 static int undo_read_4c(bufinfo_T *bi); |
124 static int undo_read_2c(bufinfo_T *bi); | 126 static int undo_read_2c(bufinfo_T *bi); |