comparison c-ray-mt.c @ 3:3b748bd65ab9

Makefile for distributed version added
author Merten Sach <msach@mailbox.tu-berlin.de>
date Wed, 28 Sep 2011 16:40:47 +0200
parents b6c9e5f46e98
children
comparison
equal deleted inserted replaced
1:02f9e506a659 2:e58eae6280ee
247 fputs(usage, stderr); 247 fputs(usage, stderr);
248 return EXIT_FAILURE; 248 return EXIT_FAILURE;
249 } 249 }
250 } 250 }
251 251
252 snprintf(DataSet,255,"file: %s\nsize: %dx%d\nrays per pixel: %d\nthreads: %d\n", 252 snprintf(__DataSet,255,"file: %s\nsize: %dx%d\nrays per pixel: %d\nthreads: %d\n",
253 infile, xres, yres, rays_per_pixel, thread_num); 253 infile, xres, yres, rays_per_pixel, thread_num);
254 254
255 if(!(pixels = malloc(xres * yres * sizeof *pixels))) { 255 if(!(pixels = malloc(xres * yres * sizeof *pixels))) {
256 perror("pixel buffer allocation failed"); 256 perror("pixel buffer allocation failed");
257 return EXIT_FAILURE; 257 return EXIT_FAILURE;