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 $
|
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);
|