OSDN Git Service

Drop version.h header.
authorrelan <relan@users.noreply.github.com>
Mon, 29 Jun 2015 12:32:49 +0000 (15:32 +0300)
committerrelan <relan@users.noreply.github.com>
Wed, 26 Aug 2015 08:50:43 +0000 (11:50 +0300)
Use VERSION define from config.h.

dump/main.c
fsck/main.c
fuse/main.c
label/main.c
libexfat/Makefile.am
libexfat/exfat.h
libexfat/version.h [deleted file]
mkfs/main.c

index 8713f64..b6e0409 100644 (file)
@@ -153,8 +153,7 @@ int main(int argc, char* argv[])
        bool sb_only = false;
        bool used_sectors = false;
 
        bool sb_only = false;
        bool used_sectors = false;
 
-       printf("dumpexfat %u.%u.%u\n",
-                       EXFAT_VERSION_MAJOR, EXFAT_VERSION_MINOR, EXFAT_VERSION_PATCH);
+       printf("dumpexfat %s\n", VERSION);
 
        while ((opt = getopt(argc, argv, "suV")) != -1)
        {
 
        while ((opt = getopt(argc, argv, "suV")) != -1)
        {
index b3709ce..ded76b2 100644 (file)
@@ -140,8 +140,7 @@ int main(int argc, char* argv[])
        const char* spec = NULL;
        struct exfat ef;
 
        const char* spec = NULL;
        struct exfat ef;
 
-       printf("exfatfsck %u.%u.%u\n",
-                       EXFAT_VERSION_MAJOR, EXFAT_VERSION_MINOR, EXFAT_VERSION_PATCH);
+       printf("exfatfsck %s\n", VERSION);
 
        while ((opt = getopt(argc, argv, "V")) != -1)
        {
 
        while ((opt = getopt(argc, argv, "V")) != -1)
        {
index 5370359..030362e 100644 (file)
@@ -480,8 +480,7 @@ int main(int argc, char* argv[])
        struct fuse* fh = NULL;
        int opt;
 
        struct fuse* fh = NULL;
        int opt;
 
-       printf("FUSE exfat %u.%u.%u\n",
-                       EXFAT_VERSION_MAJOR, EXFAT_VERSION_MINOR, EXFAT_VERSION_PATCH);
+       printf("FUSE exfat %s\n", VERSION);
 
        mount_options = strdup(default_options);
        if (mount_options == NULL)
 
        mount_options = strdup(default_options);
        if (mount_options == NULL)
index f2bca13..b219d4e 100644 (file)
@@ -33,8 +33,7 @@ int main(int argc, char* argv[])
        for (pp = argv + 1; *pp; pp++)
                if (strcmp(*pp, "-V") == 0)
                {
        for (pp = argv + 1; *pp; pp++)
                if (strcmp(*pp, "-V") == 0)
                {
-                       printf("exfatlabel %u.%u.%u\n", EXFAT_VERSION_MAJOR,
-                                       EXFAT_VERSION_MINOR, EXFAT_VERSION_PATCH);
+                       printf("exfatlabel %s\n", VERSION);
                        puts("Copyright (C) 2011-2015  Andrew Nayenko");
                        return 0;
                }
                        puts("Copyright (C) 2011-2015  Andrew Nayenko");
                        return 0;
                }
index f59fa34..f9067e9 100644 (file)
@@ -35,5 +35,4 @@ libexfat_a_SOURCES = \
        platform.h \
        time.c \
        utf.c \
        platform.h \
        time.c \
        utf.c \
-       utils.c \
-       version.h
+       utils.c
index a141c67..122ac5b 100644 (file)
@@ -27,7 +27,6 @@
 #include "config.h"
 #include "compiler.h"
 #include "exfatfs.h"
 #include "config.h"
 #include "compiler.h"
 #include "exfatfs.h"
-#include "version.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <time.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <time.h>
diff --git a/libexfat/version.h b/libexfat/version.h
deleted file mode 100644 (file)
index dbfe6db..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
-       version.h (12.06.10)
-       Version constants.
-
-       Free exFAT implementation.
-       Copyright (C) 2010-2015  Andrew Nayenko
-
-       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
-       the Free Software Foundation, either version 2 of the License, or
-       (at your option) any later version.
-
-       This program is distributed in the hope that it will be useful,
-       but WITHOUT ANY WARRANTY; without even the implied warranty of
-       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-       GNU General Public License for more details.
-
-       You should have received a copy of the GNU General Public License along
-       with this program; if not, write to the Free Software Foundation, Inc.,
-       51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-*/
-
-#ifndef VERSION_H_INCLUDED
-#define VERSION_H_INCLUDED
-
-#define EXFAT_VERSION_MAJOR 1
-#define EXFAT_VERSION_MINOR 1
-#define EXFAT_VERSION_PATCH 0
-
-#endif /* ifndef VERSION_H_INCLUDED */
index eee51f1..2ee6da6 100644 (file)
@@ -204,8 +204,7 @@ int main(int argc, char* argv[])
        uint64_t first_sector = 0;
        struct exfat_dev* dev;
 
        uint64_t first_sector = 0;
        struct exfat_dev* dev;
 
-       printf("mkexfatfs %u.%u.%u\n",
-                       EXFAT_VERSION_MAJOR, EXFAT_VERSION_MINOR, EXFAT_VERSION_PATCH);
+       printf("mkexfatfs %s\n", VERSION);
 
        while ((opt = getopt(argc, argv, "i:n:p:s:V")) != -1)
        {
 
        while ((opt = getopt(argc, argv, "i:n:p:s:V")) != -1)
        {