diff options
author | Nicolas Pierron <nicolas.b.pierron@gmail.com> | 2014-03-02 14:11:35 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-02 14:19:59 -0300 |
commit | d9283c4927cc5f926fa796acc2568610bd9a80d6 (patch) | |
tree | ee22db97987af38c538d1bd6501a384203579949 /src/undo.c | |
parent | 2bd6d444033b5746595713f4d037de135379a23e (diff) | |
download | rneovim-d9283c4927cc5f926fa796acc2568610bd9a80d6.tar.gz rneovim-d9283c4927cc5f926fa796acc2568610bd9a80d6.tar.bz2 rneovim-d9283c4927cc5f926fa796acc2568610bd9a80d6.zip |
Remove __ARGS macro. Close #205
This is a squash of all commits sent to #81.
- Remove unused undef of __ARGS.
- Fix mch_rename declaration.
- Follow changes related to moved & extracted files.
- Properly indent function declarations of getchar.h and quickfix.c.
Diffstat (limited to 'src/undo.c')
-rw-r--r-- | src/undo.c | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/src/undo.c b/src/undo.c index 8d28f86fba..0903dbf708 100644 --- a/src/undo.c +++ b/src/undo.c @@ -99,38 +99,38 @@ #include "screen.h" #include "sha256.h" -static long get_undolevel __ARGS((void)); -static void u_unch_branch __ARGS((u_header_T *uhp)); -static u_entry_T *u_get_headentry __ARGS((void)); -static void u_getbot __ARGS((void)); -static void u_doit __ARGS((int count)); -static void u_undoredo __ARGS((int undo)); -static void u_undo_end __ARGS((int did_undo, int absolute)); -static void u_add_time __ARGS((char_u *buf, size_t buflen, time_t tt)); -static void u_freeheader __ARGS((buf_T *buf, u_header_T *uhp, u_header_T **uhpp)); -static void u_freebranch __ARGS((buf_T *buf, u_header_T *uhp, u_header_T **uhpp)); -static void u_freeentries __ARGS((buf_T *buf, u_header_T *uhp, - u_header_T **uhpp)); -static void u_freeentry __ARGS((u_entry_T *, long)); -static void corruption_error __ARGS((char *mesg, char_u *file_name)); -static void u_free_uhp __ARGS((u_header_T *uhp)); -static size_t fwrite_crypt __ARGS((buf_T *buf, char_u *ptr, size_t len, - FILE *fp)); -static char_u *read_string_decrypt __ARGS((buf_T *buf, FILE *fd, int len)); -static int serialize_header __ARGS((FILE *fp, buf_T *buf, char_u *hash)); -static int serialize_uhp __ARGS((FILE *fp, buf_T *buf, u_header_T *uhp)); -static u_header_T *unserialize_uhp __ARGS((FILE *fp, char_u *file_name)); -static int serialize_uep __ARGS((FILE *fp, buf_T *buf, u_entry_T *uep)); -static u_entry_T *unserialize_uep __ARGS((FILE *fp, int *error, - char_u *file_name)); -static void serialize_pos __ARGS((pos_T pos, FILE *fp)); -static void unserialize_pos __ARGS((pos_T *pos, FILE *fp)); -static void serialize_visualinfo __ARGS((visualinfo_T *info, FILE *fp)); -static void unserialize_visualinfo __ARGS((visualinfo_T *info, FILE *fp)); -static void put_header_ptr __ARGS((FILE *fp, u_header_T *uhp)); +static long get_undolevel(void); +static void u_unch_branch(u_header_T *uhp); +static u_entry_T *u_get_headentry(void); +static void u_getbot(void); +static void u_doit(int count); +static void u_undoredo(int undo); +static void u_undo_end(int did_undo, int absolute); +static void u_add_time(char_u *buf, size_t buflen, time_t tt); +static void u_freeheader(buf_T *buf, u_header_T *uhp, u_header_T **uhpp); +static void u_freebranch(buf_T *buf, u_header_T *uhp, u_header_T **uhpp); +static void u_freeentries(buf_T *buf, u_header_T *uhp, + u_header_T **uhpp); +static void u_freeentry(u_entry_T *, long); +static void corruption_error(char *mesg, char_u *file_name); +static void u_free_uhp(u_header_T *uhp); +static size_t fwrite_crypt(buf_T *buf, char_u *ptr, size_t len, + FILE *fp); +static char_u *read_string_decrypt(buf_T *buf, FILE *fd, int len); +static int serialize_header(FILE *fp, buf_T *buf, char_u *hash); +static int serialize_uhp(FILE *fp, buf_T *buf, u_header_T *uhp); +static u_header_T *unserialize_uhp(FILE *fp, char_u *file_name); +static int serialize_uep(FILE *fp, buf_T *buf, u_entry_T *uep); +static u_entry_T *unserialize_uep(FILE *fp, int *error, + char_u *file_name); +static void serialize_pos(pos_T pos, FILE *fp); +static void unserialize_pos(pos_T *pos, FILE *fp); +static void serialize_visualinfo(visualinfo_T *info, FILE *fp); +static void unserialize_visualinfo(visualinfo_T *info, FILE *fp); +static void put_header_ptr(FILE *fp, u_header_T *uhp); #define U_ALLOC_LINE(size) lalloc((long_u)(size), FALSE) -static char_u *u_save_line __ARGS((linenr_T)); +static char_u *u_save_line(linenr_T); /* used in undo_end() to report number of added and deleted lines */ static long u_newcount, u_oldcount; |