Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, November 6, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  libcfg+  »  Forum  »  parsing C-like comments /* ... */

libcfg+ General     parsing C-like comments /* ... */
Post new topic   Reply to topic    
 
neil.bryan     Joined: 08 Jul 2004   Posts: 1  
Post Posted: 2004-07-08 11:51
Back to top  Reply with quote     

Hi Guys,
I have been using libcfg+ and am happy with it. Well done!

I would like to know how I configure the options to allow comments in
a configuration file. Ideally I want to be able to do something like:

DEVICE = 3 /* This is the device ID */

The purpose is to parse the DEVICE value and ignore the test
delimmited by the /* */. The description of the library says it can do this,
I just haven't figured out how to do it!

Thanks for your time on this,

Regards,

Neil Bryan

 
nepto     Joined: 06 Jan 2003   Posts: 381   Location: Phoenix, Arizona (USA)
Post Posted: 2004-10-18 19:29
Back to top  Reply with quote     

I'm affraid this is not possible.

For comments there is only this option:

Quote:
CFG_FILE_COMMENT_PREFIX -- config file comment prefix

For changing configuration comment prefix use this type. Lines started with one of these prefixes are skipped. By default are hash sign (#) and semicolon (;) initialized.


See documentation for more info:

http://opensource.platon.sk/projects/doc.php/libcfg+/html/usage.properties.html

However we can implement also support for /* ... */ comments. I'm quite busy now, but I will certainly accept a patch for this. Please start new entry in bug-tracking system if you willing to implemented this feature.

 
nepto     Joined: 06 Jan 2003   Posts: 381   Location: Phoenix, Arizona (USA)
Post Posted: 2004-10-18 19:32
Back to top  Reply with quote     

Btw. with the current implementation you can simply make:

Code:
# This is the device ID
DEVICE = 3


Well, I know, it is not the same, but better than nothing...

 
alkoyacompany     Joined: 04 Dec 2020   Posts: 1  
Post Posted: 2020-12-04 18:49
Back to top  Reply with quote     

https://al-koya.com/%D8%B4%D8%B1%D9%83%D8%A9-%D8%AA%D9%86%D8%B8%D9%8A%D9%81-%D8%A8%D8%A7%D9%84%D8%A7%D8%AD%D8%B3%D8%A7%D8%A1/

https://al-koya.com/%D8%B4%D8%B1%D9%83%D8%A9-%D9%85%D9%83%D8%A7%D9%81%D8%AD%D8%A9-%D8%AD%D8%B4%D8%B1%D8%A7%D8%AA-%D8%A8%D8%A7%D9%84%D8%A7%D8%AD%D8%B3%D8%A7%D8%A1/

 
Hassaan khan     Joined: 10 Nov 2020   Posts: 8  
Post Posted: 2020-12-09 09:19
Back to top  Reply with quote     

I'm very grateful to the author, this really changed my thought. I'm looking forward to acknowledge this website as one of the best for new information. Han Solo Jacket

 
parul1234     Joined: 03 Feb 2021   Posts: 43  
Post Posted: 2021-02-03 13:56
Back to top  Reply with quote     

Here you can make your day with hot babes and take you satisfaction with girls.

tilak nagar Escorts Service
Escorts in lajpat nagar
ssarita vihar Escorts service
rohini Call Girls
vikas puri Escorts

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy