]> granicus.if.org Git - php/commitdiff
- Cosmetic changes
authorFelipe Pena <felipensp@gmail.com>
Sun, 10 Nov 2013 11:36:57 +0000 (09:36 -0200)
committerFelipe Pena <felipensp@gmail.com>
Sun, 10 Nov 2013 11:36:57 +0000 (09:36 -0200)
phpdbg_prompt.c
phpdbg_prompt.h

index 6fc59a050671a8f30dab5d3653ca8f0a18ce6795..9d30193cd21680354ed53e624ef357e7f4ef324b 100644 (file)
@@ -33,10 +33,10 @@ static PHPDBG_COMMAND(exec) { /* {{{ */
       "Unsetting old execution context: %s\n", PHPDBG_G(exec));
     efree(PHPDBG_G(exec));
   }
-  
+
   PHPDBG_G(exec) = estrndup(
     expr, PHPDBG_G(exec_len)=expr_len);
-    
+
   printf(
     "Set execution context: %s\n", PHPDBG_G(exec));
 } /* }}} */
@@ -55,7 +55,7 @@ static PHPDBG_COMMAND(brake) { /* {{{ */
 static PHPDBG_COMMAND(quit) /* {{{ */
 {
        zend_bailout();
-       
+
        return SUCCESS;
 } /* }}} */
 
@@ -88,13 +88,13 @@ static PHPDBG_COMMAND(help) /* {{{ */
     }
   }
   printf("Please report bugs to <http://theman.in/themoon>\n");
-  
+
   return SUCCESS;
 } /* }}} */
 
 static const phpdbg_command_t phpdbg_prompt_commands[] = {
-  PHPDBG_COMMAND_D(exec,  "set execution context"),
-  PHPDBG_COMMAND_D(print, "print something"),
+       PHPDBG_COMMAND_D(exec,  "set execution context"),
+       PHPDBG_COMMAND_D(print, "print something"),
        PHPDBG_COMMAND_D(brake, "set brake point"),
        PHPDBG_COMMAND_D(help,  "show help menu"),
        PHPDBG_COMMAND_D(quit,  "exit phpdbg"),
@@ -106,7 +106,7 @@ int phpdbg_do_cmd(const phpdbg_command_t *command, char *cmd_line, size_t cmd_le
        char *params = NULL;
        const char *cmd = strtok_r(cmd_line, " ", &params);
        size_t expr_len = cmd != NULL ? strlen(cmd) : 0;
-       
+
        while (command && command->name) {
                if (command->name_len == expr_len
                        && memcmp(cmd, command->name, expr_len) == 0) {
@@ -130,13 +130,13 @@ void phpdbg_interactive(int argc, char **argv TSRMLS_DC) /* {{{ */
                while (cmd[cmd_len] == '\n') {
                        cmd[cmd_len] = 0;
                }
-               
+
                if (cmd_len) {
                        if (phpdbg_do_cmd(phpdbg_prompt_commands, cmd, cmd_len TSRMLS_CC) == FAILURE) {
                          printf("error executing %s !\n", cmd);
                        }
                }
-               
+
                printf("phpdbg> ");
        }
 } /* }}} */
index b1238ece64008e645b5b768f945eb63c476a40af..590358bf4404b7c3f2e41c9d85774eb55d6df55a 100644 (file)
@@ -56,6 +56,6 @@ int phpdbg_do_cmd(const phpdbg_command_t *command, char *cmd_line, size_t cmd_le
 #define PHPDBG_COMMAND(name) \
   int phpdbg_do_##name(const char *expr, size_t expr_len TSRMLS_DC)
 
-void phpdbg_interactive(int argc, char** argv TSRMLS_DC);
+void phpdbg_interactive(int argc, char **argv TSRMLS_DC);
 
 #endif /* PHPDBG_PROMPT_H */