View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0006333 | Part 06: TTCN-3 Control Interface | New Feature | public | 20-11-2012 11:03 | 14-12-2012 07:35 |
|
Reporter | Tomas Urban | |
Assigned To | Ina Schieferdecker | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | v4.4.1 (published 2012-04) | |
Target Version | v4.5.1 (published 2013-04) | Fixed in Version | v4.5.1 (published 2013-04) | |
|
Summary | 0006333: TCI C mapping: numeric version of tciSetInt and tciGetInt |
Description | The current C mapping of the tciSetInt and tciGetInt contains several functions that use either character strings or individual digits and a sign to get or set numeric values. Although this approach can be useful for dealing with very large numbers, I believe that in the most common cases, users would benefit from having a simple set and get functions using integer numbers (as it is the case in mapping to other languages). The current functions usually require writing conversion code on the adapter side (often even platform-specific), which is time-consuming and results in slower code.
Proposed functions to be added to the C mapping:
long long tciGetInt(Value inst);
void tciSetInt(Value inst, long long value);
The existing functions shall be left unchanged to keep backwards compatibility and allow handling large values (exceeding boundaries of signed 64-bit numbers).
|
Tags | No tags attached. |
|
Clause Reference(s) | 9.2 |
Source (company - Author) | Elvior |
|
Attached Files | |
|