Changeset 41395 for trunk/Ohana/src/libautocode/generate
- Timestamp:
- Aug 7, 2020, 2:06:23 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libautocode/generate (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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; }
Note:
See TracChangeset
for help on using the changeset viewer.
