Commit c21bb048 authored by Karl Wette's avatar Karl Wette
Browse files

Make lalstdin/out/err defines uppercase

- Giving the defines exactly the same name as the
  lalstdin/out/err functions becomes a problem if
  code tries to call the functions instead
Original: b1a46e2cb17d9b50be9942eda0be393d8e906225
parent 31d82928
......@@ -63,9 +63,9 @@ typedef struct tagLALFILE { int compression; void *fp; } LALFILE;
LALFILE *lalstdin(void);
LALFILE *lalstdout(void);
LALFILE *lalstderr(void);
#define lalstdin (lalstdin())
#define lalstdout (lalstdout())
#define lalstderr (lalstderr())
#define LALSTDIN (lalstdin())
#define LALSTDOUT (lalstdout())
#define LALSTDERR (lalstderr())
int XLALFileIsCompressed( const char *path );
LALFILE * XLALFileOpenRead( const char *path );
......
......@@ -116,15 +116,6 @@ extern void gzclearerr (gzFile file);
#include <lal/LALStdio.h>
#include <lal/FileIO.h>
#ifdef lalstdin
#undef lalstdin
#endif
#ifdef lalstdout
#undef lalstdout
#endif
#ifdef lalstderr
#undef lalstderr
#endif
LALFILE * lalstdin( void )
{
static LALFILE _lalstdin;
......
......@@ -24,7 +24,7 @@ int main( int argc, char *argv[] )
XLALDestroyCache( add );
XLALDestroyCache( tmp );
}
XLALCacheFileWrite( outfile ? outfile : lalstdout, cache );
XLALCacheFileWrite( outfile ? outfile : LALSTDOUT, cache );
XLALFileClose( outfile );
XLALDestroyCache( cache );
LALCheckMemoryLeaks();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment