Permalink
Browse files

purge trailing whitespace

  • Loading branch information...
1 parent d6263e3 commit 87cb06022a1e889d28e923326b494b8d830de5bb @andrewschleifer andrewschleifer committed Nov 28, 2010
Showing with 160 additions and 162 deletions.
  1. +15 −15 objc/block.h
  2. +4 −4 objc/block.m
  3. +1 −1 objc/bridge.m
  4. +2 −2 objc/bridgesupport.h
  5. +2 −2 objc/dtrace.h
  6. +1 −1 objc/enumerable.h
  7. +2 −2 objc/exception.h
  8. +10 −10 objc/exception.m
  9. +6 −6 objc/extensions.m
  10. +1 −1 objc/ivars.m
  11. +81 −81 objc/mach_override.c
  12. +7 −7 objc/mach_override.h
  13. +4 −4 objc/macro_0.h
  14. +4 −4 objc/macro_1.h
  15. +1 −1 objc/macro_1.m
  16. +6 −6 objc/nu.m
  17. +0 −2 objc/nutypes.h
  18. +3 −3 objc/objc_runtime.m
  19. +2 −2 objc/object.m
  20. +8 −8 objc/operator.h
View
@@ -1,6 +1,6 @@
/*!
@header block.h
-@discussion Declarations for the NuBlock class.
+@discussion Declarations for the NuBlock class.
@copyright Copyright (c) 2007 Neon Design Technology, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,7 +13,7 @@ Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
-limitations under the License.
+limitations under the License.
*/
#import <Foundation/Foundation.h>
@@ -24,24 +24,24 @@ limitations under the License.
@abstract The Nu representation of functions.
@discussion A Nu Block is an anonymous function with a saved execution context.
This is commonly referred to as a closure.
-
- In Nu programs, blocks may be directly created using the <b>do</b> operator.
- Since blocks are objects, they may be passed as method and function arguments and may be assigned to names.
+
+ In Nu programs, blocks may be directly created using the <b>do</b> operator.
+ Since blocks are objects, they may be passed as method and function arguments and may be assigned to names.
When a block is assigned to a name, the block will be called when a list is evaluated that
- contains that name at its head;
- the remainder of the list will be evaluated and passed to the block as the block's arguments.
-
+ contains that name at its head;
+ the remainder of the list will be evaluated and passed to the block as the block's arguments.
+
Blocks are implicitly created by several other operators.
-
+
The Nu <b>function</b> operator uses blocks to create new named functions.
-
- The Nu <b>macro</b> operator uses blocks to create macros.
+
+ The Nu <b>macro</b> operator uses blocks to create macros.
Since macros evaluate in their callers' contexts, no context information is kept for blocks used to create macros.
-
+
The <b>imethod</b> and <b>cmethod</b> operators use blocks to create new method implementations.
When a block is called as a method implementation, its context includes the symbols
<b>self</b> and <b>super</b>. This allows method implementations to send messages to
- the owning object and its superclass.
+ the owning object and its superclass.
*/
@interface NuBlock : NSObject
{
@@ -56,8 +56,8 @@ limitations under the License.
- (NuCell *) parameters;
/*! Get the body of code that is evaluated during block evaluation. */
- (NuCell *) body;
-/*! Get the lexical context of the block.
- This is a dictionary containing the symbols and associated values at the point
+/*! Get the lexical context of the block.
+ This is a dictionary containing the symbols and associated values at the point
where the block was created. */
- (NSMutableDictionary *) context;
/*! Evaluate a block using the specified arguments and calling context. */
View
@@ -52,20 +52,20 @@ - (id) initWithParameters:(NuCell *)p body:(NuCell *)b context:(NSMutableDiction
// Check for the presence of "*args" in parameter list
id plist = parameters;
-
+
if (!( ([parameters length] == 1)
&& ([[[parameters car] stringValue] isEqualToString:@"*args"])))
{
- while (plist && (plist != Nu__null))
+ while (plist && (plist != Nu__null))
{
id parameter = [plist car];
-
+
if ([[parameter stringValue] isEqualToString:@"*args"])
{
printf("Warning: Overriding implicit variable '*args'.\n");
return self;
}
-
+
plist = [plist cdr];
}
}
View
@@ -38,7 +38,7 @@
#import "handler.h"
#import <sys/mman.h>
-/*
+/*
* types:
* c char
* i int
View
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
-/*!
+/*!
@class NuBridgeSupport
@abstract A reader for Apple's BridgeSupport files.
@discussion Methods of this class are used to read Apple's BridgeSupport files.
@@ -27,4 +27,4 @@ limitations under the License.
/*! Import a BridgeSupport description of a framework from a specified path. Store the results in the specified dictionary. */
+ (void)importFramework:(NSString *) framework fromPath:(NSString *) path intoDictionary:(NSMutableDictionary *) BridgeSupport;
-@end
+@end
View
@@ -20,15 +20,15 @@ extern "C" {
__asm__ volatile(".reference " NU_TYPEDEFS); \
__dtrace_probe$nu$list_eval_begin$v1$63686172202a$696e74((char *)arg0, arg1); \
__asm__ volatile(".reference " NU_STABILITY); \
-}
+}
#define NU_LIST_EVAL_BEGIN_ENABLED() \
__dtrace_isenabled$nu$list_eval_begin$v1()
#define NU_LIST_EVAL_END(arg0, arg1) \
{ \
__asm__ volatile(".reference " NU_TYPEDEFS); \
__dtrace_probe$nu$list_eval_end$v1$63686172202a$696e74((char *)arg0, arg1); \
__asm__ volatile(".reference " NU_STABILITY); \
-}
+}
#define NU_LIST_EVAL_END_ENABLED() \
__dtrace_isenabled$nu$list_eval_end$v1()
View
@@ -26,7 +26,7 @@ limitations under the License.
@discussion This class implements methods that act on enumerated collections of objects.
It is designed to be mixed into a class using the include method that Nu adds to NSObject.
The receiving class must have an objectEnumerator method that returns an NSEnumerator.
- Some methods in this class take a callable object as an argument; callable objects are those
+ Some methods in this class take a callable object as an argument; callable objects are those
that have evalWithArguments:context: defined.
*/
@interface NuEnumerable : NSObject
View
@@ -1,6 +1,6 @@
/*!
@header exception.h
-@discussion Declarations for the NuException class.
+@discussion Declarations for the NuException class.
@copyright Copyright (c) 2007 Neon Design Technology, Inc.
Original version by Peter Quade <pq@pqua.de>
@@ -16,7 +16,7 @@ Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
-limitations under the License.
+limitations under the License.
*/
#import <Foundation/Foundation.h>
View
@@ -16,7 +16,7 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
-limitations under the License.
+limitations under the License.
*/
//#define IMPORT_EXCEPTION_HANDLING_FRAMEWORK
@@ -71,11 +71,11 @@ + (void)setDefaultExceptionHandler
NSSetUncaughtExceptionHandler(*Nu_defaultExceptionHandler);
#ifdef IMPORT_EXCEPTION_HANDLING_FRAMEWORK
- [[NSExceptionHandler defaultExceptionHandler]
- setExceptionHandlingMask:(NSHandleUncaughtExceptionMask
- | NSHandleUncaughtSystemExceptionMask
- | NSHandleUncaughtRuntimeErrorMask
- | NSHandleTopLevelExceptionMask
+ [[NSExceptionHandler defaultExceptionHandler]
+ setExceptionHandlingMask:(NSHandleUncaughtExceptionMask
+ | NSHandleUncaughtSystemExceptionMask
+ | NSHandleUncaughtRuntimeErrorMask
+ | NSHandleTopLevelExceptionMask
| NSHandleOtherExceptionMask)];
#endif
}
@@ -115,8 +115,8 @@ - (NuException *)addFunction:(NSString *)function lineNumber:(int)line
- (NuException *)addFunction:(NSString *)function lineNumber:(int)line filename:(NSString *)filename
{
- NuTraceInfo* traceInfo = [[NuTraceInfo alloc] initWithFunction:function
- lineNumber:line
+ NuTraceInfo* traceInfo = [[NuTraceInfo alloc] initWithFunction:function
+ lineNumber:line
filename:filename];
[stackTrace addObject:traceInfo];
@@ -132,7 +132,7 @@ - (NSString *)stringValue
- (NSString*)dumpExcludingTopLevelCount:(int)topLevelCount
{
NSMutableString* dump = [NSMutableString stringWithString:@"Nu uncaught exception: "];
-
+
[dump appendString:[NSString stringWithFormat:@"%@: %@\n", [self name], [self reason]]];
int count = [stackTrace count] - topLevelCount;
@@ -169,7 +169,7 @@ @implementation NuTraceInfo
- (id)initWithFunction:(NSString *)aFunction lineNumber:(int)aLine filename:(NSString *)aFilename
{
self = [super init];
-
+
if (self)
{
filename = [aFilename retain];
View
@@ -309,7 +309,7 @@ - (void) setValue:(id) value forKey:(id) key
#endif
@end
-@interface NuStringEnumerator : NSEnumerator
+@interface NuStringEnumerator : NSEnumerator
{
NSString *string;
int index;
@@ -318,7 +318,7 @@ @interface NuStringEnumerator : NSEnumerator
@implementation NuStringEnumerator
-+ (NuStringEnumerator *) enumeratorWithString:(NSString *) string
++ (NuStringEnumerator *) enumeratorWithString:(NSString *) string
{
return [[[self alloc] initWithString:string] autorelease];
}
@@ -511,7 +511,7 @@ - (NSString *) replaceString:(NSString *) target withString:(NSString *) replace
return s;
}
-- (id) objectEnumerator
+- (id) objectEnumerator
{
return [NuStringEnumerator enumeratorWithString:self];
}
@@ -529,7 +529,7 @@ - (const char *) cStringUsingEncoding:(NSStringEncoding) encoding
}
*/
-- (NSString *) stringByReplacingOccurrencesOfString:(NSString *) before withString:(NSString *) after
+- (NSString *) stringByReplacingOccurrencesOfString:(NSString *) before withString:(NSString *) after
{
return [self stringByReplacingString:before withString:after];
}
@@ -577,7 +577,7 @@ - (void) appendCharacter:(unichar) c
@implementation NSData(Nu)
-- (const unsigned char) byteAtIndex:(int) i
+- (const unsigned char) byteAtIndex:(int) i
{
const unsigned char buffer[2];
[self getBytes:&buffer range:NSMakeRange(i,1)];
@@ -794,7 +794,7 @@ + (id) _timestampForFileNamed:(NSString *) filename
if (filename == Nu__null) return nil;
NSError *error;
#ifdef DARWIN
- NSDictionary *attributes = [[NSFileManager defaultManager]
+ NSDictionary *attributes = [[NSFileManager defaultManager]
attributesOfItemAtPath:[filename stringByExpandingTildeInPath]
error:&error];
#else
View
@@ -32,7 +32,7 @@ void nu_registerIvarForRelease(Class c, NSString *name)
ivarsToRelease = NSCreateMapTable(NSIntegerMapKeyCallBacks, NSObjectMapValueCallBacks, 0);
#else
ivarsToRelease = NSCreateMapTable(NSIntMapKeyCallBacks, NSObjectMapValueCallBacks, 0);
- #endif
+ #endif
}
NSMutableArray *ivars = NSMapGet(ivarsToRelease, c);
if (!ivars) {
Oops, something went wrong.

0 comments on commit 87cb060

Please sign in to comment.