65749575ab
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
23 lines
1.3 KiB
Diff
23 lines
1.3 KiB
Diff
|
|
--- a/src/persp/dbgperspective/nmv-dbg-perspective.cc 2017-09-20 16:02:08.953676793 +0200
|
|
+++ b/src/persp/dbgperspective/nmv-dbg-perspective.cc 2017-09-20 16:02:36.863981316 +0200
|
|
@@ -5720,7 +5720,7 @@ DBGPerspective::switch_to_source_code ()
|
|
|
|
Glib::RefPtr<Gsv::Buffer> source_buf;
|
|
UString source_path;
|
|
- if ((source_buf = source_editor->get_non_assembly_source_buffer ()) == 0) {
|
|
+ if (!(source_buf = source_editor->get_non_assembly_source_buffer ())) {
|
|
// Woops!
|
|
// We don't have any source code buffer. Let's try hard to get
|
|
// the source code corresponding to the current frame. For that,
|
|
--- a/src/persp/dbgperspective/nmv-dbg-perspective.cc 2017-09-20 15:24:58.771249130 +0200
|
|
+++ b/src/persp/dbgperspective/nmv-dbg-perspective.cc 2017-09-20 15:25:04.202113802 +0200
|
|
@@ -5672,7 +5672,7 @@ DBGPerspective::switch_to_asm (const com
|
|
a_source_editor->clear_decorations ();
|
|
|
|
Glib::RefPtr<Gsv::Buffer> asm_buf;
|
|
- if ((asm_buf = a_source_editor->get_assembly_source_buffer ()) == 0) {
|
|
+ if (!(asm_buf = a_source_editor->get_assembly_source_buffer ())) {
|
|
SourceEditor::setup_buffer_mime_and_lang (asm_buf, "text/x-asm");
|
|
a_source_editor->register_assembly_source_buffer (asm_buf);
|
|
asm_buf = a_source_editor->get_assembly_source_buffer ();
|