if (!PointerIsValid(str))
return FALSE;
- while (isspace((unsigned char) *str))
- str++;
*x = strtod(str, &cp);
+
#ifdef GEODEBUG
- printf("single_decode- (%x) try decoding %s to %g\n", (cp - str), str, *x);
+ printf("single_decode- decoded first %d chars of \"%s\" to %g\n",
+ (int) (cp - str), str, *x);
#endif
- if (cp <= str)
- return FALSE;
- while (isspace((unsigned char) *cp))
- cp++;
if (s != NULL)
+ {
+ while (isspace((unsigned char) *cp))
+ cp++;
*s = cp;
+ }
return TRUE;
} /* single_decode() */
result = point_copy(&lseg->p[!yh]); /* below the lseg, take lower
* end pt */
#ifdef GEODEBUG
- printf("close_ps below: tmp A %f B %f C %f m %f\n",
- tmp->A, tmp->B, tmp->C, tmp->m);
+ printf("close_ps below: tmp A %f B %f C %f\n",
+ tmp->A, tmp->B, tmp->C);
#endif
PG_RETURN_POINT_P(result);
}
result = point_copy(&lseg->p[yh]); /* above the lseg, take higher
* end pt */
#ifdef GEODEBUG
- printf("close_ps above: tmp A %f B %f C %f m %f\n",
- tmp->A, tmp->B, tmp->C, tmp->m);
+ printf("close_ps above: tmp A %f B %f C %f\n",
+ tmp->A, tmp->B, tmp->C);
#endif
PG_RETURN_POINT_P(result);
}
*/
tmp = line_construct_pm(pt, invm);
#ifdef GEODEBUG
- printf("close_ps- tmp A %f B %f C %f m %f\n",
- tmp->A, tmp->B, tmp->C, tmp->m);
+ printf("close_ps- tmp A %f B %f C %f\n",
+ tmp->A, tmp->B, tmp->C);
#endif
result = interpt_sl(lseg, tmp);
Assert(result != NULL);