mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-18 16:25:05 +08:00
nasm.c: Tabs to spaces in define_macros_early
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
d59b2602b3
commit
cdaae1a8e3
46
nasm.c
46
nasm.c
@ -216,42 +216,42 @@ static void define_macros_early(void)
|
||||
|
||||
lt_p = localtime(&official_compile_time);
|
||||
if (lt_p) {
|
||||
lt = *lt_p;
|
||||
lt = *lt_p;
|
||||
|
||||
strftime(temp, sizeof temp, "__DATE__=\"%Y-%m-%d\"", <);
|
||||
preproc->pre_define(temp);
|
||||
strftime(temp, sizeof temp, "__DATE_NUM__=%Y%m%d", <);
|
||||
preproc->pre_define(temp);
|
||||
strftime(temp, sizeof temp, "__TIME__=\"%H:%M:%S\"", <);
|
||||
preproc->pre_define(temp);
|
||||
strftime(temp, sizeof temp, "__TIME_NUM__=%H%M%S", <);
|
||||
preproc->pre_define(temp);
|
||||
strftime(temp, sizeof temp, "__DATE__=\"%Y-%m-%d\"", <);
|
||||
preproc->pre_define(temp);
|
||||
strftime(temp, sizeof temp, "__DATE_NUM__=%Y%m%d", <);
|
||||
preproc->pre_define(temp);
|
||||
strftime(temp, sizeof temp, "__TIME__=\"%H:%M:%S\"", <);
|
||||
preproc->pre_define(temp);
|
||||
strftime(temp, sizeof temp, "__TIME_NUM__=%H%M%S", <);
|
||||
preproc->pre_define(temp);
|
||||
}
|
||||
|
||||
gm_p = gmtime(&official_compile_time);
|
||||
if (gm_p) {
|
||||
gm = *gm_p;
|
||||
gm = *gm_p;
|
||||
|
||||
strftime(temp, sizeof temp, "__UTC_DATE__=\"%Y-%m-%d\"", &gm);
|
||||
preproc->pre_define(temp);
|
||||
strftime(temp, sizeof temp, "__UTC_DATE_NUM__=%Y%m%d", &gm);
|
||||
preproc->pre_define(temp);
|
||||
strftime(temp, sizeof temp, "__UTC_TIME__=\"%H:%M:%S\"", &gm);
|
||||
preproc->pre_define(temp);
|
||||
strftime(temp, sizeof temp, "__UTC_TIME_NUM__=%H%M%S", &gm);
|
||||
preproc->pre_define(temp);
|
||||
strftime(temp, sizeof temp, "__UTC_DATE__=\"%Y-%m-%d\"", &gm);
|
||||
preproc->pre_define(temp);
|
||||
strftime(temp, sizeof temp, "__UTC_DATE_NUM__=%Y%m%d", &gm);
|
||||
preproc->pre_define(temp);
|
||||
strftime(temp, sizeof temp, "__UTC_TIME__=\"%H:%M:%S\"", &gm);
|
||||
preproc->pre_define(temp);
|
||||
strftime(temp, sizeof temp, "__UTC_TIME_NUM__=%H%M%S", &gm);
|
||||
preproc->pre_define(temp);
|
||||
}
|
||||
|
||||
if (gm_p)
|
||||
posix_time = posix_mktime(&gm);
|
||||
posix_time = posix_mktime(&gm);
|
||||
else if (lt_p)
|
||||
posix_time = posix_mktime(<);
|
||||
posix_time = posix_mktime(<);
|
||||
else
|
||||
posix_time = 0;
|
||||
posix_time = 0;
|
||||
|
||||
if (posix_time) {
|
||||
snprintf(temp, sizeof temp, "__POSIX_TIME__=%"PRId64, posix_time);
|
||||
preproc->pre_define(temp);
|
||||
snprintf(temp, sizeof temp, "__POSIX_TIME__=%"PRId64, posix_time);
|
||||
preproc->pre_define(temp);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user