e70152e44cc66cc599ff6b699eb8adc07f3e656a kent Sat May 24 21:09:34 2014 -0700 Adding Copyright NNNN Regents of the University of California to all files I believe with reasonable certainty were developed under UCSC employ or as part of Genome Browser copyright assignment. diff --git src/lib/dyOut.c src/lib/dyOut.c index 2f2bcaa..e623172 100644 --- src/lib/dyOut.c +++ src/lib/dyOut.c @@ -1,25 +1,28 @@ // dyOut - DYnamic string stack based OUTput // // This module relies upon a dyString based stack of buffers which accumulate output // for later printing. As a stack, only the top buffer can be filled and flushed out // (duOutFlush). When flushing, the top buffer's content is appended to the next // lower buffer, unless explicitly requested otherwise (dyOutDirectly). // If the stack is empty, dyOutPrintf will be equivalent to printf. // // Output goes to STDOUT unless a single alternative out file is registered. +/* Copyright (C) 2012 The Regents of the University of California + * See README in this or parent directory for licensing information. */ + #include "common.h" #include "dyOut.h" // The stack of dyString buffers is only accessible locally static struct dyString *dyOutStack = NULL; #define dyOutAssertToken(token) assert(dyOutPointerToToken(dyOutStack) == token) // This module defaults to STDOUT but an alternative can be registered static FILE *dyOutStream = NULL; #define dyOutStreamAssertUnregistered() assert(dyOutStream == stdout || dyOutStream == NULL) #define dyOutStreamAssertRegistered(out) assert(dyOutStream == out) INLINE void dyOutStreamInitialize(void) // Must initialize the static dyOutStream before use.