]> Creatis software - gdcm.git/blobdiff - src/jpeg/libijg/jmemsys.h
ENH: ok making too many mistakes time to go to bed
[gdcm.git] / src / jpeg / libijg / jmemsys.h
index 6c3c6d348f2cf68149087f1906196a470136237e..2e8ee7ee2f4faf3063721770956ee757b95a702a 100644 (file)
 /* Short forms of external names for systems with brain-damaged linkers. */
 
 #ifdef NEED_SHORT_EXTERNAL_NAMES
-#define jpeg_get_small         jGetSmall
-#define jpeg_free_small                jFreeSmall
-#define jpeg_get_large         jGetLarge
-#define jpeg_free_large                jFreeLarge
-#define jpeg_mem_available     jMemAvail
-#define jpeg_open_backing_store        jOpenBackStore
-#define jpeg_mem_init          jMemInit
-#define jpeg_mem_term          jMemTerm
+#define jpeg_get_small    jGetSmall
+#define jpeg_free_small    jFreeSmall
+#define jpeg_get_large    jGetLarge
+#define jpeg_free_large    jFreeLarge
+#define jpeg_mem_available  jMemAvail
+#define jpeg_open_backing_store  jOpenBackStore
+#define jpeg_mem_init    jMemInit
+#define jpeg_mem_term    jMemTerm
 #endif /* NEED_SHORT_EXTERNAL_NAMES */
 
 
@@ -46,7 +46,7 @@
 
 EXTERN(void *) jpeg_get_small JPP((j_common_ptr cinfo, size_t sizeofobject));
 EXTERN(void) jpeg_free_small JPP((j_common_ptr cinfo, void * object,
-                                 size_t sizeofobject));
+          size_t sizeofobject));
 
 /*
  * These two functions are used to allocate and release large chunks of
@@ -58,9 +58,9 @@ EXTERN(void) jpeg_free_small JPP((j_common_ptr cinfo, void * object,
  */
 
 EXTERN(void FAR *) jpeg_get_large JPP((j_common_ptr cinfo,
-                                      size_t sizeofobject));
+               size_t sizeofobject));
 EXTERN(void) jpeg_free_large JPP((j_common_ptr cinfo, void FAR * object,
-                                 size_t sizeofobject));
+          size_t sizeofobject));
 
 /*
  * The macro MAX_ALLOC_CHUNK designates the maximum number of bytes that may
@@ -74,7 +74,7 @@ EXTERN(void) jpeg_free_large JPP((j_common_ptr cinfo, void FAR * object,
  * size_t and will be a multiple of sizeof(align_type).
  */
 
-#ifndef MAX_ALLOC_CHUNK                /* may be overridden in jconfig.h */
+#ifndef MAX_ALLOC_CHUNK    /* may be overridden in jconfig.h */
 #define MAX_ALLOC_CHUNK  1000000000L
 #endif
 
@@ -101,9 +101,9 @@ EXTERN(void) jpeg_free_large JPP((j_common_ptr cinfo, void FAR * object,
  */
 
 EXTERN(long) jpeg_mem_available JPP((j_common_ptr cinfo,
-                                    long min_bytes_needed,
-                                    long max_bytes_needed,
-                                    long already_allocated));
+             long min_bytes_needed,
+             long max_bytes_needed,
+             long already_allocated));
 
 
 /*
@@ -113,23 +113,23 @@ EXTERN(long) jpeg_mem_available JPP((j_common_ptr cinfo,
  * are private to the system-dependent backing store routines.
  */
 
-#define TEMP_NAME_LENGTH   64  /* max length of a temporary file's name */
+#define TEMP_NAME_LENGTH   64  /* max length of a temporary file's name */
 
 
-#ifdef USE_MSDOS_MEMMGR                /* DOS-specific junk */
+#ifdef USE_MSDOS_MEMMGR    /* DOS-specific junk */
 
-typedef unsigned short XMSH;   /* type of extended-memory handles */
-typedef unsigned short EMSH;   /* type of expanded-memory handles */
+typedef unsigned short XMSH;  /* type of extended-memory handles */
+typedef unsigned short EMSH;  /* type of expanded-memory handles */
 
 typedef union {
-  short file_handle;           /* DOS file handle if it's a temp file */
-  XMSH xms_handle;             /* handle if it's a chunk of XMS */
-  EMSH ems_handle;             /* handle if it's a chunk of EMS */
+  short file_handle;    /* DOS file handle if it's a temp file */
+  XMSH xms_handle;    /* handle if it's a chunk of XMS */
+  EMSH ems_handle;    /* handle if it's a chunk of EMS */
 } handle_union;
 
 #endif /* USE_MSDOS_MEMMGR */
 
-#ifdef USE_MAC_MEMMGR          /* Mac-specific junk */
+#ifdef USE_MAC_MEMMGR    /* Mac-specific junk */
 #include <Files.h>
 #endif /* USE_MAC_MEMMGR */
 
@@ -139,30 +139,30 @@ typedef struct backing_store_struct * backing_store_ptr;
 typedef struct backing_store_struct {
   /* Methods for reading/writing/closing this backing-store object */
   JMETHOD(void, read_backing_store, (j_common_ptr cinfo,
-                                    backing_store_ptr info,
-                                    void FAR * buffer_address,
-                                    long file_offset, long byte_count));
+             backing_store_ptr info,
+             void FAR * buffer_address,
+             long file_offset, long byte_count));
   JMETHOD(void, write_backing_store, (j_common_ptr cinfo,
-                                     backing_store_ptr info,
-                                     void FAR * buffer_address,
-                                     long file_offset, long byte_count));
+              backing_store_ptr info,
+              void FAR * buffer_address,
+              long file_offset, long byte_count));
   JMETHOD(void, close_backing_store, (j_common_ptr cinfo,
-                                     backing_store_ptr info));
+              backing_store_ptr info));
 
   /* Private fields for system-dependent backing-store management */
 #ifdef USE_MSDOS_MEMMGR
   /* For the MS-DOS manager (jmemdos.c), we need: */
-  handle_union handle;         /* reference to backing-store storage object */
+  handle_union handle;    /* reference to backing-store storage object */
   char temp_name[TEMP_NAME_LENGTH]; /* name if it's a file */
 #else
 #ifdef USE_MAC_MEMMGR
   /* For the Mac manager (jmemmac.c), we need: */
-  short temp_file;             /* file reference number to temp file */
-  FSSpec tempSpec;             /* the FSSpec for the temp file */
+  short temp_file;    /* file reference number to temp file */
+  FSSpec tempSpec;    /* the FSSpec for the temp file */
   char temp_name[TEMP_NAME_LENGTH]; /* name if it's a file */
 #else
   /* For a typical implementation with temp files, we need: */
-  FILE * temp_file;            /* stdio reference to temp file */
+  FILE * temp_file;    /* stdio reference to temp file */
   char temp_name[TEMP_NAME_LENGTH]; /* name of temp file */
 #endif
 #endif
@@ -178,8 +178,8 @@ typedef struct backing_store_struct {
  */
 
 EXTERN(void) jpeg_open_backing_store JPP((j_common_ptr cinfo,
-                                         backing_store_ptr info,
-                                         long total_bytes_needed));
+            backing_store_ptr info,
+            long total_bytes_needed));
 
 
 /*