hwloc-calc.h: Move the parsing of type/depth prefixes to the caller (instead of reparsing the same string in all callee)
hwloc-calc.h: Move the parsing of type/depth prefixes to the caller
(instead of reparsing the same string in all callee)

Move the parsing of depth/type prefix to a new hwloc_calc_parse_depth_prefix()
to avoid code duplication between the topmost routine and in subtype callees.

Manage pci/os device in the top-most parsing routine only,
no need to handle them in recursive calls.

git-svn-id: 14be032f8f42541b1a281b51ae8ea69814daf20e@3492 4b44e086-7f34-40ce-a3bd-00e031736276

BlueBrain/hwloc,BlueBrain/hwloc,BlueBrain/hwloc,BlueBrain/hwloc