
On 08/03/2012 09:48 AM, Osier Yang wrote:
The is a preparation patch, all the files listed in _virsh_avoid_strcase will use strcasecmp to sort the objects. --- cfg.mk | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/cfg.mk b/cfg.mk index e2af2bb..871e50a 100644 --- a/cfg.mk +++ b/cfg.mk @@ -736,7 +736,10 @@ $(srcdir)/src/remote/remote_client_bodies.h: $(srcdir)/src/remote/remote_protoco $(MAKE) -C src remote/remote_client_bodies.h
# List all syntax-check exemptions: -exclude_file_name_regexp--sc_avoid_strcase = ^tools/virsh(-domain-monitor|-snapshot)?\.c$$ +# maint.mk: don't use raw strcase functions (use c-strcase instead) + +_virsh_avoid_strcase=(-domain-monitor|-volume|-pool|-network|-interface|-nwfilter|-secret|-snapshot|-nodedev) +exclude_file_name_regexp--sc_avoid_strcase = ^tools/virsh$(_virsh_avoid_strcase)?\.c$$
That's a lot of files. Would it be easier to write a helper function living in virsh.c, which all of the other files can call, so that only virsh.c has to be exempt? -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org