News for hackers. Stuff that matters.

c001

Re:Gigablast Search Engine, Now Open Source (C/C++) on Sunday August 04, 2013 @02:44AM (#6154899)
The code does not seem to be neatly written: have randomly checked a few files and found that the const methods and exceptions are not properly used. Here is a sample function:

const char *CountryCode::getAbbr(int index) { if(index < 0 || index > s_numCountryCodes) index = 0; return(s_countryCode[index]); }

https://github.com/gigablast/open-source-search-engine/blob/...