SHA256
3
0
forked from pool/libedit
Go to file
Ismail Dönmez 2b87906d0d Accepting request 109055 from home:elvigia:branches:devel:libraries:c_c++
-  open all FDs with O_CLOEXEC in the library code.
-  use gcc visibility by just reusing upstream macros "public"
   and "protected"

OBS-URL: https://build.opensuse.org/request/show/109055
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libedit?expand=0&rev=47
2012-03-13 11:11:23 +00:00
.gitattributes OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libedit?expand=0&rev=1 2008-09-07 23:43:02 +00:00
.gitignore OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libedit?expand=0&rev=1 2008-09-07 23:43:02 +00:00
baselibs.conf Accepting request 77692 from home:tiwai:branches:devel:libraries:c_c++ 2011-08-02 14:56:07 +00:00
libedit-20100424-3.0-ncurses.patch Accepting request 106720 from home:elvigia:branches:devel:libraries:c_c++ 2012-02-23 19:01:31 +00:00
libedit-20110802-3.0.tar.gz Accepting request 106720 from home:elvigia:branches:devel:libraries:c_c++ 2012-02-23 19:01:31 +00:00
libedit-ocloexec.patch Accepting request 109055 from home:elvigia:branches:devel:libraries:c_c++ 2012-03-13 11:11:23 +00:00
libedit-visibility.patch Accepting request 109055 from home:elvigia:branches:devel:libraries:c_c++ 2012-03-13 11:11:23 +00:00
libedit.changes Accepting request 109055 from home:elvigia:branches:devel:libraries:c_c++ 2012-03-13 11:11:23 +00:00
libedit.spec Accepting request 109055 from home:elvigia:branches:devel:libraries:c_c++ 2012-03-13 11:11:23 +00:00
README.SuSE OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libedit?expand=0&rev=1 2008-09-07 23:43:02 +00:00

 Examples
----------

An Editline port of the fileman.c example from the GNU Readline documentation is
distributed with this package.

Note libcurses, as well as libedit, should be linked to Editline enabled
programs, e.g.
gcc -o fileman fileman.c -ledit -lcurses

A pkg-config libedit.pc file is provided, so you can write 
PKG_CHECK_MODULES(LIBEDIT, libedit)

in configure.ac of your client program to detect the existence of libedit.so and
to set CFLAGS and LIBS for using libedit. 

Using the pkg-config helper tool, the above fileman example looks like,
gcc -o fileman fileman.c `pkg-config --libs --cflags libedit`