file_constants_null.patch

Zachary Scott, 11/20/2012 02:45 PM

Download (704 Bytes)

View differences:

file.c (working copy)
5593 5593
    /* non-blocking lock. used with LOCK_SH or LOCK_EX. see File#flock  */
5594 5594
    rb_define_const(rb_mFConst, "LOCK_NB", INT2FIX(LOCK_NB));
5595 5595

  
5596
    /* Document-const: NULL
5597
     *
5598
     * Name of the null device
5599
     */
5600
    rb_file_const("NULL", rb_obj_freeze(rb_usascii_str_new2(null_device)));
5596
    /* Name of the null device */
5597
    rb_define_const(rb_mFConst, "NULL", rb_obj_freeze(rb_usascii_str_new2(null_device)));
5601 5598

  
5602 5599
    rb_define_method(rb_cFile, "path",  rb_file_path, 0);
5603 5600
    rb_define_method(rb_cFile, "to_path",  rb_file_path, 0);