EditorConfig
Configuration file format for defining coding styles in shared projects.
Toggle main menu visibility
Loading...
Searching...
No Matches
editorconfig.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011-2019 EditorConfig Team
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions are met:
7
*
8
* 1. Redistributions of source code must retain the above copyright notice,
9
* this list of conditions and the following disclaimer.
10
* 2. Redistributions in binary form must reproduce the above copyright notice,
11
* this list of conditions and the following disclaimer in the documentation
12
* and/or other materials provided with the distribution.
13
*
14
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
18
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24
* POSSIBILITY OF SUCH DAMAGE.
25
*/
33
92
198
210
211
#ifndef EDITORCONFIG_EDITORCONFIG_H__
212
#define EDITORCONFIG_EDITORCONFIG_H__
213
214
/* When included from a user program, EDITORCONFIG_EXPORT may not be defined,
215
* and we define it here*/
216
#ifndef EDITORCONFIG_EXPORT
217
# define EDITORCONFIG_EXPORT
218
#endif
219
220
#include <
editorconfig/editorconfig_handle.h
>
221
222
#ifdef __cplusplus
223
extern
"C"
{
224
#endif
225
260
EDITORCONFIG_EXPORT
261
int
editorconfig_parse
(
const
char
* full_filename,
editorconfig_handle
h);
262
275
EDITORCONFIG_EXPORT
276
const
char
*
editorconfig_get_error_msg
(
int
err_num);
277
282
#define EDITORCONFIG_PARSE_NOT_FULL_PATH (-2)
286
#define EDITORCONFIG_PARSE_MEMORY_ERROR (-3)
291
#define EDITORCONFIG_PARSE_VERSION_TOO_NEW (-4)
292
311
EDITORCONFIG_EXPORT
312
void
editorconfig_get_version
(
int
* major,
int
* minor,
int
* patch);
313
320
EDITORCONFIG_EXPORT
321
const
char
*
editorconfig_get_version_suffix
(
void
);
322
323
#ifdef __cplusplus
324
}
325
#endif
326
327
#endif
/* !EDITORCONFIG_EDITORCONFIG_H__ */
328
editorconfig_get_version_suffix
const char * editorconfig_get_version_suffix(void)
Get the version suffix.
editorconfig_get_version
void editorconfig_get_version(int *major, int *minor, int *patch)
Get the version number of EditorConfig.
editorconfig_get_error_msg
const char * editorconfig_get_error_msg(int err_num)
Get the error message from the error number returned by editorconfig_parse().
editorconfig_parse
int editorconfig_parse(const char *full_filename, editorconfig_handle h)
Parse editorconfig files corresponding to the file path given by full_filename, and related informati...
editorconfig_handle.h
Header file of EditorConfig handle.
editorconfig_handle
void * editorconfig_handle
The editorconfig handle object type.
Definition
editorconfig_handle.h:50
include
editorconfig
editorconfig.h
Generated by
1.17.0