Patrick,
I shutdown my PC last night and thus restarted SE. Now I am getting the beautifier formatting that you do.
However, I am still not able to get a space before the logical statement block (if, while, for, do). Looking at the snippet that you pasted into your earlier reply, I see that you are not getting that either. Below is a snippet from the file after running the beautifier this morning.
#define ON_FREE_TX 1
#define ON_TX_CHAR 2
#pragma interrupt saveall
void AS1_InterruptTx(void)
{
register word OnFlags = 0; /* Temporary variable for flags */
if(SerFlag & FULL_TX) /* Is any char already present in the transmit buffer? */
{
OnFlags |= ON_TX_CHAR; /* Set flag "OnTxChar" */
}
SerFlag &= ~FULL_TX; /* Reset flag "full TX buffer" */
clrRegBit(SCI0_SCICR, TEIE); /* Disable transmit interrupt */
if(OnFlags & ON_TX_CHAR) /* Is flag "OnTxChar" set? */
{
AS1_OnTxChar(); /* If yes then invoke user event */
}
}
------------------------------------------------------
I want to have space between:
#define ON_TX_CHAR 2
#pragma interrupt saveall
------------------------------------------------------
Also want a space between:
clrRegBit(SCI0_SCICR, TEIE); /* Disable transmit interrupt */
if(OnFlags & ON_TX_CHAR) /* Is flag "OnTxChar" set? */
------------------------------------------------------
I do not want a space between:
#pragma interrupt saveall
void AS1_InterruptTx(void)
I may have to handle the space between the #pragma and start of function as an exception because very few functions have the #pragma. I don't think the beautifier supports "space before a function unless preceded by a #pragma".