]> git.draconx.ca Git - cdecl99.git/blobdiff - src/execute.gperf
Port to use getline.h from dxcommon.
[cdecl99.git] / src / execute.gperf
index bf9a080748764b886117152b01fbaa9cb36c1c8d..51443ba0b31b46f10be9a395b75f7d2585821f8f 100644 (file)
@@ -1,6 +1,6 @@
 %{
 /*
- * Copyright © 2021 Nick Bowler
+ * Copyright © 2021, 2023-2024 Nick Bowler
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -19,7 +19,7 @@
 #include <config.h>
 #include <stdio.h>
 #include <string.h>
-#include <stdint.h>
+#include <inttypes.h>
 #include <assert.h>
 
 #include "cdecl99.h"
@@ -72,7 +72,7 @@ static int run_cmd_help(void)
                int w;
 
                w = printf("  %s", stringpool+c->name);
-               if (w < 0 || w > 13) {
+               if (w <= 0 || w > 13) {
                        putchar('\n');
                        w = 0;
                }