Simplify and tune XSYMBOL
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 21 Jan 2024 00:52:31 +0000 (16:52 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 21 Jan 2024 01:28:53 +0000 (17:28 -0800)
commitcf26f573162130fed73c6e5603cb58e158903add
tree8610128648e02c3c75bed774f634c3a440f65a50
parentb6ed79b71ccb3df8df05531d473ff9510cf9a39f
Simplify and tune XSYMBOL

* src/lisp.h (XSYMBOL): Simplify and tune.  There is no need to
examine symbols_with_pos_enabled here, since the arg must be a symbol
so if it's not a bare symbol then it must be a symbol_with_pos;
and checking whether a symbol is bare is cheap.

With Ubuntu 23.10 on a Xeon W-1350, this shrank Emacs’s executable
text size by 0.1% and sped up a default build of all *.elc files by
0.4%.

Remove unnecessary eassert, since XBARE_SYMBOL and XSYMBOL_WITH_POS
have easserts that suffice.
src/lisp.h