Lines Matching defs:wht

1112     \param wht     WMFHANDLES structure to dump
1117 WMFHANDLES *wht
1121 printf("lo: %d hi: %d peak: %d\n", wht->lolimit, wht->hilimit, wht->peak);
1126 printf("table[%d]: %d\n",i,wht->table[i]);
1733 \param wht WMF handle table
1738 WMFHANDLES **wht
1758 *wht = whtl;
1766 \param wht WMF handle table
1771 WMFHANDLES *wht
1773 if(!wht)return(1);
1774 if(!wht->table)return(2);
1776 if(!wht->table[*ih])return(5); // requested table position was not in use
1777 wht->table[*ih]=0; // remove handle from table
1778 while(wht->hilimit>0 && !wht->table[wht->hilimit]){ // adjust hilimit
1779 wht->hilimit--;
1781 if(*ih < wht->lolimit)wht->lolimit = *ih; // adjust lolimit
1791 \param wht WMF handle table
1795 WMFHANDLES *wht
1799 if(!wht)return(1);
1800 if(!wht->table)return(2);
1802 if(wht->lolimit >= wht->allocated - 1){ // need to reallocate
1803 newsize=wht->allocated + wht->chunk;
1804 wht->table = realloc(wht->table,newsize * sizeof(uint32_t));
1805 if(!wht->table)return(5);
1806 memset(&wht->table[wht->allocated] , 0, wht->chunk * sizeof(uint32_t)); // zero all NEW slots in the table
1807 wht->allocated = newsize;
1809 *ih = wht->lolimit; // handle that is inserted in first available slot
1810 wht->table[*ih] = *ih; // handle goes into preexisting (but zero) slot in table, handle number is the same as the slot number
1811 if(*ih > wht->hilimit){
1812 wht->hilimit = *ih;
1813 (void) wmf_highwater(wht->hilimit);
1815 if(*ih > wht->peak){
1816 wht->peak = *ih;
1819 wht->lolimit++;
1820 while(wht->lolimit<= wht->hilimit && wht->table[wht->lolimit]){ wht->lolimit++; }
1827 \param wht WMF handle table
1830 WMFHANDLES **wht
1833 if(!wht)return(1);
1834 whtl = *wht;
1839 *wht=NULL;
2133 \param wht WMF handle table
2144 WMFHANDLES *wht
2148 if(wmf_htable_delete(ihObject,wht))return(NULL); /* invalid handle or other problem, cannot be deleted */
2159 \param wht WMF handle table
2163 WMFHANDLES *wht
2166 if(ihObject > wht->hilimit)return(NULL); // handle this high is not in the table
2168 if(!wht->table[ihObject+1])return(NULL); // handle is not in the table, so cannot be selected
2179 \param wht WMF handle table
2184 WMFHANDLES *wht,
2187 if(wmf_htable_insert(ihPen, wht))return(NULL);
2198 \param wht WMF handle table
2203 WMFHANDLES *wht,
2206 if(wmf_htable_insert(ihBrush, wht))return(NULL);
2216 \param wht WMF handle table
2224 WMFHANDLES *wht,
2231 if(wmf_htable_insert(ihBrush, wht))return(NULL);
2241 \param wht WMF handle table
2247 WMFHANDLES *wht,
2251 if(wmf_htable_insert(ihBrush, wht))return(NULL);
2263 \param wht WMF handle table
2269 WMFHANDLES *wht,
2273 if(wmf_htable_insert(ihBrush, wht))return(NULL);
2284 \param wht Pointer to structure holding all WMF handles
2289 WMFHANDLES *wht,
2292 if(wmf_htable_insert(ihFont, wht))return(NULL);
2303 \param wht Pointer to structure holding all WMF handles
2308 WMFHANDLES *wht,
2311 if(wmf_htable_insert(ihPal, wht))return(NULL);
2322 \param wht Pointer to structure holding all WMF handles
2327 WMFHANDLES *wht,
2330 if(wmf_htable_insert(ihPal, wht))return(NULL);
2341 \param wht Pointer to structure holding all WMF handles
2346 WMFHANDLES *wht,
2349 if(wmf_htable_insert(ihReg, wht))return(NULL);