TwiceAsNice  2019-02-18
Macros
ldactoasc.h File Reference
This graph shows which files directly or indirectly include this file:

Macros

#define VERSION   "1.x"
 
#define DATE   "2007-06-04"
 
#define THREADS_NMAX   16 /* max. number of threads */
 
#define BANNER   "LDACtoASC"
 
#define MYVERSION   VERSION
 
#define COPYRIGHT   "Emmanuel BERTIN <bertin@iap.fr>"
 
#define WEBSITE   "http://astromatic.net/software/sextractor/"
 
#define INSTITUTE   "IAP http://www.iap.fr"
 
#define PI   3.1415926535898
 
#define BIG   1e+30 /* a huge number */
 
#define TINY   (1.0/BIG) /* a small number */
 
#define OUTPUT   stdout /* where all msgs are sent */
 
#define MAXCHAR   512 /* max. number of characters */
 
#define MAXFILE   32768 /* max number of input files */
 
#define SEEK_SET   0
 
#define SEEK_CUR   1
 
#define EXIT_SUCCESS   0
 
#define EXIT_FAILURE   -1
 
#define RETURN_OK   0
 
#define RETURN_ERROR   (-1)
 
#define RETURN_FATAL_ERROR   (-2)
 
#define DEXP(x)   exp(2.30258509299*(x)) /* 10^x */
 
#define QFREAD(ptr, size, afile, fname)
 
#define QFWRITE(ptr, size, afile, fname)
 
#define QFSEEK(afile, offset, pos, fname)
 
#define QFTELL(pos, afile, fname)
 
#define QCALLOC(ptr, typ, nel)
 
#define QMALLOC(ptr, typ, nel)
 
#define QREALLOC(ptr, typ, nel)
 
#define QMEMCPY(ptrin, ptrout, typ, nel)
 
#define QPOPEN(file, cmdline, flag)
 
#define RINT(x)   (int)(floor(x+0.5))
 
#define NPRINTF   if (prefs.verbose_type == NORM) fprintf
 
#define NFPRINTF(w, x)
 
#define FPRINTF   if (prefs.verbose_type == FULL) fprintf
 
#define QPRINTF   if (prefs.verbose_type != QUIET) fprintf
 
#define QIPRINTF(w, x)
 
#define QBPRINTF(w, x)
 

Macro Definition Documentation

◆ BANNER

#define BANNER   "LDACtoASC"

◆ BIG

#define BIG   1e+30 /* a huge number */

◆ COPYRIGHT

#define COPYRIGHT   "Emmanuel BERTIN <bertin@iap.fr>"

◆ DATE

#define DATE   "2007-06-04"

◆ DEXP

#define DEXP (   x)    exp(2.30258509299*(x)) /* 10^x */

◆ EXIT_FAILURE

#define EXIT_FAILURE   -1

◆ EXIT_SUCCESS

#define EXIT_SUCCESS   0

◆ FPRINTF

#define FPRINTF   if (prefs.verbose_type == FULL) fprintf

◆ INSTITUTE

#define INSTITUTE   "IAP http://www.iap.fr"

◆ MAXCHAR

#define MAXCHAR   512 /* max. number of characters */

◆ MAXFILE

#define MAXFILE   32768 /* max number of input files */

◆ MYVERSION

#define MYVERSION   VERSION

◆ NFPRINTF

#define NFPRINTF (   w,
  x 
)
Value:
{if (prefs.verbose_type == NORM) \
fprintf(w, "\33[1M> %s\n\33[1A",x);}
x
Definition: meteoRRD_updater.py:125
w
Definition: BasdaVinoCameraBiasAlign.py:61
prefstruct prefs
Definition: prefs.h:257
enum prefstruct::@178 verbose_type

◆ NPRINTF

#define NPRINTF   if (prefs.verbose_type == NORM) fprintf

◆ OUTPUT

#define OUTPUT   stdout /* where all msgs are sent */

◆ PI

#define PI   3.1415926535898

◆ QBPRINTF

#define QBPRINTF (   w,
  x 
)
Value:
{if (prefs.verbose_type == NORM) \
fprintf(w, "\33[01;31m%s\33[0m\n", x); \
else if (prefs.verbose_type == LOG) \
fprintf(w, "%s\n", x);}
x
Definition: meteoRRD_updater.py:125
w
Definition: BasdaVinoCameraBiasAlign.py:61
Definition: compiler.c:65
prefstruct prefs
Definition: prefs.h:257
enum prefstruct::@178 verbose_type

◆ QCALLOC

#define QCALLOC (   ptr,
  typ,
  nel 
)
Value:
{if (!(ptr = (typ *)calloc((size_t)(nel),sizeof(typ)))) \
error(EXIT_FAILURE, "Not enough memory for ", \
#ptr " (" #nel " elements) !");;}
typ
Definition: setTargets.py:74
#define EXIT_FAILURE
Definition: ldactoasc.h:81

◆ QFREAD

#define QFREAD (   ptr,
  size,
  afile,
  fname 
)
Value:
if (fread(ptr, (size_t)(size), (size_t)1, afile)!=1) \
error(EXIT_FAILURE, "*Error* while reading ", fname)
#define EXIT_FAILURE
Definition: ldactoasc.h:81
int size
Definition: lutgen.py:8

◆ QFSEEK

#define QFSEEK (   afile,
  offset,
  pos,
  fname 
)
Value:
if (fseek(afile, (offset), pos)) \
error(EXIT_FAILURE,"*Error*: file positioning failed in ", \
fname)
#define EXIT_FAILURE
Definition: ldactoasc.h:81
pos
Definition: lics.dx.gws.drot.py:10

◆ QFTELL

#define QFTELL (   pos,
  afile,
  fname 
)
Value:
if ((pos=ftell(afile))==-1) \
error(EXIT_FAILURE,"*Error*: file position unknown in ", \
fname)
#define EXIT_FAILURE
Definition: ldactoasc.h:81
pos
Definition: lics.dx.gws.drot.py:10

◆ QFWRITE

#define QFWRITE (   ptr,
  size,
  afile,
  fname 
)
Value:
if (fwrite(ptr, (size_t)(size), (size_t)1, afile)!=1) \
error(EXIT_FAILURE, "*Error* while writing ", fname)
#define EXIT_FAILURE
Definition: ldactoasc.h:81
int size
Definition: lutgen.py:8

◆ QIPRINTF

#define QIPRINTF (   w,
  x 
)
Value:
{if (prefs.verbose_type == NORM) \
fprintf(w, "\33[7m%s\33[0m\n", x); \
else if (prefs.verbose_type == LOG) \
fprintf(w, "%s\n", x);}
x
Definition: meteoRRD_updater.py:125
w
Definition: BasdaVinoCameraBiasAlign.py:61
Definition: compiler.c:65
prefstruct prefs
Definition: prefs.h:257
enum prefstruct::@178 verbose_type

◆ QMALLOC

#define QMALLOC (   ptr,
  typ,
  nel 
)
Value:
{if (!(ptr = (typ *)malloc((size_t)(nel)*sizeof(typ)))) \
error(EXIT_FAILURE, "Not enough memory for ", \
#ptr " (" #nel " elements) !");;}
typ
Definition: setTargets.py:74
#define EXIT_FAILURE
Definition: ldactoasc.h:81

◆ QMEMCPY

#define QMEMCPY (   ptrin,
  ptrout,
  typ,
  nel 
)
Value:
{if (ptrin) \
{if (!(ptrout = (typ *)malloc((size_t)(nel)*sizeof(typ)))) \
error(EXIT_FAILURE, "Not enough memory for ", \
#ptrout " (" #nel " elements) !"); \
memcpy(ptrout, ptrin, (size_t)(nel)*sizeof(typ));};;}
typ
Definition: setTargets.py:74
#define EXIT_FAILURE
Definition: ldactoasc.h:81

◆ QPOPEN

#define QPOPEN (   file,
  cmdline,
  flag 
)
Value:
{if (!(file=popen(cmdline, flag))) \
error(EXIT_FAILURE, "*Error*: cannot execute ", cmdline);;}
#define EXIT_FAILURE
Definition: ldactoasc.h:81

◆ QPRINTF

#define QPRINTF   if (prefs.verbose_type != QUIET) fprintf

◆ QREALLOC

#define QREALLOC (   ptr,
  typ,
  nel 
)
Value:
{if (!(ptr = (typ *)realloc(ptr, (size_t)(nel)*sizeof(typ)))) \
error(EXIT_FAILURE, "Not enough memory for ", \
#ptr " (" #nel " elements) !");;}
typ
Definition: setTargets.py:74
#define EXIT_FAILURE
Definition: ldactoasc.h:81

◆ RETURN_ERROR

#define RETURN_ERROR   (-1)

◆ RETURN_FATAL_ERROR

#define RETURN_FATAL_ERROR   (-2)

◆ RETURN_OK

#define RETURN_OK   0

◆ RINT

#define RINT (   x)    (int)(floor(x+0.5))

◆ SEEK_CUR

#define SEEK_CUR   1

◆ SEEK_SET

#define SEEK_SET   0

◆ THREADS_NMAX

#define THREADS_NMAX   16 /* max. number of threads */

◆ TINY

#define TINY   (1.0/BIG) /* a small number */

◆ VERSION

#define VERSION   "1.x"

◆ WEBSITE

#define WEBSITE   "http://astromatic.net/software/sextractor/"