summaryrefslogtreecommitdiff
path: root/frontends/amiga/font_bullet.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-07-08 19:17:42 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2016-07-08 19:17:42 +0100
commit796974521786d65f1117cf22c23bb1592a27b6f0 (patch)
treed06a42a1565d6b0be0010a0f504730785ba08468 /frontends/amiga/font_bullet.c
parent59b29930d7c89c53f85d4536bb3657b1c0bd2736 (diff)
downloadnetsurf-796974521786d65f1117cf22c23bb1592a27b6f0.tar.gz
netsurf-796974521786d65f1117cf22c23bb1592a27b6f0.tar.bz2
restrict some more vars
Diffstat (limited to 'frontends/amiga/font_bullet.c')
-rw-r--r--frontends/amiga/font_bullet.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/frontends/amiga/font_bullet.c b/frontends/amiga/font_bullet.c
index 7220cb00a..5542ed9f0 100644
--- a/frontends/amiga/font_bullet.c
+++ b/frontends/amiga/font_bullet.c
@@ -727,11 +727,11 @@ static const uint16 *ami_font_translate_smallcaps(uint16 *utf16char)
static ULONG amiga_nsfont_text(struct RastPort *rp, const char *string, ULONG length,
const plot_font_style_t *fstyle, ULONG dx, ULONG dy, bool aa)
{
- uint16 *utf16 = NULL, *outf16 = NULL;
- uint16 *utf16charsc = 0, *utf16nextsc = 0;
- uint16 *utf16next = 0;
+ uint16 *restrict utf16 = NULL, *restrict outf16 = NULL;
+ uint16 *restrict utf16charsc = 0, *restrict utf16nextsc = 0;
+ uint16 *restrict utf16next = 0;
int utf16charlen;
- struct OutlineFont *ofont, *ufont = NULL;
+ struct OutlineFont *restrict ofont, *restrict ufont = NULL;
uint32 x=0;
int32 tempx = 0;
ULONG emwidth = (ULONG)NSA_FONT_EMWIDTH(fstyle->size);
@@ -792,11 +792,11 @@ static ULONG amiga_nsfont_text(struct RastPort *rp, const char *string, ULONG le
static inline ULONG ami_font_unicode_width(const char *string, ULONG length,
const plot_font_style_t *fstyle, ULONG dx, ULONG dy, bool aa)
{
- uint16 *utf16 = NULL, *outf16 = NULL;
- uint16 *utf16charsc = 0, *utf16nextsc = 0;
- uint16 *utf16next = 0;
+ uint16 *restrict utf16 = NULL, *restrict outf16 = NULL;
+ uint16 *restrict utf16charsc = 0, *restrict utf16nextsc = 0;
+ uint16 *restrict utf16next = 0;
int utf16charlen;
- struct OutlineFont *ofont, *ufont = NULL;
+ struct OutlineFont *restrict ofont, *restrict ufont = NULL;
uint32 x=0;
int32 tempx = 0;
ULONG emwidth = (ULONG)NSA_FONT_EMWIDTH(fstyle->size);