[darwinbuild-changes] [47] trunk/darwinxref/plugins/inherits.c
source_changes at macosforge.org
source_changes at macosforge.org
Wed Oct 4 01:41:38 PDT 2006
Revision: 47
http://trac.macosforge.org/projects/darwinbuild/changeset/47
Author: kevin
Date: 2006-10-04 01:41:37 -0700 (Wed, 04 Oct 2006)
Log Message:
-----------
- don't require a project name argument
Modified Paths:
--------------
trunk/darwinxref/plugins/inherits.c
Modified: trunk/darwinxref/plugins/inherits.c
===================================================================
--- trunk/darwinxref/plugins/inherits.c 2005-07-09 00:13:19 UTC (rev 46)
+++ trunk/darwinxref/plugins/inherits.c 2006-10-04 08:41:37 UTC (rev 47)
@@ -33,16 +33,15 @@
#include "DBPlugin.h"
static int run(CFArrayRef argv) {
- if (CFArrayGetCount(argv) != 1) return -1;
+ if (CFArrayGetCount(argv) != 0) return -1;
CFStringRef build = DBGetCurrentBuild();
- CFStringRef project = CFArrayGetValueAtIndex(argv, 0);
- CFStringRef inherits = DBCopyPropString(build, project, CFSTR("inherits"));
- cfprintf(stdout, "%@\n", inherits);
+ CFStringRef inherits = DBCopyPropString(build, NULL, CFSTR("inherits"));
+ if (inherits) cfprintf(stdout, "%@\n", inherits);
return 0;
}
static CFStringRef usage() {
- return CFRetain(CFSTR("<project>"));
+ return CFRetain(CFSTR(""));
}
int initialize(int version) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20061004/b8484050/attachment.html
More information about the darwinbuild-changes
mailing list