From 796974521786d65f1117cf22c23bb1592a27b6f0 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Fri, 8 Jul 2016 19:17:42 +0100 Subject: restrict some more vars --- frontends/amiga/font_bullet.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'frontends/amiga') 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); -- cgit v1.2.3