Compare commits

..

No commits in common. "master" and "r1" have entirely different histories.
master ... r1

5 changed files with 4 additions and 49 deletions

View File

@ -1,17 +1,16 @@
OBJ = o/rlint.a o/menu.a o/control.a o/bundle.a o/alert.a
OBJ = o/rlint.a o/menu.a o/control.a o/bundle.a
rlint : $(OBJ)
$(RM) o/menu.root o/control.root o/bundle.root o/alert.root
iix link o/rlint o/menu o/control o/bundle o/alert keep=$@
$(RM) o/menu.root o/control.root o/bundle.root
iix link o/rlint o/menu o/control o/bundle keep=$@
o/rlint.a : rlint.c rlint.h
o/menu.a : menu.c rlint.h
o/control.a : control.c rlint.h
o/bundle.a : bundle.c rlint.h
o/alert.a : alert.c rlint.h
o :
mkdir $@

18
alert.c
View File

@ -1,18 +0,0 @@
#include "rlint.h"
void check_rAlertString(Handle h) {
/* if there's a custom icon, assume it's a resource ref */
unsigned char *ptr = *(unsigned char **)h;
unsigned x;
unsigned offset = 0;
x = ptr[offset++];
if (x == '0') offset += 8; /* skip past custom size rect */
x = ptr[offset++];
if (x == '1') {
/* custom icon */
unsigned long ref = *(unsigned long *)(ptr + offset);
if (ref) check(rIcon, ref);
}
}

View File

@ -1,7 +1,6 @@
#include <resources.h>
#include <control.h>
#include <window.h>
#include <textedit.h>
#include "rlint.h"
@ -153,7 +152,7 @@ void check_rControlTemplate(Handle h) {
if (ptr->procRef == editTextControl) {
unsigned desc;
ref = ((TextEditTemplate *)ptr)->styleRef;
if ((moreFlags & 0x03) == titleIsResource)
check(rStyleBlock, ref);
@ -162,22 +161,6 @@ void check_rControlTemplate(Handle h) {
if ((moreFlags & 0x0c) == colorTableIsResource)
check(rCtlColorTbl, ref);
ref = ((TextEditTemplate *)ptr)->textRef;
desc = ((TextEditTemplate *)ptr)->textDescriptor;
if ((desc & 0x18) == teTextIsResource) {
switch(desc & 0x07) {
case teDataIsPString: check(rPString, ref); break;
case teDataIsCString: check(rCString, ref); break;
case teDataIsC1Input: check(rC1InputString, ref); break;
case teDataIsC1Output: check(rC1OutputString, ref); break;
case teDataIsTextBox2: check(rTextForLETextBox2, ref); break;
case teDataIsTextBlock: check(rTextBlock, ref); break;
}
}
return;
}

View File

@ -209,10 +209,6 @@ void check(ResType type, ResID id) {
case rWindParam1: callback = check_rWindParam1; break;
case rStringList: callback = check_rStringList; break;
case rBundle: callback = check_rBundle; break;
case rAlertString:
case rErrorString:
callback = check_rAlertString;
break;
default: callback = 0;
}
@ -296,8 +292,6 @@ void one_file(const char *name) {
case rWindParam1:
case rStringList:
case rBundle:
case rAlertString:
case rErrorString:
break;
default:
continue;

View File

@ -12,9 +12,6 @@ void check_rStringList(Handle h);
void check_rBundle(Handle h);
void check_rAlertString(Handle h);
void error(const char *msg);
void check(ResType type, ResID id);