[xiph-cvs] cvs commit: icecast/src logging.h

Ed oddsock at xiph.org
Thu Dec 4 08:23:53 PST 2003



oddsock     03/12/04 11:23:52

  Modified:    src      logging.h
  Log:
  get rid of the fullpath of the module that is logged...Stupid VC6....

Revision  Changes    Path
1.9       +1 -1      icecast/src/logging.h

Index: logging.h
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/logging.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- logging.h	16 Jul 2003 19:41:59 -0000	1.8
+++ logging.h	4 Dec 2003 16:23:51 -0000	1.9
@@ -16,7 +16,7 @@
 */
 
 #ifdef _WIN32
-#define __FUNCTION__ __FILE__
+#define __FUNCTION__ strrchr (__FILE__, '\\') ? strrchr (__FILE__, '\\') + 1 : __FILE__
 #endif
 
 #define ERROR0(y) log_write(errorlog, 1, CATMODULE "/", __FUNCTION__, y)

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list