Subversion Repositories filter_foundry

Compare Revisions

Regard whitespace Rev 267 → Rev 268

/trunk/make.c
46,6 → 46,7
*/
unsigned long printablehash(unsigned long hash) {
#ifdef PRINTABLE_HASH_FF16
 
// FilterFoundry version 1.6 hashing by Toby Thain
// Only accepts upper case at the last character
// 0 = 'a A'
54,7 → 55,9
key = (key << 8) | (' ' + (hash % 95)); hash /= 95; // any printable
key = (key << 8) | (' ' + (hash % 95)); hash /= 95; // any printable
return (key << 8) | ('A' + (hash % 26)); // last upper case
 
#else
 
// FilterFoundry version 1.7 hashing by Daniel Marschall
// Accepts upper case at character 2, 3 or 4
// Spaces are only set the right as padding to make a code shorter
141,6 → 144,7
key |= ' ';
}
return key;
 
#endif
}
 
280,6 → 284,7
*aeteptr = (void*)((unsigned char*)tmp + strlen(str));
}
#define AETE_WRITE_C2PSTR(s) _aete_write_c2pstr(&aeteptr, (s));
 
void _aete_write_p2pstr(void** aeteptr, char* str) {
char* tmp;
 
344,6 → 349,7
#ifdef WIN_ENV
AETE_WRITE_WORD(0x0001); /* Reserved (for Photoshop) */
#endif
 
AETE_WRITE_BYTE(0x01); /* aete version */
AETE_WRITE_BYTE(0x00); /* aete version */
AETE_WRITE_WORD(english); /* language specifiers */