aboutsummaryrefslogtreecommitdiff
path: root/src/io
diff options
context:
space:
mode:
authorJ08nY2017-02-14 22:57:49 +0100
committerJ08nY2017-02-14 22:57:49 +0100
commit2cf95775a1d1a41d49f86cbd2d66290653201367 (patch)
treedcaacac863a68ff69639a73c363dd498808e93e2 /src/io
parent39c6155e0193ff69dcdf765e936487bfcf4f1b17 (diff)
downloadecgen-2cf95775a1d1a41d49f86cbd2d66290653201367.tar.gz
ecgen-2cf95775a1d1a41d49f86cbd2d66290653201367.tar.zst
ecgen-2cf95775a1d1a41d49f86cbd2d66290653201367.zip
Diffstat (limited to 'src/io')
-rw-r--r--src/io/output.c9
-rw-r--r--src/io/output.h3
2 files changed, 9 insertions, 3 deletions
diff --git a/src/io/output.c b/src/io/output.c
index 27cdcf4..2e4d82d 100644
--- a/src/io/output.c
+++ b/src/io/output.c
@@ -20,7 +20,7 @@ char *output_scsv(const char *format, char delim, GEN vector) {
total += lengths[i];
}
- char *result = (char *)malloc(total + len);
+ char *result = (char *) malloc(total + len);
if (!result) {
perror("Couldn't malloc.");
exit(1);
@@ -48,7 +48,12 @@ void output_csv(FILE *out, const char *format, char delim, GEN vector) {
free(string);
}
-char *output_sjson(GEN vector) {}
+
+char *output_sjson(curve_t *curve) {
+ JSON_Value *root_value = json_value_init_object();
+ JSON_Object *root_object = json_value_get_object(root_value);
+ char *result = NULL;
+}
void output_json(FILE *out, GEN vector) {}
diff --git a/src/io/output.h b/src/io/output.h
index 0a2f91d..3adafce 100644
--- a/src/io/output.h
+++ b/src/io/output.h
@@ -7,6 +7,7 @@
#include <pari/pari.h>
#include <stdbool.h>
+#include "math/types.h"
/**
*
@@ -31,7 +32,7 @@ void output_csv(FILE *out, const char *format, char delim, GEN vector);
* @param vector
* @return
*/
-char *output_sjson(GEN vector);
+char *output_sjson(curve_t *curve);
/**
*