From: Joakim Verona Date: Fri, 13 Feb 2015 12:31:10 +0000 (+0100) Subject: changed returntype of valid_xwidget_spec_p to bool X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9ffa069370f8ef8a020cb84bcd7350e3ac2e9694;p=emacs.git changed returntype of valid_xwidget_spec_p to bool --- diff --git a/src/xwidget.c b/src/xwidget.c index 93f2d514509..58685a1f180 100644 --- a/src/xwidget.c +++ b/src/xwidget.c @@ -1135,13 +1135,13 @@ syms_of_xwidget (void) supported xwidget type. The rest of the property list depends on the xwidget type. */ -int +bool valid_xwidget_spec_p (Lisp_Object object) { - int valid_p = 0; + int valid_p = false; if (CONSP (object) && EQ (XCAR (object), Qxwidget)) - valid_p = 1; + valid_p = true; return valid_p; } diff --git a/src/xwidget.h b/src/xwidget.h index 8f5fa0a1e83..493000c34fd 100644 --- a/src/xwidget.h +++ b/src/xwidget.h @@ -26,7 +26,7 @@ void syms_of_xwidget (void); //extern Lisp_Object Qxwidget; -int valid_xwidget_spec_p (Lisp_Object object); +bool valid_xwidget_spec_p (Lisp_Object object); #include