Changeset 40168 for branches/eam_branches/ohana.20170822/src/libdvo
- Timestamp:
- Oct 15, 2017, 12:27:40 PM (9 years ago)
- Location:
- branches/eam_branches/ohana.20170822/src/libdvo
- Files:
-
- 2 edited
-
include/dvodb.h (modified) (3 diffs)
-
src/dbCheckStack.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20170822/src/libdvo/include/dvodb.h
r39633 r40168 3 3 4 4 # define MEASURE_HAS_XCCD 1 5 6 // Some values used by code moved to libdvo from opihi. 7 enum {OPIHI_NOTYPE, OPIHI_FLT, OPIHI_INT}; 8 # define opihi_flt double 9 // # define opihi_int int64_t 10 # define opihi_int long long int 11 # define OPIHI_INT_FMT "%lld" 5 12 6 13 typedef enum { … … 471 478 char type; 472 479 int field; 473 //opihi_flt FltValue;474 //opihi_int IntValue;475 double FltValue;476 int IntValue;480 opihi_flt FltValue; 481 opihi_int IntValue; 482 // double FltValue; 483 // int IntValue; 477 484 } dbStack; 478 485 479 486 typedef struct { 480 //opihi_flt Flt;481 //opihi_int Int;482 double Flt;483 int Int;487 opihi_flt Flt; 488 opihi_int Int; 489 // double Flt; 490 // int Int; 484 491 } dbValue; 485 492 … … 562 569 int dbExtractImagesReset (void); 563 570 564 // Some values used by code moved to libdvo from opihi.565 enum {OPIHI_NOTYPE, OPIHI_FLT, OPIHI_INT};566 #define opihi_flt double567 #define opihi_int int568 569 571 #include "get_graphdata.h" 570 572 -
branches/eam_branches/ohana.20170822/src/libdvo/src/dbCheckStack.c
r39578 r40168 43 43 * an int unless proven otherwise **/ 44 44 stack[i].FltValue = strtod (stack[i].name, &c1); 45 stack[i].IntValue = strtol (stack[i].name, &c2, 0);45 stack[i].IntValue = strtoll (stack[i].name, &c2, 0); 46 46 if (c2 == stack[i].name + strlen (stack[i].name)) { 47 47 stack[i].type |= DB_STACK_INT;
Note:
See TracChangeset
for help on using the changeset viewer.
