diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2017-09-19 00:53:41 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2017-09-19 00:53:41 +0900 |
commit | 96d11d0e5bd23b6a7128f48dfc6233132c6166c6 (patch) | |
tree | 0ee18914da8f3721137a939016cafd7327695cae /fmdriver/fmdriver.h | |
parent | 1ff3793322585443909d11284457811c461f8de4 (diff) |
fmdsp-pacc: add comment display
Diffstat (limited to 'fmdriver/fmdriver.h')
-rw-r--r-- | fmdriver/fmdriver.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/fmdriver/fmdriver.h b/fmdriver/fmdriver.h index b31c31e..ba36c3e 100644 --- a/fmdriver/fmdriver.h +++ b/fmdriver/fmdriver.h @@ -89,9 +89,23 @@ struct fmdriver_work { const struct ppz8_functbl *ppz8_functbl; struct ppz8 *ppz8; + // if false, 3 line comment + // if true, PMD memo mode + bool comment_mode_pmd; + // CP932 encoded - //const char *title; - char comment[3][FMDRIVER_TITLE_BUFLEN]; + // may contain ANSI escape sequences + // if !comment_mode_pmd: + // three lines, 0 <= line < 3 + // if comment_mode_pmd: + // line 0: #Title + // line 1: #Composer + // line 2: #Arranger + // line 3: #Memo 1st line + // : + // line n: NULL + const char *(*get_comment)(struct fmdriver_work *work, int line); + // only single-byte uppercase cp932 char filename[FMDRIVER_TITLE_BUFLEN]; // always 8 characters and pad with ' ' |