[xdebug-dev] xdebug xdebug/xdebug_var.c - Added types to fancy var dumping function.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Tue, 19 Dec 2006 11:48:45 +0100

Date: Tue Dec 19 11:48:44 CET 2006
User: Derick Rethans
Directory: xdebug

Log Message:
[0.25]
- Added types to fancy var dumping function.

Modified files:
           xdebug/xdebug_var.c (version: 1.79)

[FILE: /xdebug/xdebug_var.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -r1.78 -r1.79
--- xdebug/xdebug_var.c:1.78 Tue Dec 12 20:23:32 2006 GMT
+++ xdebug/xdebug_var.c Tue Dec 19 09:48:44 2006 GMT
@@ -843,7 +843,7 @@
         }
         switch (Z_TYPE_PP(struc)) {
                 case IS_BOOL:
- xdebug_str_add(str, xdebug_sprintf("<font color='%s'>%s</font>", COLOR_BOOL, Z_LVAL_PP(struc) ? "true" : "false"), 1);
+ xdebug_str_add(str, xdebug_sprintf("<small>boolean</small> <font color='%s'>%s</font>", COLOR_BOOL, Z_LVAL_PP(struc) ? "true" : "false"), 1);
                         break;
 
                 case IS_NULL:
@@ -851,15 +851,15 @@
                         break;
 
                 case IS_LONG:
- xdebug_str_add(str, xdebug_sprintf("<font color='%s'>%ld</font>", COLOR_LONG, Z_LVAL_PP(struc)), 1);
+ xdebug_str_add(str, xdebug_sprintf("<small>int</small> <font color='%s'>%ld</font>", COLOR_LONG, Z_LVAL_PP(struc)), 1);
                         break;
 
                 case IS_DOUBLE:
- xdebug_str_add(str, xdebug_sprintf("<font color='%s'>%.*G</font>", COLOR_DOUBLE, (int) EG(precision), Z_DVAL_PP(struc)), 1);
+ xdebug_str_add(str, xdebug_sprintf("<small>float</small> <font color='%s'>%.*G</font>", COLOR_DOUBLE, (int) EG(precision), Z_DVAL_PP(struc)), 1);
                         break;
 
                 case IS_STRING:
- xdebug_str_add(str, xdebug_sprintf("<font color='%s'>'", COLOR_STRING), 1);
+ xdebug_str_add(str, xdebug_sprintf("<small>string</small> <font color='%s'>'", COLOR_STRING), 1);
                         if (Z_STRLEN_PP(struc) > options->max_data) {
                                 tmp_str = xmlize(Z_STRVAL_PP(struc), options->max_data, &newlen);
                                 xdebug_str_addl(str, tmp_str, newlen, 0);
Received on Tue Dec 19 2006 - 11:48:52 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST