Waterlike anomalies for core-softened models of fluids: one dimension.