~ubuntu-branches/ubuntu/quantal/xdmf/quantal

« back to all changes in this revision

Viewing changes to libsrc/XdmfExpr.h

  • Committer: Bazaar Package Importer
  • Author(s): Alastair McKinstry
  • Date: 2011-07-09 10:33:32 UTC
  • Revision ID: james.westby@ubuntu.com-20110709103332-2w36cerw7215fzoe
Tags: upstream-2.1.dfsg.1
ImportĀ upstreamĀ versionĀ 2.1.dfsg.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*******************************************************************/
 
2
/*                               XDMF                              */
 
3
/*                   eXtensible Data Model and Format              */
 
4
/*                                                                 */
 
5
/*  Id : $Id: XdmfExpr.h,v 1.2 2009-01-23 20:31:39 clarke Exp $  */
 
6
/*  Date : $Date: 2009-01-23 20:31:39 $ */
 
7
/*  Version : $Revision: 1.2 $ */
 
8
/*                                                                 */
 
9
/*  Author:                                                        */
 
10
/*     Jerry A. Clarke                                             */
 
11
/*     clarke@arl.army.mil                                         */
 
12
/*     US Army Research Laboratory                                 */
 
13
/*     Aberdeen Proving Ground, MD                                 */
 
14
/*                                                                 */
 
15
/*     Copyright @ 2002 US Army Research Laboratory                */
 
16
/*     All Rights Reserved                                         */
 
17
/*     See Copyright.txt or http://www.arl.hpc.mil/ice for details */
 
18
/*                                                                 */
 
19
/*     This software is distributed WITHOUT ANY WARRANTY; without  */
 
20
/*     even the implied warranty of MERCHANTABILITY or FITNESS     */
 
21
/*     FOR A PARTICULAR PURPOSE.  See the above copyright notice   */
 
22
/*     for more information.                                       */
 
23
/*                                                                 */
 
24
/*******************************************************************/
 
25
#include "XdmfConfig.h"
 
26
#include <stdio.h>
 
27
#include <stdlib.h>
 
28
#include <string.h>
 
29
 
 
30
 
 
31
/* Symbol Table */
 
32
 
 
33
#ifdef __cplusplus
 
34
extern "C" {
 
35
#endif
 
36
 
 
37
 
 
38
typedef struct XdmfExprSymbolStruct {
 
39
  struct XdmfExprSymbolStruct *Next;
 
40
  char  *Name;
 
41
  void  *ClientData;
 
42
  double  DoubleValue;  
 
43
  double  (*DoubleFunctionPtr)( double Argument );
 
44
  } XdmfExprSymbol;
 
45
 
 
46
extern int      XdmfExprInput( void );
 
47
extern int  XdmfExprFlexInput( char *buf, int maxlen );
 
48
extern void     XdmfExprUnput( int c );
 
49
extern void     XdmfExprOutput( int c );
 
50
 
 
51
/*
 
52
#define input() XdmfExprInput()
 
53
#define unput(c) XdmfExprUnput((c))
 
54
#define output(c) XdmfExprOutput( ( c ) )
 
55
*/
 
56
 
 
57
/** Using Bison **/
 
58
#define YY_INPUT(buf, result, maxlen) { result = XdmfExprFlexInput( (buf), (maxlen)); }
 
59
 
 
60
 
 
61
extern XdmfExprSymbol *XdmfExprSymbolLookup( const char *Name );
 
62
 
 
63
#ifdef __cplusplus
 
64
}
 
65
#endif
 
66
 
 
67