mirror of
https://github.com/chhylp123/hifiasm.git
synced 2026-09-30 13:48:12 +08:00
r175: start versioning
This commit is contained in:
+1
-2
@@ -5,7 +5,6 @@
|
||||
#include "ketopt.h"
|
||||
#include <sys/time.h>
|
||||
|
||||
#define VERSION "0.3.0"
|
||||
#define DEFAULT_OUTPUT "hifiasm.asm"
|
||||
|
||||
hifiasm_opt_t asm_opt;
|
||||
@@ -309,7 +308,7 @@ int CommandLine_process(int argc, char *argv[], hifiasm_opt_t* asm_opt)
|
||||
}
|
||||
else if (c == 'v')
|
||||
{
|
||||
fprintf(stderr, "[Version] %s\n", VERSION);
|
||||
puts(HA_VERSION);
|
||||
return 0;
|
||||
}
|
||||
else if (c == 'f') asm_opt->bf_shift = atoi(opt.arg);
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
#define HA_VERSION "0.3.0-dirty-r175"
|
||||
|
||||
#define VERBOSE 0
|
||||
#define VERBOSE_GFA 0
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ int main(int argc, char *argv[])
|
||||
ha_ft_destroy(ha_flt_tab);
|
||||
destory_All_reads(&R_INF);
|
||||
destory_opt(&asm_opt);
|
||||
fprintf(stderr, "[M::%s] Version: %s\n", __func__, "dummy");
|
||||
fprintf(stderr, "[M::%s] Version: %s\n", __func__, HA_VERSION);
|
||||
fprintf(stderr, "[M::%s] CMD:", __func__);
|
||||
for (i = 0; i < argc; ++i)
|
||||
fprintf(stderr, " %s", argv[i]);
|
||||
|
||||
Reference in New Issue
Block a user