Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

acconfig.h File Reference

#include <stddef.h>

Go to the source code of this file.


Defines

#define PACKAGE   "gifsicle"
#define VERSION   "97"
#define PATHNAME_SEPARATOR   '/'
#define xmalloc(s)   fail_die_malloc((s),__FILE__,__LINE__)
#define xrealloc(p, s)   fail_die_realloc((p),(s),__FILE__,__LINE__)
#define xfree   free

Functions

void * fail_die_malloc (size_t, const char *, int)
void * fail_die_realloc (void *, size_t, const char *, int)
char * strerror (int errno)

Define Documentation

#define PACKAGE   "gifsicle"
 

Definition at line 6 of file acconfig.h.

#define PATHNAME_SEPARATOR   '/'
 

Definition at line 28 of file acconfig.h.

#define VERSION   "97"
 

Definition at line 7 of file acconfig.h.

#define xfree   free
 

Definition at line 53 of file acconfig.h.

Referenced by globfree().

#define xmalloc      fail_die_malloc((s),__FILE__,__LINE__)
 

Definition at line 51 of file acconfig.h.

Referenced by globextend().

#define xrealloc p,
     fail_die_realloc((p),(s),__FILE__,__LINE__)
 

Definition at line 52 of file acconfig.h.

Referenced by globextend().


Function Documentation

void* fail_die_malloc size_t   ,
const char *   ,
int   
 

Definition at line 20 of file fmalloc.c.

00021 {
00022   void *p = malloc(size);
00023   if (!p && size)
00024     fail_die_malloc_die(size, file, line);
00025   return p;
00026 }

void* fail_die_realloc void *   ,
size_t   ,
const char *   ,
int   
 

Definition at line 29 of file fmalloc.c.

00030 {
00031   if (!p)
00032     return fail_die_malloc(size, file, line);
00033   p = realloc(p, size);
00034   if (!p && size)
00035     fail_die_malloc_die(size, file, line);
00036   return p;
00037 }

char* strerror int    errno
 

Definition at line 13 of file strerror.c.

References sys_errlist, and sys_nerr.

Referenced by DCM_WriteFile(), dlopen(), get_input_stream(), input_stream(), main(), nc_strerror(), output_information(), pipe_color_transformer(), read_colormap_file(), stringErrorReport(), write_stream(), and writeFile().

00014 {
00015   extern int sys_nerr;
00016   extern char *sys_errlist[];
00017   if (errno < 0 || errno >= sys_nerr)
00018     return (char *)"bad error number";
00019   else
00020     return sys_errlist[errno];
00021 }
 

Powered by Plone

This site conforms to the following standards: