|
77 | 77 | #include "zend_compile.h"
|
78 | 78 | #include "zend_execute.h"
|
79 | 79 | #include "zend_highlight.h"
|
80 |
| -#include "zend_indent.h" |
81 | 80 | #include "zend_exceptions.h"
|
82 | 81 |
|
83 | 82 | #include "php_getopt.h"
|
@@ -109,7 +108,6 @@ ZEND_TSRMLS_CACHE_DEFINE();
|
109 | 108 |
|
110 | 109 | #define PHP_MODE_STANDARD 1
|
111 | 110 | #define PHP_MODE_HIGHLIGHT 2
|
112 |
| -#define PHP_MODE_INDENT 3 |
113 | 111 | #define PHP_MODE_LINT 4
|
114 | 112 | #define PHP_MODE_STRIP 5
|
115 | 113 | #define PHP_MODE_CLI_DIRECT 6
|
@@ -770,16 +768,6 @@ static int do_cli(int argc, char **argv) /* {{{ */
|
770 | 768 | behavior=PHP_MODE_LINT;
|
771 | 769 | break;
|
772 | 770 |
|
773 |
| -#if 0 /* not yet operational, see also below ... */ |
774 |
| - case '': /* generate indented source mode*/ |
775 |
| - if (behavior == PHP_MODE_CLI_DIRECT || behavior == PHP_MODE_PROCESS_STDIN) { |
776 |
| - param_error = "Source indenting only works for files.\n"; |
777 |
| - break; |
778 |
| - } |
779 |
| - behavior=PHP_MODE_INDENT; |
780 |
| - break; |
781 |
| -#endif |
782 |
| - |
783 | 771 | case 'q': /* do not generate HTTP headers */
|
784 | 772 | /* This is default so NOP */
|
785 | 773 | break;
|
@@ -1005,15 +993,6 @@ static int do_cli(int argc, char **argv) /* {{{ */
|
1005 | 993 | goto out;
|
1006 | 994 | }
|
1007 | 995 | break;
|
1008 |
| -#if 0 |
1009 |
| - /* Zeev might want to do something with this one day */ |
1010 |
| - case PHP_MODE_INDENT: |
1011 |
| - open_file_for_scanning(&file_handle); |
1012 |
| - zend_indent(); |
1013 |
| - zend_file_handle_dtor(file_handle.handle); |
1014 |
| - goto out; |
1015 |
| - break; |
1016 |
| -#endif |
1017 | 996 | case PHP_MODE_CLI_DIRECT:
|
1018 | 997 | cli_register_file_handles();
|
1019 | 998 | if (zend_eval_string_ex(exec_direct, NULL, "Command line code", 1) == FAILURE) {
|
|
0 commit comments