Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-14-2003, 01:34 PM
Eglin
Hill Giant
 
Join Date: Nov 2003
Posts: 168
Default Seperator obeysquotes member

I would like to suggest that the Seperator object have a boolean flag member added to indicate whether or not the object was created with the obeysquotes member (simply set the flag with the constructor parameter).

As it is, from the client perspective, if you are given a seperator, you have no way of determining if it respected quoting when it parsed its arguments.
Reply With Quote
  #2  
Old 11-17-2003, 08:27 PM
Eglin
Hill Giant
 
Join Date: Nov 2003
Posts: 168
Default

It might be cool to also store a copy of the original string in complete form with each object. I have found that there are cases where I'd like to be able to recall the entire text, and having to reassemble it seems ineffecient.
Reply With Quote
  #3  
Old 11-30-2003, 05:56 PM
DeletedUser
Fire Beetle
 
Join Date: Sep 2002
Posts: 0
Default

seperator->argplus[0] should be what you're looking for. It stores a pointer to the original string (so be careful to check if that's been de-allocated).
Reply With Quote
  #4  
Old 11-30-2003, 09:05 PM
Eglin
Hill Giant
 
Join Date: Nov 2003
Posts: 168
Default

Quote:
Originally Posted by Quagmire
seperator->argplus[0] should be what you're looking for. It stores a pointer to the original string (so be careful to check if that's been de-allocated).
Thanks for pointing that out. In the interem between my post and yours, a msg member has been added to the code that does what I need w/o the subtle danger of memory corruption that you warn of. Since seperators are useful, I could easily see getting into trouble with "Seperator foo("bar");", so I fully support changing them to operate on a local copy of the string. Reviewing the code, though, I see that the argplus array needs to be set to point to the msg member to reflect the change. Also, for some reason the code to free the mem is commented out. Worth looking into.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:48 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3