[Scons-dev] SCons and octal constants

Russel Winder russel at winder.org.uk
Mon Apr 28 12:49:54 EDT 2014


On Mon, 2014-04-28 at 14:26 +0300, anatoly techtonik wrote:

> On Mon, Apr 28, 2014 at 10:52 AM, Russel Winder <russel at winder.org.uk> wrote:

> >

> > Actually I think it may be fairly straightforward using find, grep and

> > emacs. Although there are quite a lot of octal constants I think it can

> > be done fairly quickly as a single changeset.

>

> I am not sure how you would search for all numbers starting with 0 that

> are not part of strings with these tools.

>

> \b0[1-9] ?


Given the code base, I suspect:

\<0[0-7][0-7][0-7]\>

will catch a great deal of them, with some false positives due to
timezones in ISO 8601 date-times; at least a start.

--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder



More information about the Scons-dev mailing list