aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mktags.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/mktags.c b/scripts/mktags.c
index e6fceeab..3604260c 100644
--- a/scripts/mktags.c
+++ b/scripts/mktags.c
@@ -47,8 +47,10 @@ int main(int argc, char *argv[])
if (!isalpha(*s) && !isdigit(*s)) *s = '_';
s++;
}
- printf("% *d\n",
- 30-printf("#define %s_%.*s", tag, (int)(s-start), start), ++idx);
+ printf("#define %s_%*.*s %d\n", tag, -40, (int)(s-start), start, idx);
+ printf("#define _%s_%*.*s (1%s<<%d)\n", tag, -39, (int)(s-start), start,
+ idx>31 ? "LL": "", idx);
+ idx++;
}
free(line);
}