mirror of
https://github.com/ksherlock/rlint.git
synced 2024-06-30 13:29:44 +00:00
Compare commits
No commits in common. "master" and "r1" have entirely different histories.
|
@ -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)
|
rlint : $(OBJ)
|
||||||
$(RM) o/menu.root o/control.root o/bundle.root o/alert.root
|
$(RM) o/menu.root o/control.root o/bundle.root
|
||||||
iix link o/rlint o/menu o/control o/bundle o/alert keep=$@
|
iix link o/rlint o/menu o/control o/bundle keep=$@
|
||||||
|
|
||||||
|
|
||||||
o/rlint.a : rlint.c rlint.h
|
o/rlint.a : rlint.c rlint.h
|
||||||
o/menu.a : menu.c rlint.h
|
o/menu.a : menu.c rlint.h
|
||||||
o/control.a : control.c rlint.h
|
o/control.a : control.c rlint.h
|
||||||
o/bundle.a : bundle.c rlint.h
|
o/bundle.a : bundle.c rlint.h
|
||||||
o/alert.a : alert.c rlint.h
|
|
||||||
|
|
||||||
o :
|
o :
|
||||||
mkdir $@
|
mkdir $@
|
||||||
|
|
18
alert.c
18
alert.c
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
19
control.c
19
control.c
|
@ -1,7 +1,6 @@
|
||||||
#include <resources.h>
|
#include <resources.h>
|
||||||
#include <control.h>
|
#include <control.h>
|
||||||
#include <window.h>
|
#include <window.h>
|
||||||
#include <textedit.h>
|
|
||||||
|
|
||||||
#include "rlint.h"
|
#include "rlint.h"
|
||||||
|
|
||||||
|
@ -153,7 +152,7 @@ void check_rControlTemplate(Handle h) {
|
||||||
|
|
||||||
|
|
||||||
if (ptr->procRef == editTextControl) {
|
if (ptr->procRef == editTextControl) {
|
||||||
unsigned desc;
|
|
||||||
ref = ((TextEditTemplate *)ptr)->styleRef;
|
ref = ((TextEditTemplate *)ptr)->styleRef;
|
||||||
if ((moreFlags & 0x03) == titleIsResource)
|
if ((moreFlags & 0x03) == titleIsResource)
|
||||||
check(rStyleBlock, ref);
|
check(rStyleBlock, ref);
|
||||||
|
@ -162,22 +161,6 @@ void check_rControlTemplate(Handle h) {
|
||||||
if ((moreFlags & 0x0c) == colorTableIsResource)
|
if ((moreFlags & 0x0c) == colorTableIsResource)
|
||||||
check(rCtlColorTbl, ref);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
6
rlint.c
6
rlint.c
|
@ -209,10 +209,6 @@ void check(ResType type, ResID id) {
|
||||||
case rWindParam1: callback = check_rWindParam1; break;
|
case rWindParam1: callback = check_rWindParam1; break;
|
||||||
case rStringList: callback = check_rStringList; break;
|
case rStringList: callback = check_rStringList; break;
|
||||||
case rBundle: callback = check_rBundle; break;
|
case rBundle: callback = check_rBundle; break;
|
||||||
case rAlertString:
|
|
||||||
case rErrorString:
|
|
||||||
callback = check_rAlertString;
|
|
||||||
break;
|
|
||||||
default: callback = 0;
|
default: callback = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -296,8 +292,6 @@ void one_file(const char *name) {
|
||||||
case rWindParam1:
|
case rWindParam1:
|
||||||
case rStringList:
|
case rStringList:
|
||||||
case rBundle:
|
case rBundle:
|
||||||
case rAlertString:
|
|
||||||
case rErrorString:
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user