From bc895d67078e52743b706bb2932ad81d8f9f4cd8 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 17 Mar 2018 23:55:33 -0400 Subject: [PATCH] And added the necessary functions on OS X. Now to do some final cleanup before merging back in (at long last). --- darwin/fontbutton.m | 6 ++++++ darwin/text.m | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/darwin/fontbutton.m b/darwin/fontbutton.m index 86f1c140..0ef57d81 100644 --- a/darwin/fontbutton.m +++ b/darwin/fontbutton.m @@ -224,3 +224,9 @@ uiFontButton *uiNewFontButton(void) return b; } + +void uiFreeFontButtonFont(uiFontDescriptor *desc) +{ + // TODO ensure this is synchronized with fontmatch.m + uiFreeText((char *) (desc->Family)); +} diff --git a/darwin/text.m b/darwin/text.m index f0d3dab6..8efd36fe 100644 --- a/darwin/text.m +++ b/darwin/text.m @@ -17,3 +17,8 @@ void uiFreeText(char *s) { free(s); } + +int uiprivStricmp(const char *a, const char *b) +{ + return strcasecmp(a, b); +}