From 7546522aa0fc6917a08a901286fb9cbcca578f80 Mon Sep 17 00:00:00 2001 From: Martin Nilsson <mani@lysator.liu.se> Date: Sun, 29 Jun 2008 14:36:20 +0200 Subject: [PATCH] Debug output prefer protected over static. Rev: src/gc.c:1.319 --- src/gc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gc.c b/src/gc.c index 20655afebc..3def9f6b94 100644 --- a/src/gc.c +++ b/src/gc.c @@ -2,7 +2,7 @@ || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information. -|| $Id: gc.c,v 1.318 2008/05/29 21:59:45 mast Exp $ +|| $Id: gc.c,v 1.319 2008/06/29 12:36:20 nilsson Exp $ */ #include "global.h" @@ -1336,13 +1336,12 @@ again: prot[0] = prot[1] = 0; if (id_ref->id_flags & ID_PRIVATE) { strcat (prot, ",pri"); - if (!(id_ref->id_flags & ID_STATIC)) strcat (prot, ",!sta"); + if (!(id_ref->id_flags & ID_PROTECTED)) strcat (prot, ",!pro"); } else - if (id_ref->id_flags & ID_STATIC) strcat (prot, ",sta"); + if (id_ref->id_flags & ID_PROTECTED) strcat (prot, ",pro"); if (id_ref->id_flags & ID_FINAL) strcat (prot, ",fin"); if (id_ref->id_flags & ID_PUBLIC) strcat (prot, ",pub"); - if (id_ref->id_flags & ID_PROTECTED) strcat (prot, ",pro"); if (id_ref->id_flags & ID_INLINE) strcat (prot, ",inl"); if (id_ref->id_flags & ID_OPTIONAL) strcat (prot, ",opt"); if (id_ref->id_flags & ID_HIDDEN) strcat (prot, ",hid"); -- GitLab