mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
Extract indent_c.c from misc1.c
This commit is contained in:
parent
d012255ee1
commit
7c51374a82
@ -40,6 +40,7 @@
|
|||||||
#include "fold.h"
|
#include "fold.h"
|
||||||
#include "getchar.h"
|
#include "getchar.h"
|
||||||
#include "hashtab.h"
|
#include "hashtab.h"
|
||||||
|
#include "indent_c.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "mark.h"
|
#include "mark.h"
|
||||||
#include "mbyte.h"
|
#include "mbyte.h"
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#include "fold.h"
|
#include "fold.h"
|
||||||
#include "getchar.h"
|
#include "getchar.h"
|
||||||
#include "indent.h"
|
#include "indent.h"
|
||||||
|
#include "indent_c.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "mbyte.h"
|
#include "mbyte.h"
|
||||||
#include "memline.h"
|
#include "memline.h"
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#include "getchar.h"
|
#include "getchar.h"
|
||||||
#include "hashtab.h"
|
#include "hashtab.h"
|
||||||
#include "if_cscope.h"
|
#include "if_cscope.h"
|
||||||
|
#include "indent_c.h"
|
||||||
#include "indent.h"
|
#include "indent.h"
|
||||||
#include "mark.h"
|
#include "mark.h"
|
||||||
#include "mbyte.h"
|
#include "mbyte.h"
|
||||||
|
3308
src/indent_c.c
Normal file
3308
src/indent_c.c
Normal file
File diff suppressed because it is too large
Load Diff
12
src/indent_c.h
Normal file
12
src/indent_c.h
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#ifndef NEOVIM_INDENT_C_H
|
||||||
|
#define NEOVIM_INDENT_C_H
|
||||||
|
#include "vim.h"
|
||||||
|
int cin_islabel(void);
|
||||||
|
int cin_iscase(char_u *s, int strict);
|
||||||
|
int cin_isscopedecl(char_u *s);
|
||||||
|
int cin_is_cinword(char_u *line);
|
||||||
|
int get_c_indent(void);
|
||||||
|
void do_c_expr_indent(void);
|
||||||
|
void parse_cino(buf_T *buf);
|
||||||
|
pos_T * find_start_comment(int ind_maxcomment);
|
||||||
|
#endif
|
3298
src/misc1.c
3298
src/misc1.c
File diff suppressed because it is too large
Load Diff
@ -80,13 +80,6 @@ char_u *concat_fnames(char_u *fname1, char_u *fname2, int sep);
|
|||||||
char_u *concat_str(char_u *str1, char_u *str2);
|
char_u *concat_str(char_u *str1, char_u *str2);
|
||||||
void add_pathsep(char_u *p);
|
void add_pathsep(char_u *p);
|
||||||
char_u *FullName_save(char_u *fname, int force);
|
char_u *FullName_save(char_u *fname, int force);
|
||||||
pos_T *find_start_comment(int ind_maxcomment);
|
|
||||||
void do_c_expr_indent(void);
|
|
||||||
int cin_islabel(void);
|
|
||||||
int cin_iscase(char_u *s, int strict);
|
|
||||||
int cin_isscopedecl(char_u *s);
|
|
||||||
void parse_cino(buf_T *buf);
|
|
||||||
int get_c_indent(void);
|
|
||||||
int get_expr_indent(void);
|
int get_expr_indent(void);
|
||||||
int get_lisp_indent(void);
|
int get_lisp_indent(void);
|
||||||
void prepare_to_exit(void);
|
void prepare_to_exit(void);
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#include "fileio.h"
|
#include "fileio.h"
|
||||||
#include "fold.h"
|
#include "fold.h"
|
||||||
#include "getchar.h"
|
#include "getchar.h"
|
||||||
|
#include "indent_c.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "mark.h"
|
#include "mark.h"
|
||||||
#include "memline.h"
|
#include "memline.h"
|
||||||
|
@ -47,6 +47,7 @@
|
|||||||
#include "fold.h"
|
#include "fold.h"
|
||||||
#include "getchar.h"
|
#include "getchar.h"
|
||||||
#include "hardcopy.h"
|
#include "hardcopy.h"
|
||||||
|
#include "indent_c.h"
|
||||||
#include "mbyte.h"
|
#include "mbyte.h"
|
||||||
#include "memfile.h"
|
#include "memfile.h"
|
||||||
#include "memline.h"
|
#include "memline.h"
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#include "fileio.h"
|
#include "fileio.h"
|
||||||
#include "fold.h"
|
#include "fold.h"
|
||||||
#include "hashtab.h"
|
#include "hashtab.h"
|
||||||
|
#include "indent_c.h"
|
||||||
#include "mbyte.h"
|
#include "mbyte.h"
|
||||||
#include "memline.h"
|
#include "memline.h"
|
||||||
#include "message.h"
|
#include "message.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user