Revision: 861 Author: christian.egli@xxxxxxxxxxxxxx Date: Fri Dec 14 00:31:25 2012 Log: Add the new convert_typeform helper function to the header file. http://code.google.com/p/liblouis/source/detail?r=861 Modified: /trunk/ChangeLog /trunk/tests/brl_checks.c /trunk/tests/brl_checks.h ======================================= --- /trunk/ChangeLog Thu Dec 13 05:32:50 2012 +++ /trunk/ChangeLog Fri Dec 14 00:31:25 2012 @@ -1,3 +1,9 @@ +2012-12-14 Christian Egli <christian.egli@xxxxxx> + + * tests/brl_checks.h: + * tests/brl_checks.c (convert_typeform): Add the new function to + the header file. + 2012-12-13 Christian Egli <christian.egli@xxxxxx> * tests/typeform.c: ======================================= --- /trunk/tests/brl_checks.c Thu Dec 13 08:38:59 2012 +++ /trunk/tests/brl_checks.c Fri Dec 14 00:31:25 2012 @@ -29,7 +29,7 @@ For example, "0000011111000" is converted to {0,0,0,0,0,1,1,1,1,1,0,0,0} The caller is responsible for freeing the returned array. */ char * -convert_typeform(char* typeform_string) +convert_typeform(const char* typeform_string) { int len = strlen(typeform_string); char *typeform = malloc(len * sizeof(char)); ======================================= --- /trunk/tests/brl_checks.h Tue Sep 18 21:13:49 2012 +++ /trunk/tests/brl_checks.h Fri Dec 14 00:31:25 2012 @@ -22,3 +22,10 @@ /* Check if a string is hyphenated as expected. Return 0 if the hyphenation is as expected and 1 otherwise. */int check_hyphenation(const char *tableList, const char *str, const char *expected);
+ +/* Helper function to convert a typeform string of '0's, '1's, '2's etc. + to the required format, which is an array of 0s, 1s, 2s, etc. + For example, "0000011111000" is converted to {0,0,0,0,0,1,1,1,1,1,0,0,0} + The caller is responsible for freeing the returned array. */ +char * convert_typeform(const char* typeform_string); + For a description of the software, to download it and links to project pages go to http://www.abilitiessoft.com