From b9c72fff47e0cc9774a0cfcbc67978c0a7ce030d Mon Sep 17 00:00:00 2001 From: Igor2 Date: Sat, 21 Nov 2015 20:11:19 +0100 Subject: [PATCH 4/5] debug message. Signed-off-by: bert --- src/select.c | 19 ++++++++++++++++--- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/select.c b/src/select.c index 8fe6699..bf03abb 100644 --- a/src/select.c +++ b/src/select.c @@ -437,9 +437,13 @@ ListBlock_ (BoxType *Box, bool Flag, int *len) IncrementUndoSerialNumber (); } - if (len == NULL) { - static long int non_zero; - return (changed ? &non_zero : NULL); + if (len == NULL) { + static long int non_zero; + return (changed ? &non_zero : NULL); + } + else { + *len = used; + return list; } } #undef append @@ -457,6 +461,15 @@ SelectBlock (BoxType *Box, bool Flag) } /* ---------------------------------------------------------------------- + * List all visible objects within the passed box + */ +long int * +ListBlock (BoxType *Box, int *len) +{ + return ListBlock_(Box, 1, len); +} + +/* ---------------------------------------------------------------------- * performs several operations on the passed object */ void * -- 1.7.3.4