diff --git a/.gitignore b/.gitignore

new file mode 100644

index 0000000000000000000000000000000000000000..f401dbd89b042f9781234fd4b680dac963bfc4b4

--- /dev/null

+++ b/.gitignore

@@ -0,0 +1,2 @@

+*.o

+gpx2yaml

diff --git a/LICENSE b/LICENSE

new file mode 100644

index 0000000000000000000000000000000000000000..802af4a8ad833ad8706243619fecc57c6be44324

--- /dev/null

+++ b/LICENSE

@@ -0,0 +1,15 @@

+ISC License

+Copyright (c) 2021 Nikolay Korotkiy sikmir@disroot.org

+Permission to use, copy, modify, and/or distribute this software for any

+purpose with or without fee is hereby granted, provided that the above

+copyright notice and this permission notice appear in all copies.

+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF

+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR

+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES

+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN

+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF

+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

diff --git a/Makefile b/Makefile

new file mode 100644

index 0000000000000000000000000000000000000000..0bdd41d4ec92f3ed1bdaebecc34ba04e6c95953f

--- /dev/null

+++ b/Makefile

@@ -0,0 +1,16 @@

+PREFIX = /usr/local

+BIN = gpx2yaml

+all: build

+build: clean

+clean:

+install: all

diff --git a/README.md b/README.md

new file mode 100644

index 0000000000000000000000000000000000000000..59c2e63c69e8534409459a874f36fe4b6231e4bc

--- /dev/null

+++ b/README.md

@@ -0,0 +1,14 @@

+gpx2yaml

+--------

+Convert GPX to YAML.

+Caveats

+-------

+It is not a full-featured GPX converter.

+License

+-------

+ISC, see LICENSE file.

diff --git a/gpx2yaml.c b/gpx2yaml.c

new file mode 100644

index 0000000000000000000000000000000000000000..73834bed94dd00c0cf74224ff418f4a3ac217397

--- /dev/null

+++ b/gpx2yaml.c

@@ -0,0 +1,136 @@

+#include <stdio.h>

+#include <string.h>

+#include "util.h"

+#include "xml.h"

+struct pos {

+};

+static XMLParser parser; /* XML parser state */

+static char curelement[16];

+static char curgpxelement[16];

+static struct pos pos;

+static int linkindex;

+static int trksegindex;

+static int

+istag(const char *s1, const char *s2)

+{

+}

+static int

+isattr(const char *s1, const char *s2)

+{

+}

+void

+xml_handler_start_element(XMLParser *p, const char *tag, size_t taglen)

+{

+}

+void

+xml_handler_end_element(XMLParser *p, const char *tag, size_t taglen, int isshort)

+{

+}

+void

+xml_handler_attr(XMLParser *p, const char *tag, size_t taglen, const char *name, size_t namelen,

+{

+}

+void

+xml_handler_data(XMLParser *p, const char *data, size_t datalen)

+{

+}

+int

+main(void)

+{

+}

diff --git a/util.c b/util.c

new file mode 100644

index 0000000000000000000000000000000000000000..c54b31bbd479eb775d439e8c5adc9e9564e2f62e

--- /dev/null

+++ b/util.c

@@ -0,0 +1,35 @@

+#include <stdio.h>

+#include <string.h>

+#include <stdlib.h>

+#include <sys/types.h>

+#include "util.h"

+/*

+size_t

+strlcpy(char *dst, const char *src, size_t siz) {

+}

diff --git a/util.h b/util.h

new file mode 100644

index 0000000000000000000000000000000000000000..4da38854b9588596c51b3ecd2571e2cc368c041b

--- /dev/null

+++ b/util.h

@@ -0,0 +1,2 @@

+#undef strlcpy

+size_t strlcpy(char *, const char *, size_t);

diff --git a/xml.c b/xml.c

new file mode 100644

index 0000000000000000000000000000000000000000..3c19626794042740884890dd05740e49a592904f

--- /dev/null

+++ b/xml.c

@@ -0,0 +1,233 @@

+#include <ctype.h>

+#include <errno.h>

+#include <stdio.h>

+#include <stdlib.h>

+#include <string.h>

+#include "xml.h"

+static void

+xml_parseattrs(XMLParser *x)

+{

+startvalue:

+}

+void

+xml_parse(XMLParser *x)

+{

+}

diff --git a/xml.h b/xml.h

new file mode 100644

index 0000000000000000000000000000000000000000..bc57ba38735705d948b9c14b69c055c64d49c87d

--- /dev/null

+++ b/xml.h

@@ -0,0 +1,42 @@

+#ifndef XML_H

+#define XML_H

+#include <stdio.h>

+typedef struct xmlparser {

+#ifndef GETNEXT

+#endif

+} XMLParser;

+void xml_parse(XMLParser *);

+#endif

Proxy Information
Original URL
gemini://git.sikmir.ru/gpx2yaml/commits/69bdf1e0a07ed37961a6c75e6145dc8f98d68322.patch
Status Code
Success (20)
Meta
application/octet-stream
Capsule Response Time
143.67994 milliseconds
Gemini-to-HTML Time
6.713353 milliseconds

This content has been proxied by September (3851b).