File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 44#define HAVE_PROTOTYPES
55#include <jpeglib.h>
66
7- void put_scanline_someplace (JSAMPROW buffer , int row_stride ) {
7+ void put_scanline_someplace (JSAMPROW buffer : itype ( _Array_ptr < JSAMPLE > ) count ( row_stride ) , int row_stride ) {
88 for (int i = 0 ; i < row_stride ; i ++ )
99 printf ("%3d " , buffer [i ]);
1010 printf ("\n" );
@@ -44,7 +44,7 @@ my_error_exit (j_common_ptr cinfo)
4444
4545
4646GLOBAL (int )
47- read_JPEG_file (char * filename )
47+ read_JPEG_file (_Nt_array_ptr < char > filename )
4848{
4949
5050 /* This struct contains the JPEG decompression parameters and pointers to
@@ -181,7 +181,7 @@ read_JPEG_file (char * filename)
181181}
182182
183183
184- int main (int argc , char * * argv ) {
185- char * file = argv [1 ];
184+ int main (int argc , _Array_ptr < _Nt_array_ptr < char >> argv : count ( argc ) ) {
185+ _Nt_array_ptr < char > file = argv [1 ];
186186 return read_JPEG_file (file );
187187}
You can’t perform that action at this time.
0 commit comments