Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Gentlemen, choose your weapons.

Name: Anonymous 2007-12-26 8:29

http://en.wikipedia.org/wiki/Indent_style

I pick: Allman style.

Downside: Proprietary AIDS -
>This style is used by default in Microsoft Visual Studio 2005 and Apple's Xcode.

Name: Anonymous 2007-12-26 21:27

This is my usual style, it doesn't really follow a guideline in particular:

if (data != NULL && res > 0) {
if (!JS_DefineProperty(cx, o, "data", STRING_TO_JSVAL(
   JS_NewStringCopyN(cx, data, res)), NULL, NULL,
         JSPROP_ENUMERATE)) {
QUEUE_EXCEPTION("Internal error!"); goto err;
                       }
 PQfreemem(data); } else {
   if (!JS_DefineProperty(cx, o, "data", OBJECT_TO_JSVAL(NULL), NULL, NULL, JSPROP_ENUMERATE))
{ QUEUE_EXCEPTION("Internal error!");  goto err;

        }
            }

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List