Fix continuation-line parsing in run-test-gdb.sh script
g0dil [Tue, 10 Jul 2007 20:47:10 +0000 (20:47 +0000)]
Add c-backslash-column variable to senf-c-style

git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@298 270642c3-0616-0410-b53a-bc976706d245

project.el
run-test-gdb.sh

index fa52c6d..7f83abe 100644 (file)
@@ -2,11 +2,12 @@
 
  (defconst senf-c-style
   '((c-basic-offset              . 4)
-    (c-cleanup-list             . (empty-defun-braces 
-                                   defun-close-semi 
-                                   list-close-comma 
-                                   scope-operator 
-                                   compact-empty-funcall))
+    (c-backslash-column          . 98)
+    (c-cleanup-list              . (empty-defun-braces 
+                                   defun-close-semi 
+                                   list-close-comma 
+                                   scope-operator 
+                                   compact-empty-funcall))
     (c-hanging-braces-alist      . ((namespace-open after)
                                     (namespace-close before after)
                                     (brace-list-open)
index 7572cc8..3cd2bd1 100755 (executable)
@@ -61,7 +61,7 @@ gdb -batch -x .run-test-gdb.cmd ./.test.bin 2>/dev/null | perl -e '
     elsif ($mode==2) {
       if (/^(#?[0-9]| )/) {
         push @l,$_ if /^#/;
-        $l[$#l] .= $_ if /^ /;
+        $l[$#l] .= $_ if @l && /^ /;
       } else {
         $mode=0;
         if (/: fatal error in /) {