]> diplodocus.org Git - nmh/blobdiff - sbr/getline.c
new.c: Order two return statements to match comment.
[nmh] / sbr / getline.c
index 7e3e7978b3a5a6fd333b139881e373c60ece5a02..d4da460d6105088597abf2731eb084b5b798f85d 100644 (file)
@@ -1,5 +1,4 @@
-/*
- * getline.c -- replacement getline() implementation
+/* getline.c -- replacement getline() implementation
  *
  * This code is Copyright (c) 2016, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -10,13 +9,8 @@
 #include <stdio.h>
 #include <limits.h>
 #include <errno.h>
-#ifdef HAVE_STDBOOL_H
-# include <stdbool.h>
-#else  /* ! HAVE_STDBOOL_H */
-# define bool int
-# define true 1
-# define false 0
-#endif /* ! HAVE_STDBOOL_H */
+
+#include <h/mh.h>
 
 /* Largest possible size of buffer that allows SSIZE_MAX to be returned
  * to indicate SSIZE_MAX - 1 characters read before the '\n'.  The