#include <stdlib.h>
#include <string.h>
-#define min(A,B) ((A < B)?A:B)
+#include <data/value.h>
+
+#include <minmax.h>
#include <gtksheet/gtksheet.h>
#include <gtksheet/gsheet-hetero-column.h>
{
case COL_WIDTH:
r_min = fmt->d + 1;
- r_max = (psppire_variable_get_type(pv) == ALPHA) ? 255 : 40;
+ r_max = (psppire_variable_get_type(pv) == ALPHA) ? MAX_STRING : 40;
break;
case COL_DECIMALS:
r_min = 0 ;
- r_max = min(fmt->w - 1, 16);
+ r_max = MIN(fmt->w - 1, 16);
break;
case COL_COLUMNS:
r_min = 1;