json_t forward declaration

13 views
Skip to first unread message

Paul Harris

unread,
May 31, 2012, 12:31:09 PM5/31/12
to jansso...@googlegroups.com
Hi,

Is it possible to change the json_t typedef to:

typedef struct json_t_tag {
    json_type type;
    size_t refcount;
} json_t;

(note the additional tag json_t_tag)

That would allow me to forward-declare like so:
struct json_t_tag;
typedef struct json_t_tag json_t;

thanks!
Paul

Paul Harris

unread,
May 31, 2012, 1:31:36 PM5/31/12
to jansso...@googlegroups.com
Never mind, I wrapped it completely with a pimpl, no need to forward declare anymore.

Maybe others might still like to forward-declare.
Reply all
Reply to author
Forward
0 new messages