[sword-devel] Does Sword project have coding standards?

Lynn Allan sword-devel@crosswire.org
Wed, 22 Oct 2003 12:30:08 -0600


Inquiring (newbie) minds want to know:

* Does the Sword project have coding standards?
(How about cppunit or c++test? How about the equivalent of "lint" to detect
questionable code?)

The reason I ask:
I'm trying to rebuild diatheke and ActiveDiatheke from "scratch", including
the ICU versions. I'm encountering hundreds and hundreds of warnings using
Borland C++Builder 6.0. Are there coding standards as to what's allowed? My
specific question regards code such as:

if  (flag = GeneratesCompilerWarning()) {
 ...  // compiler hints that it wonders if "==" meant
  signed int si_var32 = 123;
  unsigned int ui_var32 = 456;
  ui_var32 = si_var32; // compiler warns to use cast
  si_var32 = ui_var32; // compiler hints to use cast
}