Changeset 41422 for trunk/Ohana/src/libautocode/generate
- Timestamp:
- Sep 24, 2020, 2:44:55 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libautocode/generate (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libautocode/generate
r41395 r41422 118 118 $pt1 = 0; 119 119 if ($type eq "char") { $pt1 = "A"; } 120 if ($type eq " byte") { $pt1 = "B"; }120 if ($type eq "gfbyte") { $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 "gfbyte") { $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; } … … 308 308 $n = 0; 309 309 if ($type eq "char") { $N += $Np; next; } 310 if ($type eq " byte") { $N += $Np; next; }310 if ($type eq "gfbyte") { $N += $Np; next; } 311 311 if ($type eq "unsigned char") { $N += $Np; next; } 312 312 if ($type eq "rawshort") { $N += 2*$Np; next; } … … 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 "gfbyte") { $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; }
Note:
See TracChangeset
for help on using the changeset viewer.
