Skip to content

Commit

Permalink
Fix nasa#57, Remove 'end of function' comments
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Oct 9, 2022
1 parent 9582436 commit 79bac48
Show file tree
Hide file tree
Showing 10 changed files with 123 additions and 123 deletions.
10 changes: 5 additions & 5 deletions fsw/src/fm_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ void FM_AppMain(void)
** Let cFE kill the task (and any child tasks)...
*/
CFE_ES_ExitApp(RunStatus);
} /* End FM_AppMain */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -237,7 +237,7 @@ int32 FM_AppInit(void)
}

return Result;
} /* End of FM_AppInit() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -269,7 +269,7 @@ void FM_ProcessPkt(const CFE_SB_Buffer_t *BufPtr)
(unsigned long)CFE_SB_MsgIdToValue(MessageID));
break;
}
} /* End of FM_ProcessPkt */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -378,7 +378,7 @@ void FM_ProcessCmd(const CFE_SB_Buffer_t *BufPtr)
/* Increment command error counter */
FM_GlobalData.CommandErrCounter++;
}
} // End of FM_ProcessCmd
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -423,7 +423,7 @@ void FM_ReportHK(const CFE_MSG_CommandHeader_t *Msg)
CFE_SB_TimeStampMsg(&FM_GlobalData.HousekeepingPkt.TlmHeader.Msg);
CFE_SB_TransmitMsg(&FM_GlobalData.HousekeepingPkt.TlmHeader.Msg, true);
}
} // End of FM_ReportHK
}

/************************/
/* End of File Comment */
Expand Down
40 changes: 20 additions & 20 deletions fsw/src/fm_child.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ int32 FM_ChildInit(void)
}

return Result;
} /* End of FM_ChildInit() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand All @@ -131,7 +131,7 @@ void FM_ChildTask(void)

/* This call allows cFE to clean-up system resources */
CFE_ES_ExitChildTask();
} /* End of FM_ChildTask() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -186,7 +186,7 @@ void FM_ChildLoop(void)

CFE_ES_PerfLogExit(FM_CHILD_TASK_PERF_ID);
}
} /* End of FM_ChildLoop() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -273,7 +273,7 @@ void FM_ChildProcess(void)
OS_MutSemTake(FM_GlobalData.ChildQueueCountSem);
FM_GlobalData.ChildQueueCount--;
OS_MutSemGive(FM_GlobalData.ChildQueueCountSem);
} /* End of FM_ChildProcess() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -313,7 +313,7 @@ void FM_ChildCopyCmd(const FM_ChildQueueEntry_t *CmdArgs)
/* Report previous child task activity */
FM_GlobalData.ChildPreviousCC = CmdArgs->CommandCode;
FM_GlobalData.ChildCurrentCC = 0;
} /* End of FM_ChildCopyCmd() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -352,7 +352,7 @@ void FM_ChildMoveCmd(const FM_ChildQueueEntry_t *CmdArgs)
/* Report previous child task activity */
FM_GlobalData.ChildPreviousCC = CmdArgs->CommandCode;
FM_GlobalData.ChildCurrentCC = 0;
} /* End of FM_ChildMoveCmd() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -391,7 +391,7 @@ void FM_ChildRenameCmd(const FM_ChildQueueEntry_t *CmdArgs)
/* Report previous child task activity */
FM_GlobalData.ChildPreviousCC = CmdArgs->CommandCode;
FM_GlobalData.ChildCurrentCC = 0;
} /* End of FM_ChildRenameCmd() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -430,7 +430,7 @@ void FM_ChildDeleteCmd(const FM_ChildQueueEntry_t *CmdArgs)
/* Report previous child task activity */
FM_GlobalData.ChildPreviousCC = CmdArgs->CommandCode;
FM_GlobalData.ChildCurrentCC = 0;
} /* End of FM_ChildDeleteCmd() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -581,7 +581,7 @@ void FM_ChildDeleteAllCmd(FM_ChildQueueEntry_t *CmdArgs)
/* Report previous child task activity */
FM_GlobalData.ChildPreviousCC = CmdArgs->CommandCode;
FM_GlobalData.ChildCurrentCC = 0;
} /* End of FM_ChildDeleteAllCmd() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -623,7 +623,7 @@ void FM_ChildDecompressCmd(const FM_ChildQueueEntry_t *CmdArgs)
/* Report previous child task activity */
FM_GlobalData.ChildPreviousCC = CmdArgs->CommandCode;
FM_GlobalData.ChildCurrentCC = 0;
} /* End of FM_ChildDecompressCmd() */
}

#endif

Expand Down Expand Up @@ -799,7 +799,7 @@ void FM_ChildConcatCmd(const FM_ChildQueueEntry_t *CmdArgs)
/* Report previous child task activity */
FM_GlobalData.ChildPreviousCC = CmdArgs->CommandCode;
FM_GlobalData.ChildCurrentCC = 0;
} /* End of FM_ChildConcatCmd() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -957,7 +957,7 @@ void FM_ChildFileInfoCmd(FM_ChildQueueEntry_t *CmdArgs)
/* Report previous child task activity */
FM_GlobalData.ChildPreviousCC = CmdArgs->CommandCode;
FM_GlobalData.ChildCurrentCC = 0;
} /* End of FM_ChildFileInfoCmd() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -996,7 +996,7 @@ void FM_ChildCreateDirCmd(const FM_ChildQueueEntry_t *CmdArgs)
/* Report previous child task activity */
FM_GlobalData.ChildPreviousCC = CmdArgs->CommandCode;
FM_GlobalData.ChildCurrentCC = 0;
} /* End of FM_ChildCreateDirCmd() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -1074,7 +1074,7 @@ void FM_ChildDeleteDirCmd(const FM_ChildQueueEntry_t *CmdArgs)
/* Report previous child task activity */
FM_GlobalData.ChildPreviousCC = CmdArgs->CommandCode;
FM_GlobalData.ChildCurrentCC = 0;
} /* End of FM_ChildDeleteDirCmd() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -1134,7 +1134,7 @@ void FM_ChildDirListFileCmd(const FM_ChildQueueEntry_t *CmdArgs)
/* Report previous child task activity */
FM_GlobalData.ChildPreviousCC = CmdArgs->CommandCode;
FM_GlobalData.ChildCurrentCC = 0;
} /* End of FM_ChildDirListFileCmd() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -1267,7 +1267,7 @@ void FM_ChildDirListPktCmd(const FM_ChildQueueEntry_t *CmdArgs)
/* Report previous child task activity */
FM_GlobalData.ChildPreviousCC = CmdArgs->CommandCode;
FM_GlobalData.ChildCurrentCC = 0;
} /* End of FM_ChildDirListPktCmd() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -1302,7 +1302,7 @@ void FM_ChildSetPermissionsCmd(const FM_ChildQueueEntry_t *CmdArgs)
/* Report previous child task activity */
FM_GlobalData.ChildPreviousCC = CmdArgs->CommandCode;
FM_GlobalData.ChildCurrentCC = 0;
} /* End of FM_ChildSetPermissionsCmd() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -1382,7 +1382,7 @@ bool FM_ChildDirListFileInit(osal_id_t *FileHandlePtr, const char *Directory, co
}

return CommandResult;
} /* End FM_ChildDirListFileInit */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -1518,7 +1518,7 @@ void FM_ChildDirListFileLoop(osal_id_t DirId, osal_id_t FileHandle, const char *
"%s command: wrote %d of %d names: dir = %s, filename = %s", CmdText, (int)FileEntries,
(int)DirEntries, Directory, Filename);
}
} /* End of FM_ChildDirListFileLoop */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -1549,7 +1549,7 @@ int32 FM_ChildSizeTimeMode(const char *Filename, uint32 *FileSize, uint32 *FileT
}

return Result;
} /* End of FM_ChildSizeTimeMode */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down
32 changes: 16 additions & 16 deletions fsw/src/fm_cmd_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ bool FM_VerifyOverwrite(uint16 Overwrite, uint32 EventID, const char *CmdText)
}

return FunctionResult;
} /* End FM_VerifyOverwrite */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -119,7 +119,7 @@ static void LoadOpenFileData(osal_id_t ObjId, void *CallbackArg)

OpenFileCount++;
}
} /* End LoadOpenFileData() */
}

uint32 FM_GetOpenFilesData(const FM_OpenFilesEntry_t *OpenFilesData)
{
Expand All @@ -128,7 +128,7 @@ uint32 FM_GetOpenFilesData(const FM_OpenFilesEntry_t *OpenFilesData)
OS_ForEachObject(OS_OBJECT_CREATOR_ANY, LoadOpenFileData, (void *)OpenFilesData);

return OpenFileCount;
} /* End FM_GetOpenFilesData */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand All @@ -155,7 +155,7 @@ static void SearchOpenFileData(osal_id_t ObjId, void *CallbackArg)
}
}
}
} /* End SearchOpenFileData() */
}

uint32 FM_GetFilenameState(char *Filename, uint32 BufferSize, bool FileInfoCmd)
{
Expand Down Expand Up @@ -234,7 +234,7 @@ uint32 FM_GetFilenameState(char *Filename, uint32 BufferSize, bool FileInfoCmd)
}

return FilenameState;
} /* End FM_GetFilenameState */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand All @@ -257,7 +257,7 @@ uint32 FM_VerifyNameValid(char *Name, uint32 BufferSize, uint32 EventID, const c
}

return FilenameState;
} /* End FM_VerifyNameValid */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -361,7 +361,7 @@ bool FM_VerifyFileState(FM_File_States State, char *Filename, uint32 BufferSize,
}

return Result;
} /* End FM_VerifyFileState */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand All @@ -372,7 +372,7 @@ bool FM_VerifyFileState(FM_File_States State, char *Filename, uint32 BufferSize,
bool FM_VerifyFileClosed(char *Filename, uint32 BufferSize, uint32 EventID, const char *CmdText)
{
return FM_VerifyFileState(FM_FILE_CLOSED, Filename, BufferSize, EventID, CmdText);
} /* End FM_VerifyFileClosed */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand All @@ -383,7 +383,7 @@ bool FM_VerifyFileClosed(char *Filename, uint32 BufferSize, uint32 EventID, cons
bool FM_VerifyFileExists(char *Filename, uint32 BufferSize, uint32 EventID, const char *CmdText)
{
return FM_VerifyFileState(FM_FILE_EXISTS, Filename, BufferSize, EventID, CmdText);
} /* End FM_VerifyFileExists */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand All @@ -394,7 +394,7 @@ bool FM_VerifyFileExists(char *Filename, uint32 BufferSize, uint32 EventID, cons
bool FM_VerifyFileNoExist(char *Filename, uint32 BufferSize, uint32 EventID, const char *CmdText)
{
return FM_VerifyFileState(FM_FILE_NOEXIST, Filename, BufferSize, EventID, CmdText);
} /* End FM_VerifyFileNoExist */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand All @@ -405,7 +405,7 @@ bool FM_VerifyFileNoExist(char *Filename, uint32 BufferSize, uint32 EventID, con
bool FM_VerifyFileNotOpen(char *Filename, uint32 BufferSize, uint32 EventID, const char *CmdText)
{
return FM_VerifyFileState(FM_FILE_NOTOPEN, Filename, BufferSize, EventID, CmdText);
} /* End FM_VerifyFileNotOpen */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand All @@ -416,7 +416,7 @@ bool FM_VerifyFileNotOpen(char *Filename, uint32 BufferSize, uint32 EventID, con
bool FM_VerifyDirExists(char *Directory, uint32 BufferSize, uint32 EventID, const char *CmdText)
{
return FM_VerifyFileState(FM_DIR_EXISTS, Directory, BufferSize, EventID, CmdText);
} /* End FM_VerifyDirExists */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand All @@ -427,7 +427,7 @@ bool FM_VerifyDirExists(char *Directory, uint32 BufferSize, uint32 EventID, cons
bool FM_VerifyDirNoExist(char *Name, uint32 BufferSize, uint32 EventID, const char *CmdText)
{
return FM_VerifyFileState(FM_DIR_NOEXIST, Name, BufferSize, EventID, CmdText);
} /* End FM_VerifyDirNoExist */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -477,7 +477,7 @@ bool FM_VerifyChildTask(uint32 EventID, const char *CmdText)
}

return Result;
} /* End FM_VerifyChildTask */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -506,7 +506,7 @@ void FM_InvokeChildTask(void)
/* Signal child task to call command handler */
OS_CountSemGive(FM_GlobalData.ChildSemaphore);
}
} /* End of FM_InvokeChildTask */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -538,7 +538,7 @@ void FM_AppendPathSep(char *Directory, uint32 BufferSize)
strcat(Directory, "/");
}
}
} /* End of FM_AppendPathSep */
}

/************************/
/* End of File Comment */
Expand Down
Loading

0 comments on commit 79bac48

Please sign in to comment.