Skip to content

Commit

Permalink
rb_cData: no longer exists
Browse files Browse the repository at this point in the history
Commit 8918a9c introduced macro
`#define rb_cData rb_cData()`.  This deleting `VALUE rb_cData;`
declaration was then macro-expanded into `VALUE rb_cData();`.  This
worked by accident because the expanded expression happen to be a K&R
style function declaration.

This is rather complicated and I guess unintended.  Just delete the line
to keep things simple straight forward.
  • Loading branch information
shyouhei committed Dec 22, 2020
1 parent 7898bc9 commit 7fbad92
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion object.c
Expand Up @@ -49,7 +49,6 @@ VALUE rb_mKernel; /*!< Kernel module */
VALUE rb_cObject; /*!< Object class */
VALUE rb_cModule; /*!< Module class */
VALUE rb_cClass; /*!< Class class */
VALUE rb_cData; /*!< Data class */

VALUE rb_cNilClass; /*!< NilClass class */
VALUE rb_cTrueClass; /*!< TrueClass class */
Expand Down

0 comments on commit 7fbad92

Please sign in to comment.