Cleaned up private symbols (and in one case, explicit initialization) of symbols in all *.c files in common/. Now to decide what to do about whether uipriv.h should include ui.h and if attrstr.h should even stay, and then I can merge this back.

This commit is contained in:
Pietro Gagliardi 2018-04-16 02:31:24 -04:00
parent 7cd88ddd03
commit 750f4214b7
2 changed files with 3 additions and 3 deletions

View File

@ -57,14 +57,14 @@ void uiControlDisable(uiControl *c)
(*(c->Disable))(c);
}
#define uiControlSignature 0x7569436F
#define uiprivControlSignature 0x7569436F
uiControl *uiAllocControl(size_t size, uint32_t OSsig, uint32_t typesig, const char *typenamestr)
{
uiControl *c;
c = (uiControl *) uiprivAlloc(size, typenamestr);
c->Signature = uiControlSignature;
c->Signature = uiprivControlSignature;
c->OSSignature = OSsig;
c->TypeSignature = typesig;
return c;

View File

@ -8,7 +8,7 @@ static int defaultOnShouldQuit(void *data)
}
static int (*onShouldQuit)(void *) = defaultOnShouldQuit;
static void *onShouldQuitData;
static void *onShouldQuitData = NULL;
void uiOnShouldQuit(int (*f)(void *), void *data)
{