com php-src: Better naming in list command and inform about filename: phpdbg_list.c

From: Date: Wed, 24 Sep 2014 22:22:58 +0000
Subject: com php-src: Better naming in list command and inform about filename: phpdbg_list.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82627@lists.php.net to get a copy of this message
Commit: abafb7b4f90006442c10a341f0d9bef44ba3b08a Author: Bob Weinand <bobwei9@hotmail.com> Thu, 25 Sep 2014 00:22:58 +0200 Parents: 9bd171888bc8ae6ec783f2a250ae83be4e1fe446 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=abafb7b4f90006442c10a341f0d9bef44ba3b08a Log: Better naming in list command and inform about filename Changed paths: M phpdbg_list.c Diff: diff --git a/phpdbg_list.c b/phpdbg_list.c index 7484619..17a125f 100644 --- a/phpdbg_list.c +++ b/phpdbg_list.c @@ -150,7 +150,7 @@ void phpdbg_list_file(const char *filename, long count, long offset, int highlig offset = 0; } - phpdbg_xml("<list>"); + phpdbg_xml("<list file=\"%s\">", filename); while (php_stream_gets(stream, buffer, sizeof(buffer)) != NULL) { long linelen = strlen(buffer); @@ -159,12 +159,12 @@ void phpdbg_list_file(const char *filename, long count, long offset, int highlig if (offset <= line) { if (!highlight) { - phpdbg_write("line", "num=\"%d\" code=\"%s\"", " %05ld: %s", line, buffer); + phpdbg_write("line", "line=\"%d\" code=\"%s\"", " %05ld: %s", line, buffer); } else { if (highlight != line) { - phpdbg_write("line", "num=\"%ld\" code=\"%s\"", " %05ld: %s", line, buffer); + phpdbg_write("line", "line=\"%ld\" code=\"%s\"", " %05ld: %s", line, buffer); } else { - phpdbg_write("line", "num=\"%ld\" code=\"%s\" current=\"current\"", ">%05ld: %s", line, buffer); + phpdbg_write("line", "line=\"%ld\" code=\"%s\" current=\"current\"", ">%05ld: %s", line, buffer); } }

« previous php.cvs (#82627) next »