public software.psfex

Compare Revisions

Rev 194 → Rev 195

/branches/rhl/src/makeit.c
58,7 → 58,7
#include "xml.h"
 
time_t thetime, thetime2;
void write_error(char *msg1, char *msg2);
void write_error(const char *msg1, const char *msg2);
 
/********************************** makeit ***********************************/
/*
250,7 → 250,7
 
 
/****** write_error ********************************************************
PROTO void write_error(char *msg1, char *msg2)
PROTO void write_error(const char *msg1, const char *msg2)
PURPOSE Manage files in case of a catched error
INPUT a character string,
another character string
259,7 → 259,7
AUTHOR E. Bertin (IAP)
VERSION 23/02/2007
***/
void write_error(char *msg1, char *msg2)
void write_error(const char *msg1, const char *msg2)
{
char error[MAXCHAR];
 
/branches/rhl/src/fits/fitscat.h
218,7 → 218,7
encode_checksum(unsigned int sum, char *str),
end_readobj(tabstruct *keytab, tabstruct *tab, char *buf),
end_writeobj(catstruct *cat, tabstruct *tab, char *buf),
error_installfunc(void (*func)(char *msg1, char *msg2)),
error_installfunc(void (*func)(const char *msg1, const char *msg2)),
fixexponent(char *s),
free_body(tabstruct *tab),
free_cat(catstruct **cat, int ncat),
327,7 → 327,7
 
extern t_type ttypeof(char *str);
 
extern void error(int, char *, char *),
extern void error(int, const char *, const char *),
swapbytes(void *ptr, int nb, int n),
warning(char *msg1, char *msg2);
 
/branches/rhl/src/fits/fitsmisc.c
40,7 → 40,7
#include "fitscat_defs.h"
#include "fitscat.h"
 
static void (*errorfunc)(char *msg1, char *msg2) = NULL;
static void (*errorfunc)(const char *msg1, const char *msg2) = NULL;
static char warning_historystr[WARNING_NMAX][192]={""};
static int nwarning = 0, nwarning_history = 0, nerror = 0;
 
48,7 → 48,7
/*
I hope it will never be used!
*/
void error(int num, char *msg1, char *msg2)
void error(int num, const char *msg1, const char *msg2)
{
fprintf(stderr, "\n> %s%s\n\n",msg1,msg2);
if (num && errorfunc && !nerror)
64,7 → 64,7
/*
I hope it will never be used!
*/
void error_installfunc(void (*func)(char *msg1, char *msg2))
void error_installfunc(void (*func)(const char *msg1, const char *msg2))
{
if (func)
errorfunc = func;
/branches/rhl/src/globals.h
36,7 → 36,7
#include "sample.h"
#include "field.h"
 
extern void error(int, char *, char *),
extern void error(int, const char *, const char *),
makeit(void),
makeit_body(fieldstruct **fields, contextstruct **context,
contextstruct **fullcontext, int free_sets);