[Gnustep-cvs] r37845 - /tools/make/trunk/Master/deb.make
Author: ivucica Date: Tue May 6 11:32:59 2014 New Revision: 37845 URL: http://svn.gna.org/viewcvs/gnustep?rev=37845view=rev Log: deb target no longer depends on debfiles. Corrected formatting of auto-dependency on gnustep-make. Modified: tools/make/trunk/Master/deb.make Modified: tools/make/trunk/Master/deb.make URL: http://svn.gna.org/viewcvs/gnustep/tools/make/trunk/Master/deb.make?rev=37845r1=37844r2=37845view=diff == --- tools/make/trunk/Master/deb.make(original) +++ tools/make/trunk/Master/deb.makeTue May 6 11:32:59 2014 @@ -84,10 +84,10 @@ # ifeq ($(DEB_BUILD_DEPENDS),) - DEB_BUILD_DEPENDS = gnustep-make (=$(GNUSTEP_MAKE_VERSION)) + DEB_BUILD_DEPENDS = gnustep-make (= $(GNUSTEP_MAKE_VERSION)) export DEB_BUILD_DEPENDS else - DEB_BUILD_DEPENDS += , gnustep-make (=$(GNUSTEP_MAKE_VERSION)) + DEB_BUILD_DEPENDS += , gnustep-make (= $(GNUSTEP_MAKE_VERSION)) export DEB_BUILD_DEPENDS endif @@ -119,7 +119,7 @@ mv $(_ABS_OBJ_DIR)/debian_files/debian/* $(_ABS_OBJ_DIR)/debian_dist/$(VERSION_NAME)/debian -rm -rf $(_ABS_OBJ_DIR)/debian_files -deb:: debfiles +deb:: $(ECHO_NOTHING)echo Building Debian package...$(END_ECHO) cd $(_ABS_OBJ_DIR)/debian_dist/$(VERSION_NAME)/ debuild $(DEBUILD_ARGS) -S cd $(_ABS_OBJ_DIR)/debian_dist/$(VERSION_NAME)/ debuild $(DEBUILD_ARGS) -b ___ Gnustep-cvs mailing list Gnustep-cvs@gna.org https://mail.gna.org/listinfo/gnustep-cvs
[Gnustep-cvs] r37846 - in /libs/corebase/trunk: ChangeLog Source/CFDate.c Source/NSCFDate.m
Author: lubosd Date: Tue May 6 13:00:05 2014 New Revision: 37846 URL: http://svn.gna.org/viewcvs/gnustep?rev=37846view=rev Log: * Source/NSCFDate.m, Source/CFDate.c: CFDateRef toll-free bridging Added: libs/corebase/trunk/Source/NSCFDate.m Modified: libs/corebase/trunk/ChangeLog libs/corebase/trunk/Source/CFDate.c Modified: libs/corebase/trunk/ChangeLog URL: http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/ChangeLog?rev=37846r1=37845r2=37846view=diff == --- libs/corebase/trunk/ChangeLog (original) +++ libs/corebase/trunk/ChangeLog Tue May 6 13:00:05 2014 @@ -1,3 +1,7 @@ +2014-05-06 Lubos Dolezel lu...@dolezel.info + * Source/NSCFDate.m, + Source/CFDate.c: CFDateRef toll-free bridging + 2014-04-20 Lubos Dolezel lu...@dolezel.info * Source/CFRunLoop.c, Tests/CFRunLoop/timers.m: CFRunLoop timer fixes and tests Modified: libs/corebase/trunk/Source/CFDate.c URL: http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/Source/CFDate.c?rev=37846r1=37845r2=37846view=diff == --- libs/corebase/trunk/Source/CFDate.c (original) +++ libs/corebase/trunk/Source/CFDate.c Tue May 6 13:00:05 2014 @@ -120,6 +120,9 @@ CFAbsoluteTime CFDateGetAbsoluteTime (CFDateRef theDate) { + CF_OBJC_FUNCDISPATCHV(_kCFDateTypeID, CFAbsoluteTime, theDate, +timeIntervalSinceReferenceDate); + return theDate-_absTime; } Added: libs/corebase/trunk/Source/NSCFDate.m URL: http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/Source/NSCFDate.m?rev=37846view=auto == --- libs/corebase/trunk/Source/NSCFDate.m (added) +++ libs/corebase/trunk/Source/NSCFDate.m Tue May 6 13:00:05 2014 @@ -0,0 +1,71 @@ +/* NSCFError.m + + Copyright (C) 2014 Free Software Foundation, Inc. + + Written by: Lubos Dolezel + Date: May, 2014 + + This file is part of the GNUstep CoreBase Library. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; see the file COPYING.LIB. + If not, see http://www.gnu.org/licenses/ or write to the + Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#import Foundation/NSObject.h +#import Foundation/NSDate.h +#import Foundation/NSString.h + +#include NSCFType.h +#include CoreFoundation/CFDate.h + +@interface NSCFDate : NSDate +NSCFTYPE_VARS +@end + +@interface NSDate (CoreBaseAdditions) +- (CFTypeID) _cfTypeID; +@end + +@implementation NSCFDate ++ (void) load +{ + NSCFInitialize (); +} + ++ (void) initialize +{ + GSObjCAddClassBehavior (self, [NSCFType class]); +} + +- (id)initWithTimeIntervalSinceReferenceDate:(NSTimeInterval)seconds +{ + RELEASE(self); + + return (NSCFDate*) CFDateCreate(NULL, seconds); +} + +- (NSTimeInterval)timeIntervalSinceReferenceDate +{ + return CFDateGetAbsoluteTime((CFDateRef) self); +} +@end + +@implementation NSDate (CoreBaseAdditions) +- (CFTypeID) _cfTypeID +{ + return CFDateGetTypeID(); +} +@end ___ Gnustep-cvs mailing list Gnustep-cvs@gna.org https://mail.gna.org/listinfo/gnustep-cvs
[Gnustep-cvs] r37847 - in /apps/projectcenter/trunk: ChangeLog Framework/PCProjectBuilder.m
Author: rmottola Date: Tue May 6 15:11:45 2014 New Revision: 37847 URL: http://svn.gna.org/viewcvs/gnustep?rev=37847view=rev Log: Enhance clang support Modified: apps/projectcenter/trunk/ChangeLog apps/projectcenter/trunk/Framework/PCProjectBuilder.m Modified: apps/projectcenter/trunk/ChangeLog URL: http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/ChangeLog?rev=37847r1=37846r2=37847view=diff == --- apps/projectcenter/trunk/ChangeLog (original) +++ apps/projectcenter/trunk/ChangeLog Tue May 6 15:11:45 2014 @@ -1,3 +1,8 @@ +2014-05-03 Riccardo Mottola r...@gnu.org + + * Framework/PCProjectBuilder.m + Enhance clang support. + 2014-05-03 Riccardo Mottola r...@gnu.org * Framework/PCProjectBuilder.m Modified: apps/projectcenter/trunk/Framework/PCProjectBuilder.m URL: http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/Framework/PCProjectBuilder.m?rev=37847r1=37846r2=37847view=diff == --- apps/projectcenter/trunk/Framework/PCProjectBuilder.m (original) +++ apps/projectcenter/trunk/Framework/PCProjectBuilder.m Tue May 6 15:11:45 2014 @@ -1105,7 +1105,7 @@ if (lastEL == ELIncluded) NSLog(@+++ELIncluded); if (lastEL == ELError) NSLog(@+++ELError); if (lastEL == ELNone) NSLog(@+++ELNone);*/ -// NSLog(@components: %lu, %@, (unsigned long)[components count], components); + //NSLog(@components: %lu, %@, (unsigned long)[components count], components); if ([errorArray count] 0) { lastFile = [[errorArray lastObject] objectForKey:@File]; @@ -1156,6 +1156,10 @@ type = [components objectAtIndex:typeIndex]; warningsCount++; } + else if ((typeIndex = [components indexOfObject:@ note]) != NSNotFound) // generated by clang + { + type = [components objectAtIndex:typeIndex]; + } else if ((typeIndex = [components indexOfObject:@ error]) != NSNotFound) { type = [components objectAtIndex:typeIndex]; @@ -1167,7 +1171,7 @@ errorsCount++; } - // NSLog(@typeIndex: %u, (unsigned int)typeIndex); + // NSLog(@typeIndex: %u, (unsigned int)typeIndex); // position if (typeIndex == 2) // :line: { ___ Gnustep-cvs mailing list Gnustep-cvs@gna.org https://mail.gna.org/listinfo/gnustep-cvs
[Gnustep-cvs] r37848 - /apps/projectcenter/trunk/ChangeLog
Author: rmottola Date: Tue May 6 15:11:53 2014 New Revision: 37848 URL: http://svn.gna.org/viewcvs/gnustep?rev=37848view=rev Log: Enhance clang support Modified: apps/projectcenter/trunk/ChangeLog Modified: apps/projectcenter/trunk/ChangeLog URL: http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/ChangeLog?rev=37848r1=37847r2=37848view=diff == --- apps/projectcenter/trunk/ChangeLog (original) +++ apps/projectcenter/trunk/ChangeLog Tue May 6 15:11:53 2014 @@ -1,4 +1,4 @@ -2014-05-03 Riccardo Mottola r...@gnu.org +2014-05-06 Riccardo Mottola r...@gnu.org * Framework/PCProjectBuilder.m Enhance clang support. ___ Gnustep-cvs mailing list Gnustep-cvs@gna.org https://mail.gna.org/listinfo/gnustep-cvs
[Gnustep-cvs] r37849 - in /libs/corebase/trunk: ./ Headers/CoreFoundation/ Source/ Tests/CFRunLoop/
Author: lubosd Date: Tue May 6 16:10:41 2014 New Revision: 37849 URL: http://svn.gna.org/viewcvs/gnustep?rev=37849view=rev Log: * Source/CFRunLoop.c, Headers/CoreFoundation/CFRunLoop.h: CFRunLoop improvements fixes * Source/CFArray.c: Fixes * Source/CFSocket.c: CFSocket integration with CFRunLoop * Source/config.h.in, configure, configure.ac: libdispatch detection * Source/GNUmakefile.in, Source/NSCFType.m, Source/NSCFDate.m, Source/CFDate.c: CFDateRef toll-free bridging Modified: libs/corebase/trunk/ChangeLog libs/corebase/trunk/Headers/CoreFoundation/CFRunLoop.h libs/corebase/trunk/Source/CFArray.c libs/corebase/trunk/Source/CFRunLoop.c libs/corebase/trunk/Source/CFSocket.c libs/corebase/trunk/Source/GNUmakefile.in libs/corebase/trunk/Source/NSCFType.m libs/corebase/trunk/Source/config.h.in libs/corebase/trunk/Tests/CFRunLoop/source.m libs/corebase/trunk/configure libs/corebase/trunk/configure.ac [This mail would be too long, it was shortened to contain the URLs only.] Modified: libs/corebase/trunk/ChangeLog URL: http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/ChangeLog?rev=37849r1=37848r2=37849view=diff Modified: libs/corebase/trunk/Headers/CoreFoundation/CFRunLoop.h URL: http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/Headers/CoreFoundation/CFRunLoop.h?rev=37849r1=37848r2=37849view=diff Modified: libs/corebase/trunk/Source/CFArray.c URL: http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/Source/CFArray.c?rev=37849r1=37848r2=37849view=diff Modified: libs/corebase/trunk/Source/CFRunLoop.c URL: http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/Source/CFRunLoop.c?rev=37849r1=37848r2=37849view=diff Modified: libs/corebase/trunk/Source/CFSocket.c URL: http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/Source/CFSocket.c?rev=37849r1=37848r2=37849view=diff Modified: libs/corebase/trunk/Source/GNUmakefile.in URL: http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/Source/GNUmakefile.in?rev=37849r1=37848r2=37849view=diff Modified: libs/corebase/trunk/Source/NSCFType.m URL: http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/Source/NSCFType.m?rev=37849r1=37848r2=37849view=diff Modified: libs/corebase/trunk/Source/config.h.in URL: http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/Source/config.h.in?rev=37849r1=37848r2=37849view=diff Modified: libs/corebase/trunk/Tests/CFRunLoop/source.m URL: http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/Tests/CFRunLoop/source.m?rev=37849r1=37848r2=37849view=diff Modified: libs/corebase/trunk/configure URL: http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/configure?rev=37849r1=37848r2=37849view=diff Modified: libs/corebase/trunk/configure.ac URL: http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/configure.ac?rev=37849r1=37848r2=37849view=diff ___ Gnustep-cvs mailing list Gnustep-cvs@gna.org https://mail.gna.org/listinfo/gnustep-cvs
[Gnustep-cvs] r37850 - in /libs/gsweb/trunk: ChangeLog GSWeb/GSWCheckBoxList.m GSWeb/GSWElement.h GSWeb/GSWElement.m
Author: mguesdon Date: Tue May 6 18:28:44 2014 New Revision: 37850 URL: http://svn.gna.org/viewcvs/gnustep?rev=37850view=rev Log: * GSWeb/GSWCheckBoxList.m fix appendToResponse:inContext: respect GNUstep coding standard (curly brackets placement, etc.) use GSWAssignAndRemoveAssociation() in initWithName:associations:template: * GSWeb/GSWElement.[hm] add GSWAssignAndRemoveAssociation() to make controls code simplier Modified: libs/gsweb/trunk/ChangeLog libs/gsweb/trunk/GSWeb/GSWCheckBoxList.m libs/gsweb/trunk/GSWeb/GSWElement.h libs/gsweb/trunk/GSWeb/GSWElement.m [This mail would be too long, it was shortened to contain the URLs only.] Modified: libs/gsweb/trunk/ChangeLog URL: http://svn.gna.org/viewcvs/gnustep/libs/gsweb/trunk/ChangeLog?rev=37850r1=37849r2=37850view=diff Modified: libs/gsweb/trunk/GSWeb/GSWCheckBoxList.m URL: http://svn.gna.org/viewcvs/gnustep/libs/gsweb/trunk/GSWeb/GSWCheckBoxList.m?rev=37850r1=37849r2=37850view=diff Modified: libs/gsweb/trunk/GSWeb/GSWElement.h URL: http://svn.gna.org/viewcvs/gnustep/libs/gsweb/trunk/GSWeb/GSWElement.h?rev=37850r1=37849r2=37850view=diff Modified: libs/gsweb/trunk/GSWeb/GSWElement.m URL: http://svn.gna.org/viewcvs/gnustep/libs/gsweb/trunk/GSWeb/GSWElement.m?rev=37850r1=37849r2=37850view=diff ___ Gnustep-cvs mailing list Gnustep-cvs@gna.org https://mail.gna.org/listinfo/gnustep-cvs
[Gnustep-cvs] r37852 - in /libs/back/trunk: ChangeLog Tools/gpbs.m
Author: fredkiefer Date: Wed May 7 00:22:34 2014 New Revision: 37852 URL: http://svn.gna.org/viewcvs/gnustep?rev=37852view=rev Log: * Tools/gpbs.m: Revert last change and correct the implementation and usage of gpbs_log. Modified: libs/back/trunk/ChangeLog libs/back/trunk/Tools/gpbs.m Modified: libs/back/trunk/ChangeLog URL: http://svn.gna.org/viewcvs/gnustep/libs/back/trunk/ChangeLog?rev=37852r1=37851r2=37852view=diff == --- libs/back/trunk/ChangeLog (original) +++ libs/back/trunk/ChangeLog Wed May 7 00:22:34 2014 @@ -1,8 +1,13 @@ +2014-05-07 Fred Kiefer fredkie...@gmx.de + + * Tools/gpbs.m: Revert last change and correct the implementation + and usage of gpbs_log. + 2014-05-06 Ivan Vucica i...@vucica.net * Tools/gpbs.m: Removed barely used, overly complex and almost certainly buggy logging code. - + 2014-05-05 Ivan Vucica i...@vucica.net * ChangeLog: Corrected year for some recent commits. Modified: libs/back/trunk/Tools/gpbs.m URL: http://svn.gna.org/viewcvs/gnustep/libs/back/trunk/Tools/gpbs.m?rev=37852r1=37851r2=37852view=diff == --- libs/back/trunk/Tools/gpbs.m(original) +++ libs/back/trunk/Tools/gpbs.mWed May 7 00:22:34 2014 @@ -53,6 +53,77 @@ static BOOLauto_stop = NO; /* Stop when all connections closed. */ static NSMutableArray *connections = nil; + +#if defined(HAVE_SYSLOG) || defined(HAVE_SLOGF) +# if defined(HAVE_SLOGF) +#include sys/slogcodes.h +#include sys/slog.h +#define LOG_CRIT _SLOG_CRITICAL +#define LOG_DEBUG _SLOG_DEBUG1 +#define LOG_ERR _SLOG_ERROR +#define LOG_INFO _SLOG_INFO +#define LOG_WARNING _SLOG_WARNING +#define syslog(prio, msg,...) slogf(_SLOG_SETCODE(_SLOG_SYSLOG, 0), prio, msg, __VA_ARGS__) +# endif +static int log_priority = LOG_DEBUG; + +static void +gpbs_log (int prio, const char *ebuf) +{ + if (is_daemon) +{ +# if defined(HAVE_SLOGF) + // Let's not have 0 as the value for prio. It means shutdown on QNX + syslog (prio ? prio : log_priority, %s, ebuf); +# else + syslog (log_priority | prio, %s, ebuf); +# endif +} + else if (prio == LOG_INFO) +{ + write (1, ebuf, strlen (ebuf)); + write (1, \n, 1); +} + else +{ + write (2, ebuf, strlen (ebuf)); + write (2, \n, 1); +} + + if (prio == LOG_CRIT) +{ + if (is_daemon) + { + syslog (LOG_CRIT, %s, exiting.); + } + else + { + fprintf (stderr, exiting.\n); + fflush (stderr); + } + exit(EXIT_FAILURE); +} +} +#else + +#defineLOG_CRIT2 +#define LOG_DEBUG 0 +#define LOG_ERR1 +#define LOG_INFO 0 +#define LOG_WARNING0 +void +gpbs_log (int prio, const char *ebuf) +{ + write (2, ebuf, strlen (ebuf)); + write (2, \n, 1); + if (prio == LOG_CRIT) +{ + fprintf (stderr, exiting.\n); + fflush (stderr); + exit(EXIT_FAILURE); +} +} +#endif @class PasteboardServer; @class PasteboardObject; @@ -1056,6 +1127,7 @@ static void init(int argc, char** argv, char **env) { + NSUserDefaults *defs; NSProcessInfo*pInfo; NSMutableArray *args; unsigned count; @@ -1150,13 +1222,19 @@ } NS_HANDLER { - NSLog(@An exception has ocurred.); + gpbs_log(LOG_CRIT, [[localException description] UTF8String]); DESTROY(t); } NS_ENDHANDLER exit(EXIT_FAILURE); } + /* + * Make gpbs logging go to syslog unless overridden by user. + */ + defs = [NSUserDefaults standardUserDefaults]; + [defs registerDefaults: [NSDictionary dictionaryWithObjectsAndKeys: +@YES, @GSLogSyslog, nil]]; } ___ Gnustep-cvs mailing list Gnustep-cvs@gna.org https://mail.gna.org/listinfo/gnustep-cvs