links

lynx-like text mode web browser
git clone anongit@rnpnr.xyz:links.git
Log | Files | Refs | Feed | README | LICENSE

Commit: 357169bccec7d0ef706a3e173c991d86198fd361
Parent: b9b16fd31babca2297405acd8703da0cab5127a6
Author: opask
Date:   Tue, 24 Jul 2018 19:31:24 -0600

remove unused code (__DECC_VER)

Diffstat:
Mdefault.c | 3---
Mstring.c | 6------
2 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/default.c b/default.c @@ -183,9 +183,6 @@ static unsigned char *create_config_string(struct option *options) int l = 0; int i; add_to_str(&s, &l, cast_uchar "# This file is automatically generated by Links -- please do not edit."); -#if defined(__DECC_VER) - do_not_optimize_here(&options); -#endif for (i = 0; options[i].p; i++) { if (options[i].wr_cfg) options[i].wr_cfg(&options[i], &s, &l); diff --git a/string.c b/string.c @@ -12,9 +12,6 @@ int snprint(unsigned char *s, int n, my_uintptr_t num) while (n-- > 1 && q) { *(s++) = (unsigned char)(num / q + '0'); num %= q; -#ifdef __DECC_VER - do_not_optimize_here(&q); /* compiler bug */ -#endif q /= 10; } *s = 0; @@ -29,9 +26,6 @@ int snzprint(unsigned char *s, int n, off_t num) while (n-- > 1 && q) { *(s++) = (unsigned char)(num / q + '0'); num %= q; -#ifdef __DECC_VER - do_not_optimize_here(&q); /* compiler bug */ -#endif q /= 10; } *s = 0;