( acht, acolorP, value )
| 680 | |
| 681 | |
| 682 | static int |
| 683 | pam_addtoacolorhash( acht, acolorP, value ) |
| 684 | acolorhash_table acht; |
| 685 | rgbaPixel* acolorP; |
| 686 | int value; |
| 687 | { |
| 688 | register int hash; |
| 689 | register acolorhist_list achl; |
| 690 | |
| 691 | achl = (acolorhist_list) msSmallMalloc( sizeof(struct acolorhist_list_item) ); |
| 692 | |
| 693 | hash = pam_hashapixel( *acolorP ); |
| 694 | achl->ch.acolor = *acolorP; |
| 695 | achl->ch.value = value; |
| 696 | achl->next = acht[hash]; |
| 697 | acht[hash] = achl; |
| 698 | return 0; |
| 699 | } |
| 700 | |
| 701 | |
| 702 |
no test coverage detected