]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - command_util.sh
command_util.sh: Make sure the "handler" pointer is NULL if a line handler exists.
[paraslash.git] / command_util.sh
index 25fc0884f009afa15ebded0bbf813475afea1d1a..ba5e99e2fcabb719ff0219f1ea65b2b4ded841a9 100755 (executable)
@@ -8,6 +8,7 @@ dump_array_member()
        if test $line_handler -eq 0; then
                echo ".handler = com_$name_txt,"
        else
+               echo ".handler = NULL,"
                echo ".line_handler = com_$name_txt,"
        fi
        if test -n "$perms_txt"; then
@@ -37,13 +38,11 @@ read_header()
                        ;;
                FN:)
                        file_name="$value"
+                       array_name=${value%command_list}cmds
                        ;;
                AT:)
                        array_type="$value"
                        ;;
-               AN:)
-                       array_name="$value"
-                       ;;
                IN:)
                        for i in $value; do
                                includes="$includes
@@ -242,10 +241,10 @@ read_header
 arg="$1"
 shift
 case "$arg" in
-       "c_file")
+       "c")
                com_c_file
                ;;
-       "header")
+       "h")
                com_header
                ;;
        "man")