Hi Paul, > The name I'm currently > thinking of is 'in_t', short for "index type". That's an > easy-to-remember name (the type is like 'int', but possibly wider).
Fine with me. It doesn't collide: Only very few packages use this identifier 'in_t', and only in isolated places. > One other advantage of having our own signed type is that we can > guarantee that it's at least as wide as int (something that is not true > for ptrdiff_t). That way, some of my current code that says 'MIN > (INT_MAX, PTRDIFF_MAX)' can be simplified to the more-natural INT_MAX. > This is helpful for traditional interfaces that use int counters. Indeed. (Although portability to Windows 3.1 is not in the focus of gnulib nor of GNU programs any more.) Bruno