Patch #2812 2009-08-14 08:58

ntfreak

compilergcc and debuggergdb svn prop cleanup
Download
2812-compilergcc_an.patch (321.6 KB)
Category
Plugin::Refinement
Status
Accepted
Close date
2009-11-21 16:11
Assigned to
biplab
Property changes on: src\plugins\compilergcc\compiler_defs.cpp
___________________________________________________________________
Added: svn:eol-style
   + native

Index: src/plugins/compilergcc/compiler_defs.h
===================================================================
--- src/plugins/compilergcc/compiler_defs.h    (revision 5730)
+++ src/plugins/compilergcc/compiler_defs.h    (working copy)
@@ -1,63 +1,63 @@
-/*
- * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
- * http://www.gnu.org/licenses/gpl-3.0.html
- */
-
-#ifndef COMPILER_DEFS_H
-#define COMPILER_DEFS_H
-
-#include <wx/string.h>
-#include <wx/list.h>    // WX_DECLARE_LIST
-
-class cbProject;
-class ProjectBuildTarget;
-
-struct CompilerCommand
-{
-    CompilerCommand(const wxString& cmd, const wxString& msg, cbProject* prj, ProjectBuildTarget* tgt, bool is_run = false)
-        : command(cmd), message(msg), project(prj), target(tgt), isRun(is_run), mustWait(false), isLink(false)
-    {}
-    CompilerCommand(const CompilerCommand& rhs)
-        : command(rhs.command), message(rhs.message), project(rhs.project), target(rhs.target), isRun(rhs.isRun), mustWait(rhs.mustWait), isLink(rhs.isLink)
-    {}
-    wxString command;
-    wxString message;
-    wxString dir;
-    cbProject* project;
-    ProjectBuildTarget* target;
-    bool isRun; ///< if it's a command to run the target.
+/*
+ * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ */
+
+#ifndef COMPILER_DEFS_H
+#define COMPILER_DEFS_H
+
+#include <wx/string.h>
+#include <wx/list.h>    // WX_DECLARE_LIST
+
+class cbProject;
+class ProjectBuildTarget;
+
+struct CompilerCommand
+{
+    CompilerCommand(const wxString& cmd, const wxString& msg, cbProject* prj, ProjectBuildTarget* tgt, bool is_run = false)
+        : command(cmd), message(msg), project(prj), target(tgt), isRun(is_run), mustWait(false), isLink(false)
+    {}
+    CompilerCommand(const CompilerCommand& rhs)
+        : command(rhs.command), message(rhs.message), project(rhs.project), target(rhs.target), isRun(rhs.isRun), mustWait(rhs.mustWait), isLink(rhs.isLink)
+    {}
+    wxString command;
+    wxString message;
+    wxString dir;
+    cbProject* project;
+    ProjectBuildTarget* target;
+    bool isRun; ///< if it's a command to run the target.
     bool mustWait; ///< wait for all previous commands to finish (for parallel builds).
-    bool isLink; ///< wait for all previous commands to finish (for parallel builds) - only for linking stage.
-};
-WX_DECLARE_LIST(CompilerCommand, CompilerCommands);
-
-class CompilerQueue
-{
-    public:
-        CompilerQueue();
-        ~CompilerQueue();
-
-        /// Clear the queue.
-        void Clear();
-        /// Get the commands count.
-        size_t GetCount() const;
-        bool LastCommandWasRun() const;
-        /// Queue a command.
-        void Add(CompilerCommand* cmd);
-        /// Queue all commands from another CompilerQueue.
-        void Add(CompilerQueue* queue);
-        /** Get the next command in queue.
-          * If @c from is NULL, returns the top command.
-          * If @c from is not NULL, the command following @c from is
-          * returned.
-          * if @c remove is true (default), the command is removed from the list.
-          * This means that the caller must delete it.
-          */
-        CompilerCommand* Next();
-        CompilerCommand* Peek();
-    protected:
-        CompilerCommands m_Commands;
-        bool m_LastWasRun;
-};
-
-#endif // COMPILER_DEFS_H
+    bool isLink; ///< wait for all previous commands to finish (for parallel builds) - only for linking stage.
+};
+WX_DECLARE_LIST(CompilerCommand, CompilerCommands);
+
+class CompilerQueue
+{
+    public:
+        CompilerQueue();
+        ~CompilerQueue();
+
+        /// Clear the queue.
+        void Clear();
+        /// Get the commands count.
+        size_t GetCount() const;
+        bool LastCommandWasRun() const;
+        /// Queue a command.
+        void Add(CompilerCommand* cmd);
+        /// Queue all commands from another CompilerQueue.
+        void Add(CompilerQueue* queue);
+        /** Get the next command in queue.
+          * If @c from is NULL, returns the top command.
+          * If @c from is not NULL, the command following @c from is
+          * returned.
+          * if @c remove is true (default), the command is removed from the list.
+          * This means that the caller must delete it.
+          */
+        CompilerCommand* Next();
+        CompilerCommand* Peek();
+    protected:
+        CompilerCommands m_Commands;
+        bool m_LastWasRun;
+};
+
+#endif // COMPILER_DEFS_H

Property changes on: src\plugins\compilergcc\compiler_defs.h
___________________________________________________________________
Added: svn:eol-style
   + native

Index: src/plugins/compilergcc/compilerCYGWIN.cpp
=========
download for full patch...
mortenmacfly 2009-08-18 08:43

What exactly does this path do, please?!

ntfreak 2009-08-18 08:52

It cleans up the inconsistent EOL and svn props in both compilergcc and debuggergdb dirs.

biplab 2009-11-21 16:11

Thanks for your patch.