From: Florian Krohm Date: Mon, 25 Aug 2014 22:04:01 +0000 (+0000) Subject: Cleanup: remove unused macros. X-Git-Tag: svn/VALGRIND_3_10_0~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2c8fccbfd10f2319b2012ff410c27bd9142c50d;p=thirdparty%2Fvalgrind.git Cleanup: remove unused macros. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14360 --- diff --git a/callgrind/global.h b/callgrind/global.h index 69143c01fb..ff423b4bc5 100644 --- a/callgrind/global.h +++ b/callgrind/global.h @@ -136,44 +136,6 @@ struct _CommandLineOptions { #define RESULTS_BUF_LEN 256 -/* Convenience macros */ - -/* Use this only when size of sprintf args are known to fit into - * given buffer; for strings of unknown length, use WRITE_STR below - */ -#define WRITE_SPRINTF(fd, zz_buf, fmt, args...) \ - do { Int len = VG_(sprintf)(zz_buf, fmt, ## args); \ - VG_(write)(fd, (void*)zz_buf, len); \ - } while (0) - -#define WRITE_STR(fd, str) \ - do { if (str) { Int len = VG_(strlen)(str); \ - VG_(write)(fd, (void*)str, len); } \ - else VG_(write)(fd, "(null)", 6); \ - } while (0) - -#define WRITE_STR2(fd, str1, str2) \ - do { if (str1) { Int len = VG_(strlen)(str1); \ - VG_(write)(fd, (void*)str1, len); } \ - else VG_(write)(fd, "(null)", 6); \ - if (str2) { Int len = VG_(strlen)(str2); \ - VG_(write)(fd, (void*)str2, len); } \ - else VG_(write)(fd, "(null)", 6); \ - } while (0) - -#define WRITE_STR3(fd, str1, str2, str3) \ - do { if (str1) { Int len = VG_(strlen)(str1); \ - VG_(write)(fd, (void*)str1, len); } \ - else VG_(write)(fd, "(null)", 6); \ - if (str2) { Int len = VG_(strlen)(str2); \ - VG_(write)(fd, (void*)str2, len); } \ - else VG_(write)(fd, "(null)", 6); \ - if (str3) { Int len = VG_(strlen)(str3); \ - VG_(write)(fd, (void*)str3, len); } \ - else VG_(write)(fd, "(null)", 6); \ - } while (0) - - /*------------------------------------------------------------*/ /*--- Statistics ---*/ /*------------------------------------------------------------*/