diff --git a/Makefile b/Makefile index 184b0800a..1b88cfb6a 100644 --- a/Makefile +++ b/Makefile @@ -172,7 +172,7 @@ clean: for dir in $(libs); do \ $(MAKE) -C libs/$$dir clean; \ done - + ( cd tools; $(MAKE) cleanDocs ) ./_build/binaries/io_static$(BINARY_SUFFIX) build.io clean || true -rm -f IoBindingsInit.* @@ -198,7 +198,7 @@ dist: git commit -q --no-verify -m "setting version string for release" | true git archive --format=tar --prefix=Io-$(date)/ HEAD | gzip > Io-$(date).tar.gz ls -al Io-$(date).tar.gz - + metrics: ls -1 libs/iovm/source/*.c | io -e 'File standardInput readLines map(asFile contents occurancesOfSeq(";")) sum .. " iovm"' ls -1 libs/basekit/source/*.c | io -e 'File standardInput readLines map(asFile contents occurancesOfSeq(";")) sum .. " basekit"' diff --git a/addons/AVCodec/io/AVCodec.io b/addons/AVCodec/io/AVCodec.io index dd40ea078..703db1917 100644 --- a/addons/AVCodec/io/AVCodec.io +++ b/addons/AVCodec/io/AVCodec.io @@ -8,7 +8,7 @@ AVCodec do( inputCoro ::= nil - //doc AVCodec internalCoro Returns coroutine used for the AVCodec to process data... + //doc AVCodec internalCoro Returns coroutine used for the AVCodec to process data. //doc AVCodec setInternalCoro(aCoro) Private method for setting internalCoro. Returns self. internalCoro ::= nil @@ -22,7 +22,7 @@ outputBuffer empty */ streamDestination ::= AudioDevice - //doc AVCodec path Returns path to file the receiver is reading or writing to. + //doc AVCodec path Returns path to file the receiver is reading from or writing to. //doc AVCodec setPath(aSeq) Sets the path to file the receiver is reading or writing to. Returns self. path ::= nil diff --git a/addons/AVCodec/source/IoAVCodec.c b/addons/AVCodec/source/IoAVCodec.c index 8ae102f7e..b6757356f 100644 --- a/addons/AVCodec/source/IoAVCodec.c +++ b/addons/AVCodec/source/IoAVCodec.c @@ -472,7 +472,7 @@ int IoAVCodec_findStreams(IoAVCodec *self) IoObject *IoAVCodec_isAtEnd(IoAVCodec *self, IoObject *locals, IoMessage *m) { /*doc AVCodec isAtEnd - Returns true if the stream is at it's end, false otherwise. + Returns true if the stream is at its end, false otherwise. */ return IOBOOL(self, DATA(self)->isAtEnd); diff --git a/addons/AsyncRequest/source/IoAsyncRequest.c b/addons/AsyncRequest/source/IoAsyncRequest.c index 13d2888e1..37b17fc9e 100644 --- a/addons/AsyncRequest/source/IoAsyncRequest.c +++ b/addons/AsyncRequest/source/IoAsyncRequest.c @@ -6,7 +6,7 @@ Used for doing asynchronous file i/o. When this addon is loaded, it will overrid the File proto's readToBufferLength, readBufferOfLength and write methods to automatically use AsyncRequests.

-Note: This addon is only needed for async file request - all socket ops are already +Note: This addon is only needed for async file requests - all socket ops are already asynchronous in Io. */ diff --git a/addons/BigNum/source/IoBigNum.c b/addons/BigNum/source/IoBigNum.c index 3111df198..ad11eb584 100644 --- a/addons/BigNum/source/IoBigNum.c +++ b/addons/BigNum/source/IoBigNum.c @@ -2,7 +2,7 @@ //metadoc BigNum category Math /*metadoc BigNum description A wrapper for GNU MP Bignum (arbitrary precision math) library. -Warning: GMP uses the restrictive GNU license which can be a problem if you are hard linking it into a distrbuted application. +Warning: GMP uses the restrictive GNU license which can be a problem if you are hard linking it into a distributed application. */ #define DATA(self) ((IoBigNumData *)(IoObject_dataPointer(self))) @@ -59,7 +59,7 @@ IoBigNum *IoBigNum_proto(void *state) //doc BigNum >>(aNum) Shift right (towards lower bits) op. Returns result. , {"abs", IoBigNum_abs} - //doc BigNum abs absolute op. Returns result. + //doc BigNum abs Absolute op. Returns result. , {"gcd", IoBigNum_gcd} //doc BigNum gcd(aNum) Greatest common denominator op. Returns result. diff --git a/addons/Blowfish/source/IoBlowfish.c b/addons/Blowfish/source/IoBlowfish.c index 0cedb2b95..f8d7c2c51 100644 --- a/addons/Blowfish/source/IoBlowfish.c +++ b/addons/Blowfish/source/IoBlowfish.c @@ -134,7 +134,7 @@ IoObject *IoBlowfish_process(IoBlowfish *self, IoObject *locals, IoMessage *m) { /*doc Blowfish process Process the inputBuffer and appends the result to the outputBuffer. - The processed inputBuffer is empties except for the spare + The processed inputBuffer is emptied except for the spare bytes at the end which don't fit into a cipher block. */ blowfish_ctx *context = &(DATA(self)->context); diff --git a/addons/CGI/io/CGI.io b/addons/CGI/io/CGI.io index 55a56e98d..2f3fdafe9 100644 --- a/addons/CGI/io/CGI.io +++ b/addons/CGI/io/CGI.io @@ -4,7 +4,7 @@ CGI := Object clone do( //metadoc CGI category Networking /*metadoc CGI description -CGI supports accessing CGI parameters passed in environment variable or standard input by a web servers like Apache.Example use: +CGI supports accessing CGI parameters passed in environment variables or standard input by a web servers like Apache. Example use:

 #!./ioServer
 
@@ -165,7 +165,7 @@ asString (pretty string of name, type, size)
 
 
 	/*doc CGI setCookie(name, value, expiresDate, domain, path, secureBool) 
-	Sets a cookie, keep in mind this will not be available in cookies() until they next visit the site.  
+	Sets a cookie, keep in mind this will not be available in cookies() until they next visit to the site.  
 	Parameters other than name and value are optional.
 	*/
 
@@ -279,7 +279,7 @@ asString (pretty string of name, type, size)
 
 	/*doc CGI header(name, value, sendMultiple) 
 	Add a header to the output, may only be called before write() is called.  
-	One of each header will be send unless sendMultiple is true
+	One of each header will be sent unless sendMultiple is true
 	*/
 	header := method(name, value, sendMultiple,
 		if(_headersSent, Exception raise("Content already sent, no more headers may be transmitted"))
@@ -292,7 +292,7 @@ asString (pretty string of name, type, size)
 	_headersToSend := Map clone atPut("content-type", "text/html")
 
 
-	//doc CGI redirect(url) Send a location: and redirect the user.  May only be called before write() is called.  It is left to the caller to stop any further processing.")
+	//doc CGI redirect(url) Send a location: and redirect the user.  May only be called before write() is called.  It is left to the caller to stop any further processing.
 	redirect := method(url,
 		if(_headersSent, Exception raise("Content already sent, too late to redirect"))
 
diff --git a/addons/DBI/source/IoDBI.c b/addons/DBI/source/IoDBI.c
index befb41d67..fe6caadbf 100644
--- a/addons/DBI/source/IoDBI.c
+++ b/addons/DBI/source/IoDBI.c
@@ -133,7 +133,7 @@ IoObject *IoDBI_initWithDriversPath(IoDBI *self, IoObject *locals,
 IoObject *IoDBI_drivers(IoDBI *self, IoObject *locals, IoMessage *m)
 {
 	/*doc DBI drivers
-	Get a list of drivers and it's associated information:
+	Get a list of drivers and its associated information:
 
 	
  1. name
  2. diff --git a/addons/DBI/source/IoDBIResult.c b/addons/DBI/source/IoDBIResult.c index 11ba57fe5..6d9eb65cc 100644 --- a/addons/DBI/source/IoDBIResult.c +++ b/addons/DBI/source/IoDBIResult.c @@ -325,7 +325,7 @@ IoObject *IoDBIResult_foreach(IoDBIResult *self, IoObject *locals, { /*doc DBIResult foreach([Object], value, message) Loops over the records in the result starting at either the first result -(if the cursor has never been moved) or it's current location if moved. i.e. +(if the cursor has never been moved) or its current location if moved. i.e.
     r := conn query("SELECT * FROM people")
    diff --git a/addons/DistributedObjects/io/DOConnection.io b/addons/DistributedObjects/io/DOConnection.io
    index cf0a76336..c65948266 100644
    --- a/addons/DistributedObjects/io/DOConnection.io
    +++ b/addons/DistributedObjects/io/DOConnection.io
    @@ -6,7 +6,7 @@ DOConnection := Object clone do(
     //metadoc DOConnection category Networking
     
     /*metadoc DOConnection description 
    -The DOConnection object is usefull for communicating with remote servers in a way that makes it look just like the sending of local messages. Proxies are automatically created on either side for passed objects, with the exception of strings and numbers, which are passed by value. Example:
    +The DOConnection object is useful for communicating with remote servers in a way that makes it look just like the sending of local messages. Proxies are automatically created on either side for passed objects, with the exception of strings and numbers, which are passed by value. Example:
     
     con := DOConnection clone setHost("127.0.0.1") setPort(8456) connect
     result := con serverObject test(1)
    diff --git a/addons/DistributedObjects/io/DOServer.io b/addons/DistributedObjects/io/DOServer.io
    index 71c7f1796..db2767c2b 100644
    --- a/addons/DistributedObjects/io/DOServer.io
    +++ b/addons/DistributedObjects/io/DOServer.io
    @@ -16,7 +16,7 @@ doServer start
     
    */ - //doc DOServer setRootObject(anObject) Sets the root object which incoming messages will be send to. + //doc DOServer setRootObject(anObject) Sets the root object which incoming messages will be sent to. rootObject ::= nil handleSocket := method(aSocket, con := DOConnection clone diff --git a/addons/Flux/samples/China/china.io b/addons/Flux/samples/China/china.io index 433c0df8b..0a3e0949a 100644 --- a/addons/Flux/samples/China/china.io +++ b/addons/Flux/samples/China/china.io @@ -1486,7 +1486,7 @@ ChinaApp passiveMotion := method(x, y, ChinaApp negatives := list( // Corresponding to clickedCell return values -1 through -7 "It's my turn! Type M, and I'll move something myself ...", - "That color has completed it's mission! Type M.", + "That color has completed its mission! Type M.", "Sorry, wrong color!", "Sorry, that cell is already taken!", "Sorry, that's just not a valid move!", diff --git a/addons/Font/source/GLFont.h b/addons/Font/source/GLFont.h index a265e6a25..cfed9e435 100644 --- a/addons/Font/source/GLFont.h +++ b/addons/Font/source/GLFont.h @@ -29,10 +29,10 @@ typedef struct { int xpos; int ypos; /* the x and y offset into the texture */ int width; int height; /* the width and height of the bitmap */ int left; int top; /* the left and top bitmap offset */ - int advance; /* the x advnace between characters */ + int advance; /* the x advance between characters */ } GLFont_Symbol; -/* Each character caches it's texture coordinates for speed */ +/* Each character caches its texture coordinates for speed */ typedef struct { float left; float right; /* the left and right glTexCoordf() parameters */ float top; float bottom; /* the top and bottom glTexCoordf() parameters */ @@ -68,7 +68,7 @@ void GLFont_free(GLFont *self); /* creates and loads a font */ void GLFont_loadFont(GLFont *self, const char *path); -/* set's the font's size, recreating the texture */ +/* sets the font's size, recreating the texture */ void GLFont_setPixelSize(GLFont *self, unsigned int size); int GLFont_pixelSize(GLFont *self); int GLFont_isTextured(GLFont *self); diff --git a/addons/Font/source/IoFont.c b/addons/Font/source/IoFont.c index 27339c82b..5aff342fb 100644 --- a/addons/Font/source/IoFont.c +++ b/addons/Font/source/IoFont.c @@ -252,7 +252,7 @@ IoObject *IoFont_drawString(IoFont *self, IoObject *locals, IoMessage *m) /*doc Font drawString(aString, optionalStartIndex, optionalEndIndex) Draws aString using the optional start and end indexes, if supplied. Returns self.

    -Note; Fonts are draw as RGBA pixel maps. These blending options are recommended: +Note; Fonts are drawn as RGBA pixel maps. These blending options are recommended:

    	
     glEnable(GL_BLEND)
     glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
    diff --git a/addons/Image/source/IoImage.c b/addons/Image/source/IoImage.c
    index fcc39eac3..e88a588b8 100644
    --- a/addons/Image/source/IoImage.c
    +++ b/addons/Image/source/IoImage.c
    @@ -4,7 +4,7 @@
     //metadoc Image category Graphics
     /*metadoc Image description
     The Image object can read and draw images and provide the image 
    -data as a buffer. Example use;
    +data as a buffer. Example use:
     
    	
     image = Image clone open("curly.png")
     image draw
    @@ -170,7 +170,7 @@ void IoImage_checkError(IoImage *self, IoObject *locals, IoMessage *m)
     IoObject *IoImage_setDataWidthHeightComponentCount(IoImage *self, IoObject *locals, IoMessage *m)
     {
     	/*doc Image setDataWidthHeightComponentCount(aSequence, width, height, componentCount)
    -	Sets the image data and it's parameters. Returns self.
    +	Sets the image data and its parameters. Returns self.
     	*/
     
     	IoSeq *data = IoMessage_locals_seqArgAt_(m, locals, 0);
    @@ -244,7 +244,7 @@ IoObject *IoImage_data(IoImage *self, IoObject *locals, IoMessage *m)
     {
     	/*doc Image data
     	Returns a Buffer primitive containing the image data (loading it first if needed). 
    -	Manipulating this data will effect what is drawn when the receiver's draw method is called.
    +	Manipulating this data will affect what is drawn when the receiver's draw method is called.
     	*/
     
     	return DATA(self)->buffer;
    diff --git a/addons/Image/source/JPGImage.h b/addons/Image/source/JPGImage.h
    index 196dd17d2..601358298 100644
    --- a/addons/Image/source/JPGImage.h
    +++ b/addons/Image/source/JPGImage.h
    @@ -5,7 +5,7 @@
      *
      *  It's possible to use an external UArray for loading by calling
      *  JPGImage_setExternalUArray_(), but be carefull not to use the
    - *  JPGImage instance after freeing it's external byte array.
    + *  JPGImage instance after freeing its external byte array.
      */
     
     #ifndef JPGIMAGE_DEFINED
    diff --git a/addons/Image/source/PNGImage.c b/addons/Image/source/PNGImage.c
    index b3d31caec..4587b7e5c 100644
    --- a/addons/Image/source/PNGImage.c
    +++ b/addons/Image/source/PNGImage.c
    @@ -76,7 +76,7 @@ void PNGImage_load(PNGImage *self)
     	/* Create and initialize the png_struct with the desired error handler
     		* functions.  If you want to use the default stderr and longjump method,
     	* you can supply NULL for the last three parameters.  We also supply the
    -		* the compiler header file version, so that we know if the application
    +		* compiler header file version, so that we know if the application
     		* was compiled with a compatible version of the library.  REQUIRED
     		*/
     	png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
    diff --git a/addons/Image/source/PNGImage.h b/addons/Image/source/PNGImage.h
    index d61038148..bfee017af 100644
    --- a/addons/Image/source/PNGImage.h
    +++ b/addons/Image/source/PNGImage.h
    @@ -9,7 +9,7 @@
      *
      *  It's possible to use an external UArray for loading by calling
      *  PNGImage_setExternalUArray_(), but be carefull not to use the
    - *  PNGImage instance after freeing it's external byte array.
    + *  PNGImage instance after freeing its external byte array.
      */
     
     #ifndef PNGIMAGE_DEFINED
    diff --git a/addons/Image/source/TIFFImage.h b/addons/Image/source/TIFFImage.h
    index 593ac5e50..b4678f6b9 100644
    --- a/addons/Image/source/TIFFImage.h
    +++ b/addons/Image/source/TIFFImage.h
    @@ -5,7 +5,7 @@
      *
      *  It's possible to use an external UArray for loading by calling
      *  TIFFImage_setExternalUArray_(), but be carefull not to use the
    - *  TIFFImage instance after freeing it's external byte array.
    + *  TIFFImage instance after freeing its external byte array.
      */
     
     #ifndef TIFFIMAGE_DEFINED
    diff --git a/addons/LZO/source/IoLZODecoder.c b/addons/LZO/source/IoLZODecoder.c
    index f9046d966..a7f45b23a 100644
    --- a/addons/LZO/source/IoLZODecoder.c
    +++ b/addons/LZO/source/IoLZODecoder.c
    @@ -103,7 +103,7 @@ IoObject *IoLZODecoder_process(IoLZODecoder *self, IoObject *locals, IoMessage *
     {
     	/*doc LZODecoder process
     	Process the inputBuffer and appends the result to the outputBuffer.
    -	The processed inputBuffer is empties except for the spare bytes at 
    +	The processed inputBuffer is emptied except for the spare bytes at 
     	the end which don't fit into a cipher block.
     	*/
     	
    diff --git a/addons/LZO/source/IoLZOEncoder.c b/addons/LZO/source/IoLZOEncoder.c
    index adc859737..451c50114 100644
    --- a/addons/LZO/source/IoLZOEncoder.c
    +++ b/addons/LZO/source/IoLZOEncoder.c
    @@ -103,7 +103,7 @@ IoObject *IoLZOEncoder_process(IoLZOEncoder *self, IoObject *locals, IoMessage *
     {
     	/*doc LZOEncoder process
     	Process the inputBuffer and appends the result to the outputBuffer.
    -	The processed inputBuffer is empties except for the spare bytes at 
    +	The processed inputBuffer is emptied except for the spare bytes at 
     	the end which don't fit into a cipher block.
     	*/
     	
    diff --git a/addons/Loki/source/IoLinker.c b/addons/Loki/source/IoLinker.c
    index 90ee38d3d..65c7dcef8 100644
    --- a/addons/Loki/source/IoLinker.c
    +++ b/addons/Loki/source/IoLinker.c
    @@ -44,7 +44,7 @@ IoLinker *IoLinker_proto(void *state)
     IoObject *IoLinker_makeCFunction(IoLinker *self, IoObject *locals, IoMessage *m)
     {
     /*doc Linker makeCFunction(aSeq, slotName, object)
    -Creates a CFunction which users the beginning address of the data in aSeq as it's function pointer and 
    +Creates a CFunction which users the beginning address of the data in aSeq as its function pointer and 
     adds the CFunction to the given object on slot slotName.
     */
     	IoSeq *buffer = IoMessage_locals_seqArgAt_(m, locals, 0);
    diff --git a/addons/Loudmouth/io/Loudmouth.io b/addons/Loudmouth/io/Loudmouth.io
    index 655305629..9d1e7caca 100644
    --- a/addons/Loudmouth/io/Loudmouth.io
    +++ b/addons/Loudmouth/io/Loudmouth.io
    @@ -1,7 +1,7 @@
     Loudmouth do(
     //metadoc Loudmouth category Networking
    -/*metadoc Lodumouth description
    -Lodumouth is an async XMPP library written in C.
    +/*metadoc Loudmouth description
    +Loudmouth is an async XMPP library written in C.
     
     Example usage:
     
    @@ -63,7 +63,7 @@ Loudmouth startMainLoop
         super(init)
         self _msgsBuffer = list())
     
    -  //doc Loudmouth with(jid, password) Creates new Lodumouth clone with server details provided in jid.
    +  //doc Loudmouth with(jid, password) Creates a new Loudmouth clone with server details provided in jid.
       with := method(jid, password,
         self clone\
           setJid(jid asString)\
    @@ -76,15 +76,15 @@ Loudmouth startMainLoop
       handleConnect         := method()
       //doc Loudmouth handleConnectFailure Slot called when server is not reachable.
       handleConnectFailure  := method()
    -  //doc Lodumouth handleAuthenticated Slot called upon successful authentication.
    +  //doc Loudmouth handleAuthenticated Slot called upon successful authentication.
       handleAuthenticated   := method()
       //doc Loudmouth handleAuthenticationFailure Slot called if username/password combinaton is wrong.
       handleAuthenticationFailure := method()
       //doc Loudmouth handleDisconnect Slot called upon closing the connection with the server.
       handleDisconnect      := method()
    -  //doc Loudmouth handleSslFailure Slot called if SSL-related problems arrive. Method should return true if it wishes make a connection without SSL, false otherwise.
    +  //doc Loudmouth handleSslFailure Slot called if SSL-related problems arrive. Method should return true if it wishes to make a connection without SSL, false otherwise.
       handleSslFailure      := method(true)
    -  //doc Loudmouth handleMessage(xmppMessage) Slot called when an message arrives via XMPP stream. xmppMessage is a LoudmouthMessage object.
    +  //doc Loudmouth handleMessage(xmppMessage) Slot called when a message arrives via XMPP stream. xmppMessage is a LoudmouthMessage object.
       # Overwrite this method in your clone
       handleMessage         := method()
     
    @@ -93,7 +93,7 @@ Loudmouth startMainLoop
           e := try(self handleMessage(LoudmouthMessage with(self _msgsBuffer removeFirst)))
           e catch(e println)))
     
    -  //doc Loudmouth setPresence(presence[, statusMessage]) Sets aviability/presence and status message.
    +  //doc Loudmouth setPresence(presence[, statusMessage]) Sets availability/presence and status message.
       setPresence := method(_presence, msg,
         msg ifNil(msg = self statusMessage ifNil(""))
     
    diff --git a/addons/Loudmouth/io/LoudmouthMessage.io b/addons/Loudmouth/io/LoudmouthMessage.io
    index eec658eb7..f56cb47fe 100644
    --- a/addons/Loudmouth/io/LoudmouthMessage.io
    +++ b/addons/Loudmouth/io/LoudmouthMessage.io
    @@ -39,7 +39,7 @@ LoudmouthMessage := Object clone do(
         self node attributes at("from", jid asString)
         self)
     
    -  //doc Loudmouth sendVia(loudmouthConnection) Converts message to sequence and sends it via provided Loudmouth connection (Loudmouth object). It updates from property and returns true if message is sent.
    +  //doc Loudmouth sendVia(loudmouthConnection) Converts message to sequence and sends it via the provided Loudmouth connection (Loudmouth object). It updates from property and returns true if message is sent.
       sendVia := method(account,
         self setFrom(account jid)
         account sendRaw(self asString))
    diff --git a/addons/Loudmouth/source/IoLoudmouth.c b/addons/Loudmouth/source/IoLoudmouth.c
    index 735b3070d..93fd0d999 100644
    --- a/addons/Loudmouth/source/IoLoudmouth.c
    +++ b/addons/Loudmouth/source/IoLoudmouth.c
    @@ -164,7 +164,7 @@ void IoLoudmouth_free(IoLoudmouth *self) {
     }
     
     /*** Loudmouth slots ***/
    -//doc Loudmouth startMainLoop Starts GMainLoop. Should be called after connection is established with the server.
    +//doc Loudmouth startMainLoop Starts GMainLoop. Should be called after a connection is established with the server.
     IoObject *IoLoudmouth_startMainLoop(IoLoudmouth *self, IoObject *locals, IoMessage *m) {
       main_loop = g_main_loop_new(main_context, FALSE);
       g_main_loop_run(main_loop);
    @@ -316,7 +316,7 @@ IoObject *IoLoudmouth_status(IoLoudmouth *self, IoObject *locals, IoMessage *m)
       return status;
     }
     
    -//doc Loudmouth send(toJid, message) Sends an message (Sequence) to provided JID (Sequence). Returns true or false.
    +//doc Loudmouth send(toJid, message) Sends a message (Sequence) to provided JID (Sequence). Returns true or false.
     IoObject *IoLoudmouth_send(IoLoudmouth *self, IoObject *locals, IoMessage *m) {
       char *to        = IoMessage_locals_cStringArgAt_(m, locals, 0);
       char *msg_body  = IoMessage_locals_cStringArgAt_(m, locals, 1);
    diff --git a/addons/MD5/source/IoMD5.c b/addons/MD5/source/IoMD5.c
    index f8a331c42..9728a3169 100644
    --- a/addons/MD5/source/IoMD5.c
    +++ b/addons/MD5/source/IoMD5.c
    @@ -3,7 +3,7 @@
     //metadoc MD5 license BSD revised
     //metadoc MD5 category Digests
     /*metadoc MD5 description
    -An object for calculating MD5 hashes. Each has calculation should instiate it's own MD5 instance.
    +An object for calculating MD5 hashes. Each hash calculation should instantiate its own MD5 instance.
     

    Example:

    diff --git a/addons/Obsidian/io/PDB.io b/addons/Obsidian/io/PDB.io
    index cd2c343dc..a0d14755e 100644
    --- a/addons/Obsidian/io/PDB.io
    +++ b/addons/Obsidian/io/PDB.io
    @@ -53,7 +53,7 @@ PDB sync
     
    PDB sync will scan all persistent objects in the vm and save any with changes to their persistent slots. -If the object was already in the database, only it's updated slots will be written. +If the object was already in the database, only its updated slots will be written.

    Removing an entry in a PMap

    diff --git a/addons/Random/source/IoRandom.c b/addons/Random/source/IoRandom.c index fe4d8419e..9798b23d8 100644 --- a/addons/Random/source/IoRandom.c +++ b/addons/Random/source/IoRandom.c @@ -3,7 +3,7 @@ /*metadoc Random description A high quality and reasonably fast random number generator based on Makoto Matsumoto, Takuji Nishimura, and Eric Landry's implementation -of the Mersenne Twister algorithm. The default seed is and xor of +of the Mersenne Twister algorithm. The default seed is a xor of the ANSI C time() and clock() return values. */ //metadoc Random category Math @@ -156,7 +156,7 @@ IoObject *IoRandom_value(IoObject *self, IoObject *locals, IoMessage *m) IoObject *IoRandom_setSeed(IoObject *self, IoObject *locals, IoMessage *m) { /*doc Random setSeed(aNumber) - Sets the random number generator seed to the unsign int version of aNumber. + Sets the random number generator seed to the unsigned int version of aNumber. */ unsigned long v = IoMessage_locals_longArgAt_(m, locals, 0); diff --git a/addons/Range/tests/correctness/RangeTest.io b/addons/Range/tests/correctness/RangeTest.io index 7391aa917..d06c785f1 100644 --- a/addons/Range/tests/correctness/RangeTest.io +++ b/addons/Range/tests/correctness/RangeTest.io @@ -17,7 +17,7 @@ RangeTest := UnitTest clone do( assertEquals(list(10,8,6), decreasingExampleRangeWithCustomStep asList) ) - # Checking for valid index and out of bouns + # Checking for valid index and out of bounds # testat := method( assertEquals(exampleRangeWithCustomStep at(2), 9) @@ -119,7 +119,7 @@ RangeTest := UnitTest clone do( assertEquals(0, decreasingExampleRangeWithCustomStep ?index) ) - # Correctnes of index at range borders + # Correctness of index at range borders # testindex := method( exampleRangeWithCustomStep last @@ -147,7 +147,7 @@ RangeTest := UnitTest clone do( assertEquals(1, decreasingExampleRangeWithCustomStep indexOf(8)) ) - # Should work correct with custom step ranges + # Should work correctly with custom step ranges # testlast := method( assertEquals(9, exampleRangeWithCustomStep last) diff --git a/addons/SGML/io/SGMLElement.io b/addons/SGML/io/SGMLElement.io index 7f3dabfac..89fba0667 100644 --- a/addons/SGML/io/SGMLElement.io +++ b/addons/SGML/io/SGMLElement.io @@ -7,7 +7,7 @@ SGMLElement := Object clone do( //doc SGMLElement name Returns the tag name //doc SGMLElement attributes Returns a Map containing the tag's attributes. //doc SGMLElement subitems Returns a List containing the tag's subitems. - //doc SGMLElement asString Returns a String representation of the tag and all of it's subitems. + //doc SGMLElement asString Returns a String representation of the tag and all of its subitems. name ::= nil attributes ::= Map clone diff --git a/addons/SHA1/source/IoSHA1.c b/addons/SHA1/source/IoSHA1.c index 20d2fcc67..86e167ed9 100644 --- a/addons/SHA1/source/IoSHA1.c +++ b/addons/SHA1/source/IoSHA1.c @@ -2,8 +2,8 @@ //metadoc SHA1 copyright Steve Dekorte 2002 //metadoc SHA1 license BSD revised /*metadoc SHA1 description -An object for calculating SHA1 hashes. Each has calculation -should instiate it's own SHA1 instance. +An object for calculating SHA1 hashes. Each hash calculation +should instantiate its own SHA1 instance.

    Example: diff --git a/addons/SecureSocket/io/SecureServer.io b/addons/SecureSocket/io/SecureServer.io index b2870a23b..f9fa74b4c 100644 --- a/addons/SecureSocket/io/SecureServer.io +++ b/addons/SecureSocket/io/SecureServer.io @@ -26,15 +26,15 @@ SecureServer do( self ) - //doc SecureServer setHost(hostName) Sets the hostName. Returns self.") + //doc SecureServer setHost(hostName) Sets the hostName. Returns self. setHost := method(host, socket setHost(host); self) - //doc SecureServer setPort(aNumber) Sets the port on which the server will listen for connections. Returns self.") + //doc SecureServer setPort(aNumber) Sets the port on which the server will listen for connections. Returns self. setPort := method(port, socket setPort(port); self) - //doc SecureServer port Returns the port on which the server will listen for connections.") + //doc SecureServer port Returns the port on which the server will listen for connections. port := method(socket port) @@ -147,7 +147,7 @@ SecureServer do( s ) - //doc SecureServer stop Stops the server if it is running. Returns self.") + //doc SecureServer stop Stops the server if it is running. Returns self. stop := method( socket close @@ -176,4 +176,4 @@ IPAddress setSlot("clone", method( c setPort(port) c setIp(ip) c -)) \ No newline at end of file +)) diff --git a/addons/Socket/io/A1_Socket.io b/addons/Socket/io/A1_Socket.io index 0e243691d..24c443484 100644 --- a/addons/Socket/io/A1_Socket.io +++ b/addons/Socket/io/A1_Socket.io @@ -167,7 +167,7 @@ Socket do( ) /*doc Socket streamWrite(buffer, optionalProgressBlock) - Write's buffer to the socket. + Writes buffer to the socket. If optionalProgressBlock is supplied, it is periodically called with the number of bytes written as an argument. Returns self on success or an Error object on error. */ @@ -178,7 +178,7 @@ Socket do( ) /*doc Socket writeFromBuffer(optionalProgressBlock) - Write's the contents of the socket's writeBuffer to the socket. + Writes the contents of the socket's writeBuffer to the socket. If optionalProgressBlock is supplied, it is periodically called with the number of bytes written as an argument. Returns self on success or an Error object on error. */ @@ -283,7 +283,7 @@ Socket do( udpWrite := getSlot("asyncUdpWrite") /*doc Socket serverOpen - Opens the socket as a stream, binds it to it's ipAddress and calls asyncListen to prepare the socket to accept connections. + Opens the socket as a stream, binds it to its ipAddress and calls asyncListen to prepare the socket to accept connections. Returns self on success or an Error object on error. */ serverOpen := method( @@ -319,7 +319,7 @@ Socket do( /*doc Socket readUntilSeq(aSequence) - Reads the socket until it's readBuffer contains aSequence, then returns a Sequence + Reads the socket until its readBuffer contains aSequence, then returns a Sequence containing the readBuffer's contents up to (but not including) aSequence and clips that section from the readBuffer. */ readUntilSeq := method(aSeq, diff --git a/addons/Socket/io/A2_Server.io b/addons/Socket/io/A2_Server.io index ab4293830..65826caaa 100644 --- a/addons/Socket/io/A2_Server.io +++ b/addons/Socket/io/A2_Server.io @@ -26,7 +26,7 @@ server start Notes

    Io's use of lightweight threading and select for dealing with sockets makes for -servers that are much more efficient(both memory and cpu wise) than those written +servers that are much more efficient (both memory and cpu wise) than those written with kernel threads and socket polling. */ @@ -69,7 +69,7 @@ with kernel threads and socket polling. ) /*doc Server handleSocket(aSocket) - This method is called when the server accepts a new socket. The new sockets is passed as the argument. + This method is called when the server accepts a new socket. The new socket is passed as the argument. Override this method in your own server subclass. The default implementation raises an exception. */ handleSocket := method(aSocket, diff --git a/addons/Socket/io/A3_Host.io b/addons/Socket/io/A3_Host.io index 22797c64b..fc396bdab 100644 --- a/addons/Socket/io/A3_Host.io +++ b/addons/Socket/io/A3_Host.io @@ -8,7 +8,7 @@ Host := Object clone do( name ::= nil /*doc Host address - Returns the ip address. A DNS lookup is done in the background if the + Returns the IP address. A DNS lookup is done in the background if the address is not already known. Returns an error on lookup failure. */ diff --git a/addons/Socket/io/URL.io b/addons/Socket/io/URL.io index 3b8c58ab0..5ed348e63 100644 --- a/addons/Socket/io/URL.io +++ b/addons/Socket/io/URL.io @@ -421,7 +421,7 @@ page := URL clone setURL(\"http://www.google.com/\") fetch /*doc URL fetchToFile(aFile) Fetch the url and save the result to the specified File object. - Saving is done as the data is read, which help minimize memory usage. + Saving is done as the data is read, which helps minimize memory usage. Returns self on success or nil on error. */ fetchToFile := method(file, @@ -500,7 +500,7 @@ page := URL clone setURL(\"http://www.google.com/\") fetch ) /*doc URL post(parameters, headers) - Sends an http post message. If parameters is a Map, it's key/value pairs are + Sends an HTTP post message. If parameters is a Map, its key/value pairs are send as the post parameters. If parameters is a Sequence or String, it is sent directly. Any headers in the headers map are sent with the request. Returns a sequence containing the response on success or an Error, if one occurs. @@ -602,7 +602,7 @@ page := URL clone setURL(\"http://www.google.com/\") fetch //doc Object doURL(urlString) Fetches the URL and evals it in the context of the receiver. Object doURL := method(url, self doString(URL clone setURL(url) fetch)) -//doc Sequence asURL Returns a new URL object instance with the receiver as it's url string. +//doc Sequence asURL Returns a new URL object instance with the receiver as its url string. Sequence asURL := method(URL with(self)) //doc Map asQueryString Returns an escaped query string representation of this map diff --git a/addons/Socket/source/IoSocket.c b/addons/Socket/source/IoSocket.c index a11edd30d..62d837436 100644 --- a/addons/Socket/source/IoSocket.c +++ b/addons/Socket/source/IoSocket.c @@ -253,7 +253,7 @@ IoObject *IoSocket_asyncUdpOpen(IoSocket *self, IoObject *locals, IoMessage *m) IoObject *IoSocket_asyncConnect(IoSocket *self, IoObject *locals, IoMessage *m) { - //doc Socket asyncConnect(ipAddressObject) Connects ti the given IPAddress and returns self or an Error object on error. + //doc Socket asyncConnect(ipAddressObject) Connects to the given IPAddress and returns self or an Error object on error. IPAddress *address = IoMessage_locals_rawIPAddressArgAt_(m, locals, 0); @@ -330,7 +330,7 @@ IoObject *IoSocket_asyncListen(IoSocket *self, IoObject *locals, IoMessage *m) IoObject *IoSocket_asyncAccept(IoSocket *self, IoObject *locals, IoMessage *m) { - //doc Socket asyncAccept(ipAddressObject) Immediately returns a socket for an connection if one is available or nil otherwise. Returns an Error object on error. + //doc Socket asyncAccept(ipAddressObject) Immediately returns a socket for a connection if one is available or nil otherwise. Returns an Error object on error. IPAddress *address = IoMessage_locals_rawIPAddressArgAt_(m, locals, 0); Socket *socket = Socket_accept(SOCKET(self), address); diff --git a/addons/Syslog/source/IoSyslog.c b/addons/Syslog/source/IoSyslog.c index 37ecc2160..12f0df3c6 100644 --- a/addons/Syslog/source/IoSyslog.c +++ b/addons/Syslog/source/IoSyslog.c @@ -212,7 +212,7 @@ IoObject *IoSyslog_reopen(IoSyslog *self, IoObject *locals, IoMessage *m) IoObject *IoSyslog_isOpen(IoSyslog *self, IoObject *locals, IoMessage *m) { /*doc Syslog isOpen - Returns self if the log is opened for writing. Otherwise, returns Nil.") + Returns self if the log is opened for writing. Otherwise, returns Nil. */ return IOBOOL(self, DATA(self)->syslog_opened); @@ -221,7 +221,7 @@ IoObject *IoSyslog_isOpen(IoSyslog *self, IoObject *locals, IoMessage *m) IoObject *IoSyslog_close(IoSyslog *self, IoObject *locals, IoMessage *m) { /*doc Syslog close - Closes a log that has previously been opened for writing.") + Closes a log that has previously been opened for writing. */ if (!DATA(self)->syslog_opened) @@ -239,7 +239,7 @@ IoObject *IoSyslog_close(IoSyslog *self, IoObject *locals, IoMessage *m) IoObject *IoSyslog_identity(IoSyslog *self, IoObject *locals, IoMessage *m) { /*doc Syslog identity(optionalIdentity) - If optionalIdentity is specified, provides an identity for all of the messages you will be sending to the syslog daemon. Returns the identity.") + If optionalIdentity is specified, provides an identity for all of the messages you will be sending to the syslog daemon. Returns the identity. */ if (IoMessage_argCount(m) >= 1) diff --git a/addons/TokyoCabinet/source/IoTokyoCabinet.c b/addons/TokyoCabinet/source/IoTokyoCabinet.c index b61864dc2..477a8d3e2 100644 --- a/addons/TokyoCabinet/source/IoTokyoCabinet.c +++ b/addons/TokyoCabinet/source/IoTokyoCabinet.c @@ -3,7 +3,7 @@ //metadoc TokyoCabinet copyright Steve Dekorte 2002 //metadoc TokyoCabinet license BSD revised /*metadoc TokyoCabinet description -An ordered key/value database that supports transactions and arbitrary kay and value sizes. +An ordered key/value database that supports transactions and arbitrary key and value sizes. */ #include "IoTokyoCabinet.h" @@ -313,7 +313,7 @@ IoObject *IoTokyoCabinet_sync(IoObject *self, IoObject *locals, IoMessage *m) IoObject *IoTokyoCabinet_size(IoObject *self, IoObject *locals, IoMessage *m) { /*doc TokyoCabinet size - Returns number of records in database. Returns self + Returns number of records in the database. Returns self */ int result; diff --git a/addons/Twitter/io/TwitterRequest.io b/addons/Twitter/io/TwitterRequest.io index 472212a0a..74cdfe496 100644 --- a/addons/Twitter/io/TwitterRequest.io +++ b/addons/Twitter/io/TwitterRequest.io @@ -6,7 +6,7 @@ Sequence asCamelized := method( TwitterRequest := Object clone do( //metadoc TwitterRequest category Networking - //metadoc TwitterRequest description Represents a Twitter API request and contains it's results. + //metadoc TwitterRequest description Represents a Twitter API request and contains its results. host ::= "twitter.com" //doc TwitterRequest host "twitter.com" diff --git a/addons/Twitter/io/TwitterResponse.io b/addons/Twitter/io/TwitterResponse.io index 56cd8efac..ac375e7d2 100644 --- a/addons/Twitter/io/TwitterResponse.io +++ b/addons/Twitter/io/TwitterResponse.io @@ -12,13 +12,13 @@ TwitterResponse := Object clone do( //doc TwitterResponse body Returns request to which this is the response. rateLimitRemaining ::= nil - //doc TwitterResponse rateLimit Remaining Returns the rate limit remaining. + //doc TwitterResponse rateLimitRemaining Returns the rate limit remaining. rateLimitExpiration ::= nil - //doc TwitterResponse rateLimitExpiration Remaining Returns the rate limit expiration. + //doc TwitterResponse rateLimitExpiration Returns the rate limit expiration. results ::= method( - //doc TwitterResponse rateLimitExpiration Remaining Returns response results. + //doc TwitterResponse results Returns response results. setResults(Yajl parseJson(body)) results ) diff --git a/docs/IoGuide.html b/docs/IoGuide.html index 0677b27d4..3bdb43c83 100644 --- a/docs/IoGuide.html +++ b/docs/IoGuide.html @@ -465,7 +465,7 @@

    Command Line Arguments

    launchPath

    -The System "launchPath" slot is set to the location on the initial source file that is executed; when the interactive prompt is started (without specifying a source file to execute), the launchPath is the current working directory: +The System "launchPath" slot is set to the location of the initial source file that is executed; when the interactive prompt is started (without specifying a source file to execute), the launchPath is the current working directory:
     System launchPath
    @@ -876,7 +876,7 @@ 

    Inheritance

    When an object receives a message it looks for a matching slot, if not found, the lookup continues depth first recursively in its protos. Lookup loops are detected (at runtime) and avoided. If the matching slot contains an activatable object, such as a Block or CFunction, it is activated, if it contains any other type of value it returns the value. Io has no globals and the root object in the Io namespace is called the Lobby.

    -Since there are no classes, there's no difference between a subclass and an instance. Here's an example of creating a the equivalent of a subclass: +Since there are no classes, there's no difference between a subclass and an instance. Here's an example of creating the equivalent of a subclass:

     Io> Dog := Object clone
    @@ -1484,7 +1484,7 @@ 

    Futures

    -Io's futures are transparent. That is, when the result is ready, they become the result. If a message is sent to a future (besides the two methods it implements), it waits until it turns into the result before processing the message. Transparent futures are powerful because they allow programs minimize blocking while also freeing the programmer from managing the fine details of synchronization. +Io's futures are transparent. That is, when the result is ready, they become the result. If a message is sent to a future (besides the two methods it implements), it waits until it turns into the result before processing the message. Transparent futures are powerful because they allow programs to minimize blocking while also freeing the programmer from managing the fine details of synchronization.

    Auto Deadlock Detection

    @@ -2289,7 +2289,7 @@

    Source Code

    -Io source files are assumed to be in UTF8 (of which ASCII is a subset). When a source file is read, it s symbols and strings are stored in Sequences in their minimal fixed character width encoding. Examples: +Io source files are assumed to be in UTF8 (of which ASCII is a subset). When a source file is read, its symbols and strings are stored in Sequences in their minimal fixed character width encoding. Examples:
     Io> "hello" encoding
    diff --git a/libs/coroutine/docs/index.html b/libs/coroutine/docs/index.html
    index f10f7d5b1..8f62b3040 100755
    --- a/libs/coroutine/docs/index.html
    +++ b/libs/coroutine/docs/index.html
    @@ -48,7 +48,7 @@ 

    Freeing

    Stacks

    -You can check to see whether a corouinte has nearly exhasted it's stack space by calling: +You can check to see whether a corouinte has nearly exhausted its stack space by calling:
     Coro_stackSpaceAlmostGone(aCoro);
    diff --git a/libs/garbagecollector/docs/index.html b/libs/garbagecollector/docs/index.html
    index bd106f3f7..e547e7b0d 100755
    --- a/libs/garbagecollector/docs/index.html
    +++ b/libs/garbagecollector/docs/index.html
    @@ -187,7 +187,7 @@ 

    Cleaning Up

    Notes

    -No attempt has been made to make this code safe for use when it's functions are called from multiple prememtive threads simultaniously. +No attempt has been made to make this code safe for use when its functions are called from multiple pre-emptive threads simultaneously. diff --git a/libs/iovm/io/A0_List.io b/libs/iovm/io/A0_List.io index acbc9b909..e03e777c3 100644 --- a/libs/iovm/io/A0_List.io +++ b/libs/iovm/io/A0_List.io @@ -261,11 +261,17 @@ list(1, 2, 3, 4) detect(v, v > 2) //doc List itemCopy Returns a new list containing the items from the receiver. itemCopy := method(List clone copy(self)) + //doc List sort Returns a new list containing the sorted items from the receiver. sort := method(self clone sortInPlace) + /*doc List sortBy(aBlock) + Returns a new list containing the items from the receiver, sorted using aBlock as compare function. Example: +list(1, 3, 2, 4, 0) sortBy(block(a, b, a > b)) +==> list(4, 3, 2, 1, 0) +*/ sortBy := method(b, self clone sortInPlaceBy(getSlot("b"))) //doc List second Returns second element (same as at(1)) second := method(at(1)) //doc List second Returns third element (same as at(2)) third := method(at(2)) -) \ No newline at end of file +) diff --git a/libs/iovm/io/A2_Object.io b/libs/iovm/io/A2_Object.io index 9d70d8759..874fa2fa2 100644 --- a/libs/iovm/io/A2_Object.io +++ b/libs/iovm/io/A2_Object.io @@ -328,7 +328,7 @@ Object do( /*doc Object newSlot(slotName, aValue) Creates a getter and setter for the slot with the name slotName - and sets it's default the value aValue. Returns self. For example, + and sets its default value to aValue. Returns self. For example, newSlot("foo", 1) would create slot named foo with the value 1 as well as a setter method setFoo(). */ @@ -340,7 +340,7 @@ Object do( getSlot("value") ) - //doc Object launchFile(pathString) Eval file at pathString as if from the command line in it's folder. + //doc Object launchFile(pathString) Eval file at pathString as if from the command line in its folder. //doc System launchPath Returns a pathComponent of the launch file. launchFile := method(path, args, args ifNil(args = List clone) diff --git a/libs/iovm/io/A4_Exception.io b/libs/iovm/io/A4_Exception.io index 5fcc17c2f..0ccd15bcc 100644 --- a/libs/iovm/io/A4_Exception.io +++ b/libs/iovm/io/A4_Exception.io @@ -9,7 +9,7 @@ Call do( delegateTo := method(target, altSender, /*doc Call delegateTo(target, altSender) - Sends the call's message to target (and relays it's stop status). + Sends the call's message to target (and relays its stop status). The sender is set to altSender, if it is supplied. Returns the result of the message. */ @@ -74,7 +74,7 @@ Coroutine do( //doc Coroutine setException exception ::= nil - //doc Coroutine parentCoroutine Returns the parent coroutine this one was chained from or nil if it wasn't chained. When a Coroutine ends, it will attempt to resume it's parent. + //doc Coroutine parentCoroutine Returns the parent coroutine this one was chained from or nil if it wasn't chained. When a Coroutine ends, it will attempt to resume its parent. //doc Coroutine setParentCoroutine(aCoro) Sets the parent coroutine. Returns self. parentCoroutine ::= nil @@ -82,7 +82,7 @@ Coroutine do( //doc Coroutine setRunTarget(anObject) runTarget ::= nil - //doc Coroutine runLocals The locals object in whose context the coroutine will send it's run message. + //doc Coroutine runLocals The locals object in whose context the coroutine will send its run message. //doc Coroutine setRunLocals runLocals ::= nil diff --git a/libs/iovm/io/File.io b/libs/iovm/io/File.io index deef1b14d..955fdc9b0 100644 --- a/libs/iovm/io/File.io +++ b/libs/iovm/io/File.io @@ -134,7 +134,7 @@ File do( ) Sequence do( - //doc Sequence asFile Returns a new File object with the receiver as it's path. + //doc Sequence asFile Returns a new File object with the receiver as its path. asFile := method( File with(self) ) diff --git a/libs/iovm/io/Number.io b/libs/iovm/io/Number.io index 71c058922..2bc36547a 100644 --- a/libs/iovm/io/Number.io +++ b/libs/iovm/io/Number.io @@ -51,7 +51,7 @@ Number do( //doc Number permutations(size) Returns the permutations where the receiver is the number of different objects and size is the number to be arranged. permutations := method(r, self factorial /((self - r) factorial)) - //doc Number minMax(low, high) Returns a number between or equal to low and high. If the receiver is equal to or between low and high, the reciever is returned. If the reciever is less than low, low is returned. If the receiver is greater than high, high is returned. + //doc Number minMax(low, high) Returns a number between or equal to low and high. If the receiver is equal to or between low and high, the receiver is returned. If the receiver is less than low, low is returned. If the receiver is greater than high, high is returned. minMax := method(low, high, min(high) max(low)) asJson := getSlot("asString") diff --git a/libs/iovm/source/IoBlock.c b/libs/iovm/source/IoBlock.c index 5a3e03d60..a7823480a 100644 --- a/libs/iovm/source/IoBlock.c +++ b/libs/iovm/source/IoBlock.c @@ -310,7 +310,7 @@ IoObject *IoBlock_activate(IoBlock *self, IoObject *target, IoObject *locals, Io else #endif { - // since the callObject doesn't IOREF it's blockLocals pointer + // since the callObject doesn't IOREF its blockLocals pointer if (IoObject_isReferenced(callObject)) { IoObject_isReferenced_(blockLocals, 1); @@ -427,7 +427,7 @@ IO_METHOD(IoBlock, code) IO_METHOD(IoBlock, code_) { /*doc Block setCode(aString) - Set's the reciever's message to a compiled version of aString. Returns self + Set's the receiver's message to a compiled version of aString. Returns self */ IoSymbol *string = IoMessage_locals_symbolArgAt_(m, locals, 0); @@ -512,7 +512,7 @@ IO_METHOD(IoBlock, setScope_) { /*doc Block setScope(anObjectOrNil) If argument is an object, when the block is activated, - it will set the proto and self slots of it's locals to the specified + it will set the proto and self slots of its locals to the specified object. If Nil, it will set them to the target of the message. */ diff --git a/libs/iovm/source/IoDate.c b/libs/iovm/source/IoDate.c index 0083a74f0..2c478adf0 100644 --- a/libs/iovm/source/IoDate.c +++ b/libs/iovm/source/IoDate.c @@ -592,7 +592,7 @@ IO_METHOD(IoDate, asString) Returns a string representation of the receiver using the receivers format. If the optionalFormatString argument is present, the receiver's format is set to it first. Formatting is according to ANSI C -date formating rules. +date formatting rules.

    	
     %a abbreviated weekday name (Sun, Mon, etc.)
    @@ -674,7 +674,7 @@ IO_METHOD(IoDate, fromNumber)
     IO_METHOD(IoDate, fromString)
     {
     	/*doc Date fromString(aString, formatString)
    -	Sets the receiver to the date specified by aString as parsed according to the given formatString. See the Date asString method for formating rules. Returns self. 
    +	Sets the receiver to the date specified by aString as parsed according to the given formatString. See the Date asString method for formatting rules. Returns self. 
     	*/
     
     	IoMessage_assertArgCount_receiver_(m, 2, self);
    diff --git a/libs/iovm/source/IoDirectory.c b/libs/iovm/source/IoDirectory.c
    index 6e5573b60..ee1ebb6a2 100644
    --- a/libs/iovm/source/IoDirectory.c
    +++ b/libs/iovm/source/IoDirectory.c
    @@ -302,7 +302,7 @@ IO_METHOD(IoDirectory, exists)
     {
     	/*doc Directory exists(optionalPath)
     	Returns true if the Directory path exists, and false otherwise.
    -	If optionalPath string is provided, it tests the existance of that path instead. 
    +	If optionalPath string is provided, it tests the existence of that path instead. 
     	*/
     
     	IoSymbol *path = DATA(self)->path;
    @@ -563,7 +563,7 @@ int IoDirectory_SetCurrentWorkingDirectory(char *p)
     IO_METHOD(IoDirectory, setCurrentWorkingDirectory)
     {
     	/*doc Directory setCurrentWorkingDirectory(pathString)
    -	Set's the current working directory path.
    +	Sets the current working directory path.
     	Returns true on success or false on error.
     	*/
     
    diff --git a/libs/iovm/source/IoDynLib.c b/libs/iovm/source/IoDynLib.c
    index 718da1759..9f1d906fe 100644
    --- a/libs/iovm/source/IoDynLib.c
    +++ b/libs/iovm/source/IoDynLib.c
    @@ -68,7 +68,7 @@ IoDynLib *IoDynLib_rawClone(IoDynLib *proto)
     {
     	/*
     	Note that due to the nature of this object, a clone will *NOT* inherit
    -	it's parent's dynamically loaded object.
    +	its parent's dynamically loaded object.
     	*/
     
     	IoObject *self = IoObject_rawClonePrimitive(proto);
    diff --git a/libs/iovm/source/IoFile.c b/libs/iovm/source/IoFile.c
    index deeff111d..12a5b2139 100644
    --- a/libs/iovm/source/IoFile.c
    +++ b/libs/iovm/source/IoFile.c
    @@ -4,7 +4,7 @@
     //metadoc File category Core
     /*metadoc File description
     Encapsulates file i/o. Here's an example of opening a file, 
    -and reversing it's lines:
    +and reversing its lines:
     
    	
     file = File clone openForUpdating("/tmp/test")
     lines = file readLines reverse
    @@ -993,7 +993,7 @@ IO_METHOD(IoFile, positionAtEnd)
     IO_METHOD(IoFile, isAtEnd)
     {
     	/*doc File isAtEnd
    -	Returns true if the file is at it's end. Otherwise returns false.
    +	Returns true if the file is at its end. Otherwise returns false.
     	*/
     
     	IoFile_assertOpen(self, locals, m);
    diff --git a/libs/iovm/source/IoMessage.c b/libs/iovm/source/IoMessage.c
    index 01deeb525..7cd7492c5 100644
    --- a/libs/iovm/source/IoMessage.c
    +++ b/libs/iovm/source/IoMessage.c
    @@ -421,7 +421,7 @@ IO_METHOD(IoMessage, characterNumber)
     {
     	/*doc Message characterNumber
     	Returns the message character number. The charcter number is typically
    -	the beggining character index in the source text from with the message was read. 
    +	the beginning character index in the source text from with the message was read. 
     	*/
     
     	return IONUMBER(0);
    @@ -441,7 +441,7 @@ IO_METHOD(IoMessage, setCharacterNumber)
     IO_METHOD(IoMessage, label)
     {
     	/*doc Message label
    -	Returns the message label. The label is typically set the the
    +	Returns the message label. The label is typically set to the
     	name of the file from which the source code for the message was read.
     	*/
     
    diff --git a/libs/iovm/source/IoMessage_opShuffle.c b/libs/iovm/source/IoMessage_opShuffle.c
    index 4a371271f..0c14f93ee 100644
    --- a/libs/iovm/source/IoMessage_opShuffle.c
    +++ b/libs/iovm/source/IoMessage_opShuffle.c
    @@ -170,7 +170,7 @@ Levels *Levels_new(IoMessage *msg)
     	IoState *state = IoObject_state(msg);
     	IoSymbol *operatorTableSymbol = IoState_symbolWithCString_(state, "OperatorTable");
     
    -	/* Be ultra flexable, and try to use the first message's operator table. */
    +	/* Be ultra flexible, and try to use the first message's operator table. */
     	IoObject *opTable = IoObject_rawGetSlot_(msg, operatorTableSymbol);
     
     	// Otherwise, use Core OperatorTable, and if that does not exist, create it.
    diff --git a/libs/iovm/source/IoNumber.c b/libs/iovm/source/IoNumber.c
    index 4aa6044a2..a0b015b36 100644
    --- a/libs/iovm/source/IoNumber.c
    +++ b/libs/iovm/source/IoNumber.c
    @@ -393,7 +393,7 @@ IO_METHOD(IoNumber, subtract)
     IO_METHOD(IoNumber, divide)
     {
     	/*doc Number /(aNumber)
    -	Returns a new number with the value of the receiver diveded by aNumber.
    +	Returns a new number with the value of the receiver divided by aNumber.
     	*/
     	
     	IoNumber *other = IoMessage_locals_numberArgAt_(m, locals, 0);
    @@ -525,7 +525,7 @@ IO_METHOD(IoNumber, asBuffer)
     {
     	/*doc Number asBuffer(optionalNumberOfBytes)
     	Returns a Buffer containing a the number of bytes specified by
    -	optionalNumberOfBytes (up to the size of a double on the platform) of the reciever.
    +	optionalNumberOfBytes (up to the size of a double on the platform) of the receiver.
     	If no optionalNumberOfBytes is specified, it is assumed to be the number of bytes
     	in a double on the host platform.
     	*/
    @@ -643,7 +643,7 @@ IO_METHOD(IoNumber, ceil)
     {
     	/*doc Number ceil
     	Returns the a number with the receiver's value rounded up to
    -	the nearest integer if it's fractional component is greater than 0.
    +	the nearest integer if its fractional component is greater than 0.
     	*/
     	
     	return IONUMBER(ceil(DATA(self)));
    @@ -693,8 +693,8 @@ IO_METHOD(IoNumber, factorial)
     IO_METHOD(IoNumber, floor)
     {
     	/*doc Number floor
    -	Returns the a number with the receiver's value rounded
    -	down to the nearest integer if it's fractional component is not 0.
    +	Returns a number with the receiver's value rounded
    +	down to the nearest integer if its fractional component is not 0.
     	*/
     	
     	return IONUMBER(floor(DATA(self)));
    @@ -798,8 +798,8 @@ IO_METHOD(IoNumber, pow)
     IO_METHOD(IoNumber, round)
     {
     	/*doc Number round
    -	Returns the a number with the receiver's value rounded up to
    -	the nearest integer if it's fraction component is >= .5 or rounded up the the nearest integer otherwises..
    +	Returns a number with the receiver's value rounded up to
    +	the nearest integer if its fraction component is >= .5 or rounded up to the nearest integer otherwise.
     	*/
     	
     	double x = DATA(self);
    @@ -812,8 +812,8 @@ IO_METHOD(IoNumber, round)
     IO_METHOD(IoNumber, roundDown)
     {
     	/*doc Number roundDown
    -	Returns the a number with the receiver's value rounded down to
    -	the nearest integer if it's fraction component is <= .5 or rounded up the the nearest integer otherwises.
    +	Returns a number with the receiver's value rounded down to
    +	the nearest integer if its fraction component is <= .5 or rounded up the the nearest integer otherwise.
     	*/
     	
     	return IONUMBER(floor(DATA(self) + 0.5));
    @@ -939,7 +939,7 @@ IO_METHOD(IoNumber, bitwiseComplement)
     {
     	/*doc Number bitwiseComplement
     	Returns a new number with the bitwise complement of the
    -	receiver. (Turns the 0 bits of become 1s and the 1 bits become 0s. )
    +	receiver. (The 0 bits become 1s and the 1 bits become 0s. )
     	*/
     
     	long r = (double)(~(long)DATA(self));
    @@ -1143,7 +1143,7 @@ IO_METHOD(IoNumber, asUppercase)
     IO_METHOD(IoNumber, between)
     {
     	/*doc Number between(aNumber1, aNumber2)
    -	Returns the true if the receiver's value is between or
    +	Returns true if the receiver's value is between or
     	equal to aNumber1 and aNumber2, otherwise returns false.
     	*/
     
    @@ -1184,7 +1184,7 @@ IO_METHOD(IoNumber, at)
     {
     	/*doc Number at(bitIndexNumber)
     	Returns a new Number containing 1 if the receiver cast to a long
    -	has it's bit set to 1 at bitIndexNumber. Otherwise returns 0.
    +	has its bit set to 1 at bitIndexNumber. Otherwise returns 0.
     	*/
     
     	int i = IoMessage_locals_intArgAt_(m, locals, 0);
    @@ -1333,7 +1333,7 @@ IO_METHOD(IoNumber, repeat)
     {
     	/*doc Number repeat(optionalIndex, expression)
     	Evaluates message a number of times that corresponds to the receivers
    -	integer value. This is significantly  faster than a for() or while() loop.
    +	integer value. This is significantly faster than a for() or while() loop.
     	*/
     
     	IoMessage_assertArgCount_receiver_(m, 1, self);
    diff --git a/libs/iovm/source/IoObject.c b/libs/iovm/source/IoObject.c
    index feb427337..01a2f5530 100644
    --- a/libs/iovm/source/IoObject.c
    +++ b/libs/iovm/source/IoObject.c
    @@ -5,7 +5,7 @@
     /*metadoc Object description
     An Object is a key/value dictionary with string keys and values of any type.
     The prototype Object contains a clone slot that is a CFuntion that creates new objects.
    -When cloned, an Object will call it's init slot (with no arguments).
    +When cloned, an Object will call its init slot (with no arguments).
     */
     
     #include "IoState.h"
    @@ -1240,7 +1240,7 @@ IO_METHOD(IoObject, protoSlotNames)
     {
     	/*doc Object slotNames
     	Returns a list of strings containing the names of the
    -	slots in the receiver (but not in it's lookup path).
    +	slots in the receiver (but not in its lookup path).
     	*/
     
     	IoObject_createSlotsIfNeeded(self);
    @@ -1847,7 +1847,7 @@ IO_METHOD(IoObject, setIsActivatableMethod)
     {
     	/*doc Object setIsActivatable(aValue)
     	When called with a non-Nil aValue, sets the object
    -	to call it's activate slot when accessed as a value. Turns this behavior
    +	to call its activate slot when accessed as a value. Turns this behavior
     	off if aValue is Nil. Only works on Objects which are not Activatable
     	Primitives (such as CFunction or Block). Returns self.
     	*/
    diff --git a/libs/iovm/source/IoObject_struct.h b/libs/iovm/source/IoObject_struct.h
    index 06a8d3c51..ba8abb3ec 100644
    --- a/libs/iovm/source/IoObject_struct.h
    +++ b/libs/iovm/source/IoObject_struct.h
    @@ -51,7 +51,7 @@ struct IoObjectData
     
     	unsigned int hasDoneLookup : 1;    // used to avoid slot lookup loops
     	unsigned int isActivatable : 1;    // if true, upon activation, call activate slot
    -	unsigned int isDirty : 1;          // set to true when the object changes it's storable state
    +	unsigned int isDirty : 1;          // set to true when the object changes its storable state
     
     	// optimizations
     
    diff --git a/libs/iovm/source/IoSeq_immutable.c b/libs/iovm/source/IoSeq_immutable.c
    index ab0e1ad63..5fe15a557 100644
    --- a/libs/iovm/source/IoSeq_immutable.c
    +++ b/libs/iovm/source/IoSeq_immutable.c
    @@ -126,7 +126,7 @@ IO_METHOD(IoSeq, asFixedSizeType)
     {
     	/*doc Sequence asFixedSizeType
     	Returns a new sequence with the receiver encoded in the 
    -	minimal fixed width text encoding that it's characters can fit 
    +	minimal fixed width text encoding that its characters can fit 
     	into (either, ascii, utf8, utf16 or utf32). 
     	*/
     	
    @@ -403,7 +403,7 @@ IO_METHOD(IoSeq, between)
     {
     	/*doc Sequence betweenSeq(aSequence, anotherSequence)
     	Returns a new Sequence containing the bytes between the
    -	occurance of aSequence and anotherSequence in the receiver. 
    +	occurrence of aSequence and anotherSequence in the receiver. 
     	If aSequence is empty, this method is equivalent to beforeSeq(anotherSequence).
     	If anotherSequence is nil, this method is equivalent to afterSeq(aSequence).
     	nil is returned if no match is found.
    @@ -472,7 +472,7 @@ IO_METHOD(IoSeq, between)
     IO_METHOD(IoSeq, findSeqs)
     {
     	/*doc Sequence findSeqs(listOfSequences, optionalStartIndex)
    -	Returns a object with two slots - an \"index\" slot which contains 
    +	Returns an object with two slots - an \"index\" slot which contains 
     	the first occurrence of any of the sequences in listOfSequences found 
     	in the receiver after the startIndex, and a \"match\" slot, which 
     	contains a reference to the matching sequence from listOfSequences. 
    @@ -844,7 +844,7 @@ IO_METHOD(IoSeq, fromBase)
     IO_METHOD(IoSeq, toBase)
     {
     	/*doc Sequence toBase(aNumber)
    -	Returns a Sequence containing the receiver(which is
    +	Returns a Sequence containing the receiver (which is
     	assumed to be a base 10 number) converted to the specified base.
     	Only base 8 and 16 are currently supported. 
     	*/
    @@ -878,7 +878,7 @@ IO_METHOD(IoSeq, toBase)
     	return IoSeq_newWithCString_(IOSTATE, ptr);
     }
     
    -// this function only called by IoSeq_foreach()
    +// this function is only called by IoSeq_foreach()
     IO_METHOD(IoSeq, each)
     {
     	IoState *state = IOSTATE;
    @@ -917,7 +917,7 @@ IO_METHOD(IoSeq, foreach)
     {
     /*doc Sequence foreach(optionalIndex, value, message)
     For each element, set index to the index of the
    -element and value the element value and execute message. 
    +element and value to the element value and execute message. 
     Example:
     
    	
     aSequence foreach(i, v, writeln("value at index ", i, " is ", v))
    @@ -1044,7 +1044,7 @@ IO_METHOD(IoSeq, asUppercase)
     IO_METHOD(IoSeq, asLowercase)
     {
     	/*doc Sequence asLowercase
    -	Returns a symbol containing the reveiver made Lowercase. 
    +	Returns a symbol containing the reveiver made lowercase. 
     	*/
     
     	UArray *ba = UArray_clone(DATA(self));
    @@ -1287,7 +1287,7 @@ IO_METHOD(IoSeq, greaterThan_)
     IO_METHOD(IoSeq, lessThan_)
     {
     	/*doc Sequence lessThan(aSeq) 
    -	Returns true if the receiver is lass than aSeq, false otherwise.
    +	Returns true if the receiver is less than aSeq, false otherwise.
     	*/
     	
     	IoSeq *other = IoMessage_locals_seqArgAt_(m, locals, 0);
    @@ -1307,7 +1307,7 @@ IO_METHOD(IoSeq, greaterThanOrEqualTo_)
     IO_METHOD(IoSeq, lessThanOrEqualTo_)
     {
     	/*doc Sequence lessThanOrEqualTo(aSeq) 
    -	Returns true if the receiver is lass than or equal to aSeq, false otherwise.
    +	Returns true if the receiver is less than or equal to aSeq, false otherwise.
     	*/
     	
     	IoSeq *other = IoMessage_locals_seqArgAt_(m, locals, 0);
    @@ -1328,8 +1328,8 @@ IO_METHOD(IoSeq, asStruct)
     {
     /*doc Sequence asStruct(memberList) 
     For a sequence that contains the data for a raw memory data structure (as used in C),
    -this method can be used to extract it's members into an Object. The memberList argument
    -specifies the layout of the datastructure. It's form is:
    +this method can be used to extract its members into an Object. The memberList argument
    +specifies the layout of the datastructure. Its form is:
     

    list(memberType1, memberName1, memberType2, memberName2, ...)

    diff --git a/libs/iovm/source/IoSeq_immutable.h b/libs/iovm/source/IoSeq_immutable.h index 684d304fc..c6358a9c1 100644 --- a/libs/iovm/source/IoSeq_immutable.h +++ b/libs/iovm/source/IoSeq_immutable.h @@ -92,7 +92,7 @@ IOVM_API IO_METHOD(IoSeq, pathComponent); IOVM_API IO_METHOD(IoSeq, asOSPath); IOVM_API IO_METHOD(IoSeq, asIoPath); -// occurance +// occurrence IOVM_API IO_METHOD(IoSeq, beforeSeq); IOVM_API IO_METHOD(IoSeq, afterSeq); diff --git a/libs/iovm/source/IoSeq_mutable.c b/libs/iovm/source/IoSeq_mutable.c index f4aba26e4..1408e57aa 100644 --- a/libs/iovm/source/IoSeq_mutable.c +++ b/libs/iovm/source/IoSeq_mutable.c @@ -498,7 +498,7 @@ IO_METHOD(IoSeq, empty) { /*doc Sequence empty Sets all bytes in the receiver to 0x0 and sets - it's length to 0. Returns self. + its length to 0. Returns self. */ IO_ASSERT_NOT_SYMBOL(self); @@ -527,7 +527,7 @@ int IoSeq_byteCompare(const void *a, const void *b) IO_METHOD(IoSeq, sort) { - //doc Sequence sort Sorts the characters/numbers the array. Returns self. + //doc Sequence sort Sorts the characters/numbers in the array. Returns self. UArray *a = DATA(self); IO_ASSERT_NOT_SYMBOL(self); @@ -547,7 +547,7 @@ IO_METHOD(IoSeq, sort) IO_METHOD(IoSeq, replaceMap) { /*doc Sequence replaceMap(aMap) - In the receiver, the keys of aMap replaced with it's values. Returns self. + In the receiver, the keys of aMap replaced with its values. Returns self. */ IoMap *map = IoMessage_locals_mapArgAt_(m, locals, 0); @@ -1123,55 +1123,55 @@ Returns self. IoSeqMutateNoArgNoResultOp(rangeFill); /*doc Sequence sin -Sets each value of the Sequence to the trigomentic sine of it's value. +Sets each value of the Sequence to the trigonometric sine of it's value. Returns self. */ IoSeqMutateNoArgNoResultOp(sin); /*doc Sequence cos -Sets each value of the Sequence to the trigomentic cosine of it's value. +Sets each value of the Sequence to the trigonometric cosine of it's value. Returns self. */ IoSeqMutateNoArgNoResultOp(cos); /*doc Sequence tan -Sets each value of the Sequence to the trigomentic tangent of it's value. +Sets each value of the Sequence to the trigonometric tangent of it's value. Returns self. */ IoSeqMutateNoArgNoResultOp(tan); /*doc Sequence asin -Sets each value of the Sequence to the trigomentic arcsine of it's value. +Sets each value of the Sequence to the trigonometric arcsine of it's value. Returns self. */ IoSeqMutateNoArgNoResultOp(asin); /*doc Sequence acos -Sets each value of the Sequence to the trigomentic arcsine of it's value. +Sets each value of the Sequence to the trigonometric arcsine of it's value. Returns self. */ IoSeqMutateNoArgNoResultOp(acos); /*doc Sequence atan -Sets each value of the Sequence to the trigomentic arctangent of it's value. +Sets each value of the Sequence to the trigonometric arctangent of it's value. Returns self. */ IoSeqMutateNoArgNoResultOp(atan); /*doc Sequence sinh -Sets each value of the Sequence to the hyperbolic sine of it's value. +Sets each value of the Sequence to the hyperbolic sine of its value. Returns self. */ IoSeqMutateNoArgNoResultOp(sinh); /*doc Sequence cosh -Sets each value of the Sequence to the hyperbolic cosine of it's value. +Sets each value of the Sequence to the hyperbolic cosine of its value. Returns self. */ IoSeqMutateNoArgNoResultOp(cosh); /*doc Sequence tanh -Sets each value of the Sequence to the hyperbolic tangent of it's value. +Sets each value of the Sequence to the hyperbolic tangent of its value. Returns self. */ IoSeqMutateNoArgNoResultOp(tanh); @@ -1183,13 +1183,13 @@ Returns self. IoSeqMutateNoArgNoResultOp(exp); /*doc Sequence log -Sets each value of the Sequence to the natural log of it's value. +Sets each value of the Sequence to the natural log of its value. Returns self. */ IoSeqMutateNoArgNoResultOp(log); /*doc Sequence log10 -Sets each value of the Sequence to the base 10 log of it's value. +Sets each value of the Sequence to the base 10 log of its value. Returns self. */ IoSeqMutateNoArgNoResultOp(log10); @@ -1207,19 +1207,19 @@ Returns self. IoSeqMutateNoArgNoResultOp(floor); /*doc Sequence abs -Sets each value of the Sequence to it's absolute value. +Sets each value of the Sequence to its absolute value. Returns self. */ IoSeqMutateNoArgNoResultOp(abs); /*doc Sequence square -Sets each value of the Sequence to the square of it's value. +Sets each value of the Sequence to the square of its value. Returns self. */ IoSeqMutateNoArgNoResultOp(square); /*doc Sequence sqrt -Sets each value of the Sequence to the square root of it's value. +Sets each value of the Sequence to the square root of its value. Returns self. */ IoSeqMutateNoArgNoResultOp(sqrt); @@ -1315,12 +1315,12 @@ Updates the receiver to be the result of a bitwiseNot with aSequence. Returns se IoSeqMutateNoArgNoResultOp(bitwiseNot); /*doc Sequence logicalOr(aSequence) -Updates the receive's values to be the result of a logical OR operatiosn with the values of aSequence. Returns self. +Updates the receiver's values to be the result of a logical OR operations with the values of aSequence. Returns self. */ IoSeqSeqArgNoResultOp(logicalOr_); /*doc Sequence logicalAnd(aSequence) -Updates the receive's values to be the result of a logical OR operatiosn with the values of aSequence. Returns self. +Updates the receiver's values to be the result of a logical OR operations with the values of aSequence. Returns self. */ IoSeqSeqArgNoResultOp(logicalAnd_); diff --git a/libs/iovm/source/IoSystem.c b/libs/iovm/source/IoSystem.c index 44c017864..5e10d7d41 100644 --- a/libs/iovm/source/IoSystem.c +++ b/libs/iovm/source/IoSystem.c @@ -135,7 +135,7 @@ IoObject *IoSystem_proto(void *state) /*doc System installPrefix - Returns the root path where io was install. The default is /usr/local. + Returns the root path where io was installed. The default is /usr/local. */ #ifndef WIN32