comparison lib/check-version.c @ 6942:9e87d8474fb1

* lib/argp-pv.c: Remove a doubled word in a comment. * lib/check-version.c (check_version): Likewise. * lib/javacomp.c (compile_java_class): Likewise. * m4/glob.m4: Likewise.
author Jim Meyering <jim@meyering.net>
date Sun, 09 Jul 2006 10:18:17 +0000
parents 96c32553b4c6
children a88f85e4728f
comparison
equal deleted inserted replaced
6941:a3b4e6e1ae6a 6942:9e87d8474fb1
1 /* check-version.h --- Check version string compatibility. 1 /* check-version.h --- Check version string compatibility.
2 Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free 2 Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free
3 Software Foundation, Inc. 3 Software Foundation, Inc.
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option) 7 the Free Software Foundation; either version 2, or (at your option)
28 #include <strverscmp.h> 28 #include <strverscmp.h>
29 29
30 /* Get specification. */ 30 /* Get specification. */
31 #include "check-version.h" 31 #include "check-version.h"
32 32
33 /* Check that the the version of the library (i.e., the CPP symbol 33 /* Check that the version of the library (i.e., the CPP symbol VERSION)
34 * VERSION) is at minimum the requested one in REQ_VERSION (typically 34 * is at minimum the requested one in REQ_VERSION (typically found in
35 * found in a header file) and return the version string. Return NULL 35 * a header file) and return the version string. Return NULL if the
36 * if the condition is not satisfied. If a NULL is passed to this 36 * condition is not satisfied. If a NULL is passed to this function,
37 * function, no check is done, but the version string is simply 37 * no check is done, but the version string is simply returned.
38 * returned.
39 */ 38 */
40 const char * 39 const char *
41 check_version (const char *req_version) 40 check_version (const char *req_version)
42 { 41 {
43 if (!req_version || strverscmp (req_version, VERSION) <= 0) 42 if (!req_version || strverscmp (req_version, VERSION) <= 0)