122
122
tmpstr2[2] = '\0';
123
123
if (strncmp(tmpstr1,"$Date: ",7) == 0) {
124
124
/* Raw form of RCS string (not exported) i.e.:
125
"$Date: 2004/01/23 16:32:52 $"
125
"$Date: 2008/06/18 17:34:27 $"
127
127
/* Build the date string in the form DD/MM/YY */
128
128
strncpy(RCSDate,rcs_string+15,2);
194
194
return verbositylevel;
198
Set or invoke a user-defined callback function.
199
Internal function: applications should use the API functions
200
ccp4SetCallback and ccp4InvokeCallback
202
int ccp4Callback(CCP4INTFUNCPTR mycallback, char *mode, int ierr, char *message)
204
static CCP4INTFUNCPTR callback=ccp4NullCallback;
206
if (strncmp(mode,"set",3) == 0) {
208
Store the pointer to the callback function */
211
} else if (strncmp(mode,"invoke",3) == 0) {
213
Execute the callback function */
214
return callback(ierr,message);
216
/* Unrecognised mode */
221
Store a pointer to a user-defined callback function of
222
the form "int func(int, char *)"
223
This is a wrapper to ccp4Callback in "set" mode.
225
int ccp4SetCallback(CCP4INTFUNCPTR mycallback)
227
return ccp4Callback(mycallback,"set",-1,"No message");
231
Execute the user-defined callback function (previously
232
set up using ccp4SetCallback) with the supplied
234
This is a wrapper to ccp4Callback in "invoke" mode.
236
int ccp4InvokeCallback(int ierr, char *message)
238
return ccp4Callback(ccp4NullCallback,"invoke",ierr,message);
242
Default null callback function
243
Internal function: this is the default callback function
244
used by ccp4Callback if no user-defined function has been
247
int ccp4NullCallback(int level, char *message)
249
/* This is the default callback function which takes no
198
254
/*! Check existence of licence agreement
199
@param name Name of licence, e.g. "CCP4".
200
@return always return 1.
201
This is a dummy routine in gpp4.
255
@param name Name of licence, e.g. "CCP4".
256
@return always return 1.
257
This is a dummy routine in gpp4.
204
260
int ccp4_licence_exists(const char *name)
210
265
/*! Register or query html output level.
211
@param ihtml_in 0 = turn off html output, 1 = turn on html output, -1 = query existing value
266
@param ihtml_in 0 = turn off html output, 1 = turn on html output,
267
-1 = query existing value
212
268
@return 0 = no html output, 1 = html output
213
269
html_log_output and summary_output currently only used by ccperror to
214
270
tidy up Fortran program output. Defaults are 0 for C programs.
217
272
int html_log_output(int ihtml_in) {
218
273
static int ihtml=0;