Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Code Alignment Tool
oBFusCATed:
To make it easier for use/find, you can add it to the main menu edit -> aligner or plugins -> aligner.
Some dev, should point the correct place...
Jenna:
I attach a patch that contains a linux-project-file, that's created to be used from inside contrib-plugins subfolder of trunk.
I removed OnAttach, OnRelease, m_menu_root and some virtual declarations, because we do not need them, and I also removed the this-pointers, because they are also not needed and I really don't like them.
It's not a svn patch and therefore has to be used with patch -p1 < path/to/the/patch/aligner_linux_20091007-1.patch from inside the ALigner sub-directory.
[attachment deleted by admin]
MortenMacFly:
--- Quote from: jens on October 07, 2009, 11:22:52 pm ---I attach a patch that contains a linux-project-file, that's created to be used from inside contrib-plugins subfolder of trunk.
--- End quote ---
I am using the patch tool.
First trial:
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nrub Aligner.orig/Aligner.cpp Aligner.work/Aligner.cpp
|--- Aligner.orig/Aligner.cpp 2009-10-07 21:44:26.000000000 +0200
|+++ Aligner.work/Aligner.cpp 2009-10-07 22:57:27.000000000 +0200
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
4 out of 4 hunks ignored
can't find file to patch at input line 72
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nrub Aligner.orig/Aligner.h Aligner.work/Aligner.h
|--- Aligner.orig/Aligner.h 2009-10-07 21:41:50.000000000 +0200
|+++ Aligner.work/Aligner.h 2009-10-07 22:57:07.000000000 +0200
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
patching file "Aligner.orig/Aligner-unix.cbp"
...then after cleaning up the patch (removing "Aligner.orig/" and "Aligner.work/"):
patching file "Aligner.cpp"
Hunk #1 FAILED at 29.
Hunk #2 succeeded at 58 (offset 12 lines).
Hunk #4 succeeded at 129 (offset 12 lines).
1 out of 4 hunks FAILED -- saving rejects to file "Aligner.cpp.rej"
patching file "Aligner.h"
Hunk #1 FAILED at 22.
Hunk #2 succeeded at 91 (offset 53 lines).
1 out of 2 hunks FAILED -- saving rejects to file "Aligner.h.rej"
patching file "Aligner-unix.cbp"
...what are the base sources you used? The file "plugin_aligner_windows.7z" attached in this thread?
Jenna:
The second attachement (the one in reply #9).
You have to be in the same directory where the sources are and use patch with -p1.
Works fine here.
Neither the 1.1-sources nor my patch include the windows project-file.
danselmi:
A friend of mine changed the Aligner plugin:
* don't add a newline at the end of a "new aligned" block
* possibility to add other chars/strings to align to
* store/load the most used chars/strings in the config.
[attachment deleted by admin]
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version