comparison src/macfns.c @ 45009:7a00556be3ce

(x_create_bitmap_from_file, x_find_image_file): Update call to openp.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 30 Apr 2002 01:02:42 +0000
parents 01b93e5e53a7
children d68629e2728d
comparison
equal deleted inserted replaced
45008:07245ba4ebcc 45009:7a00556be3ce
537 return id + 1; 537 return id + 1;
538 } 538 }
539 } 539 }
540 540
541 /* Search bitmap-file-path for the file, if appropriate. */ 541 /* Search bitmap-file-path for the file, if appropriate. */
542 fd = openp (Vx_bitmap_file_path, file, "", &found, 0); 542 fd = openp (Vx_bitmap_file_path, file, "", &found, Qnil);
543 if (fd < 0) 543 if (fd < 0)
544 return -1; 544 return -1;
545 /* LoadLibraryEx won't handle special files handled by Emacs handler. */ 545 /* LoadLibraryEx won't handle special files handled by Emacs handler. */
546 if (fd == 0) 546 if (fd == 0)
547 return -1; 547 return -1;
5568 file_found = Qnil; 5568 file_found = Qnil;
5569 search_path = Fcons (Vdata_directory, Vx_bitmap_file_path); 5569 search_path = Fcons (Vdata_directory, Vx_bitmap_file_path);
5570 GCPRO2 (file_found, search_path); 5570 GCPRO2 (file_found, search_path);
5571 5571
5572 /* Try to find FILE in data-directory, then x-bitmap-file-path. */ 5572 /* Try to find FILE in data-directory, then x-bitmap-file-path. */
5573 fd = openp (search_path, file, Qnil, &file_found, 0); 5573 fd = openp (search_path, file, Qnil, &file_found, Qnil);
5574 5574
5575 if (fd < 0) 5575 if (fd < 0)
5576 file_found = Qnil; 5576 file_found = Qnil;
5577 else 5577 else
5578 close (fd); 5578 close (fd);