diff options
Diffstat (limited to 'libstorycode/stylesheet.c')
-rw-r--r-- | libstorycode/stylesheet.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/libstorycode/stylesheet.c b/libstorycode/stylesheet.c index 3fdb7af..e3aecee 100644 --- a/libstorycode/stylesheet.c +++ b/libstorycode/stylesheet.c @@ -31,6 +31,7 @@ #include <stdio.h> #include "stylesheet.h" +#include "storycode.h" enum style_mask { @@ -423,32 +424,6 @@ static void add_text(char **text, size_t *len, size_t *lenmax, const char *prefi } -static char unitc(enum length_unit unit) -{ - if ( unit == LENGTH_FRAC ) return 'f'; - if ( unit == LENGTH_UNIT ) return 'u'; - return '?'; -} - - -static const char *bgcolc(enum gradient bggrad) -{ - if ( bggrad == GRAD_NONE ) return ""; - if ( bggrad == GRAD_HORIZ ) return "HORIZONTAL "; - if ( bggrad == GRAD_VERT ) return "VERTICAL "; - return "?"; -} - - -static const char *alignc(enum alignment ali) -{ - if ( ali == ALIGN_LEFT ) return "left"; - if ( ali == ALIGN_CENTER ) return "center"; - if ( ali == ALIGN_RIGHT ) return "right"; - return "?"; -} - - static void add_style(char **text, size_t *len, size_t *lenmax, const char *prefix, struct style *sty) { |