#define _CRT_SECURE_NO_WARNINGS #include "shape-description.h" namespace msdfgen { int readCharF(FILE *input) { … } int readCharS(const char **input) { … } int readCoordF(FILE *input, Point2 &coord) { … } int readCoordS(const char **input, Point2 &coord) { … } static bool writeCoord(FILE *output, Point2 coord) { … } template <typename T, int (*readChar)(T *), int (*readCoord)(T *, Point2 &)> static int readControlPoints(T *input, Point2 *output) { … } template <typename T, int (*readChar)(T *), int (*readCoord)(T *, Point2 &)> static bool readContour(T *input, Contour &output, const Point2 *first, int terminator, bool &colorsSpecified) { … } bool readShapeDescription(FILE *input, Shape &output, bool *colorsSpecified) { … } bool readShapeDescription(const char *input, Shape &output, bool *colorsSpecified) { … } static bool isColored(const Shape &shape) { … } bool writeShapeDescription(FILE *output, const Shape &shape) { … } }