|
2 | 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
3 | 3 | <head> |
4 | 4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 5 | +<meta http-equiv="X-UA-Compatible" content="IE=9"/> |
5 | 6 | <title>EditorConfig: editorconfig.h File Reference</title> |
6 | 7 |
|
7 | 8 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
|
44 | 45 | </table> |
45 | 46 | </div> |
46 | 47 |
|
47 | | -<!-- Generated by Doxygen 1.7.5.1 --> |
| 48 | +<!-- Generated by Doxygen 1.7.6.1 --> |
48 | 49 | <script type="text/javascript"> |
49 | 50 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
50 | 51 | </script> |
|
97 | 98 | <a href="#func-members">Functions</a> </div> |
98 | 99 | <div class="headertitle"> |
99 | 100 | <div class="title">editorconfig.h File Reference</div> </div> |
100 | | -</div> |
| 101 | +</div><!--header--> |
101 | 102 | <div class="contents"> |
102 | 103 |
|
103 | 104 | <p>Header file of EditorConfig. |
|
115 | 116 | Functions</h2></td></tr> |
116 | 117 | <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="editorconfig_8h.html#add6bebe96bf90c48fef01cf5300ddf92">editorconfig_parse</a> (const char *full_filename, <a class="el" href="editorconfig__handle_8h.html#a0c51d798e0e22051d0057a567245010c">editorconfig_handle</a> h)</td></tr> |
117 | 118 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Parse editorconfig files corresponding to the file path given by full_filename, and related information is input and output in h. <a href="#add6bebe96bf90c48fef01cf5300ddf92"></a><br/></td></tr> |
| 119 | +<tr><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="editorconfig_8h.html#a779a54d57d57198a089ea7221751330c">editorconfig_get_error_msg</a> (int err_num)</td></tr> |
| 120 | +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the error message from the error number returned by <a class="el" href="editorconfig_8h.html#add6bebe96bf90c48fef01cf5300ddf92" title="Parse editorconfig files corresponding to the file path given by full_filename, and related informati...">editorconfig_parse()</a>. <a href="#a779a54d57d57198a089ea7221751330c"></a><br/></td></tr> |
118 | 121 | <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="editorconfig_8h.html#a388429db79c58c67f166a7daa026e695">editorconfig_get_version</a> (int *major, int *minor, int *subminor)</td></tr> |
119 | 122 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the version number of EditorConfig. <a href="#a388429db79c58c67f166a7daa026e695"></a><br/></td></tr> |
120 | 123 | </table> |
|
127 | 130 | <div class="memproto"> |
128 | 131 | <table class="memname"> |
129 | 132 | <tr> |
130 | | - <td class="memname">#define EDITORCONFIG_PARSE_MEMORY_ERROR   (-3)</td> |
| 133 | + <td class="memname">#define <a class="el" href="editorconfig_8h.html#a492500afec561a16fc6e8e23b261abaf">EDITORCONFIG_PARSE_MEMORY_ERROR</a>   (-3)</td> |
131 | 134 | </tr> |
132 | 135 | </table> |
133 | 136 | </div> |
|
141 | 144 | <div class="memproto"> |
142 | 145 | <table class="memname"> |
143 | 146 | <tr> |
144 | | - <td class="memname">#define EDITORCONFIG_PARSE_NOT_FULL_PATH   (-2)</td> |
| 147 | + <td class="memname">#define <a class="el" href="editorconfig_8h.html#a7a8131a3c229adb8eba19262e981b0f7">EDITORCONFIG_PARSE_NOT_FULL_PATH</a>   (-2)</td> |
145 | 148 | </tr> |
146 | 149 | </table> |
147 | 150 | </div> |
|
155 | 158 | <div class="memproto"> |
156 | 159 | <table class="memname"> |
157 | 160 | <tr> |
158 | | - <td class="memname">#define EDITORCONFIG_PARSE_VERSION_TOO_NEW   (-4)</td> |
| 161 | + <td class="memname">#define <a class="el" href="editorconfig_8h.html#afe623becaffb01263d1b22bd320f7916">EDITORCONFIG_PARSE_VERSION_TOO_NEW</a>   (-4)</td> |
159 | 162 | </tr> |
160 | 163 | </table> |
161 | 164 | </div> |
|
165 | 168 | </div> |
166 | 169 | </div> |
167 | 170 | <hr/><h2>Function Documentation</h2> |
| 171 | +<a class="anchor" id="a779a54d57d57198a089ea7221751330c"></a><!-- doxytag: member="editorconfig.h::editorconfig_get_error_msg" ref="a779a54d57d57198a089ea7221751330c" args="(int err_num)" --> |
| 172 | +<div class="memitem"> |
| 173 | +<div class="memproto"> |
| 174 | + <table class="memname"> |
| 175 | + <tr> |
| 176 | + <td class="memname">const char* <a class="el" href="editorconfig_8h.html#a779a54d57d57198a089ea7221751330c">editorconfig_get_error_msg</a> </td> |
| 177 | + <td>(</td> |
| 178 | + <td class="paramtype">int </td> |
| 179 | + <td class="paramname"><em>err_num</em></td><td>)</td> |
| 180 | + <td></td> |
| 181 | + </tr> |
| 182 | + </table> |
| 183 | +</div> |
| 184 | +<div class="memdoc"> |
| 185 | + |
| 186 | +<p>Get the error message from the error number returned by <a class="el" href="editorconfig_8h.html#add6bebe96bf90c48fef01cf5300ddf92" title="Parse editorconfig files corresponding to the file path given by full_filename, and related informati...">editorconfig_parse()</a>. </p> |
| 187 | +<p>An example is available at src/bin/main.c in editorconfig source code.</p> |
| 188 | +<dl class="params"><dt><b>Parameters:</b></dt><dd> |
| 189 | + <table class="params"> |
| 190 | + <tr><td class="paramname">err_num</td><td>The error number that is used to obtain the error message.</td></tr> |
| 191 | + </table> |
| 192 | + </dd> |
| 193 | +</dl> |
| 194 | +<dl class="return"><dt><b>Returns:</b></dt><dd>The error message corresponding to err_num. </dd></dl> |
| 195 | + |
| 196 | +</div> |
| 197 | +</div> |
168 | 198 | <a class="anchor" id="a388429db79c58c67f166a7daa026e695"></a><!-- doxytag: member="editorconfig.h::editorconfig_get_version" ref="a388429db79c58c67f166a7daa026e695" args="(int *major, int *minor, int *subminor)" --> |
169 | 199 | <div class="memitem"> |
170 | 200 | <div class="memproto"> |
171 | 201 | <table class="memname"> |
172 | 202 | <tr> |
173 | | - <td class="memname">void editorconfig_get_version </td> |
| 203 | + <td class="memname">void <a class="el" href="editorconfig_8h.html#a388429db79c58c67f166a7daa026e695">editorconfig_get_version</a> </td> |
174 | 204 | <td>(</td> |
175 | 205 | <td class="paramtype">int * </td> |
176 | 206 | <td class="paramname"><em>major</em>, </td> |
|
198 | 228 |
|
199 | 229 | <p>Get the version number of EditorConfig. </p> |
200 | 230 | <p>An example is available at src/bin/main.c in EditorConfig source code.</p> |
201 | | -<dl><dt><b>Parameters:</b></dt><dd> |
| 231 | +<dl class="params"><dt><b>Parameters:</b></dt><dd> |
202 | 232 | <table class="params"> |
203 | 233 | <tr><td class="paramname">major</td><td>If not null, the integer pointed by major will be filled with the major version of EditorConfig.</td></tr> |
204 | 234 | <tr><td class="paramname">minor</td><td>If not null, the integer pointed by minor will be filled with the minor version of EditorConfig.</td></tr> |
|
215 | 245 | <div class="memproto"> |
216 | 246 | <table class="memname"> |
217 | 247 | <tr> |
218 | | - <td class="memname">int editorconfig_parse </td> |
| 248 | + <td class="memname">int <a class="el" href="editorconfig_8h.html#add6bebe96bf90c48fef01cf5300ddf92">editorconfig_parse</a> </td> |
219 | 249 | <td>(</td> |
220 | 250 | <td class="paramtype">const char * </td> |
221 | 251 | <td class="paramname"><em>full_filename</em>, </td> |
|
237 | 267 |
|
238 | 268 | <p>Parse editorconfig files corresponding to the file path given by full_filename, and related information is input and output in h. </p> |
239 | 269 | <p>An example is available at src/bin/main.c in editorconfig source code.</p> |
240 | | -<dl><dt><b>Parameters:</b></dt><dd> |
| 270 | +<dl class="params"><dt><b>Parameters:</b></dt><dd> |
241 | 271 | <table class="params"> |
242 | 272 | <tr><td class="paramname">full_filename</td><td>The full path of a file that is edited by the editor for which the parsing result is.</td></tr> |
243 | | - <tr><td class="paramname">h</td><td>The editorconfig_handle to be used and returned from this function (including the parsing result). The editorconfig_handle should be created by <a class="el" href="editorconfig__handle_8h.html#a8e3f1681e835a2946ba93b341ebc3dca" title="Create and intialize a default editorconfig_handle object.">editorconfig_handle_init()</a>.</td></tr> |
| 273 | + <tr><td class="paramname">h</td><td>The <a class="el" href="editorconfig__handle_8h.html#a0c51d798e0e22051d0057a567245010c">editorconfig_handle</a> to be used and returned from this function (including the parsing result). The <a class="el" href="editorconfig__handle_8h.html#a0c51d798e0e22051d0057a567245010c">editorconfig_handle</a> should be created by <a class="el" href="editorconfig__handle_8h.html#a8e3f1681e835a2946ba93b341ebc3dca" title="Create and intialize a default editorconfig_handle object.">editorconfig_handle_init()</a>.</td></tr> |
244 | 274 | </table> |
245 | 275 | </dd> |
246 | 276 | </dl> |
247 | | -<dl><dt><b>Return values:</b></dt><dd> |
| 277 | +<dl class="retval"><dt><b>Return values:</b></dt><dd> |
248 | 278 | <table class="retval"> |
249 | 279 | <tr><td class="paramname">0</td><td>Everything is OK.</td></tr> |
250 | 280 | <tr><td class="paramname">Positive Integer</td><td>A parsing error occurs. The return value would be the line number of parsing error. err_file obtained from h by calling <a class="el" href="editorconfig__handle_8h.html#ae0c5207a1986dfea2f641008ddefdd93" title="Get the err_file field of an editorconfig_handle object.">editorconfig_handle_get_err_file()</a> will also be filled with the file path that caused the parsing error.</td></tr> |
251 | 281 | <tr><td class="paramname">Negative Integer</td><td>Some error occured. See below for the reason of the error for each return value.</td></tr> |
252 | 282 | <tr><td class="paramname">EDITORCONFIG_PARSE_NOT_FULL_PATH</td><td>The full_filename is not a full path name.</td></tr> |
253 | 283 | <tr><td class="paramname">EDITORCONFIG_PARSE_MEMORY_ERROR</td><td>A memory error occurs.</td></tr> |
254 | | - <tr><td class="paramname">EDITORCONFIG_PARSE_VERSION_TOO_NEW</td><td>The required version specified in editorconfig_handle is greater than the current version. </td></tr> |
| 284 | + <tr><td class="paramname">EDITORCONFIG_PARSE_VERSION_TOO_NEW</td><td>The required version specified in <a class="el" href="editorconfig__handle_8h.html#a0c51d798e0e22051d0057a567245010c">editorconfig_handle</a> is greater than the current version. </td></tr> |
255 | 285 | </table> |
256 | 286 | </dd> |
257 | 287 | </dl> |
258 | 288 |
|
259 | 289 | </div> |
260 | 290 | </div> |
| 291 | +</div><!-- contents --> |
261 | 292 | </div> |
262 | | -</div> |
263 | | - <div id="nav-path" class="navpath"> |
264 | | - <ul> |
265 | | - <li class="navelem"><a class="el" href="editorconfig_8h.html">editorconfig.h</a> </li> |
266 | 293 | <!-- window showing the filter options --> |
267 | 294 | <div id="MSearchSelectWindow" |
268 | 295 | onmouseover="return searchBox.OnSearchSelectShow()" |
|
277 | 304 | </iframe> |
278 | 305 | </div> |
279 | 306 |
|
| 307 | + <div id="nav-path" class="navpath"> |
| 308 | + <ul> |
| 309 | + <li class="navelem"><a class="el" href="editorconfig_8h.html">editorconfig.h</a> </li> |
280 | 310 |
|
281 | | - <li class="footer">Generated on Fri Dec 16 2011 12:21:09 for EditorConfig by |
| 311 | + <li class="footer">Generated on Thu Jan 5 2012 20:19:48 for EditorConfig by |
282 | 312 | <a href="http://www.doxygen.org/index.html"> |
283 | | - <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li> |
| 313 | + <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li> |
284 | 314 | </ul> |
285 | 315 | </div> |
286 | 316 |
|
|
0 commit comments