pgindent changes for Thomas proc/lock cleanup
This commit is contained in:
parent
19ba229299
commit
d067f83b27
|
@ -7,7 +7,7 @@
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.32 1998/02/24 19:58:26 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.33 1998/02/25 00:31:14 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
* This is so that we can support more backends. (system-wide semaphore
|
* This is so that we can support more backends. (system-wide semaphore
|
||||||
* sets run out pretty fast.) -ay 4/95
|
* sets run out pretty fast.) -ay 4/95
|
||||||
*
|
*
|
||||||
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.32 1998/02/24 19:58:26 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.33 1998/02/25 00:31:14 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -486,7 +486,7 @@ ProcSleep(PROC_QUEUE *waitQueue,
|
||||||
proc = (PROC *) MAKE_PTR(proc->links.prev);
|
proc = (PROC *) MAKE_PTR(proc->links.prev);
|
||||||
|
|
||||||
/* The rest of the queue is FIFO, with readers first, writers last */
|
/* The rest of the queue is FIFO, with readers first, writers last */
|
||||||
while (i++ < waitQueue->size && proc->prio <= prio)
|
for ( ; i < waitQueue->size && proc->prio <= prio; i++)
|
||||||
proc = (PROC *) MAKE_PTR(proc->links.prev);
|
proc = (PROC *) MAKE_PTR(proc->links.prev);
|
||||||
|
|
||||||
MyProc->prio = prio;
|
MyProc->prio = prio;
|
||||||
|
|
|
@ -34,6 +34,7 @@ do
|
||||||
# We get the list of typedef's from /src/tools/find_typedef
|
# We get the list of typedef's from /src/tools/find_typedef
|
||||||
indent -bad -bap -bc -bl -d0 -cdb -nce -nfc1 -di12 -i4 -l75 \
|
indent -bad -bap -bc -bl -d0 -cdb -nce -nfc1 -di12 -i4 -l75 \
|
||||||
-lp -nip -npro $EXTRA_OPTS \
|
-lp -nip -npro $EXTRA_OPTS \
|
||||||
|
-TACL \
|
||||||
-TA_Const \
|
-TA_Const \
|
||||||
-TA_Expr \
|
-TA_Expr \
|
||||||
-TA_Indices \
|
-TA_Indices \
|
||||||
|
@ -44,7 +45,6 @@ do
|
||||||
-TAclItem \
|
-TAclItem \
|
||||||
-TAclMode \
|
-TAclMode \
|
||||||
-TAddAttrStmt \
|
-TAddAttrStmt \
|
||||||
-TAddr \
|
|
||||||
-TAgg \
|
-TAgg \
|
||||||
-TAggFuncInfo \
|
-TAggFuncInfo \
|
||||||
-TAggInfo \
|
-TAggInfo \
|
||||||
|
@ -56,12 +56,10 @@ do
|
||||||
-TAllocPointer \
|
-TAllocPointer \
|
||||||
-TAllocSet \
|
-TAllocSet \
|
||||||
-TAllocSetData \
|
-TAllocSetData \
|
||||||
|
-TAlterUserStmt \
|
||||||
-TAnyInvalidation \
|
-TAnyInvalidation \
|
||||||
-TAppend \
|
-TAppend \
|
||||||
-TAppendState \
|
-TAppendState \
|
||||||
-TAppendStmt \
|
|
||||||
-TArchType \
|
|
||||||
-TArchiveMode \
|
|
||||||
-TArray \
|
-TArray \
|
||||||
-TArrayRef \
|
-TArrayRef \
|
||||||
-TArrayType \
|
-TArrayType \
|
||||||
|
@ -70,6 +68,8 @@ do
|
||||||
-TAttrNumber \
|
-TAttrNumber \
|
||||||
-TAttributeSize \
|
-TAttributeSize \
|
||||||
-TAttributeTupleForm \
|
-TAttributeTupleForm \
|
||||||
|
-TAuthRequest \
|
||||||
|
-TAuthRequestPacket \
|
||||||
-TBOX \
|
-TBOX \
|
||||||
-TBTItem \
|
-TBTItem \
|
||||||
-TBTItemData \
|
-TBTItemData \
|
||||||
|
@ -135,14 +135,15 @@ do
|
||||||
-TConst \
|
-TConst \
|
||||||
-TConstrCheck \
|
-TConstrCheck \
|
||||||
-TConstrType \
|
-TConstrType \
|
||||||
-TConstraintDef \
|
-TConstraint \
|
||||||
-TCopyStmt \
|
-TCopyStmt \
|
||||||
-TCost \
|
-TCost \
|
||||||
|
-TCreatePLangStmt \
|
||||||
-TCreateSeqStmt \
|
-TCreateSeqStmt \
|
||||||
-TCreateStmt \
|
-TCreateStmt \
|
||||||
-TCreateTrigStmt \
|
-TCreateTrigStmt \
|
||||||
|
-TCreateUserStmt \
|
||||||
-TCreatedbStmt \
|
-TCreatedbStmt \
|
||||||
-TCursorStmt \
|
|
||||||
-TDateADT \
|
-TDateADT \
|
||||||
-TDateTime \
|
-TDateTime \
|
||||||
-TDatum \
|
-TDatum \
|
||||||
|
@ -154,11 +155,14 @@ do
|
||||||
-TDestroydbStmt \
|
-TDestroydbStmt \
|
||||||
-TDlelem \
|
-TDlelem \
|
||||||
-TDllist \
|
-TDllist \
|
||||||
|
-TDropPLangStmt \
|
||||||
-TDropTrigStmt \
|
-TDropTrigStmt \
|
||||||
|
-TDropUserStmt \
|
||||||
-TDynamicFileList \
|
-TDynamicFileList \
|
||||||
-TELEMENT \
|
-TELEMENT \
|
||||||
-TEState \
|
-TEState \
|
||||||
-TEdge \
|
-TEdge \
|
||||||
|
-TErrorMessagePacket \
|
||||||
-TExcContext \
|
-TExcContext \
|
||||||
-TExcData \
|
-TExcData \
|
||||||
-TExcDetail \
|
-TExcDetail \
|
||||||
|
@ -169,7 +173,6 @@ do
|
||||||
-TException \
|
-TException \
|
||||||
-TExecStatus \
|
-TExecStatus \
|
||||||
-TExecStatusType \
|
-TExecStatusType \
|
||||||
-TExistential \
|
|
||||||
-TExitStatus \
|
-TExitStatus \
|
||||||
-TExplainState \
|
-TExplainState \
|
||||||
-TExplainStmt \
|
-TExplainStmt \
|
||||||
|
@ -187,6 +190,7 @@ do
|
||||||
-TFixedStackData \
|
-TFixedStackData \
|
||||||
-TFjoin \
|
-TFjoin \
|
||||||
-TFmgrCall \
|
-TFmgrCall \
|
||||||
|
-TFmgrInfo \
|
||||||
-TFmgrValues \
|
-TFmgrValues \
|
||||||
-TFormData_pg_aggregate \
|
-TFormData_pg_aggregate \
|
||||||
-TFormData_pg_am \
|
-TFormData_pg_am \
|
||||||
|
@ -210,7 +214,6 @@ do
|
||||||
-TFormData_pg_rewrite \
|
-TFormData_pg_rewrite \
|
||||||
-TFormData_pg_sequence \
|
-TFormData_pg_sequence \
|
||||||
-TFormData_pg_statistic \
|
-TFormData_pg_statistic \
|
||||||
-TFormData_pg_time \
|
|
||||||
-TFormData_pg_trigger \
|
-TFormData_pg_trigger \
|
||||||
-TFormData_pg_user \
|
-TFormData_pg_user \
|
||||||
-TFormData_pg_variable \
|
-TFormData_pg_variable \
|
||||||
|
@ -231,11 +234,9 @@ do
|
||||||
-TForm_pg_relcheck \
|
-TForm_pg_relcheck \
|
||||||
-TForm_pg_rewrite \
|
-TForm_pg_rewrite \
|
||||||
-TForm_pg_statistic \
|
-TForm_pg_statistic \
|
||||||
-TForm_pg_time \
|
|
||||||
-TForm_pg_trigger \
|
-TForm_pg_trigger \
|
||||||
-TForm_pg_user \
|
-TForm_pg_user \
|
||||||
-TForm_pg_variable \
|
-TForm_pg_variable \
|
||||||
-TFrontEnd \
|
|
||||||
-TFunc \
|
-TFunc \
|
||||||
-TFuncCall \
|
-TFuncCall \
|
||||||
-TFuncIndexInfo \
|
-TFuncIndexInfo \
|
||||||
|
@ -325,10 +326,10 @@ do
|
||||||
-TInheritsTupleForm \
|
-TInheritsTupleForm \
|
||||||
-TInsertIndexResult \
|
-TInsertIndexResult \
|
||||||
-TInsertIndexResultData \
|
-TInsertIndexResultData \
|
||||||
|
-TInsertStmt \
|
||||||
-TIntArray \
|
-TIntArray \
|
||||||
-TInt_yy_size_t \
|
-TInt_yy_size_t \
|
||||||
-TInt_yy_state_type \
|
-TInt_yy_state_type \
|
||||||
-TInternalTimeQual \
|
|
||||||
-TInvalidationEntry \
|
-TInvalidationEntry \
|
||||||
-TInvalidationEntryData \
|
-TInvalidationEntryData \
|
||||||
-TInvalidationMessage \
|
-TInvalidationMessage \
|
||||||
|
@ -363,7 +364,6 @@ do
|
||||||
-TLOCKT \
|
-TLOCKT \
|
||||||
-TLOCKTAB \
|
-TLOCKTAB \
|
||||||
-TLOCKTAG \
|
-TLOCKTAG \
|
||||||
-TLOCK_LEVEL \
|
|
||||||
-TLOCK_TYPE \
|
-TLOCK_TYPE \
|
||||||
-TLRelId \
|
-TLRelId \
|
||||||
-TLSEG \
|
-TLSEG \
|
||||||
|
@ -394,7 +394,6 @@ do
|
||||||
-TMergeJoinState \
|
-TMergeJoinState \
|
||||||
-TMergeOrder \
|
-TMergeOrder \
|
||||||
-TMergePath \
|
-TMergePath \
|
||||||
-TMoveStmt \
|
|
||||||
-TMsgType \
|
-TMsgType \
|
||||||
-TName \
|
-TName \
|
||||||
-TNameData \
|
-TNameData \
|
||||||
|
@ -429,6 +428,7 @@ do
|
||||||
-TOverflowTuple \
|
-TOverflowTuple \
|
||||||
-TOverflowTupleData \
|
-TOverflowTupleData \
|
||||||
-TPATH \
|
-TPATH \
|
||||||
|
-TPG_LOCK_LEVEL \
|
||||||
-TPGconn \
|
-TPGconn \
|
||||||
-TPGlobjfuncs \
|
-TPGlobjfuncs \
|
||||||
-TPGnotify \
|
-TPGnotify \
|
||||||
|
@ -443,19 +443,23 @@ do
|
||||||
-TPROC \
|
-TPROC \
|
||||||
-TPROC_HDR \
|
-TPROC_HDR \
|
||||||
-TPROC_QUEUE \
|
-TPROC_QUEUE \
|
||||||
-TPacketBuf \
|
-TPacket \
|
||||||
-TPacketLen \
|
-TPacketLen \
|
||||||
|
-TPacketState \
|
||||||
-TPage \
|
-TPage \
|
||||||
-TPageHeader \
|
-TPageHeader \
|
||||||
-TPageHeaderData \
|
-TPageHeaderData \
|
||||||
-TPageManagerMode \
|
-TPageManagerMode \
|
||||||
-TPageOffset \
|
-TPageOffset \
|
||||||
-TParam \
|
-TParam \
|
||||||
|
-TParamExecData \
|
||||||
-TParamListInfo \
|
-TParamListInfo \
|
||||||
-TParamListInfoData \
|
-TParamListInfoData \
|
||||||
-TParamNo \
|
-TParamNo \
|
||||||
-TParamString \
|
-TParamString \
|
||||||
-TParseState \
|
-TParseState \
|
||||||
|
-TPasswordPacket \
|
||||||
|
-TPasswordPacketV0 \
|
||||||
-TPath \
|
-TPath \
|
||||||
-TPathOrder \
|
-TPathOrder \
|
||||||
-TPlan \
|
-TPlan \
|
||||||
|
@ -479,9 +483,9 @@ do
|
||||||
-TProcedureStmt \
|
-TProcedureStmt \
|
||||||
-TProcessingMode \
|
-TProcessingMode \
|
||||||
-TProjectionInfo \
|
-TProjectionInfo \
|
||||||
|
-TProtocolVersion \
|
||||||
-TPsortstate \
|
-TPsortstate \
|
||||||
-TPsqlSettings \
|
-TPsqlSettings \
|
||||||
-TPurgeStmt \
|
|
||||||
-TQuery \
|
-TQuery \
|
||||||
-TQueryDesc \
|
-TQueryDesc \
|
||||||
-TQueryTreeList \
|
-TQueryTreeList \
|
||||||
|
@ -517,14 +521,12 @@ do
|
||||||
-TRemoveOperStmt \
|
-TRemoveOperStmt \
|
||||||
-TRemoveStmt \
|
-TRemoveStmt \
|
||||||
-TRenameStmt \
|
-TRenameStmt \
|
||||||
-TReplaceStmt \
|
|
||||||
-TResTarget \
|
-TResTarget \
|
||||||
-TResdom \
|
-TResdom \
|
||||||
-TResult \
|
-TResult \
|
||||||
-TResultState \
|
-TResultState \
|
||||||
-TRetrieveIndexResult \
|
-TRetrieveIndexResult \
|
||||||
-TRetrieveIndexResultData \
|
-TRetrieveIndexResultData \
|
||||||
-TRetrieveStmt \
|
|
||||||
-TRewriteInfo \
|
-TRewriteInfo \
|
||||||
-TRewriteRule \
|
-TRewriteRule \
|
||||||
-TRuleLock \
|
-TRuleLock \
|
||||||
|
@ -547,6 +549,7 @@ do
|
||||||
-TScanKey \
|
-TScanKey \
|
||||||
-TScanKeyData \
|
-TScanKeyData \
|
||||||
-TScanKeyword \
|
-TScanKeyword \
|
||||||
|
-TSelectStmt \
|
||||||
-TSeqScan \
|
-TSeqScan \
|
||||||
-TSeqTable \
|
-TSeqTable \
|
||||||
-TSeqTableData \
|
-TSeqTableData \
|
||||||
|
@ -554,12 +557,13 @@ do
|
||||||
-TSharedInvalid \
|
-TSharedInvalid \
|
||||||
-TSharedInvalidData \
|
-TSharedInvalidData \
|
||||||
-TSize \
|
-TSize \
|
||||||
|
-TSockAddr \
|
||||||
-TSort \
|
-TSort \
|
||||||
-TSortClause \
|
-TSortClause \
|
||||||
-TSortGroupBy \
|
-TSortGroupBy \
|
||||||
-TSortState \
|
-TSortState \
|
||||||
-TSplitNumber \
|
-TSplitNumber \
|
||||||
-TStartupInfo \
|
-TStartupPacket \
|
||||||
-TStrategyEvaluation \
|
-TStrategyEvaluation \
|
||||||
-TStrategyEvaluationData \
|
-TStrategyEvaluationData \
|
||||||
-TStrategyExpression \
|
-TStrategyExpression \
|
||||||
|
@ -577,7 +581,9 @@ do
|
||||||
-TStreamPtr \
|
-TStreamPtr \
|
||||||
-TStringInfo \
|
-TStringInfo \
|
||||||
-TStringInfoData \
|
-TStringInfoData \
|
||||||
-TSubSelect \
|
-TSubLink \
|
||||||
|
-TSubLinkType \
|
||||||
|
-TSubPlan \
|
||||||
-TSuperQE \
|
-TSuperQE \
|
||||||
-TSystemPortAddress \
|
-TSystemPortAddress \
|
||||||
-TTUPLE \
|
-TTUPLE \
|
||||||
|
@ -592,13 +598,6 @@ do
|
||||||
-TTimeADT \
|
-TTimeADT \
|
||||||
-TTimeInterval \
|
-TTimeInterval \
|
||||||
-TTimeIntervalData \
|
-TTimeIntervalData \
|
||||||
-TTimeQual \
|
|
||||||
-TTimeQualData \
|
|
||||||
-TTimeQualMode \
|
|
||||||
-TTimeQualSpace \
|
|
||||||
-TTimeRange \
|
|
||||||
-TTimeRelationContents \
|
|
||||||
-TTimeRelationContentsData \
|
|
||||||
-TTimeSpan \
|
-TTimeSpan \
|
||||||
-TTransactionId \
|
-TTransactionId \
|
||||||
-TTransactionState \
|
-TTransactionState \
|
||||||
|
@ -621,9 +620,10 @@ do
|
||||||
-TTypeTupleForm \
|
-TTypeTupleForm \
|
||||||
-TTypeTupleFormData \
|
-TTypeTupleFormData \
|
||||||
-TUNDO_LIST \
|
-TUNDO_LIST \
|
||||||
-TUnionFlag \
|
|
||||||
-TUnique \
|
-TUnique \
|
||||||
-TUniqueState \
|
-TUniqueState \
|
||||||
|
-TUpdateStmt \
|
||||||
|
-TUserAuth \
|
||||||
-TVAttList \
|
-TVAttList \
|
||||||
-TVAttListData \
|
-TVAttListData \
|
||||||
-TVFunction \
|
-TVFunction \
|
||||||
|
@ -795,8 +795,11 @@ do
|
||||||
sed 's;^/\*\(DATA(.*\)\*/$;\1;' |
|
sed 's;^/\*\(DATA(.*\)\*/$;\1;' |
|
||||||
sed 's;/\*---X_X;/* ---;g' |
|
sed 's;/\*---X_X;/* ---;g' |
|
||||||
sed 's;^static[ ][ ]*;static ;g' | # workaround indent bug
|
sed 's;^static[ ][ ]*;static ;g' | # workaround indent bug
|
||||||
|
sed 's;^}[ ][ ]*/\*;} /*;' |
|
||||||
detab -t8 -qc |
|
detab -t8 -qc |
|
||||||
entab -t4 -qc >/tmp/$$ && cat /tmp/$$ >$FILE
|
entab -t4 -qc |
|
||||||
|
sed 's;^\([A-Za-z_][^ ]*\)[ ][ ]*\*$;\1 *;' | # move trailing * in function return type
|
||||||
|
cat >/tmp/$$ && cat /tmp/$$ >$FILE
|
||||||
done
|
done
|
||||||
|
|
||||||
# The 'for' loop makes these backup files useless
|
# The 'for' loop makes these backup files useless
|
||||||
|
|
Loading…
Reference in New Issue