/usr/include/InsightToolkit/Utilities/NrrdIO/biff.h is in libinsighttoolkit3-dev 3.20.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | /*
Teem: Tools to process and visualize scientific data and images
Copyright (C) 2008, 2007, 2006, 2005 Gordon Kindlmann
Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License
(LGPL) as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The terms of redistributing and/or modifying this software also
include exceptions to the LGPL that facilitate static linking.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef BIFF_HAS_BEEN_INCLUDED
#define BIFF_HAS_BEEN_INCLUDED
/* ---- BEGIN non-NrrdIO */
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include "NrrdIO.h"
#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(TEEM_STATIC)
# if defined(TEEM_BUILD) || defined(biff_EXPORTS) || defined(teem_EXPORTS)
# define BIFF_EXPORT extern __declspec(dllexport)
# else
# define BIFF_EXPORT extern __declspec(dllimport)
# endif
#else /* TEEM_STATIC || UNIX */
# define BIFF_EXPORT extern
#endif
/* ---- END non-NrrdIO */
#ifdef __cplusplus
extern "C" {
#endif
/*
** biffMsg struct
**
** externally usable thing for holding error messages
*/
typedef struct {
char *key; /* string for identifying the general source
of the error message; set once, at time
of biffMsg creation */
char **err; /* array of error strings; the err array itself
is NOT null-terminated */
unsigned int errNum; /* length of "err" == # strings stored */
airArray *errArr; /* air array for err and num */
} biffMsg;
/* biffmsg.c */
BIFF_EXPORT biffMsg *biffMsgNew(const char *key);
BIFF_EXPORT biffMsg *biffMsgNix(biffMsg *msg);
BIFF_EXPORT void biffMsgAdd(biffMsg *msg, const char *err);
BIFF_EXPORT void biffMsgAddVL(biffMsg *msg, const char *errfmt, va_list args);
BIFF_EXPORT void biffMsgAddf(biffMsg *msg, const char *errfmt, ...)
#ifdef __GNUC__
__attribute__ ((format(printf,2,3)))
#endif
;
BIFF_EXPORT void biffMsgClear(biffMsg *msg);
BIFF_EXPORT unsigned int biffMsgLineLenMax(const biffMsg *msg);
BIFF_EXPORT void biffMsgMove(biffMsg *dest, biffMsg *src,
const char *err);
BIFF_EXPORT void biffMsgMoveVL(biffMsg *dest, biffMsg *src,
const char *errfmt, va_list args);
BIFF_EXPORT void biffMsgMovef(biffMsg *dest, biffMsg *src,
const char *errfmt, ...)
#ifdef __GNUC__
__attribute__ ((format(printf,3,4)))
#endif
;
BIFF_EXPORT unsigned int biffMsgStrlen(const biffMsg *msg);
BIFF_EXPORT char *biffMsgStrAlloc(const biffMsg *msg);
BIFF_EXPORT void biffMsgStrSet(char *ret, const biffMsg *msg);
BIFF_EXPORT char *biffMsgStrGet(const biffMsg *msg);
BIFF_EXPORT biffMsg *biffMsgNoop;
/* biffbiff.c */
BIFF_EXPORT void biffAdd(const char *key, const char *err);
BIFF_EXPORT void biffAddVL(const char *key, const char *errfmt, va_list args);
BIFF_EXPORT void biffAddf(const char *key, const char *errfmt, ...)
#ifdef __GNUC__
__attribute__ ((format(printf,2,3)))
#endif
;
BIFF_EXPORT void biffMaybeAdd(const char *key, const char *err, int useBiff);
BIFF_EXPORT void biffMaybeAddf(int useBiff, const char *key,
const char *errfmt, ... )
#ifdef __GNUC__
__attribute__ ((format(printf,3,4)))
#endif
;
BIFF_EXPORT char *biffGet(const char *key);
BIFF_EXPORT int biffGetStrlen(const char *key);
BIFF_EXPORT void biffSetStr(char *str, const char *key);
BIFF_EXPORT int biffCheck(const char *key);
BIFF_EXPORT void biffDone(const char *key);
BIFF_EXPORT void biffMove(const char *destKey, const char *err,
const char *srcKey);
BIFF_EXPORT void biffMoveVL(const char *destKey, const char *srcKey,
const char *errfmt, va_list args);
BIFF_EXPORT void biffMovef(const char *destKey, const char *srcKey,
const char *errfmt, ...)
#ifdef __GNUC__
__attribute__ ((format(printf,3,4)))
#endif
;
BIFF_EXPORT char *biffGetDone(const char *key);
BIFF_EXPORT void biffSetStrDone(char *str, const char *key);
#ifdef __cplusplus
}
#endif
#endif /* BIFF_HAS_BEEN_INCLUDED */
|