Skip to content

Commit

Permalink
定数周りの調整
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukumijima committed Aug 25, 2023
1 parent 43c5b43 commit 0dd6aca
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
6 changes: 6 additions & 0 deletions aribb25/config.h.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#ifndef CONFIG_H
#define CONFIG_H

#define ARIBB1_MAJOR_VERSION @ARIBB1_MAJOR_VERSION@
#define ARIBB1_MINOR_VERSION @ARIBB1_MINOR_VERSION@
#define ARIBB1_PATCH_VERSION @ARIBB1_PATCH_VERSION@
#define ARIBB1_VERSION_NUMBER "@ARIBB1_VERSION_NUMBER@"
#define ARIBB1_VERSION_STRING "@ARIBB1_VERSION_STRING@"

#define ARIBB25_MAJOR_VERSION @ARIBB25_MAJOR_VERSION@
#define ARIBB25_MINOR_VERSION @ARIBB25_MINOR_VERSION@
#define ARIBB25_PATCH_VERSION @ARIBB25_PATCH_VERSION@
Expand Down
11 changes: 5 additions & 6 deletions aribb25/td.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#define VERSION_STRING "0.2.8"

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include <math.h>
#include <config.h>

#include <fcntl.h>
#include <sys/stat.h>
Expand Down Expand Up @@ -100,19 +99,19 @@ static void show_usage()
#ifdef ENABLE_ARIB_STREAM_TEST
// arib-b1-stream-test・arib-b25-stream-test
#ifdef ENABLE_ARIB_STD_B1
_ftprintf(stderr, _T("arib-b1-stream-test - ARIB STD-B1 test program version %s\n"), _T(VERSION_STRING));
_ftprintf(stderr, _T("arib-b1-stream-test - ARIB STD-B1 test program version %s (%s)\n"), _T(ARIBB1_VERSION_STRING), _T(BUILD_GIT_REVISION));
_ftprintf(stderr, _T("usage: arib-b1-stream-test [options] \n"));
#else
_ftprintf(stderr, _T("arib-b25-stream-test - ARIB STD-B25 test program version %s\n"), _T(VERSION_STRING));
_ftprintf(stderr, _T("arib-b25-stream-test - ARIB STD-B25 test program version %s (%s)\n"), _T(ARIBB25_VERSION_STRING), _T(BUILD_GIT_REVISION));
_ftprintf(stderr, _T("usage: arib-b25-stream-test [options] \n"));
#endif
#else
// b1・b25
#ifdef ENABLE_ARIB_STD_B1
_ftprintf(stderr, _T("b1 - ARIB STD-B1 test program version %s\n"), _T(VERSION_STRING));
_ftprintf(stderr, _T("b1 - ARIB STD-B1 test program version %s (%s)\n"), _T(ARIBB1_VERSION_STRING), _T(BUILD_GIT_REVISION));
_ftprintf(stderr, _T("usage: b1 [options] src.m2t dst.m2t [more pair ..]\n"));
#else
_ftprintf(stderr, _T("b25 - ARIB STD-B25 test program version %s\n"), _T(VERSION_STRING));
_ftprintf(stderr, _T("b25 - ARIB STD-B25 test program version %s (%s)\n"), _T(ARIBB25_VERSION_STRING), _T(BUILD_GIT_REVISION));
_ftprintf(stderr, _T("usage: b25 [options] src.m2t dst.m2t [more pair ..]\n"));
#endif
#endif
Expand Down
2 changes: 1 addition & 1 deletion aribb25/version_b1.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const char elf_interp[] __attribute__((section(".interp"))) = ELF_INTERP;

void show_version(void)
{
fprintf(stderr, "libaribb1.so - ARIB STD-B1 shared library version %s (%s)\n", ARIBB25_VERSION_STRING, BUILD_GIT_REVISION);
fprintf(stderr, "libaribb1.so - ARIB STD-B1 shared library version %s (%s)\n", ARIBB1_VERSION_STRING, BUILD_GIT_REVISION);
fprintf(stderr, " built with %s %s on %s\n", BUILD_CC_NAME, BUILD_CC_VERSION, BUILD_OS_NAME);
_exit(0);
}
Expand Down

0 comments on commit 0dd6aca

Please sign in to comment.