xref: /PHP-7.1/sapi/phpdbg/phpdbg_eol.h (revision 03f3b847)
1 /*
2    +----------------------------------------------------------------------+
3    | PHP Version 7                                                        |
4    +----------------------------------------------------------------------+
5    | Copyright (c) 1997-2018 The PHP Group                                |
6    +----------------------------------------------------------------------+
7    | This source file is subject to version 3.01 of the PHP license,      |
8    | that is bundled with this package in the file LICENSE, and is        |
9    | available through the world-wide-web at the following url:           |
10    | http://www.php.net/license/3_01.txt                                  |
11    | If you did not receive a copy of the PHP license and are unable to   |
12    | obtain it through the world-wide-web, please send a note to          |
13    | license@php.net so we can mail you a copy immediately.               |
14    +----------------------------------------------------------------------+
15    | Authors: Anatol Belski <ab@php.net>                                  |
16    +----------------------------------------------------------------------+
17 */
18 
19 #ifndef PHPDBG_EOL_H
20 #define PHPDBG_EOL_H
21 
22 #include "phpdbg.h"
23 
24 struct phpdbg_eol_rep {
25 	char *name;
26 	char *rep;
27 	int id;
28 };
29 
30 enum {
31 	PHPDBG_EOL_CRLF, /* DOS */
32 	/*PHPDBG_EOL_LFCR,*/ /* for Risc OS? */
33 	PHPDBG_EOL_LF, /* UNIX */
34 	PHPDBG_EOL_CR /* MAC */
35 };
36 
37 int phpdbg_eol_global_update(char *name);
38 
39 char *phpdbg_eol_name(int id);
40 
41 char *phpdbg_eol_rep(int id);
42 
43 void phpdbg_eol_convert(char **str, int *len);
44 
45 #endif /* PHPDBG_EOL_H */
46