From 2ab621c7efbf9f519bfe0c3f7ac20ebe63361cd8 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Mon, 20 Jun 2016 12:46:03 +0300 Subject: Fix grecs_include_path_count * src/preproc.c (grecs_include_path_count): Return count. --- src/preproc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/preproc.c') diff --git a/src/preproc.c b/src/preproc.c index bdf4d40..8b59f21 100644 --- a/src/preproc.c +++ b/src/preproc.c @@ -247,10 +247,10 @@ grecs_include_path_count(int flag) { size_t count = 0; if (flag & GRECS_STD_INCLUDE) - count += grecs_std_include_path ? grecs_std_include_path->count : 0; + count += grecs_list_size(grecs_std_include_path); if (flag & GRECS_USR_INCLUDE) - count += grecs_usr_include_path ? grecs_usr_include_path->count : 0; - return 0; + count += grecs_list_size(grecs_usr_include_path); + return count; } static int -- cgit v1.2.1