[liblouis-liblouisxml] Reading liblouis tables from memory

  • From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Wed, 23 Sep 2015 08:15:35 -0500

If I were still doing programming I would look at
compileTranslationTable.c for references to file operations like fopen,
fgetc and fclose. The module could then be enhanced with functions that
have the same parameters and return values but access memory. It might
be a good idea to give them names like mopen, mgetc and mclose. The file
references in the code could be changed accordingly. mopen would locate
the table in memory and return a pointer. mgetc would simply get the
next character in memory and return it. mclose might do nothing. These
functions and changes might be compiled conditionally, according to the
value of a #deefine

John

--
John J. Boyer; President,
AbilitiesSoft, Inc.
http://www.abilitiessoft.org
Madison, Wisconsin USA
We develop software for people with disabilities which is abailable at
no cost.

For a description of the software, to download it and links to
project pages go to http://liblouis.org

Other related posts: