Commit 5bc503e2 authored by Niels Möller's avatar Niels Möller
Browse files

Let format return a string.

Rev: src/sexp.h:1.2
parent d4a193cf
......@@ -26,15 +26,21 @@
#ifndef LSH_SEXP_H_INCLUDED
#define LSH_SEXP_H_INCLUDED
#include "abstract_io.h"
#include "lsh_types.h"
#define CLASS_DECLARE
#unclude "sexp.h.x"
#undef CLASS_DECLARE
/* CLASS:
(class
(name sexp)
(vars
(output method int "int style" "struct abstract_write output")))
(format method int "int style")))
*/
#define SEXP_FORMAT(e, s) ((e)->format((e), (s)))
/* CLASS:
(class
(name sexp_string)
......@@ -61,6 +67,12 @@
(cdr object sex_cons)))
*/
/* Output styles */
#define SEXP_CANONICAL 0
#define SEXP_TRANSPORT 1
#define SEXP_EXTENDED 2
/* Creating sexps */
/* atom->sexp */
struct sexp *sexp_a(int a);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment