# HG changeset patch # User Edouard Tisserant # Date 1723756816 -7200 # Node ID f01bd9a40554d7540ec8c51fc4896260a5a1f4bf # Parent d5edde0c145ba1dde2e7d1623aad2fdbfcbeb0c2 C runtime: cosmetic changes diff -r d5edde0c145b -r f01bd9a40554 .gitignore --- a/.gitignore Tue Jun 04 14:09:16 2024 +0200 +++ b/.gitignore Thu Aug 15 23:20:16 2024 +0200 @@ -14,4 +14,6 @@ doc/locale/** C_runtime/**/*.d -C_runtime/**/*.o \ No newline at end of file +C_runtime/**/*.o +beremiz_runtime +**/tmp/** diff -r d5edde0c145b -r f01bd9a40554 C_runtime/PLCObject.cpp --- a/C_runtime/PLCObject.cpp Tue Jun 04 14:09:16 2024 +0200 +++ b/C_runtime/PLCObject.cpp Thu Aug 15 23:20:16 2024 +0200 @@ -344,6 +344,9 @@ uint32_t PLCObject::LoadPLC(void) { + + // TODO use PLCLibMutex + // Load the last transferred PLC md5 hex digest std::string md5sum; try { diff -r d5edde0c145b -r f01bd9a40554 C_runtime/PLCObject.hpp --- a/C_runtime/PLCObject.hpp Tue Jun 04 14:09:16 2024 +0200 +++ b/C_runtime/PLCObject.hpp Thu Aug 15 23:20:16 2024 +0200 @@ -71,7 +71,6 @@ uint32_t SetTraceVariablesList(const list_trace_order_1_t * orders, int32_t * debugtoken); uint32_t StartPLC(void); uint32_t StopPLC(bool * success); - uint32_t AutoLoad(); private: // A map of all the blobs @@ -109,6 +108,7 @@ // Trace double buffer std::vector m_traces; + uint32_t AutoLoad(); uint32_t BlobAsFile(const binary_t * BlobID, std::filesystem::path filename); uint32_t LoadPLC(void); uint32_t UnLoadPLC(void);