]> git.saurik.com Git - bison.git/commit
maint: simplify parse-gram.y
authorJim Meyering <meyering@redhat.com>
Thu, 3 May 2012 21:01:05 +0000 (23:01 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 6 May 2012 07:29:36 +0000 (09:29 +0200)
commit60457f308d3cbe377472b610aafcb86e194081a4
tree0707aafa1b24b0dfa5f994ab46ee9736a53eba99
parentbb3b912b0a43b8b740a05ad1d15686e68f8e3f39
maint: simplify parse-gram.y

* src/parse-gram.y (add_param): Use xmemdup0 in place of
xmalloc+memcpy, and strspn in place of an open-coded loop.

Co-authored-by: Akim Demaille <akim@lrde.epita.fr>
src/parse-gram.y