[fpc-devel] [patch] regex.pp with out parameters

Graeme Geldenhuys graemeg.lists at gmail.com
Fri Mar 27 11:55:13 CET 2009


Hi,

Please find attached a minor patch that removes the following compiler
hints when TRegexEngine.Parse(...) is used.

================
iterator_impl.pas(306,46) Hint: Local variable "LErrorCode" does not
seem to be initialized
iterator_impl.pas(306,34) Hint: Local variable "LErrorPos" does not
seem to be initialized
================

The patch simply changes the 'var' parameters to 'out' parameters.


Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: regex.patch
Type: text/x-patch
Size: 1150 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20090327/136809e3/attachment.bin>


More information about the fpc-devel mailing list