aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgoodale <goodale@eff87b29-5268-4891-90a3-a07138403961>2000-09-21 15:19:10 +0000
committergoodale <goodale@eff87b29-5268-4891-90a3-a07138403961>2000-09-21 15:19:10 +0000
commit845e1714e0cd458d6b776b9ace7b9bb752219442 (patch)
treeec3a6c9a96883fe760f16c4e1db6fdff0042a7cc
parent57ae482b470d367d66ea3fd47c0f094078584780 (diff)
Protecting inclusion of unistd.h.
Started grdoc-ing it. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusIO/IOJpeg/trunk@15 eff87b29-5268-4891-90a3-a07138403961
-rw-r--r--src/Write2D.c67
1 files changed, 63 insertions, 4 deletions
diff --git a/src/Write2D.c b/src/Write2D.c
index f0f0ee0..fb1fbbd 100644
--- a/src/Write2D.c
+++ b/src/Write2D.c
@@ -1,19 +1,73 @@
+ /*@@
+ @file Write2D.c
+ @date
+ @author Gabrielle Allen
+ @desc
+
+ @enddesc
+ @version $Header$
+ @@*/
#include "cctk.h"
-#include "cctk_Parameters.h"
-#include "CactusBase/IOUtil/src/ioutil_AdvertisedFiles.h"
-#include "IOJpeg.h"
#include <stdio.h>
#include <stdlib.h>
+
+
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
+
+#include "cctk_Parameters.h"
+#include "CactusBase/IOUtil/src/ioutil_AdvertisedFiles.h"
+
+
+#include "IOJpeg.h"
+
+static char *rcsid = "$Header$";
+
+CCTK_FILEVERSION(DevThorns_IOJpeg_Write2D_c)
+
+/********************************************************************
+ ********************* Local Data Types ***********************
+ ********************************************************************/
+
+/********************************************************************
+ ********************* Local Routine Prototypes *********************
+ ********************************************************************/
-/* local function prototypes */
int IOJpeg_NumDirection(int sdim, int vdim);
int IOJpeg_SetDirection(int vdim, int sdim, int ci, int *direction);
+/********************************************************************
+ ********************* Other Routine Prototypes *********************
+ ********************************************************************/
+
+/********************************************************************
+ ********************* Local Data *****************************
+ ********************************************************************/
+
static int **advertised;
+/********************************************************************
+ ********************* External Routines **********************
+ ********************************************************************/
+
+
+ /*@@
+ @routine IOJpeg_Write2D
+ @date
+ @author Gabrielle Allen
+ @desc
+
+ @enddesc
+ @calls
+ @calledby
+ @history
+
+ @endhistory
+
+@@*/
int IOJpeg_Write2D (cGH *GH, int index, const char *alias)
{
DECLARE_CCTK_PARAMETERS
@@ -172,3 +226,8 @@ int IOJpeg_Write2D (cGH *GH, int index, const char *alias)
return(ierr);
}
+
+/********************************************************************
+ ********************* Local Routines *************************
+ ********************************************************************/
+