Revision: 1156
Author: [email protected]
Date: Mon Mar  8 03:57:47 2010
Log: Replace if (FILE_STATE(ifile) != NYTP_FILE_STDIO) with CROAK_IF_NOT_STDIO(...)

The former leaves a reference to compressed_io_croak() in dead code, causing
a compiler warning, whereas the latter conditionally compiles without it when
zlib is not available, meaning no warning.
http://code.google.com/p/perl-devel-nytprof/source/detail?r=1156

Modified:
 /trunk/FileHandle.xs

=======================================
--- /trunk/FileHandle.xs        Mon Mar  8 03:08:48 2010
+++ /trunk/FileHandle.xs        Mon Mar  8 03:57:47 2010
@@ -362,10 +362,7 @@
         }
     }
 #endif
-    if (FILE_STATE(ifile) != NYTP_FILE_STDIO) {
-        compressed_io_croak(ifile, "NYTP_gets");
-        return 0;
-    }
+    CROAK_IF_NOT_STDIO(ifile, "NYTP_gets");

     while(fgets(buffer + prev_len, len - prev_len, ifile->file)) {
         /* We know that there are no '\0' bytes in the part we've already

--
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]

Reply via email to