XPU_DEBUG_ONLY(puts("XpuGetOneLongAttribute failed\n"));
int XpuGetOneLongAttribute( Display *pdpy, XPContext pcontext, XPAttributes type, const char *attribute_name, long *result ){  char *s;    MAKE_STRING_WRITABLE(attribute_name);  if( attribute_name == NULL )    return(0);  s = XpGetOneAttribute(pdpy, pcontext, type, STRING_AS_WRITABLE(attribute_name));    if( (s != NULL) && (strlen(s) > 0) )   {    long tmp;        XPU_DEBUG_ONLY(printf("XpuGetOneLongAttribute: '%s' got '%s'\n", XPU_NULLXSTR(attribute_name), XPU_NULLXSTR(s)));        tmp = strtol(s, (char **)NULL, 10);        if( !(((tmp == 0L) || (tmp == LONG_MIN) || (tmp == LONG_MAX)) &&           ((errno == ERANGE) || (errno == EINVAL))) )    {      *result = tmp;      XFree(s);      XPU_DEBUG_ONLY(printf("XpuGetOneLongAttribute: result %ld\n", *result));      FREE_WRITABLE_STRING(attribute_name);      return(1);    }              }    if( s != NULL )     XFree(s);    XPU_DEBUG_ONLY(puts("XpuGetOneLongAttribute failed\n"));  FREE_WRITABLE_STRING(attribute_name);    return(0);}