Mercurial > vim
comparison src/fileio.c @ 7856:226ed297307f v7.4.1225
commit https://github.com/vim/vim/commit/d14e00ea67afbaa8cb4a7e6b1eb306da6a2d5adb
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 31 17:30:51 2016 +0100
patch 7.4.1225
Problem: Still a few old style function declarations.
Solution: Make them new style. (Hirohito Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 31 Jan 2016 17:45:04 +0100 |
parents | f86adafb28d4 |
children | a7e58c6e4e9a |
comparison
equal
deleted
inserted
replaced
7855:c0eda90fbcda | 7856:226ed297307f |
---|---|
9985 * Prepare for executing commands for (hidden) buffer "buf". | 9985 * Prepare for executing commands for (hidden) buffer "buf". |
9986 * This is the non-autocommand version, it simply saves "curbuf" and sets | 9986 * This is the non-autocommand version, it simply saves "curbuf" and sets |
9987 * "curbuf" and "curwin" to match "buf". | 9987 * "curbuf" and "curwin" to match "buf". |
9988 */ | 9988 */ |
9989 void | 9989 void |
9990 aucmd_prepbuf(aco, buf) | 9990 aucmd_prepbuf( |
9991 aco_save_T *aco; /* structure to save values in */ | 9991 aco_save_T *aco, /* structure to save values in */ |
9992 buf_T *buf; /* new curbuf */ | 9992 buf_T *buf) /* new curbuf */ |
9993 { | 9993 { |
9994 aco->save_curbuf = curbuf; | 9994 aco->save_curbuf = curbuf; |
9995 --curbuf->b_nwindows; | 9995 --curbuf->b_nwindows; |
9996 curbuf = buf; | 9996 curbuf = buf; |
9997 curwin->w_buffer = buf; | 9997 curwin->w_buffer = buf; |
10001 /* | 10001 /* |
10002 * Restore after executing commands for a (hidden) buffer. | 10002 * Restore after executing commands for a (hidden) buffer. |
10003 * This is the non-autocommand version. | 10003 * This is the non-autocommand version. |
10004 */ | 10004 */ |
10005 void | 10005 void |
10006 aucmd_restbuf(aco) | 10006 aucmd_restbuf( |
10007 aco_save_T *aco; /* structure holding saved values */ | 10007 aco_save_T *aco) /* structure holding saved values */ |
10008 { | 10008 { |
10009 --curbuf->b_nwindows; | 10009 --curbuf->b_nwindows; |
10010 curbuf = aco->save_curbuf; | 10010 curbuf = aco->save_curbuf; |
10011 curwin->w_buffer = curbuf; | 10011 curwin->w_buffer = curbuf; |
10012 ++curbuf->b_nwindows; | 10012 ++curbuf->b_nwindows; |