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

 1 saw   1.1 /*-----------------------------------------------------------------------------
 2            * Copyright (c) 1993 Southeastern Universities Research Association,
 3            *                    Continuous Electron Beam Accelerator Facility
 4            *
 5            * This software was developed under a United States Government license
 6            * described in the NOTICE file included as part of this distribution.
 7            *
 8            * Stephen A. Wood, 12000 Jefferson Ave., Newport News, VA 23606
 9            * Email: saw@cebaf.gov  Tel: (804) 249-7367  Fax: (804) 249-5800
10            *-----------------------------------------------------------------------------
11            * 
12            * Description:
13            *  prototypes and defs for when thUtils.c routines are used.
14            *	
15            * Author:  Stephen Wood, CEBAF Hall C
16            *
17            * Revision History:
18            *   $Log: thUtils.h,v $
19 jones 1.2  *   Revision 1.1.24.1  2007/09/10 21:32:47  pcarter
20            *   Implemented changes to allow compilation on RHEL 3,4,5 and MacOSX
21            *
22            *   Revision 1.1  1998/12/07 22:11:14  saw
23            *   Initial setup
24            *
25 saw   1.1  *	  Revision 1.2  1995/08/03  15:02:59  saw
26            *	  Declare thSpecial for #real, #int, ... directives
27            *
28            *	  Revision 1.1  1993/05/11  17:40:51  saw
29            *	  Initial revision
30            *
31            */
32           
33           #ifndef _TH_UTILS_H
34           #define _TH_UTILS_H
35           
36           #ifndef _DAVAR_H
37           #include "daVar.h"
38           #endif
39           
40           #define min(a,b) (a>b ? b : a)
41           
42           typedef enum {TOKINT, TOKFLOAT, TOKVAR, TOKARRAY} thTokenType;
43           
44           daVarStatus thGetIndex(char *name, int *index, char **pptr);
45           int thComSpace(char *s,char **args);
46 saw   1.1 int thCommas(char *s,char **args);
47           char *thTokenArray(char *s,int *index);
48           thTokenType thIDToken(char *s);
49           char *thSpaceStrip(char *s);
50           int thSpecial(char *line, char *default_class);
51           #ifdef OLD
52           *int thGetMode(char *s, enum MODES mode, enum MODES *nmode, char **blocknamep);
53           int thTokToPtr(char *token, int create, int intonly, daVarStruct *varp);
54           #endif
55           int thCleanLine(char *s);
56           /*float argtoFloat(daVarStruct *x);*/
57           int argtoInt(daVarStruct *x);
58 jones 1.2 char *strcasestr(const char *s1, const char *s2);
59 saw   1.1 
60           struct daVarStructList {
61             struct daVarStructList *next;
62             daVarStruct *varp;
63           };
64           
65           typedef struct daVarStructList daVarStructList;
66           
67           void thAddVarToList(daVarStructList **head,daVarStruct *varp);
68           #endif

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