unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Use define_error outside of json.c
@ 2021-07-26 20:01 Yuan Fu
  2021-07-27 14:01 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Yuan Fu @ 2021-07-26 20:01 UTC (permalink / raw)
  To: emacs-devel

I find define_error in json.c very useful and want to use it outside of json.c, where should I move the declaration and definition?

Yuan


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Use define_error outside of json.c
  2021-07-26 20:01 Use define_error outside of json.c Yuan Fu
@ 2021-07-27 14:01 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2021-07-27 14:01 UTC (permalink / raw)
  To: Yuan Fu; +Cc: emacs-devel

> From: Yuan Fu <casouri@gmail.com>
> Date: Mon, 26 Jul 2021 16:01:30 -0400
> 
> I find define_error in json.c very useful and want to use it outside of json.c, where should I move the declaration and definition?

Move it to eval.c and remove the 'static' qualifier from it.  Then add
a prototype to lisp.h.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-27 14:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-26 20:01 Use define_error outside of json.c Yuan Fu
2021-07-27 14:01 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).