Create a new sequence. */
| 55 | |
| 56 | /* Create a new sequence. */ |
| 57 | struct sequence *createSparklineSequence(void) { |
| 58 | struct sequence *seq = (sequence*)zmalloc(sizeof(*seq), MALLOC_LOCAL); |
| 59 | seq->length = 0; |
| 60 | seq->samples = NULL; |
| 61 | return seq; |
| 62 | } |
| 63 | |
| 64 | /* Add a new sample into a sequence. */ |
| 65 | void sparklineSequenceAddSample(struct sequence *seq, double value, char *label) { |
no test coverage detected