Skip to content

Commit

Permalink
Fix nasa#43, Remove 'end of function'-type comments
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Oct 9, 2022
1 parent e76ec09 commit 4f49318
Show file tree
Hide file tree
Showing 14 changed files with 285 additions and 330 deletions.
14 changes: 5 additions & 9 deletions fsw/src/lc_action.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void LC_SampleAPs(uint16 StartIndex, uint16 EndIndex)
}

return;
} /* end LC_SampleAP */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -269,7 +269,7 @@ void LC_SampleSingleAP(uint16 APNumber)
} /* end CurrentAPState if */

return;
} /* end LC_SampleSingleAP */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -472,7 +472,7 @@ uint8 LC_EvaluateRPN(uint16 APNumber)
}

return (EvalResult);
} /* end LC_EvaluateRPN */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -601,7 +601,7 @@ int32 LC_ValidateADT(void *TableData)
(int)UnusedCount);

return (TableResult);
} /* end LC_ValidateADT */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -700,8 +700,4 @@ int32 LC_ValidateRPN(const uint16 *RPNPtr, int32 *IndexValue, int32 *StackDepthV
}

return (Result);
} /* end LC_ValidateRPN */

/************************/
/* End of File Comment */
/************************/
}
22 changes: 9 additions & 13 deletions fsw/src/lc_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ void LC_AppMain(void)
** Exit the application
*/
CFE_ES_ExitApp(RunStatus);
} /* end LC_AppMain */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -220,7 +220,7 @@ int32 LC_AppInit(void)
}

return (Status);
} /* end LC_AppInit */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -248,7 +248,7 @@ int32 LC_EvsInit(void)
}

return (Status);
} /* end LC_EvsInit */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -317,7 +317,7 @@ int32 LC_SbInit(void)
}

return (Status);
} /* end LC_SbInit */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -485,7 +485,7 @@ int32 LC_TableInit(void)
}

return (CFE_SUCCESS);
} /* LC_TableInit() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -561,7 +561,7 @@ int32 LC_CreateResultTables(void)
}

return (Result);
} /* LC_CreateResultTables() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -717,7 +717,7 @@ int32 LC_CreateDefinitionTables(void)
}

return (Result);
} /* LC_CreateDefinitionTables() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -844,7 +844,7 @@ int32 LC_CreateTaskCDS(void)
}

return (CFE_SUCCESS);
} /* LC_CreateTaskCDS() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -963,8 +963,4 @@ int32 LC_LoadDefaultTables(void)
}

return (Result);
} /* LC_LoadDefaultTables() */

/************************/
/* End of File Comment */
/************************/
}
30 changes: 13 additions & 17 deletions fsw/src/lc_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ int32 LC_AppPipe(const CFE_SB_Buffer_t *BufPtr)
} /* end MessageID switch */

return (Status);
} /* End LC_AppPipe */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -199,7 +199,7 @@ void LC_SampleAPReq(const CFE_SB_Buffer_t *BufPtr)
}

return;
} /* end LC_SampleAPReq */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -485,7 +485,7 @@ int32 LC_HousekeepingReq(const CFE_MSG_CommandHeader_t *MsgPtr)
Result = LC_PerformMaintenance();

return Result;
} /* end LC_HousekeepingReq */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand All @@ -508,7 +508,7 @@ void LC_NoopCmd(const CFE_SB_Buffer_t *BufPtr)
}

return;
} /* end LC_NoopCmd */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand All @@ -530,7 +530,7 @@ void LC_ResetCmd(const CFE_SB_Buffer_t *BufPtr)
}

return;
} /* end LC_ResetCmd */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand All @@ -548,7 +548,7 @@ void LC_ResetCounters(void)
LC_AppData.PassiveRTSExecCount = 0;

return;
} /* end LC_ResetCounters */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -589,7 +589,7 @@ void LC_SetLCStateCmd(const CFE_SB_Buffer_t *BufPtr)
}

return;
} /* end LC_SetLCStateCmd */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -719,7 +719,7 @@ void LC_SetAPStateCmd(const CFE_SB_Buffer_t *BufPtr)
} /* end LC_VerifyMsgLength if */

return;
} /* end LC_SetAPStateCmd */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -786,7 +786,7 @@ void LC_SetAPPermOffCmd(const CFE_SB_Buffer_t *BufPtr)
} /* end LC_VerifyMsgLength if */

return;
} /* end LC_SetAPPermOffCmd */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -832,7 +832,7 @@ void LC_ResetAPStatsCmd(const CFE_SB_Buffer_t *BufPtr)
}

return;
} /* end LC_ResetAPStatsCmd */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -864,7 +864,7 @@ void LC_ResetResultsAP(uint32 StartIndex, uint32 EndIndex, bool ResetStatsCmd)
}

return;
} /* end LC_ResetResultsAP */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -910,7 +910,7 @@ void LC_ResetWPStatsCmd(const CFE_SB_Buffer_t *BufPtr)
}

return;
} /* end LC_ResetWPStatsCmd */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -946,8 +946,4 @@ void LC_ResetResultsWP(uint32 StartIndex, uint32 EndIndex, bool ResetStatsCmd)
}

return;
} /* end LC_ResetResultsWP */

/************************/
/* End of File Comment */
/************************/
}
8 changes: 2 additions & 6 deletions fsw/src/lc_custom.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void LC_ExecuteRTS(uint16 RTSId)
CFE_SB_TransmitMsg(&RTSRequest.CmdHeader.Msg, true);

return;
} /* end LC_ExecuteRTS */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -90,8 +90,4 @@ uint8 LC_CustomFunction(uint16 WatchIndex, uint32 ProcessedWPData, const CFE_SB_
} /* end WatchIndex switch */

return (EvalResult);
} /* end LC_CustomFunction */

/************************/
/* End of File Comment */
/************************/
}
6 changes: 3 additions & 3 deletions fsw/src/lc_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ bool LC_VerifyMsgLength(const CFE_MSG_Message_t *MsgPtr, size_t ExpectedLength)
}

return (result);
} /* End of LC_VerifyMsgLength */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -164,7 +164,7 @@ int32 LC_ManageTables(void)
}

return (CFE_SUCCESS);
} /* LC_ManageTables() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -218,7 +218,7 @@ int32 LC_UpdateTaskCDS(void)
}

return (CFE_SUCCESS);
} /* LC_UpdateTaskCDS() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down
Loading

0 comments on commit 4f49318

Please sign in to comment.