Changeset 15718
- Timestamp:
- Nov 29, 2007, 2:40:37 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/dvo/dbStackMath.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/dbStackMath.c
r13479 r15718 1 1 # include "dvoshell.h" 2 3 static int NallocBinary = 0; 4 static int NallocUnary = 0; 2 5 3 6 dbStack *dbBinary (dbStack *V1, dbStack *V2, char *op, float *fields) { … … 21 24 } 22 25 26 NallocBinary ++; 23 27 ALLOCATE (OUT, dbStack, 1); 24 28 OUT->type = 'T'; 29 OUT->name = NULL; 25 30 26 31 // use an enum for the op... … … 100 105 } 101 106 107 NallocUnary ++; 102 108 ALLOCATE (OUT, dbStack, 1); 103 109 OUT->type = 'T'; 110 OUT->name = NULL; 104 111 105 112 if (!strcmp (op, "=")) { OUT->Float = M1; } … … 139 146 return (OUT); 140 147 } 148 149 int dbStackAllocPrint () { 150 151 fprintf (stderr, "dbAllocBinary: %d\n", NallocBinary); 152 fprintf (stderr, "dbAllocUnary: %d\n", NallocUnary); 153 return (TRUE); 154 } 155 156 int dbStackAllocReset () { 157 158 NallocBinary = 0; 159 NallocUnary = 0; 160 return (TRUE); 161 }
Note:
See TracChangeset
for help on using the changeset viewer.
