Revision: 959
Author: [email protected]
Date: Fri Dec 18 07:09:07 2009
Log: Replacce NYTP_type_of_offset() with a macro when HAS_ZLIB is not
defined.
http://code.google.com/p/perl-devel-nytprof/source/detail?r=959
Modified:
/trunk/NYTProf.xs
=======================================
--- /trunk/NYTProf.xs Fri Dec 18 07:09:03 2009
+++ /trunk/NYTProf.xs Fri Dec 18 07:09:07 2009
@@ -433,6 +433,7 @@
return (long)ftell(file->file);
}
+#ifdef HAS_ZLIB
static const char *
NYTP_type_of_offset(NYTP_file file) {
switch (FILE_STATE(file)) {
@@ -449,6 +450,9 @@
FILE_STATE(file));
}
}
+#else
+#define NYTP_type_of_offset(file) ""
+#endif
#ifdef HASATTRIBUTE_NORETURN
__attribute__noreturn__
--
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.
Group hosted at: http://groups.google.com/group/develnytprof-dev
Project hosted at: http://perl-devel-nytprof.googlecode.com
CPAN distribution: http://search.cpan.org/dist/Devel-NYTProf
To post, email: [email protected]
To unsubscribe, email: [email protected]