ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0005087 | Part 01: TTCN-3 Core Language | Technical | public | 16-04-2009 16:04 | 06-07-2009 17:49

Reporter | Gyorgy Rethy |
Assigned To | Ina Schieferdecker |
Priority | urgent | Severity | minor | Reproducibility | always
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version | v4.2.1 (published 2010-07) | Fixed in Version | v4.2.1 (published 2010-07) |
Clause Reference(s) | D.3
Source (company - Author) | L.M.Ericsson

Summary | 0005087: __LINE__ macro should return integer

Description

The __LINE__ TTCN-3 macro is currently defined to return the line number as a charstring value. The macros (in general) were requested by 3GPP and the resolution of CR415 has chosen the names of the macros to be in line with the standard syntax and semantics of C/C++ preprocessors. However, in the latter __LINE__ is replaced by an integer value and not with a string value. See for example: http://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html [^]
Thus, currently TTCN-3 defines a semantics for __LINE__ that deviates from other languages.
Proposal: change the return type of the __LINE__ macro to integer in $D.3.

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

Attached Files

CR5087_LINE_macro.doc (24,064) 22-04-2009 14:19
http://oldforge.etsi.org/mantis/file_download.php?file_id=2110&type=bug
CR5087_LINE_macro_v2.doc (125,952) 01-07-2009 10:46
http://oldforge.etsi.org/mantis/file_download.php?file_id=2146&type=bug
CR5087_LINE_macro_v3.doc (126,976) 03-07-2009 11:40
http://oldforge.etsi.org/mantis/file_download.php?file_id=2158&type=bug
CR5087_LINE_macro_v4.doc (129,536) 06-07-2009 17:41
http://oldforge.etsi.org/mantis/file_download.php?file_id=2173&type=bug

Issue History
Date Modified | Username | Field | Change
16-04-2009 16:04 | Gyorgy Rethy | New Issue |
16-04-2009 16:04 | Gyorgy Rethy | Clause Reference(s) | => D.3
16-04-2009 16:04 | Gyorgy Rethy | Source (company - Author) | => L.M.Ericsson
16-04-2009 16:07 | Gyorgy Rethy | Description Updated |
20-04-2009 11:16 | Ina Schieferdecker | Project | TTCN-3 Change Requests => Part 01: TTCN-3 Core Language
20-04-2009 11:16 | Ina Schieferdecker | Assigned To | => Tibor CsÃ¶ndes
20-04-2009 11:16 | Ina Schieferdecker | Status | new => assigned
20-04-2009 11:16 | Ina Schieferdecker | Target Version | => Edition 4.2.1 (not yet published)
22-04-2009 14:19 | Tibor CsÃ¶ndes | File Added: CR5087_LINE_macro.doc |
22-04-2009 14:21 | Tibor CsÃ¶ndes | Note Added: 0008539 |
01-07-2009 10:46 | Tibor CsÃ¶ndes | File Added: CR5087_LINE_macro_v2.doc |
01-07-2009 10:56 | Tibor CsÃ¶ndes | Note Added: 0008803 |
01-07-2009 10:58 | Tibor CsÃ¶ndes | Assigned To | Tibor CsÃ¶ndes => Gyorgy Rethy
03-07-2009 11:40 | Gyorgy Rethy | File Added: CR5087_LINE_macro_v3.doc |
03-07-2009 11:48 | Gyorgy Rethy | Note Added: 0008827 |
03-07-2009 12:20 | Tibor CsÃ¶ndes | Note Added: 0008830 |
03-07-2009 12:21 | Gyorgy Rethy | Assigned To | Gyorgy Rethy => Ina Schieferdecker
03-07-2009 12:21 | Gyorgy Rethy | Status | assigned => resolved
03-07-2009 12:21 | Gyorgy Rethy | Resolution | open => fixed
03-07-2009 12:21 | Gyorgy Rethy | Fixed in Version | => Edition 4.2.1 (not yet published)
06-07-2009 17:41 | Ina Schieferdecker | File Added: CR5087_LINE_macro_v4.doc |
06-07-2009 17:42 | Ina Schieferdecker | Note Added: 0008849 |
06-07-2009 17:49 | Ina Schieferdecker | Status | resolved => closed

Notes

(0008539)
Tibor CsÃ¶ndes
22-04-2009 14:21

Suggestion for change has been uploaded. We asked tool vendors oppinion, we are waiting for answers.

(0008803)
Tibor CsÃ¶ndes
01-07-2009 10:56

According to the minutes of CR resolution meeting(49TD13r2)new suggestion uploaded. While v3.4.1 and v4.1.1 has defined __LINE__ macro as a charstring we have to inform tool vendors have already developed __LINE__ macro that their solution also compliant with the standard.

(0008827)
Gyorgy Rethy
03-07-2009 11:48

CR5087_LINE_macro_v3.doc: Referring to the end-of-line is moved from the note to the main text as it is essential from the point of view of the concrete number returned

(0008830)
Tibor CsÃ¶ndes
03-07-2009 12:20

v3 Ok, with me!

(0008849)
Ina Schieferdecker
06-07-2009 17:42

end-of-line changed into newline first line has number 1 editorial changes