<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1 +1,2 @@
 *.o
+xpl</diff>
      <filename>bin/.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -3,6 +3,9 @@
 #include &lt;stdlib.h&gt;
 #include &lt;string.h&gt;
 
+static void xpl_lex_stream_free_current_symbol(xpl_lex_stream stream);
+static xpl_lex_symbol xpl_lex_symbol_init();
+
 xpl_lex_stream xpl_lex_stream_init(FILE* file) {
   xpl_lex_stream stream = (xpl_lex_stream) malloc(sizeof(struct xpl_lex_stream));
   stream-&gt;input = file;
@@ -11,10 +14,7 @@ xpl_lex_stream xpl_lex_stream_init(FILE* file) {
 }
 
 xpl_lex_symbol xpl_lex_stream_next(xpl_lex_stream stream) {
-  if(stream-&gt;current_sym != NULL) {
-    free(stream-&gt;current_sym);
-    stream-&gt;current_sym = NULL;
-  }
+  xpl_lex_stream_free_current_symbol(stream);
 
   char ch = getc(stream-&gt;input);
   while(ch == '\r' || ch == '\n' || ch == ' ') ch = getc(stream-&gt;input);
@@ -40,10 +40,13 @@ void xpl_lex_stream_free(xpl_lex_stream stream) {
   free(stream);
 }
 
-xpl_lex_symbol xpl_lex_symbol_init() {
-  return (xpl_lex_symbol) malloc(sizeof(struct xpl_lex_symbol));
+static void xpl_lex_stream_free_current_symbol(xpl_lex_stream stream) {
+  if(stream-&gt;current_sym != NULL) {
+    free(stream-&gt;current_sym);
+    stream-&gt;current_sym = NULL;
+  }
 }
 
-void xpl_lex_symbol_free(xpl_lex_symbol symbol) {
-  free(symbol);
+static xpl_lex_symbol xpl_lex_symbol_init() {
+  return (xpl_lex_symbol) malloc(sizeof(struct xpl_lex_symbol));
 }</diff>
      <filename>src/lexer.c</filename>
    </modified>
    <modified>
      <diff>@@ -20,6 +20,3 @@ typedef struct xpl_lex_symbol *xpl_lex_symbol;
 xpl_lex_stream xpl_lex_stream_init(FILE* file);
 xpl_lex_symbol xpl_lex_stream_next(xpl_lex_stream stream);
 void           xpl_lex_stream_free(xpl_lex_stream stream);
-
-xpl_lex_symbol xpl_lex_symbol_init();
-void           xpl_lex_symbol_free(xpl_lex_symbol symbol);</diff>
      <filename>src/lexer.h</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>bin/xpl</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>2a001fa2ae07d240a736f04b5ebc1e6271794e3b</id>
    </parent>
  </parents>
  <author>
    <name>sztywny</name>
    <email>sztywny@gmail.com</email>
  </author>
  <url>http://github.com/sztywny/xpl/commit/0e876945fff9cf1fb2974c713478821463bd651c</url>
  <id>0e876945fff9cf1fb2974c713478821463bd651c</id>
  <committed-date>2009-04-07T14:42:56-07:00</committed-date>
  <authored-date>2009-04-07T14:42:56-07:00</authored-date>
  <message>Little cleanups.</message>
  <tree>ef67ae1b75973a6e9ee9fab00fbfe208ad604109</tree>
  <committer>
    <name>sztywny</name>
    <email>sztywny@gmail.com</email>
  </committer>
</commit>
