equal
deleted
inserted
replaced
251 Textbuf text; |
251 Textbuf text; |
252 const char* orig; |
252 const char* orig; |
253 } querystr_d; |
253 } querystr_d; |
254 |
254 |
255 #define WP(ptr,str) (*(str*)(ptr)->custom) |
255 #define WP(ptr,str) (*(str*)(ptr)->custom) |
256 // querystr_d is the largest struct that comes in w->custom |
256 /* You cannot 100% reliably calculate the biggest custom struct as |
257 // because 64-bit systems use 64-bit pointers, it is bigger on a 64-bit system |
257 * the number of pointers in it and alignment will have a huge impact. |
258 // than on a 32-bit system. Therefore, the size is calculated from querystr_d |
258 * 88 is the largest window-size for 64-bit machines currently */ |
259 // instead of a hardcoded number. |
259 #define WINDOW_CUSTOM_SIZE 88 |
260 // if any struct becomes bigger the querystr_d, it should be replaced. |
|
261 #define WINDOW_CUSTOM_SIZE sizeof(querystr_d) * 2 |
|
262 |
260 |
263 typedef struct Scrollbar { |
261 typedef struct Scrollbar { |
264 uint16 count, cap, pos; |
262 uint16 count, cap, pos; |
265 } Scrollbar; |
263 } Scrollbar; |
266 |
264 |