src/video/sdlgenblit.pl
changeset 2263 900c35d8e8fd
parent 2262 bee005ace1bf
child 2267 c785543d1843
     1.1 --- a/src/video/sdlgenblit.pl	Fri Aug 17 06:21:58 2007 +0000
     1.2 +++ b/src/video/sdlgenblit.pl	Fri Aug 17 06:40:12 2007 +0000
     1.3 @@ -123,7 +123,7 @@
     1.4  sub output_copydefs
     1.5  {
     1.6      print FILE <<__EOF__;
     1.7 -extern SDL_BlitFuncEntry *SDL_GeneratedBlitFuncTable;
     1.8 +extern SDL_BlitFuncEntry SDL_GeneratedBlitFuncTable[];
     1.9  __EOF__
    1.10  }
    1.11  
    1.12 @@ -275,7 +275,7 @@
    1.13      my $blend = shift;
    1.14      my $scale = shift;
    1.15  
    1.16 -    output_copyfuncname("void", $src, $dst, $modulate, $blend, $scale, 1, "\n");
    1.17 +    output_copyfuncname("static void", $src, $dst, $modulate, $blend, $scale, 1, "\n");
    1.18      print FILE <<__EOF__;
    1.19  {
    1.20      const int flags = info->flags;
    1.21 @@ -384,7 +384,7 @@
    1.22  sub output_copyfunctable
    1.23  {
    1.24      print FILE <<__EOF__;
    1.25 -static SDL_BlitFuncEntry _SDL_GeneratedBlitFuncTable[] = {
    1.26 +static SDL_BlitFuncEntry SDL_GeneratedBlitFuncTable[] = {
    1.27  __EOF__
    1.28      for (my $i = 0; $i <= $#src_formats; ++$i) {
    1.29          my $src = $src_formats[$i];
    1.30 @@ -436,8 +436,6 @@
    1.31      { 0, 0, 0, 0, NULL }
    1.32  };
    1.33  
    1.34 -SDL_BlitFuncEntry *SDL_GeneratedBlitFuncTable = _SDL_GeneratedBlitFuncTable;
    1.35 -
    1.36  __EOF__
    1.37  }
    1.38  
    1.39 @@ -469,10 +467,10 @@
    1.40  
    1.41  open_file("SDL_blit_auto.c");
    1.42  output_copyinc();
    1.43 -output_copyfunctable();
    1.44  for (my $i = 0; $i <= $#src_formats; ++$i) {
    1.45      for (my $j = 0; $j <= $#dst_formats; ++$j) {
    1.46          output_copyfunc_c($src_formats[$i], $dst_formats[$j]);
    1.47      }
    1.48  }
    1.49 +output_copyfunctable();
    1.50  close_file("SDL_blit_auto.c");