[liblouis-liblouisxml] [liblouis] r881 committed - Make brl_checks.c compile under C89

  • From: liblouis@xxxxxxxxxxxxxx
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Wed, 19 Dec 2012 11:10:17 +0000

Revision: 881
Author:   christian.egli@xxxxxxxxxxxxxx
Date:     Wed Dec 19 03:10:01 2012
Log:      Make brl_checks.c compile under C89

http://code.google.com/p/liblouis/source/detail?r=881

Modified:
 /trunk/ChangeLog
 /trunk/tests/brl_checks.c

=======================================
--- /trunk/ChangeLog    Wed Dec 19 01:48:54 2012
+++ /trunk/ChangeLog    Wed Dec 19 03:10:01 2012
@@ -1,5 +1,8 @@
 2012-12-19  Christian Egli  <christian.egli@xxxxxx>

+       * tests/brl_checks.c (convert_typeform): Make it compile under
+       C89.
+
        * tools/lou_translate.c (print_help):
        * tools/lou_trace.c (print_help):
        * tools/lou_debug.c (print_help):
=======================================
--- /trunk/tests/brl_checks.c   Fri Dec 14 06:03:56 2012
+++ /trunk/tests/brl_checks.c   Wed Dec 19 03:10:01 2012
@@ -33,7 +33,8 @@
 {
   int len = strlen(typeform_string);
   char *typeform = malloc(len * sizeof(char));
-  for (int i=0; i<len; i++)
+  int i;
+  for (i=0; i<len; i++)
     typeform[i] = typeform_string[i] - '0';
   return typeform;
 }
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts:

  • » [liblouis-liblouisxml] [liblouis] r881 committed - Make brl_checks.c compile under C89 - liblouis