ETSI's Bug Tracker - Part 06: TTCN-3 Control Interface
View Issue Details

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) |
Clause Reference(s) | 9.2
Source (company - Author) | Elvior

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).

Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files |

Issue History
Date Modified | Username | Field | Change
20-11-2012 11:03 | Tomas Urban | New Issue |
20-11-2012 11:03 | Tomas Urban | Clause Reference(s) | => 9.2
20-11-2012 11:03 | Tomas Urban | Source (company - Author) | => Elvior
10-12-2012 13:41 | Gyorgy Rethy | Status | new => assigned
10-12-2012 13:41 | Gyorgy Rethy | Assigned To | => Ina Schieferdecker
10-12-2012 16:39 | Gyorgy Rethy | Target Version | => Edition 4.5.1
14-12-2012 07:35 | Ina Schieferdecker | Note Added: 0011261 |
14-12-2012 07:35 | Ina Schieferdecker | Status | assigned => resolved
14-12-2012 07:35 | Ina Schieferdecker | Resolution | open => fixed
14-12-2012 07:35 | Ina Schieferdecker | Fixed in Version | => Edition 4.5.1
14-12-2012 07:35 | Ina Schieferdecker | Status | resolved => closed

Notes

(0011261)
Ina Schieferdecker
14-12-2012 07:35

Implemented as proposed.