зеркало из https://github.com/github/ruby.git
* ext/curses/curses.c (_XOPEN_SOURCE_EXTENDED): Mac OS X standard
headers are inconsistent at this macro. [ruby-core:01432] * ext/curses/extconf.rb: check if _XOPEN_SOURCE_EXTENDED breaks. * ext/tcltklib/stubs.c: Status macro in X11/Xthreads.h bothers winspool.h * instruby.rb: make list at first instead of iterator. [ruby-talk:79347] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
857d380411
Коммит
d45bda0bf8
13
ChangeLog
13
ChangeLog
|
@ -1,3 +1,16 @@
|
|||
Tue Aug 19 01:24:34 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/curses/curses.c (_XOPEN_SOURCE_EXTENDED): Mac OS X standard
|
||||
headers are inconsistent at this macro. [ruby-core:01432]
|
||||
|
||||
* ext/curses/extconf.rb: check if _XOPEN_SOURCE_EXTENDED breaks.
|
||||
|
||||
* ext/tcltklib/stubs.c: Status macro in X11/Xthreads.h bothers
|
||||
winspool.h
|
||||
|
||||
* instruby.rb: make list at first instead of iterator.
|
||||
[ruby-talk:79347]
|
||||
|
||||
Mon Aug 18 11:23:11 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* dir.c (glob_helper): preserve raw order for **.
|
||||
|
|
|
@ -14,11 +14,8 @@
|
|||
*/
|
||||
|
||||
#include "ruby.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include "rubyio.h"
|
||||
|
||||
#define _XOPEN_SOURCE_EXTENDED 1
|
||||
#if defined(HAVE_NCURSES_H)
|
||||
# include <ncurses.h>
|
||||
#elif defined(HAVE_NCURSES_CURSES_H)
|
||||
|
@ -31,18 +28,18 @@
|
|||
# if defined(__bsdi__) || defined(__NetBSD__) || defined(__APPLE__)
|
||||
# if !defined(_maxx)
|
||||
# define _maxx maxx
|
||||
# endif
|
||||
# endif
|
||||
# if !defined(_maxy)
|
||||
# define _maxy maxy
|
||||
# endif
|
||||
# endif
|
||||
# if !defined(_begx)
|
||||
# define _begx begx
|
||||
# endif
|
||||
# endif
|
||||
# if !defined(_begy)
|
||||
# define _begy begy
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_INIT_COLOR
|
||||
# define USE_COLOR 1
|
||||
|
|
|
@ -7,19 +7,25 @@ dir_config('termcap')
|
|||
make=false
|
||||
have_library("mytinfo", "tgetent") if /bow/ =~ RUBY_PLATFORM
|
||||
have_library("tinfo", "tgetent") or have_library("termcap", "tgetent")
|
||||
if have_header("ncurses.h") and have_library("ncurses", "initscr")
|
||||
if have_header(*curses=%w"ncurses.h") and have_library("ncurses", "initscr")
|
||||
make=true
|
||||
elsif have_header("ncurses/curses.h") and have_library("ncurses", "initscr")
|
||||
elsif have_header(*curses=%w"ncurses/curses.h") and have_library("ncurses", "initscr")
|
||||
make=true
|
||||
elsif have_header("curses_colr/curses.h") and have_library("cur_colr", "initscr")
|
||||
elsif have_header(*curses=%w"curses_colr/curses.h") and have_library("cur_colr", "initscr")
|
||||
curses.unshift("varargs.h")
|
||||
make=true
|
||||
elsif have_header(*curses=%w"curses.h") and have_library("curses", "initscr")
|
||||
make=true
|
||||
elsif have_header("curses.h") and have_library("curses", "initscr")
|
||||
make=true
|
||||
end
|
||||
|
||||
if make
|
||||
for f in %w(isendwin ungetch beep getnstr wgetnstr doupdate flash deleteln wdeleteln keypad keyname init_color wresize resizeterm)
|
||||
have_func(f)
|
||||
end
|
||||
flag = "-D_XOPEN_SOURCE_EXTENDED"
|
||||
src = "int test_var[(sizeof(char*)>sizeof(int))*2-1];"
|
||||
if try_compile(cpp_include(%w[stdio.h stdlib.h]+curses)+src , flag)
|
||||
$defs << flag
|
||||
end
|
||||
create_makefile("curses")
|
||||
end
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
int ruby_tcltk_stubs();
|
||||
|
||||
#if defined USE_TCL_STUBS && defined USE_TK_STUBS
|
||||
#include <tcl.h>
|
||||
#include <tk.h>
|
||||
#include "ruby.h"
|
||||
|
||||
#if defined _WIN32 || defined __CYGWIN__
|
||||
|
@ -28,6 +26,9 @@ int ruby_tcltk_stubs();
|
|||
# define TK_NAME "libtk8.9%s"
|
||||
#endif
|
||||
|
||||
#include <tcl.h>
|
||||
#include <tk.h>
|
||||
|
||||
int
|
||||
ruby_tcltk_stubs()
|
||||
{
|
||||
|
|
|
@ -162,13 +162,13 @@ EOF
|
|||
end
|
||||
end
|
||||
|
||||
Dir.glob("lib/**/*{.rb,help-message}") do |f|
|
||||
for f in Dir["lib/**/*{.rb,help-message}"]
|
||||
dir = File.dirname(f).sub!(/\Alib/, rubylibdir) || rubylibdir
|
||||
makedirs dir
|
||||
install f, dir, :mode => 0644
|
||||
end
|
||||
|
||||
Dir.glob("*.h") do |f|
|
||||
for f in Dir["*.h"]
|
||||
install f, archlibdir, :mode => 0644
|
||||
end
|
||||
|
||||
|
@ -177,7 +177,7 @@ if RUBY_PLATFORM =~ /mswin32|mingw|bccwin32/
|
|||
install "win32/win32.h", File.join(archlibdir, "win32"), :mode => 0644
|
||||
end
|
||||
|
||||
Dir.glob("*.[1-9]") do |mdoc|
|
||||
for mdoc in Dir["*.[1-9]"]
|
||||
next unless File.file?(mdoc) and open(mdoc){|fh| fh.read(1) == '.'}
|
||||
|
||||
section = mdoc[-1,1]
|
||||
|
|
Загрузка…
Ссылка в новой задаче