summaryrefslogtreecommitdiff
path: root/frontends/amiga/font_bullet.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-07-03 18:48:46 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2016-07-03 18:48:46 +0100
commitea00b378744f98e38b0c00e97a5c78d9d76d6dd3 (patch)
tree7e09d5a276753fa9acea863e97d2e06406c82e31 /frontends/amiga/font_bullet.c
parent61979923c146b4456d24e794a44c08adc334cff6 (diff)
downloadnetsurf-ea00b378744f98e38b0c00e97a5c78d9d76d6dd3.tar.gz
netsurf-ea00b378744f98e38b0c00e97a5c78d9d76d6dd3.tar.bz2
Attempt to help gcc out a little
Diffstat (limited to 'frontends/amiga/font_bullet.c')
-rw-r--r--frontends/amiga/font_bullet.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/frontends/amiga/font_bullet.c b/frontends/amiga/font_bullet.c
index b0c2999a1..7220cb00a 100644
--- a/frontends/amiga/font_bullet.c
+++ b/frontends/amiga/font_bullet.c
@@ -136,9 +136,9 @@ static lwc_string *glypharray[0xffff + 1];
static struct List ami_diskfontlib_list;
static inline int32 ami_font_plot_glyph(struct OutlineFont *ofont, struct RastPort *rp,
- uint16 *char1, uint16 *char2, uint32 x, uint32 y, uint32 emwidth, bool aa);
+ uint16 *restrict char1, uint16 *restrict char2, uint32 x, uint32 y, uint32 emwidth, bool aa);
static inline int32 ami_font_width_glyph(struct OutlineFont *ofont,
- const uint16 *char1, const uint16 *char2, uint32 emwidth);
+ const uint16 *restrict char1, const uint16 *restrict char2, uint32 emwidth);
static struct OutlineFont *ami_open_outline_font(const plot_font_style_t *fstyle,
const uint16 *codepoint);
static inline ULONG ami_font_unicode_width(const char *string, ULONG length,
@@ -530,7 +530,8 @@ static struct OutlineFont *ami_open_outline_font(const plot_font_style_t *fstyle
}
static inline int32 ami_font_plot_glyph(struct OutlineFont *ofont, struct RastPort *rp,
- uint16 *char1, uint16 *char2, uint32 x, uint32 y, uint32 emwidth, bool aa)
+ uint16 *restrict char1, uint16 *restrict char2, uint32 x, uint32 y,
+ uint32 emwidth, bool aa)
{
struct GlyphMap *glyph;
UBYTE *glyphbm;
@@ -637,7 +638,7 @@ static inline int32 ami_font_plot_glyph(struct OutlineFont *ofont, struct RastPo
}
static inline int32 ami_font_width_glyph(struct OutlineFont *ofont,
- const uint16 *char1, const uint16 *char2, uint32 emwidth)
+ const uint16 *restrict char1, const uint16 *restrict char2, uint32 emwidth)
{
int32 char_advance = 0;
FIXED kern = 0;