- Will help identify blocks
- Beware of difference between tab character and spaces
- Correct settings in editor/IDE important
void linkTable(Table t) throws SQLException {
String name = t.getName();
for (int i = 0; i < tTable.size(); i++) {
Table o = (Table) tTable.elementAt(i);
if (o.getName().equals(name)) {
throw Trace.error(Trace.TABLE_ALREADY_EXISTS, name);
}
}
- Non-standard values often appear as editor commands:
/*
* Local Variables:
* tab-width: 4
* c-indent-level: 4
* c-argdecl-indent: 4
* c-continued-statement-offset: 4
* c-continued-brace-offset: -4
* c-label-offset: -4
* c-brace-offset: 0
* End:
*/
- Interpreting indentation can save you from counting brackets:
if ((u_int)fd >= fdp->fd_nfiles ||
(fp = fdp->fd_ofiles[fd]) == NULL)
return (EBADF);