"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xpdf/BuiltinFont.cc" between
xpdf-4.01.01.tar.gz and xpdf-4.02.tar.gz

About: Xpdf is a PDF viewer for X.

BuiltinFont.cc  (xpdf-4.01.01):BuiltinFont.cc  (xpdf-4.02)
skipping to change at line 54 skipping to change at line 54
int h; int h;
BuiltinFontWidth *p; BuiltinFontWidth *p;
h = hash(name); h = hash(name);
for (p = tab[h]; p; p = p->next) { for (p = tab[h]; p; p = p->next) {
if (!strcmp(p->name, name)) { if (!strcmp(p->name, name)) {
*width = p->width; *width = p->width;
return gTrue; return gTrue;
} }
} }
*width = 0;
return gFalse; return gFalse;
} }
int BuiltinFontWidths::hash(const char *name) { int BuiltinFontWidths::hash(const char *name) {
const char *p; const char *p;
unsigned int h; unsigned int h;
h = 0; h = 0;
for (p = name; *p; ++p) { for (p = name; *p; ++p) {
h = 17 * h + (int)(*p & 0xff); h = 17 * h + (int)(*p & 0xff);
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)