mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
59f2430a8d
Here's the list of squashed commits (for more info, see PR #378). - Define guicolor_T as a typedef in syntax.h - Move a big chunk of code from structs.h to buffer_defs.h - Move aco_save_T from structs.h to fileio.h - Move option_table_T from structs.h to hardcopy.h Aditionally: - Move the printer_opts global to hardcopy.c - Delete structs.h. Include buffer_defs.h where structs.h was included before. - Add header guards to option_defs.h - Put mark types and constants in new mark_defs.h - Move undo structs to undo_defs.h - Move memfile structs to new memfile_defs.h - Move expand_T and cmdmod_T to ex_cmds_defs.h - Move memline_T to memline_defs.h - Move many defs and types to ex_eval.h - Move syntax related types to syntax_defs.h - Move struct memfile to memfile_defs.h - struct buffblock and struct buffheader moved back to buffer_defs.h - Move some datatypes to hashtab.h and eval_defs.h - Move the buffer_defs.h include and TODOs for remaining unrelated types in buffer_defs.h
38 lines
1.2 KiB
C
38 lines
1.2 KiB
C
#ifndef NEOVIM_UNDO_H
|
|
#define NEOVIM_UNDO_H
|
|
|
|
#include "undo_defs.h"
|
|
|
|
/* undo.c */
|
|
int u_save_cursor(void);
|
|
int u_save(linenr_T top, linenr_T bot);
|
|
int u_savesub(linenr_T lnum);
|
|
int u_inssub(linenr_T lnum);
|
|
int u_savedel(linenr_T lnum, long nlines);
|
|
int undo_allowed(void);
|
|
int u_savecommon(linenr_T top, linenr_T bot, linenr_T newbot,
|
|
int reload);
|
|
void u_compute_hash(char_u *hash);
|
|
char_u *u_get_undo_file_name(char_u *buf_ffname, int reading);
|
|
void u_write_undo(char_u *name, int forceit, buf_T *buf, char_u *hash);
|
|
void u_read_undo(char_u *name, char_u *hash, char_u *orig_name);
|
|
void u_undo(int count);
|
|
void u_redo(int count);
|
|
void undo_time(long step, int sec, int file, int absolute);
|
|
void u_sync(int force);
|
|
void ex_undolist(exarg_T *eap);
|
|
void ex_undojoin(exarg_T *eap);
|
|
void u_unchanged(buf_T *buf);
|
|
void u_find_first_changed(void);
|
|
void u_update_save_nr(buf_T *buf);
|
|
void u_clearall(buf_T *buf);
|
|
void u_saveline(linenr_T lnum);
|
|
void u_clearline(void);
|
|
void u_undoline(void);
|
|
void u_blockfree(buf_T *buf);
|
|
int bufIsChanged(buf_T *buf);
|
|
int curbufIsChanged(void);
|
|
void u_eval_tree(u_header_T *first_uhp, list_T *list);
|
|
/* vim: set ft=c : */
|
|
#endif /* NEOVIM_UNDO_H */
|