[前][次][番号順一覧][スレッド一覧]

ruby-changes:61254

From: Nobuyoshi <ko1@a...>
Date: Thu, 14 May 2020 17:17:33 +0900 (JST)
Subject: [ruby-changes:61254] 0a52015da7 (master): Constified code_loc_gen

https://git.ruby-lang.org/ruby.git/commit/?id=0a52015da7

From 0a52015da7c4895363e239387e749e4b1f63b198 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 14 May 2020 17:15:03 +0900
Subject: Constified code_loc_gen


diff --git a/node.h b/node.h
index 504153a..805491b 100644
--- a/node.h
+++ b/node.h
@@ -137,7 +137,7 @@ typedef struct rb_code_location_struct { https://github.com/ruby/ruby/blob/trunk/node.h#L137
 } rb_code_location_t;
 
 static inline rb_code_location_t
-code_loc_gen(rb_code_location_t *loc1, rb_code_location_t *loc2)
+code_loc_gen(const rb_code_location_t *loc1, const rb_code_location_t *loc2)
 {
     rb_code_location_t loc;
     loc.beg_pos = loc1->beg_pos;
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]