ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details
0005087Part 01: TTCN-3 Core LanguageTechnicalpublic16-04-2009 16:0406-07-2009 17:49
Gyorgy Rethy 
Ina Schieferdecker 
urgentminoralways
closedfixed 
 
v4.2.1 (published 2010-07)v4.2.1 (published 2010-07) 
D.3
L.M.Ericsson
0005087: __LINE__ macro should return integer
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.
No tags attached.
doc CR5087_LINE_macro.doc (24,064) 22-04-2009 14:19
http://oldforge.etsi.org/mantis/file_download.php?file_id=2110&type=bug
doc 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
doc 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
doc 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
16-04-2009 16:04Gyorgy RethyNew Issue
16-04-2009 16:04Gyorgy RethyClause Reference(s) => D.3
16-04-2009 16:04Gyorgy RethySource (company - Author) => L.M.Ericsson
16-04-2009 16:07Gyorgy RethyDescription Updated
20-04-2009 11:16Ina SchieferdeckerProjectTTCN-3 Change Requests => Part 01: TTCN-3 Core Language
20-04-2009 11:16Ina SchieferdeckerAssigned To => Tibor Csöndes
20-04-2009 11:16Ina SchieferdeckerStatusnew => assigned
20-04-2009 11:16Ina SchieferdeckerTarget Version => Edition 4.2.1 (not yet published)
22-04-2009 14:19Tibor CsöndesFile Added: CR5087_LINE_macro.doc
22-04-2009 14:21Tibor CsöndesNote Added: 0008539
01-07-2009 10:46Tibor CsöndesFile Added: CR5087_LINE_macro_v2.doc
01-07-2009 10:56Tibor CsöndesNote Added: 0008803
01-07-2009 10:58Tibor CsöndesAssigned ToTibor Csöndes => Gyorgy Rethy
03-07-2009 11:40Gyorgy RethyFile Added: CR5087_LINE_macro_v3.doc
03-07-2009 11:48Gyorgy RethyNote Added: 0008827
03-07-2009 12:20Tibor CsöndesNote Added: 0008830
03-07-2009 12:21Gyorgy RethyAssigned ToGyorgy Rethy => Ina Schieferdecker
03-07-2009 12:21Gyorgy RethyStatusassigned => resolved
03-07-2009 12:21Gyorgy RethyResolutionopen => fixed
03-07-2009 12:21Gyorgy RethyFixed in Version => Edition 4.2.1 (not yet published)
06-07-2009 17:41Ina SchieferdeckerFile Added: CR5087_LINE_macro_v4.doc
06-07-2009 17:42Ina SchieferdeckerNote Added: 0008849
06-07-2009 17:49Ina SchieferdeckerStatusresolved => 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