(file) Return to thUtils.h CVS log (file) (dir) Up to [HallC] / Analyzer / CTP

File: [HallC] / Analyzer / CTP / thUtils.h (download)
Revision: 1.1, Mon Dec 7 22:11:14 1998 UTC (25 years, 9 months ago) by saw
Branch: MAIN
CVS Tags: spring03, sep-26-2002, sep-25-2002, sep-24-2002, sep-09-2002, pionct, online04, online03, oct1199, mduality, mar-24-2003, gep3, fpi2, emc, e01004, bigcal, baryon, aug-12-2003, apr-02-2003, Initial-CVS-Release, Extra_Shower_Tubes_on_HMS_not_SOS
Branch point for: online07, gep_online
Initial setup

/*-----------------------------------------------------------------------------
 * Copyright (c) 1993 Southeastern Universities Research Association,
 *                    Continuous Electron Beam Accelerator Facility
 *
 * This software was developed under a United States Government license
 * described in the NOTICE file included as part of this distribution.
 *
 * Stephen A. Wood, 12000 Jefferson Ave., Newport News, VA 23606
 * Email: saw@cebaf.gov  Tel: (804) 249-7367  Fax: (804) 249-5800
 *-----------------------------------------------------------------------------
 * 
 * Description:
 *  prototypes and defs for when thUtils.c routines are used.
 *	
 * Author:  Stephen Wood, CEBAF Hall C
 *
 * Revision History:
 *   $Log: thUtils.h,v $
 *   Revision 1.1  1998/12/07 22:11:14  saw
 *   Initial setup
 *
 *	  Revision 1.2  1995/08/03  15:02:59  saw
 *	  Declare thSpecial for #real, #int, ... directives
 *
 *	  Revision 1.1  1993/05/11  17:40:51  saw
 *	  Initial revision
 *
 */

#ifndef _TH_UTILS_H
#define _TH_UTILS_H

#ifndef _DAVAR_H
#include "daVar.h"
#endif

#define min(a,b) (a>b ? b : a)

typedef enum {TOKINT, TOKFLOAT, TOKVAR, TOKARRAY} thTokenType;

daVarStatus thGetIndex(char *name, int *index, char **pptr);
int thComSpace(char *s,char **args);
int thCommas(char *s,char **args);
char *thTokenArray(char *s,int *index);
thTokenType thIDToken(char *s);
char *thSpaceStrip(char *s);
int thSpecial(char *line, char *default_class);
#ifdef OLD
*int thGetMode(char *s, enum MODES mode, enum MODES *nmode, char **blocknamep);
int thTokToPtr(char *token, int create, int intonly, daVarStruct *varp);
#endif
int thCleanLine(char *s);
/*float argtoFloat(daVarStruct *x);*/
int argtoInt(daVarStruct *x);
char *strcasestr(char *s1, char *s2);

struct daVarStructList {
  struct daVarStructList *next;
  daVarStruct *varp;
};

typedef struct daVarStructList daVarStructList;

void thAddVarToList(daVarStructList **head,daVarStruct *varp);
#endif

Analyzer/Replay: Mark Jones, Documents: Stephen Wood
Powered by
ViewCVS 0.9.2-cvsgraph-1.4.0