libcacard: introduce NEXT_TOKEN macro
commitd246b3cfd5378e45895b0834a8b8762733c0148f
authorChristophe Fergeau <cfergeau@redhat.com>
Fri, 22 Jul 2011 11:42:19 +0000 (22 13:42 +0200)
committerAlon Levy <alevy@redhat.com>
Fri, 22 Jul 2011 15:05:36 +0000 (22 18:05 +0300)
treec8567e83e2eb696c5c683351b165950f9661e2d0
parenta5aa842a0597ef9a24e80966b02ca01f287fb334
libcacard: introduce NEXT_TOKEN macro

vcard_emul_options now has repetitive code to read the current
token and advance to the next. After the previous changes,
this repetitive code can be moved in a NEXT_TOKEN macro to
avoid having this code duplicated.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Reviewed-by: Alon Levy <alevy@redhat.com>
libcacard/vcard_emul_nss.c