Skip to content

Commit

Permalink
build under c89
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Cook committed Aug 29, 2007
1 parent 919e000 commit 4c99feb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Imager.xs
Original file line number Diff line number Diff line change
Expand Up @@ -2976,10 +2976,12 @@ void
i_get_anonymous_color_histo(im, maxc = 0x40000000)
Imager::ImgRaw im
int maxc
PPCODE:
PREINIT:
int i;
unsigned int * col_usage = NULL;
int col_cnt = i_get_anonymous_color_histo(im, &col_usage, maxc);
int col_cnt;
PPCODE:
col_cnt = i_get_anonymous_color_histo(im, &col_usage, maxc);
EXTEND(SP, col_cnt);
for (i = 0; i < col_cnt; i++) {
PUSHs(sv_2mortal(newSViv( col_usage[i])));
Expand Down

0 comments on commit 4c99feb

Please sign in to comment.