commit | 70fd847ff5f56aa7415a8d8f7547ecd688f95f11 | [log] [tgz] |
---|---|---|
author | Christian Egli <christian.egli@sbs.ch> | Mon May 09 12:29:56 2022 +0200 |
committer | Christian Egli <christian.egli@sbs.ch> | Mon May 09 12:29:56 2022 +0200 |
tree | 50589e1838af89c9cda69837bee7e928c7380e99 | |
parent | 53346a8b0325965f86a15091f6d7d438ef5eea43 [diff] |
Move translation context into a struct Translation context such as the next char is upper case or whether we are inside an all upper case word, etc is currently stored in a number of global variables. This complicates the API of many of the functions. This PR moves these state variables into a struct and consequently only has to pass this struct around to the functions which simplifies the calling API of said functions quite a bit.