From 16dae3ea063ae134b8b87ca199575e904dfbb7d4 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 8 Dec 2021 15:52:15 +0100 Subject: Fluid: restructuring and commenting. tl;dr : making Fluid maintainable, no changes in code execution and logic. This is a pretty extensive restructuring of the Fluid source tree. It was neccessary because source and header files were getting much too big to handle. Many source files had no header, and many headers declared functions that were in diffrent source files. Reorganized much of the include statements. Added comments to some of the files. Added Doxygen configuration file for standalone Fluid docs. Tested everything by rebuilding Fluid .fl designs with the resorted version of Fluid. --- fluid/ExternalCodeEditor_UNIX.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'fluid/ExternalCodeEditor_UNIX.h') diff --git a/fluid/ExternalCodeEditor_UNIX.h b/fluid/ExternalCodeEditor_UNIX.h index d366a95c1..186a5b5ec 100644 --- a/fluid/ExternalCodeEditor_UNIX.h +++ b/fluid/ExternalCodeEditor_UNIX.h @@ -7,24 +7,29 @@ #ifndef _EXTCODEEDITOR_H #define _EXTCODEEDITOR_H +#include + #include /* errno */ #include /* strerror() */ - #include /* stat().. */ #include #include +// ---- ExternalCodeEditor declaration + class ExternalCodeEditor { int pid_; time_t file_mtime_; // last modify time of the file (used to determine if file changed) size_t file_size_; // last file size (used to determine if changed) const char *filename_; + protected: void kill_editor(); const char *create_tmpdir(); const char *tmp_filename(); int start_editor(const char *cmd, const char *filename); void set_filename(const char *val); + public: ExternalCodeEditor(); ~ExternalCodeEditor(); -- cgit v1.2.3