Charles Campbell wrote:

> Bram Moolenaar wrote:
> > Patch 7.4.1166
> > Problem:    Can't encode a Funcref into JSON.  jsonencode() doesn't handle 
> > the
> >             same list or dict twice properly.  (Nikolay Pavlov)
> > Solution:   Give an error.  Reset copyID when the list or dict is finished.
> > Files:      src/json.c, src/proto/json.pro, src/testdir/test_json.vim
> >
> I'm not sure which patch: 7.4.1166 or 7.4.1154, but I'm now getting:
> 
> gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread
> -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include
> -I/usr/include/atk-1.0 -I/usr/include/cairo
> -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
> -I/usr/include/pixman-1 -I/usr/include/freetype2
> -I/usr/include/libpng12     -g -O2 -U_FORTIFY_SOURCE
> -D_FORTIFY_SOURCE=1       -o objects/crypt.o crypt.c
> In file included from proto.h:98,
>                  from vim.h:1991,
>                  from crypt.c:13:
> proto/json.pro:3: error: expected ')' before '*' tokenIn file included
> from proto.h:98,
>                  from vim.h:1991,
>                  from blowfish.c:22:
> proto/json.pro:3: error: expected ')' before '*' tokenIn file included
> from proto.h:98,
>                  from vim.h:1991,
>                  from charset.c:10:
> proto/json.pro:3: error: expected ')' before '*' token
> 
> In file included from proto.h:98,
>                  from vim.h:1991,
>                  from buffer.c:28:
> proto/json.pro:3: error: expected ')' before '*' token
> 
> These errors look like js_read_T is not defined, and consequently cause
> the compiling errors.
> 
> FWIW: I use scientific linux and I don't use json.

Hmm, are you missing js_read_T in structs.h?  It was added in patch
7.4.1154.  That was a very big patch, perhaps something went wrong
including it?

-- 
"I simultaneously try to keep my head in the clouds and my feet on the
ground.  Sometimes it's a stretch, though."              -- Larry Wall

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui