RE: Coding Standards

2003-08-14 Thread Jeff Wheeler
Jeff: 4. Tabs set to four spaces. Stuart: 4 space good, two space bad? This sounds like a religious war in the making. So I say 2 spaces for a tab and don't use tab characters. If you can cleanly fit your code into 80 columns that would also be nice (though I realize that is unlikely

Re: Coding Standards

2003-08-14 Thread Stuart Eichert
4. Tabs set to four spaces. Jeff 4 space good, two space bad? This sounds like a religious war in the making. So I say 2 spaces for a tab and don't use tab characters. If you can cleanly fit your code into 80 columns that would also be nice (though I realize that is unlikely for Palm

RE: Coding Standards

2003-08-14 Thread Keith Rollin
That's close to mine. Personally, I'd have it as: void MyFunc(Char* buffer, UInt32 type) { switch(type) { case 1:// This is an example with braces. { StrCopy(buffer, One); break; } case 2:// This is an example without

Re: Coding Standards

2003-08-14 Thread Chris Faherty
On Tuesday 12 August 2003 09:11 pm, Alan Ingleby wrote: (This is mine...) void MyFunc(Char* buffer, UInt32 type) { switch(type) { case 1: StrCopy(buffer, One); break; case 2: StrCopy(buffer, Two); break; default: StrCopy(buffer, Huh?);

Coding Standards

2003-08-14 Thread Alan Ingleby
On a lighter note... We are trying to standardise our C coding techniques here, and a point of contention is the layout of a switch statement. What's the generally preferred way of structuring a switch statement? (This is mine...) void MyFunc(Char* buffer, UInt32 type) { switch(type) {

Re: Coding Standards

2003-08-14 Thread Alan Ingleby
Jeff Wheeler [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 1. Function definition allows parameters to be commented. I also switched the order so that inputs were listed first and outputs last. I've always preferred to have the outputs first, and the inputs last. But that's just

RE: Coding Standards

2003-08-14 Thread Jeff Wheeler
In a previous post, Alan Ingleby wrote: What's the generally preferred way of structuring a switch statement? (This is mine...) void MyFunc(Char* buffer, UInt32 type) { switch(type) { case 1: StrCopy(buffer, One); break; case 2: StrCopy(buffer, Two);

Re: Design Documentation / Coding Standards

2000-10-04 Thread Chris Tutty
"Rick Gadbois" [EMAIL PROTECTED] wrote Does anyone here use design documentation and/or coding standards that are particularly friendly to the palm/code warrior environment? p.s. I use WinNT. The only thing I can suggest is to choose very rigorous and careful standards and follow t

Design Documentation / Coding Standards

2000-10-03 Thread Rick Gadbois
Does anyone here use design documentation and/or coding standards that are particularly friendly to the palm/code warrior environment? p.s. I use WinNT. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/