Extract indent_c.c from misc1.c

This commit is contained in:
John 2014-03-13 11:32:27 +01:00 committed by Thiago de Arruda
parent d012255ee1
commit 7c51374a82
10 changed files with 3327 additions and 3304 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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

File diff suppressed because it is too large Load Diff

12
src/indent_c.h Normal file
View 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

File diff suppressed because it is too large Load Diff

View File

@ -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);

View File

@ -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"

View File

@ -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"

View File

@ -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"