]> git.eshelyaron.com Git - emacs.git/commit
Replace decimalnump with alphanumericp
authorMichal Nazarewicz <mina86@mina86.com>
Wed, 3 Aug 2016 01:08:48 +0000 (03:08 +0200)
committerMichal Nazarewicz <mina86@mina86.com>
Fri, 9 Sep 2016 01:07:15 +0000 (03:07 +0200)
commitc579b28f6281c9cc0b711a012c30bf00036c60bf
treec54b9270ab30dd18239e594b8aee6957162d12d9
parentb1c4c0050057ca982cab28b8ad11b3175c3bb0d2
Replace decimalnump with alphanumericp

decimalnump was used in regex.c only in ISALNUM macro which ored it with
alphabeticp.  Because both of those functions require Unicode general
category lookup, this resulted in unnecessary lookups (if alphabeticp
return false decimalp had to perform another lookup).  Drop decimalnump
in favour of alphanumericp which combines decimelnump with alphabeticp.

* src/character.c (decimalnump): Remove in favour of…
(alphanumericp): …new function.

* src/regex.c (ISALNUM): Use alphanumericp.
src/character.c
src/character.h
src/regex.c