From d488935910d8902e96ea5c49537506f0b2aba492 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Mon, 28 Jul 2025 11:18:54 +0200 Subject: Get rid of ID_JUNK It has been aliased as ID_INTERNAL for a long time and that alias is much more descriptive. --- template/id.h.tmpl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'template') diff --git a/template/id.h.tmpl b/template/id.h.tmpl index 4f7053885f..eb37e15073 100644 --- a/template/id.h.tmpl +++ b/template/id.h.tmpl @@ -1,5 +1,5 @@ %# -*- c -*- -/* DO NOT EDIT THIS FILE DIRECTLY */ +/* DO NOT EDIT THIS FILE DIRECTLY: source is at template/id.h.tmpl */ /********************************************************************** id.h - @@ -19,15 +19,14 @@ types = ids.keys.grep(/^[A-Z]/) #define RUBY_ID_H enum ruby_id_types { - RUBY_ID_STATIC_SYM = 0x01, RUBY_ID_LOCAL = 0x00, + RUBY_ID_STATIC_SYM = 0x01, RUBY_ID_INSTANCE = (0x01<<1), RUBY_ID_GLOBAL = (0x03<<1), RUBY_ID_ATTRSET = (0x04<<1), RUBY_ID_CONST = (0x05<<1), RUBY_ID_CLASS = (0x06<<1), - RUBY_ID_JUNK = (0x07<<1), - RUBY_ID_INTERNAL = RUBY_ID_JUNK, + RUBY_ID_INTERNAL = (0x07<<1), RUBY_ID_SCOPE_SHIFT = 4, RUBY_ID_SCOPE_MASK = (~(~0U<<(RUBY_ID_SCOPE_SHIFT-1))<<1) }; @@ -41,7 +40,6 @@ enum ruby_id_types { #define ID_ATTRSET RUBY_ID_ATTRSET #define ID_CONST RUBY_ID_CONST #define ID_CLASS RUBY_ID_CLASS -#define ID_JUNK RUBY_ID_JUNK #define ID_INTERNAL RUBY_ID_INTERNAL #define symIFUNC ID2SYM(idIFUNC) -- cgit v1.2.3