Skip to content

Commit b418e4b

Browse files
[3c] Initial conversion
1 parent f80ce47 commit b418e4b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

out/to_ppm.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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

4646
GLOBAL(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
}

0 commit comments

Comments
 (0)