Another pgindent request - Mailing list pgsql-hackers

From Tom Lane
Subject Another pgindent request
Date
Msg-id 24330.999572452@sss.pgh.pa.us
Whole thread Raw
Responses Re: Another pgindent request
List pgsql-hackers
As long as you're hacking pgindent, can you do something about its habit
of sometimes removing all space before a same-line comment?  Here's
an example from the 7.1 run (in src/backend/storage/lmgr/proc.c):

***************
*** 607,613 ****       MyProc->waitHolder = holder;       MyProc->waitLockMode = lockmode; 
!       MyProc->errType = STATUS_OK; /* initialize result for success */        /* mark that we are waiting for a lock
*/      waitingForLock = true;
 
--- 612,618 ----       MyProc->waitHolder = holder;       MyProc->waitLockMode = lockmode; 
!       MyProc->errType = STATUS_OK;/* initialize result for success */        /* mark that we are waiting for a lock
*/      waitingForLock = true;
 
***************

IMHO there should always be at least one space before a same-line
comment.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Bytea/Base64 encoders for libpq - interested?
Next
From: Bruce Momjian
Date:
Subject: Re: Another pgindent request