/[ascend]/trunk/base/generic/utilities/error.c
ViewVC logotype

Diff of /trunk/base/generic/utilities/error.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 376 by johnpye, Fri Jan 27 04:23:20 2006 UTC revision 377 by johnpye, Wed Mar 15 11:27:22 2006 UTC
# Line 2  Line 2 
2    
3  #include "error.h"  #include "error.h"
4    
 /* Don't use the XTERM colour coldes in Windows: */  
 #ifndef __WIN32__  
 #define TEST_DEFAULT_FPRINTF  
 #endif  
   
 #ifdef TEST_DEFAULT_FPRINTF  
 /** XTERM colour codes used to distinguish between errors of different types.  
   
     @TODO some runtime testing to determine if these should be used or not  
     depending on TERM env var.  
 */  
 #  define ERR_RED "\033[31;1m"  
 #  define ERR_GRN "\033[32;2m"  
 #  define ERR_BLU "\033[34;1m"  
 #  define ERR_BRN "\033[33;1m"  
 #  define ERR_NORM "\033[0m"  
 #else  
 #  define ERR_RED ""  
 #  define ERR_GRN ""  
 #  define ERR_BLU ""  
 #  define ERR_BRN ""  
 #  define ERR_NORM ""  
 #endif  
   
5  /**  /**
6      Global variable which stores the pointer to the callback      Global variable which stores the pointer to the callback
7      function being used.      function being used.

Legend:
Removed from v.376  
changed lines
  Added in v.377

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22