[svn:parrot] r39189 - in trunk: docs/book src/io
jkeenan at svn.parrot.org
jkeenan at svn.parrot.org
Wed May 27 02:38:48 UTC 2009
Author: jkeenan
Date: Wed May 27 02:38:47 2009
New Revision: 39189
URL: https://trac.parrot.org/parrot/changeset/39189
Log:
Make this file conform to linelength coding standard.
Modified:
trunk/docs/book/ch03_pir.pod
trunk/src/io/win32.c
Modified: trunk/docs/book/ch03_pir.pod
==============================================================================
--- trunk/docs/book/ch03_pir.pod Wed May 27 02:09:36 2009 (r39188)
+++ trunk/docs/book/ch03_pir.pod Wed May 27 02:38:47 2009 (r39189)
@@ -1367,12 +1367,13 @@
X<namespace pollution>
Without a namespace (or in a program that eschews namespaces), all subroutines
-and global variables would live in one big bag, running the risk of I<namespace
-collisions> thanks to I<namespace pollution>. You couldn't tell which
-subroutine performed which operation when two task contexts use the same word
-to mean two different things.
+and global variables would live in one big bag, running the risk of
+I<namespace collisions> thanks to I<namespace pollution>. You couldn't tell
+which subroutine performed which operation when two task contexts use the same
+word to mean two different things.
-NameSpaces are very effective at hiding private information as well as gathering similar things together.
+NameSpaces are very effective at hiding private information as well as
+gathering similar things together.
For example, the C<Math> namespace could store subroutines that manipulate
numbers. The C<Images> namespace could store subroutines create and manipulate
Modified: trunk/src/io/win32.c
==============================================================================
--- trunk/src/io/win32.c Wed May 27 02:09:36 2009 (r39188)
+++ trunk/src/io/win32.c Wed May 27 02:38:47 2009 (r39189)
@@ -490,7 +490,8 @@
while (len > 0) {
if (chunk > len)
chunk = len;
- if (WriteFile(os_handle, (LPCSTR) buffer, chunk, &countwrote, NULL) == 0 || countwrote != chunk)
+ if (WriteFile(os_handle, (LPCSTR) buffer, chunk, &countwrote, NULL) == 0 ||
+ countwrote != chunk)
goto fail;
len -= chunk;
}
More information about the parrot-commits
mailing list