1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* wince/string_wce.c: add strpbrk() for hpcpro support.

* wince/setup.mak: add hpcpro(CE2.11) & armv4t(CE.NET) support.

* wince/resource.rb: ditto.

* wince/Makefile.sub: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
uema2 2003-06-01 04:44:45 +00:00
parent 9f6f32c737
commit dc13952417
5 changed files with 57 additions and 14 deletions

View file

@ -1,3 +1,13 @@
Sun Jun 01 13:33:49 2003 Takaaki Uematsu <uema2x@jcom.home.ne.jp>
* wince/string_wce.c: add strpbrk() for hpcpro support.
* wince/setup.mak: add hpcpro(CE2.11) & armv4t(CE.NET) support.
* wince/resource.rb: ditto.
* wince/Makefile.sub: ditto.
Sun Jun 1 10:38:28 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* variable.c (rb_autoload_load): autoloaded constants under a module

View file

@ -182,7 +182,6 @@ OBJS = array.obj \
all: ext minirubyce$(EXEEXT) rbconfig.rb \
$(LIBRUBY) $(MISCLIBS)
# @$(MINIRUBY) $(srcdir)/ext/extmk.rb --extstatic=$(EXTSTATIC) --make "$(MAKE)" --make-flags "-$(MFLAGS)$(MAKEFLAGS)"
@miniruby$(EXEEXT) $(srcdir)/ext/extmk.rb --extstatic=$(EXTSTATIC) --make "$(MAKE)" --make-flags "-$(MFLAGS)$(MAKEFLAGS)"
ext:
@ -298,6 +297,20 @@ $(BANG)endif
#define read _read
#define write _write
#define lseek _lseek
#if _WIN32_WCE < 300
#define isascii(c) ( (c>=0x00&&c<=0x7f)?1:0 )
#define isspace(c) ( ((c>=0x09&&c<=0x0d)||c==0x20)?1:0 )
#define isdigit(c) ( (c>=0x00&&c<=0x09)?1:0 )
#define isupper(c) ( (c>='A'&&c<='Z')?1:0 )
#define isalpha(c) ( ((c>='A'&&c<='Z')||(c>='a'&&c<='z'))?1:0 )
#define isprint(c) ( (c>=0x20&&c<=0x7e)?1:0 )
#define isalnum(c) ( (isalpha(c)||isdigit(c))?1:0 )
#define iscntrl(c) ( ((c>=0x00&&c<=0x1f)||c==0x7f)?1:0 )
#define islower(c) ( (c>='a'&&c<='z')?1:0 )
#define ispunct(c) ( !(isalnum(c)||isspace(c))?1:0 )
#define isxdigit(c) ( ((c>=0&&c<=9)||(c>='A'&&c<='F')||(c>='a'&&c<='f'))?1:0 )
#endif
<<KEEP
config.status: Makefile $(srcdir)/wince/Makefile.sub
@ -434,8 +447,6 @@ $(RUBYDEF): $(LIBRUBY_A) minirubyce$(EXEEXT)
$(AR) $(ARFLAGS)$@ -def:$<
install: rbconfig.rb
# miniruby$(EXEEXT) $(srcdir)/instruby.rb -$(MFLAGS)$(MAKEFLAGS) $(DESTDIR)
# miniruby$(EXEEXT) $(srcdir)/ext/extmk.rb --make "$(MAKE)" --make-flags "-$(MFLAGS)$(MAKEFLAGS) DESTDIR=$(DESTDIR)" install
miniruby$(EXEEXT) $(srcdir)/instruby.rb \
"--dest-dir=$(DESTDIR)" "--make=nmake"
miniruby$(EXEEXT) $(srcdir)/ext/extmk.rb \
@ -508,6 +519,7 @@ $(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc: rbconfig.rb
-ruby_name=$(RUBY_INSTALL_NAME) \
-rubyw_name=$(RUBYW_INSTALL_NAME) \
-so_name=$(RUBY_SO_NAME) \
-wce_ver=$(SUBSYSVERSION) \
. $(icondirs) $(srcdir)/wince
{$(srcdir)/missing}.c.obj:

View file

@ -54,11 +54,10 @@ end
open(base + '.rc', "w") { |f|
f.binmode if /mingw/ =~ RUBY_PLATFORM
f.print("#include <windows.h>\n")
f.print("#include <winver.h>\n") if $wce_ver=="2.11"
f.print <<EOF
#include <windows.h>
#if _WIN32_WCE > 400
#include <winver.h>
#endif
#{icons}
VS_VERSION_INFO VERSIONINFO

View file

@ -40,6 +40,7 @@ sh3-ppc-wince: -prologue- -sh3- -ppc- -epilogue-
sh3-hpcpro-wince: -prologue- -sh3- -hpcpro2- -epilogue-
sh4-hpcpro-wince: -prologue- -sh4- -hpcpro2- -epilogue-
armv4-.net41-wince: -prologue- -armv4- -.net41- -epilogue-
armv4t-.net41-wince: -prologue- -armv4t- -.net41- -epilogue-
-prologue-: nul
@type << > $(MAKEFILE)
@ -87,10 +88,9 @@ $(CPU) = $(PROCESSOR_LEVEL)
@$(APPEND) CC = cl$(@:-=)
-sh3- -sh4-::
@$(APPEND) CC = shcl
-armv4-::
-armv4- -armv4t-::
@$(APPEND) CC = clarm
@$(APPEND) ARCHFOLDER = armv4
@$(APPEND) $(ARCH) = arm
@$(APPEND) ARCHFOLDER = $(@:-=)
-arm-::
@ -103,6 +103,10 @@ $(CPU) = $(PROCESSOR_LEVEL)
@$(APPEND) CECPUDEF = -DSHx -DSH4 -D_SH4_
-armv4-::
@$(APPEND) CECPUDEF = -DARM -D_ARM_ -DARMV4
@$(APPEND) $(ARCH) = ARM
-armv4t-::
@$(APPEND) CECPUDEF = -DARM -D_ARM_ -DARMV4T
@$(APPEND) $(ARCH) = THUMB
-hpc2k-: -hpc2000-
@ -176,16 +180,14 @@ LIB = $$(CE_TOOLS_DIR)/wce$$(SUBSYSVERSION:.=)/MS Pocket PC/lib/$$(PROCESSOR_ARC
"-MS HPC Pro--":
@type << >>$(MAKEFILE)
INCLUDE = $$(CE_TOOLS_DIR)/wce$$(SUBSYSVERSION:.=)/$(@:-=)/include
LIB = $$(CE_TOOLS_DIR)/wce$$(SUBSYSVERSION:.=)/$(@:-=)/lib
INCLUDE = $$(CE_TOOLS_DIR)/wce$$(SUBSYSVERSION:.=)/MS HPC Pro/include
LIB = $$(CE_TOOLS_DIR)/wce$$(SUBSYSVERSION:.=)/MS HPC Pro/lib/$$(PROCESSOR_ARCHITECTURE)
<<
-.net41-:
@type << >>$(MAKEFILE)
INCLUDE = $$(CE_TOOLS4_DIR)/wce400/STANDARDSDK/include/$$(ARCHFOLDER)
LIB = $$(CE_TOOLS4_DIR)/wce400/STANDARDSDK/lib/$$(ARCHFOLDER)
#INCLUDE = $$(CE_TOOLS4_DIR)/wce400/STANDARDSDK/include/$$(PROCESSOR_ARCHITECTURE)
#LIB = $$(CE_TOOLS4_DIR)/wce400/STANDARDSDK/lib/$$(PROCESSOR_ARCHITECTURE)
<<

View file

@ -66,4 +66,24 @@ int stricmp( const char *s1, const char *s2 )
return n;
}
char *strpbrk(const char *str, const char *cs)
{
wchar_t *wstr, *wcs, *w;
char *s = NULL;
wstr = wce_mbtowc(str);
wcs = wce_mbtowc(cs);
w = wcspbrk(wstr, wcs);
if( w!=NULL )
s = str + (wcs-wstr)/sizeof(wchar_t);
free(wstr);
free(wcs);
return s;
}
#endif