Show More
@@ -544,6 +544,13 b' static inline int nt_level(const char *n' | |||||
544 | return v & 0xf; |
|
544 | return v & 0xf; | |
545 | } |
|
545 | } | |
546 |
|
546 | |||
|
547 | /* | |||
|
548 | * Return values: | |||
|
549 | * | |||
|
550 | * -4: match is ambiguous (multiple candidates) | |||
|
551 | * -2: not found | |||
|
552 | * rest: valid rev | |||
|
553 | */ | |||
547 | static int nt_find(indexObject *self, const char *node, Py_ssize_t nodelen) |
|
554 | static int nt_find(indexObject *self, const char *node, Py_ssize_t nodelen) | |
548 | { |
|
555 | { | |
549 | int level, off; |
|
556 | int level, off; | |
@@ -572,7 +579,8 b' static int nt_find(indexObject *self, co' | |||||
572 | return -2; |
|
579 | return -2; | |
573 | off = v; |
|
580 | off = v; | |
574 | } |
|
581 | } | |
575 | return -2; |
|
582 | /* multiple matches against an ambiguous prefix */ | |
|
583 | return -4; | |||
576 | } |
|
584 | } | |
577 |
|
585 | |||
578 | static int nt_new(indexObject *self) |
|
586 | static int nt_new(indexObject *self) |
General Comments 0
You need to be logged in to leave comments.
Login now