Project

General

Profile

Bug #14354 ยป remove_confusing_doc_comments_for_2_3_branch.patch

aycabta (aycabta .), 01/14/2018 01:38 PM

View differences:

thread_sync.c (working copy)
1258 1258
    rb_define_method(rb_cQueue, "length", rb_queue_length, 0);
1259 1259
    rb_define_method(rb_cQueue, "num_waiting", rb_queue_num_waiting, 0);
1260 1260

  
1261
    rb_define_alias(rb_cQueue, "enq", "push");    /* Alias for #push. */
1262
    rb_define_alias(rb_cQueue, "<<", "push");     /* Alias for #push. */
1263
    rb_define_alias(rb_cQueue, "deq", "pop");     /* Alias for #pop. */
1264
    rb_define_alias(rb_cQueue, "shift", "pop");   /* Alias for #pop. */
1265
    rb_define_alias(rb_cQueue, "size", "length"); /* Alias for #length. */
1261
    rb_define_alias(rb_cQueue, "enq", "push");
1262
    rb_define_alias(rb_cQueue, "<<", "push");
1263
    rb_define_alias(rb_cQueue, "deq", "pop");
1264
    rb_define_alias(rb_cQueue, "shift", "pop");
1265
    rb_define_alias(rb_cQueue, "size", "length");
1266 1266

  
1267 1267
    rb_cSizedQueue = rb_struct_define_without_accessor_under(
1268 1268
	rb_cThread,
......
1278 1278
    rb_define_method(rb_cSizedQueue, "clear", rb_szqueue_clear, 0);
1279 1279
    rb_define_method(rb_cSizedQueue, "num_waiting", rb_szqueue_num_waiting, 0);
1280 1280

  
1281
    rb_define_alias(rb_cSizedQueue, "enq", "push");  /* Alias for #push. */
1282
    rb_define_alias(rb_cSizedQueue, "<<", "push");   /* Alias for #push. */
1283
    rb_define_alias(rb_cSizedQueue, "deq", "pop");   /* Alias for #pop. */
1284
    rb_define_alias(rb_cSizedQueue, "shift", "pop"); /* Alias for #pop. */
1281
    rb_define_alias(rb_cSizedQueue, "enq", "push");
1282
    rb_define_alias(rb_cSizedQueue, "<<", "push");
1283
    rb_define_alias(rb_cSizedQueue, "deq", "pop");
1284
    rb_define_alias(rb_cSizedQueue, "shift", "pop");
1285 1285

  
1286 1286
    /* CVar */
1287 1287
    rb_cConditionVariable = rb_struct_define_without_accessor_under(