Minor change to pingpong example
authorXiang Ni <xiangni2@illinois.edu>
Wed, 29 Feb 2012 17:30:29 +0000 (11:30 -0600)
committerXiang Ni <xiangni2@illinois.edu>
Wed, 29 Feb 2012 17:30:29 +0000 (11:30 -0600)
doc/converse/code/pingpong.pseudo
doc/converse/tutorial.tex

index d7ebc296793c67cda30c6974ada0f010b6c25c8d..89a0022f3aacca0766b4404ddde1f54f9b3b97fa 100644 (file)
@@ -1,3 +1,5 @@
+#include <converse.h>
+#include <stdlib.h>
 CpvDeclare(int,msgSize);
 CpvDeclare(int,exitHandler);
 CpvDeclare(int,node0Handler);
@@ -27,8 +29,8 @@ CmiHandler exitHandlerFunc(char *msg)
 //Handler on Node 0
 CmiHandler node0HandlerFunc(char *msg)
 {
-        ringFinished(msg);
-               return 0;
+       ringFinished(msg);
+       return 0;
 }
 CmiHandler node1HandlerFunc(char *msg)
 {
index 5c4e1e50d213f143b879ec61d1621ce191754c2d..198f53350c090f504bec815e779f30b43a1609f0 100644 (file)
@@ -20,7 +20,7 @@ morecomment=[l]\#,%
 morestring=[b]',%
 }
 \begin{figure}
-\lstinputlisting[language=pseudo,basicstyle=\small,numbers=left,escapechar=\%]{code/pingpong.pseudo}
+\lstinputlisting[language=pseudo,basicstyle=\footnotesize,numbers=left,escapechar=\%]{code/pingpong.pseudo}
 \caption{A Pingpong Example using Converse Handler}
 \label{fig:converse-pingpong}
 \end{figure}