From owner-svn-ports-all@FreeBSD.ORG Sun Apr 13 17:47:02 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DFBADBCF; Sun, 13 Apr 2014 17:47:01 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C091014A6; Sun, 13 Apr 2014 17:47:01 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s3DHl14Z058425; Sun, 13 Apr 2014 17:47:01 GMT (envelope-from glewis@svn.freebsd.org) Received: (from glewis@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s3DHkxAY058398; Sun, 13 Apr 2014 17:46:59 GMT (envelope-from glewis@svn.freebsd.org) Message-Id: <201404131746.s3DHkxAY058398@svn.freebsd.org> From: Greg Lewis Date: Sun, 13 Apr 2014 17:46:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r351234 - head/x11-wm/afterstep-stable/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Apr 2014 17:47:02 -0000 Author: glewis Date: Sun Apr 13 17:46:59 2014 New Revision: 351234 URL: http://svnweb.freebsd.org/changeset/ports/351234 QAT: https://qat.redports.org/buildarchive/r351234/ Log: . Don't use inline on functions that are intended to be used in multiple files. This fixes compilation with clang. My understanding is that the C99 standard treats inline methods as having static linkage by default. This is different from the GNU C definition of inline, which is why this compiled with gcc. Added: head/x11-wm/afterstep-stable/files/patch-libAfterBase-asvector.c (contents, props changed) head/x11-wm/afterstep-stable/files/patch-libAfterBase-asvector.h (contents, props changed) head/x11-wm/afterstep-stable/files/patch-libAfterBase-parse.c (contents, props changed) head/x11-wm/afterstep-stable/files/patch-libAfterBase-parse.h (contents, props changed) head/x11-wm/afterstep-stable/files/patch-libAfterStep-functions.c (contents, props changed) head/x11-wm/afterstep-stable/files/patch-libAfterStep-functions.h (contents, props changed) head/x11-wm/afterstep-stable/files/patch-libAfterStep-mylook.c (contents, props changed) head/x11-wm/afterstep-stable/files/patch-libAfterStep-mylook.h (contents, props changed) head/x11-wm/afterstep-stable/files/patch-src-afterstep-asinternals.h (contents, props changed) head/x11-wm/afterstep-stable/files/patch-src-afterstep-misc.c (contents, props changed) Added: head/x11-wm/afterstep-stable/files/patch-libAfterBase-asvector.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/afterstep-stable/files/patch-libAfterBase-asvector.c Sun Apr 13 17:46:59 2014 (r351234) @@ -0,0 +1,22 @@ +$FreeBSD$ + +--- libAfterBase/asvector.c.orig 2013-05-01 06:34:11.000000000 -0700 ++++ libAfterBase/asvector.c 2014-04-12 12:22:48.000000000 -0700 +@@ -126,7 +126,7 @@ + + /* finds index of the first element in the vector that is exactly matching specifyed + * data */ +-inline size_t vector_find_data( ASVector *v, void *data ) ++size_t vector_find_data( ASVector *v, void *data ) + { + register int i ; + /* word copying is usually faster then raw memory copying */ +@@ -170,7 +170,7 @@ + return i; + } + +-inline void vector_move_data_up( ASVector *v, int index, int offset, int length ) ++void vector_move_data_up( ASVector *v, int index, int offset, int length ) + { + register int i ; + /* word copying is usually faster then raw memory copying */ Added: head/x11-wm/afterstep-stable/files/patch-libAfterBase-asvector.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/afterstep-stable/files/patch-libAfterBase-asvector.h Sun Apr 13 17:46:59 2014 (r351234) @@ -0,0 +1,13 @@ +$FreeBSD$ + +--- libAfterBase/asvector.h.orig 2014-04-12 12:22:00.000000000 -0700 ++++ libAfterBase/asvector.h 2014-04-12 12:22:37.000000000 -0700 +@@ -38,7 +38,7 @@ + /* returns index on success, -1 on failure */ + int vector_insert_elem( ASVector *v, void *data, size_t size, void *sibling, int before ); + int vector_relocate_elem (ASVector *v, unsigned int index, unsigned int new_index); +-inline size_t vector_find_data (ASVector *v, void *data ); ++size_t vector_find_data (ASVector *v, void *data ); + int vector_find_elem( ASVector *v, void *data ); + /* returns 1 on success, 0 on failure */ + int vector_remove_elem( ASVector *v, void *data ); Added: head/x11-wm/afterstep-stable/files/patch-libAfterBase-parse.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/afterstep-stable/files/patch-libAfterBase-parse.c Sun Apr 13 17:46:59 2014 (r351234) @@ -0,0 +1,13 @@ +$FreeBSD$ + +--- libAfterBase/parse.c.orig 2014-04-12 10:22:32.000000000 -0700 ++++ libAfterBase/parse.c 2014-04-11 06:31:13.000000000 -0700 +@@ -1027,7 +1027,7 @@ + + static char _as_hex_to_char_table[] = "0123456789ABCDEF"; + +-inline int ++int + unsigned_int2buffer_end (char *buffer, int buffer_size, unsigned int val) + { + int i = buffer_size-1 ; Added: head/x11-wm/afterstep-stable/files/patch-libAfterBase-parse.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/afterstep-stable/files/patch-libAfterBase-parse.h Sun Apr 13 17:46:59 2014 (r351234) @@ -0,0 +1,13 @@ +$FreeBSD$ + +--- libAfterBase/parse.h.orig 2014-04-12 10:22:23.000000000 -0700 ++++ libAfterBase/parse.h 2014-04-11 06:31:10.000000000 -0700 +@@ -73,7 +73,7 @@ + + double parse_math(const char* str, char** endptr, double size); + +-inline int unsigned_int2buffer_end (char *buffer, int buffer_size, unsigned int val); ++int unsigned_int2buffer_end (char *buffer, int buffer_size, unsigned int val); + char *string_from_int (int param); + char *hex_to_buffer_reverse(void *data, size_t bytes, char* buffer); + char *hex_to_buffer(void *data, size_t bytes, char* buffer); Added: head/x11-wm/afterstep-stable/files/patch-libAfterStep-functions.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/afterstep-stable/files/patch-libAfterStep-functions.c Sun Apr 13 17:46:59 2014 (r351234) @@ -0,0 +1,13 @@ +$FreeBSD$ + +--- libAfterStep/functions.c.orig 2014-04-12 10:22:40.000000000 -0700 ++++ libAfterStep/functions.c 2014-04-11 06:32:05.000000000 -0700 +@@ -307,7 +307,7 @@ + } + } + +-inline FunctionData *create_named_function (int func, char *name) ++FunctionData *create_named_function (int func, char *name) + { + FunctionData *fdata = safecalloc (1, sizeof (FunctionData)); + Added: head/x11-wm/afterstep-stable/files/patch-libAfterStep-functions.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/afterstep-stable/files/patch-libAfterStep-functions.h Sun Apr 13 17:46:59 2014 (r351234) @@ -0,0 +1,13 @@ +$FreeBSD$ + +--- libAfterStep/functions.h.orig 2014-04-12 10:22:47.000000000 -0700 ++++ libAfterStep/functions.h 2014-04-11 06:32:13.000000000 -0700 +@@ -314,7 +314,7 @@ + void init_func_data (FunctionData * data); + void copy_func_data (FunctionData * dst, FunctionData * src); + void dup_func_data (FunctionData * dst, FunctionData * src); +-inline FunctionData *create_named_function( int func, char *name); ++FunctionData *create_named_function( int func, char *name); + void set_func_val (FunctionData * data, int arg, int value); + int free_func_data (FunctionData * data); + void destroy_func_data( FunctionData **pdata ); Added: head/x11-wm/afterstep-stable/files/patch-libAfterStep-mylook.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/afterstep-stable/files/patch-libAfterStep-mylook.c Sun Apr 13 17:46:59 2014 (r351234) @@ -0,0 +1,31 @@ +$FreeBSD$ + +--- libAfterStep/mylook.c.orig 2014-04-12 12:25:04.000000000 -0700 ++++ libAfterStep/mylook.c 2014-04-12 12:26:22.000000000 -0700 +@@ -843,7 +843,7 @@ + return NULL; + } + +-inline MyDesktopConfig *mylook_get_desk_config (MyLook * look, long desk) ++MyDesktopConfig *mylook_get_desk_config (MyLook * look, long desk) + { + if (look) { + ASHashData hdata = { 0 }; +@@ -856,7 +856,7 @@ + } + + +-inline MyBackground *mylook_get_desk_back (MyLook * look, long desk) ++MyBackground *mylook_get_desk_back (MyLook * look, long desk) + { + MyBackground *myback = NULL; + +@@ -888,7 +888,7 @@ + } + + +-inline MyBackground *mylook_get_back (MyLook * look, char *name) ++MyBackground *mylook_get_back (MyLook * look, char *name) + { + ASHashData hdata = { 0 }; + if (look && name) Added: head/x11-wm/afterstep-stable/files/patch-libAfterStep-mylook.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/afterstep-stable/files/patch-libAfterStep-mylook.h Sun Apr 13 17:46:59 2014 (r351234) @@ -0,0 +1,17 @@ +$FreeBSD$ + +--- libAfterStep/mylook.h.orig 2014-04-12 12:24:55.000000000 -0700 ++++ libAfterStep/mylook.h 2014-04-12 12:25:46.000000000 -0700 +@@ -411,9 +411,9 @@ + + + struct MyStyle *mylook_get_style(MyLook *look, const char *name); +-inline MyBackground *mylook_get_desk_back(MyLook *look, long desk); +-inline MyBackground *mylook_get_back(MyLook *look, char *name); +-inline MyDesktopConfig *mylook_get_desk_config(MyLook *look, long desk); ++MyBackground *mylook_get_desk_back(MyLook *look, long desk); ++MyBackground *mylook_get_back(MyLook *look, char *name); ++MyDesktopConfig *mylook_get_desk_config(MyLook *look, long desk); + + + Added: head/x11-wm/afterstep-stable/files/patch-src-afterstep-asinternals.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/afterstep-stable/files/patch-src-afterstep-asinternals.h Sun Apr 13 17:46:59 2014 (r351234) @@ -0,0 +1,15 @@ +$FreeBSD$ + +--- src/afterstep/asinternals.h.orig 2014-04-12 12:29:08.000000000 -0700 ++++ src/afterstep/asinternals.h 2014-04-12 12:28:35.000000000 -0700 +@@ -689,8 +689,8 @@ + + + /*************************** misc.c *********************************/ +-inline void ungrab_window_buttons( Window w ); +-inline void ungrab_window_keys (Window w ); ++void ungrab_window_buttons( Window w ); ++void ungrab_window_keys (Window w ); + void MyXGrabButton ( unsigned button, unsigned modifiers, + Window grab_window, Bool owner_events, unsigned event_mask, + int pointer_mode, int keyboard_mode, Window confine_to, Cursor cursor); Added: head/x11-wm/afterstep-stable/files/patch-src-afterstep-misc.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/afterstep-stable/files/patch-src-afterstep-misc.c Sun Apr 13 17:46:59 2014 (r351234) @@ -0,0 +1,20 @@ +$FreeBSD$ + +--- src/afterstep/misc.c.orig 2014-04-12 12:28:58.000000000 -0700 ++++ src/afterstep/misc.c 2014-04-12 12:29:10.000000000 -0700 +@@ -32,13 +32,13 @@ + /****************************************************************************/ + /* window management specifics - button ungrabbing convinience functions: */ + /****************************************************************************/ +-inline void ungrab_window_buttons (Window w) ++void ungrab_window_buttons (Window w) + { + LOCAL_DEBUG_OUT ("w = %lX", w); + XUngrabButton (dpy, AnyButton, AnyModifier, w); + } + +-inline void ungrab_window_keys (Window w) ++void ungrab_window_keys (Window w) + { + XUngrabKey (dpy, AnyKey, AnyModifier, w); + }