- Timestamp:
- Aug 7, 2020, 2:06:23 PM (6 years ago)
- Location:
- trunk/Ohana/src
- Files:
-
- 6 edited
-
libautocode/def/SkyRegion.d (modified) (1 diff)
-
libautocode/generate (modified) (3 diffs)
-
libfits/include/gfitsio.h (modified) (1 diff)
-
libfits/table/F_get_column.c (modified) (1 diff)
-
libfits/table/F_set_column.c (modified) (6 diffs)
-
opihi/lib.shell/VectorIO.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libautocode/def/SkyRegion.d
r33647 r41395 12 12 FIELD parent, PARENT, int, sequence number in full table of parent 13 13 FIELD index, INDEX, int, sequence number in full table of this entry 14 FIELD depth, DEPTH, char, depth of this entry15 FIELD child, CHILD, char, does this entry have children?16 FIELD table, TABLE, char, does this entry have a table?14 FIELD depth, DEPTH, byte, depth of this entry 15 FIELD child, CHILD, byte, does this entry have children? 16 FIELD table, TABLE, byte, does this entry have a table? 17 17 FIELD name, NAME, char[18], name / filename 18 FIELD hostFlags, HOST_FLAGS, char, flags to define host / backup usage19 FIELD hostID, HOST_ID, unsigned char,host ID where data is stored20 FIELD backupID, BACKUP_ID, unsigned char,host ID where backup is stored18 FIELD hostFlags, HOST_FLAGS, byte, flags to define host / backup usage 19 FIELD hostID, HOST_ID, byte, host ID where data is stored 20 FIELD backupID, BACKUP_ID, byte, host ID where backup is stored 21 21 22 22 # note : 2012.02.05 : stole 3 bytes from 'name' to use for host ID and -
trunk/Ohana/src/libautocode/generate
r37807 r41395 118 118 $pt1 = 0; 119 119 if ($type eq "char") { $pt1 = "A"; } 120 if ($type eq "byte") { $pt1 = "B"; }120 if ($type eq "byte") { $pt1 = "B"; } 121 121 if ($type eq "unsigned char") { $pt1 = "B"; } 122 122 if ($type eq "rawshort") { $pt1 = "I"; } … … 225 225 $pt1 = 0; 226 226 if ($type eq "char") { $pt1 = sprintf "A%s", $length; } 227 if ($type eq "byte") { $pt1 = sprintf "I%s", $length; }227 if ($type eq "byte") { $pt1 = sprintf "I%s", $length; } 228 228 if ($type eq "unsigned char") { $pt1 = sprintf "I%s", $length; } 229 229 if ($type eq "rawshort") { $pt1 = sprintf "I%s", $length; } … … 355 355 $valid = 0; 356 356 if ($type eq "char") { $Nbytes += 1*$Np; $valid = 1; } 357 if ($type eq "byte") { $Nbytes += 1*$Np; $valid = 1; }357 if ($type eq "byte") { $Nbytes += 1*$Np; $valid = 1; } 358 358 if ($type eq "unsigned char") { $Nbytes += 1*$Np; $valid = 1; } 359 359 if ($type eq "rawshort") { $Nbytes += 2*$Np; $valid = 1; } -
trunk/Ohana/src/libfits/include/gfitsio.h
r41375 r41395 19 19 20 20 /* gfits_bintable_format returns 'byte' as the type associated with one-byte logical (non-char) values */ 21 typedef char byte;21 typedef unsigned char byte; 22 22 23 23 /********** FITS Constants *********/ -
trunk/Ohana/src/libfits/table/F_get_column.c
r39460 r41395 1 1 # include <ohana.h> 2 2 # include <gfitsio.h> 3 # include <inttypes.h>3 # include <inttypes.h> 4 4 # define SWAP_BYTE { \ 5 5 char tmp; \ -
trunk/Ohana/src/libfits/table/F_set_column.c
r41341 r41395 338 338 339 339 SET_VALUES("char", char, "char", char, SWAP_NONE, 1); 340 SET_VALUES("byte", char, "char", char, SWAP_NONE, 1);340 SET_VALUES("byte", byte, "char", char, SWAP_NONE, 1); 341 341 SET_VALUES("short", short, "char", char, SWAP_BYTE, 1); 342 342 SET_VALUES("int", int, "char", char, SWAP_WORD, 1); … … 345 345 SET_VALUES("double", double, "char", char, SWAP_DBLE, 1); 346 346 347 SET_VALUES("char", char, "byte", char, SWAP_NONE, 1);348 SET_VALUES("byte", char, "byte", char, SWAP_NONE, 1);349 SET_VALUES("short", short, "byte", char, SWAP_BYTE, 1);350 SET_VALUES("int", int, "byte", char, SWAP_WORD, 1);351 SET_VALUES("int64_t", int64_t, "byte", char, SWAP_DBLE, 1);352 SET_VALUES("float", float, "byte", char, SWAP_WORD, 1);353 SET_VALUES("double", double, "byte", char, SWAP_DBLE, 1);347 SET_VALUES("char", char, "byte", byte, SWAP_NONE, 1); 348 SET_VALUES("byte", byte, "byte", byte, SWAP_NONE, 1); 349 SET_VALUES("short", short, "byte", byte, SWAP_BYTE, 1); 350 SET_VALUES("int", int, "byte", byte, SWAP_WORD, 1); 351 SET_VALUES("int64_t", int64_t, "byte", byte, SWAP_DBLE, 1); 352 SET_VALUES("float", float, "byte", byte, SWAP_WORD, 1); 353 SET_VALUES("double", double, "byte", byte, SWAP_DBLE, 1); 354 354 355 355 SET_VALUES("char", char, "short", short, SWAP_NONE, 2); 356 SET_VALUES("byte", char, "short", short, SWAP_NONE, 2);356 SET_VALUES("byte", byte, "short", short, SWAP_NONE, 2); 357 357 SET_VALUES("short", short, "short", short, SWAP_BYTE, 2); 358 358 SET_VALUES("int", int, "short", short, SWAP_WORD, 2); … … 362 362 363 363 SET_VALUES("char", char, "int", int, SWAP_NONE, 4); 364 SET_VALUES("byte", char, "int", int, SWAP_NONE, 4);364 SET_VALUES("byte", byte, "int", int, SWAP_NONE, 4); 365 365 SET_VALUES("short", short, "int", int, SWAP_BYTE, 4); 366 366 SET_VALUES("int", int, "int", int, SWAP_WORD, 4); … … 370 370 371 371 SET_VALUES("char", char, "int64_t", int64_t, SWAP_NONE, 8); 372 SET_VALUES("byte", char, "int64_t", int64_t, SWAP_NONE, 8);372 SET_VALUES("byte", byte, "int64_t", int64_t, SWAP_NONE, 8); 373 373 SET_VALUES("short", short, "int64_t", int64_t, SWAP_BYTE, 8); 374 374 SET_VALUES("int", int, "int64_t", int64_t, SWAP_WORD, 8); … … 378 378 379 379 SET_VALUES("char", char, "float", float, SWAP_NONE, 4); 380 SET_VALUES("byte", char, "float", float, SWAP_NONE, 4);380 SET_VALUES("byte", byte, "float", float, SWAP_NONE, 4); 381 381 SET_VALUES("short", short, "float", float, SWAP_BYTE, 4); 382 382 SET_VALUES("int", int, "float", float, SWAP_WORD, 4); … … 386 386 387 387 SET_VALUES("char", char, "double", double, SWAP_NONE, 8); 388 SET_VALUES("byte", char, "double", double, SWAP_NONE, 8);388 SET_VALUES("byte", byte, "double", double, SWAP_NONE, 8); 389 389 SET_VALUES("short", short, "double", double, SWAP_BYTE, 8); 390 390 SET_VALUES("int", int, "double", double, SWAP_WORD, 8); -
trunk/Ohana/src/opihi/lib.shell/VectorIO.c
r41341 r41395 511 511 512 512 // assign the data to the actual vector 513 ASSIGN_DATA(byte, char,Int);513 ASSIGN_DATA(byte, byte, Int); 514 514 ASSIGN_DATA(char, char, Int); 515 515 ASSIGN_DATA(short, short, Int); … … 537 537 538 538 // assign the data to the actual vector 539 ASSIGN_DATA_TRANSPOSE(byte, char,Int);539 ASSIGN_DATA_TRANSPOSE(byte, byte, Int); 540 540 ASSIGN_DATA_TRANSPOSE(char, char, Int); 541 541 ASSIGN_DATA_TRANSPOSE(short, short, Int);
Note:
See TracChangeset
for help on using the changeset viewer.
