From: Grzegorz J. <ja...@he...> - 2002-09-27 05:57:15
|
Hi, On Thu, 26 Sep 2002, Gang Wang wrote: > I need the line # in the original .mc file to output more meaningful > error messages, in order to show the user the exact location where > error happens. I tried several methods and read through the doc > several times. Still no clue about how to do it. Does anybody has any > examples or tips? Does Ptree* Environment::GetLineNumber(Ptree* expr, int& number) work for you? It is described in 'ref-appendix.html' which for some obscure reasons is not part of the main documentation. If the above is what you were looking for, please take half an hour of your time and: (1) send me your SourceForge userid (2) checkout the opencxx source (3) copy-paste 'ref-appendix.html' into main part of documentation. (4) commit the changes into CVS Best regards Grzegorz ################################################################## # Grzegorz Jakacki Huada Electronic Design # # Senior Engineer, CAD Dept. 1 Gaojiayuan, Chaoyang # # tel. +86-10-64365577 x2074 Beijing 100015, China # # Copyright (C) 2002 Grzegorz Jakacki, HED. All Rights Reserved. # ################################################################## |