| | @@ -18,127 +18,142 @@ |
| 18 | 18 | #define HAVE_UMASK
|
| 19 | 19 | #include elseSEPARATOR ":"
|
| 20 | 20 | #ifdef _ATFORM_PLATFORM "unix"
|
| 21 | | -#define TCL_PLATFORM_PATH_SEPARMKSTEMP
|
| 21 | +#define TCL_PLATFORM_PATH_SEPARATOR ":#elseVE_MKSTEMP
|
| 22 | +#define HAVY
|
| 23 | +#define HAVE_MKSTEMP
|
| 22 | 24 | #define HAVE_LINK
|
| 23 | 25 | #define HAVE_SYS_TIME_H
|
| 24 | 26 | #define HAVE_DITFORM "unix"
|
| 25 | 27 | #define TCL_PLATFndif
|
| 26 | 28 | #define JIM_VERS3cl. See http://jim.berlios.de/ */
|
| 27 | | -#define _GNU_SOURCEREFERENCES single source file,/* /**
|
| 28 | | - * UTF-8 utility functions
|
| 29 | | - *
|
| 30 | | - * (c) 2010 Steve Bennett <[email protected]>
|
| 31 | | - *
|
| 32 | | - * See LICENCE for licence details.
|
| 33 | | - */
|
| 34 | | -
|
| 35 | | -/**
|
| 36 | | - * Converts the given unicode codepoint (0 - 0xffff) to utf-8
|
| 37 | | - * and stores the result at 'p'.
|
| 38 | | - *
|
| 39 | | - * Returns the number of utf-8 characters (1-3).
|
| 40 | | - */
|
| 41 | | -intJim Tcl. See http://jim.tcl.tk/ */
|
| 29 | +#define _GNU_SOURCEREFERENCES single source file,/* This is single source file, bootstrap version of Jim Tcl. See http://jim.tcl.tk/ */
|
| 42 | 30 | #define JIM_TCL_COMPAT_H
|
| 43 | | -#define/* No utf-8 support. 1 byte = 1 char */
|
| 44 | | -#define utf8_strlen(S, B) TCL_LIBRARY "."
|
| 45 | | -#define j
|
| 46 | | -#defineS, CP) (*(CP) = #define jim_eexecxec
|
| 31 | +#define TCL_LIBRARY "."
|
| 32 | +#define jim_ext_stdlib
|
| 33 | +#define jimregexpxec
|
| 34 | +#define jim_efilexec
|
| 35 | +#define jim_eexecxec
|
| 47 | 36 | #define jim_eclockxec
|
| 48 | 37 | #define jim_ee TCL_PLATFORM_OS "windows"
|
| 49 | 38 | #define TCL_PLATFORM_PLATFORM "windows"
|
| 50 | | -#define TCL_PLAT/**
|
| 51 | | - * Returns the length of the utf-8 sequence starting with 'c'.
|
| 52 | | - *
|
| 53 | | - * Returns 1-4, or -1 if this is not a valid start byte.
|
| 54 | | - *
|
| 55 | | - * Note that charlen=4 is not supported by the rest of the API.
|
| 56 | | - */
|
| 57 | | -int utf8_charlen(int c);
|
| 39 | +#define TCL_PLATFORM_PATH_SEPARATOR ";"
|
| 40 | +#define HAVE_MKDIR_ONE_ARG
|
| 41 | +#define HAVE_SYSTEM
|
| 42 | +#elif defined(__MINGW32__)
|
| 43 | +#define TCL_PLATFORM_OS "mingw"
|
| 44 | +#define TCL_PLATFORM_PLATFORM "windows"
|
| 45 | +#define TCL_PLATFORM_PATH_SEPARATOR ";"
|
| 46 | +#define HAVE_MKDIR_ONE_ARG
|
| 47 | +#define HAVE_SYSTEM
|
| 48 | +#define HAVE_SYS_TIME_H
|
| 49 | +#define HAVE_DIRENT_H
|
| 50 | +#define HAVE_UNISTD_H
|
| 51 | +#define HAVE_UMASK
|
| 52 | +#include elseSEPARATOR ":"
|
| 53 | +#ifdef _ATFORM_PLATFORM "unix"
|
| 54 | +#define TCL_PLATFORM_PATH_SEPARATOR ":"
|
| 55 | +#ifdef _MINIX
|
| 56 | +#define vfork VE_WAITPID
|
| 57 | +#Vndif
|
| 58 | +#define HAVE_WAITPID
|
| 59 | +#define HAVE_ISATE_WAITPID
|
| 60 | +#define HAVE_ISATTY
|
| 61 | +#define HAVE_MKSTEMP
|
| 62 | +#define HAVE_LINK
|
| 63 | +#define HAVE_SYS_TIME_H
|
| 64 | +#define HAVE_DITFORM "unix"
|
| 65 | +#define TCL_PLATFndif
|
| 66 | +#define JIM_VERSION 75if
|
| 58 | 67 |
|
| 59 | | -/**
|
| 60 | | - * Returns the number of characters in the utf-8
|
| 61 | | - * string of the given byte length.
|
| 62 | | - *
|
| 63 | | - * Any bytes which are not part of an valid utf-8
|
| 64 | | - * sequence are treated as individual characters.
|
| 65 | | - *
|
| 66 | | - * The string *must* be null terminated.
|
| 67 | | - *
|
| 68 | | - * Does not support unicode code points > \uffff
|
| 69 | | - */
|
| 70 | | -int utf8_strlen(bytelen);
|
| 71 | 68 |
|
| 72 | | -/**
|
| 73 | | - * Returns the byte index of the given character in the utf-8 string.
|
| 74 | | - *
|
| 75 | | - * The string *must* be null terminated.
|
| 76 | | - *
|
| 77 | | - * This will return the byte length of a utf-8 string
|
| 78 | | - * if given the char charindex);
|
| 69 | +#5if
|
| 79 | 70 |
|
| 80 | | -/**
|
| 81 | | - * Returns the unicode codepoint corresponding to the
|
| 82 | | - * utf-8 sequence 'str'.
|
| 83 | | - *
|
| 84 | | - * Stores the result in *uc and returns the number of bytes
|
| 85 | | - * consumed.
|
| 86 | | - *
|
| 87 | | - * If 'str' is null terminated, then an invalid utf-8 sequence
|
| 88 | | - * at the end of the string will be returned as individual bytes.
|
| 89 | | - *
|
| 90 | | - * If it is not null terminated, the length *must* be checked first.
|
| 91 | | - *
|
| 92 | | - * Does not support unicode c*uc);
|
| 93 | 71 |
|
| 94 | | -/**
|
| 95 | | - * Returns the number of bytes before 'str' that the previous
|
| 96 | | - * utf-8 character sequence starts (which may be the middle of a sequence).
|
| 97 | | - *
|
| 98 | | - * Looks back at most 'len' bytes backwards, which must be > 0.
|
| 99 | | - * If no start char is found, returns -len
|
| 100 | | - */
|
| 101 | | -int utf8_prev_len(
|
| 102 | | -/**
|
| 103 | | - * Returns the upper-case variant of the given unicode codepoint.
|
| 104 | | - *
|
| 105 | | - * Does not support unicode code points > \uffff
|
| 106 | | - */
|
| 107 | | -int utf8_upper(int uc);
|
| 72 | +#if defined(_WIN32) || defined(WIN32)
|
| 108 | 73 |
|
| 109 | | -/**
|
| 110 | | - * Returns the lower-case variant of the given unicode codepoint.
|
| 111 | | - *
|
| 112 | | - * NOTE: Use utf8_upper() in preference for case-insensitive matching.
|
| 113 | | - *
|
| 114 | | - * Does not support unicode code points > \uffff
|
| 115 | | - */
|
| 116 | | -int utf8_lower(int uc);
|
| 74 | +#define HAVE_DLOPEN
|
| 75 | +void *dlopen(const rror(void);
|
| 117 | 76 |
|
| 77 | +
|
| 78 | +#if defined(__MINGW3l lmap part [split $braced ,] {\n"
|
| 79 | +" set pat $before$part$after\n"
|
| 80 | +" proc glob.glob if {$dir eq $pattern} {\n"
|
| 81 | +\n"
|
| 82 | +" set dir foreach dir $dirlismatch \"*/\" $dir]}ep \"\"\n"
|
| 83 | +" } elseif {$dir eq \".\"} {\n"
|
| 84 | +" set globdir \"\"\n"
|
| 85 | +" set sep \"\"set sep /foreach pat [glob.expandbracesreaddir_pattern $dir $pat] {\n"
|
| 86 | +" globdir$sep$name http://jim.berl3cl. See http://jimset nocomplain 0-nocomplain\"} {\n"
|
| 87 | +"lappend result {*}[glob.globnocomplain == 0flush/
|
| 88 | +#define _GNU_SOURCEREFERENCES erlios.de/ *long offsetfseekfilenflush."3short
|
| 89 | +#define HAVE_UNISTD_H
|
| 90 | +#define HAVE_UMASK
|
| 91 | +#include elseSEPARATOR ":"
|
| 92 | +#ifdef _ATFORM_PLATFORM "unix"
|
| 93 | +#define TCL_PLATFORM_PATH_SEPARATOR ":"
|
| 94 | +#ifdef _MINIX
|
| 95 | +#define vfork VE_WAITPID
|
| 96 | +#Vndif
|
| 97 | +#define HAVE_WAITPID
|
| 98 | +# HAVE_ISATTY
|
| 99 | +#define HAVE_MKSTEMP
|
| 100 | +#define HAVE_LINK
|
| 101 | +#define HAVE_SYS_TIME_H
|
| 102 | +#define HAVE_DITFORM "unix"
|
| 103 | +#define TCL_PLATFndif
|
| 104 | +#define JIM_VERSION 75if
|
| 105 | +
|
| 106 | +
|
| 107 | +#5if
|
| 108 | +
|
| 109 | +
|
| 110 | +#if defined(_WIN32) || defined(WIN32)
|
| 111 | +
|
| 112 | +#define HAVE_DLOPEN
|
| 113 | +void *dlopen(const rror(void);
|
| 114 | +
|
| 115 | +
|
| 116 | +#if defined(__MINGW32__)
|
| 117 | + #(disable:4146)
|
| 118 | 118 | #endif
|
| 119 | 119 |
|
| 120 | | -#endif
|
| 121 | | -/* Jim - A small embeddable Tcl interpreter
|
| 122 | | - *
|
| 123 | | - * Copyright 2005 Salvatore Sanfilippo <[email protected]>
|
| 124 | | - * Copyright 2005 Clemens Hintze <[email protected]>
|
| 125 | | - * Copyright 2005 patthoyts - Pat Thoyts <[email protected]>
|
| 126 | | - * Copyright 2008 oharboe - �yvind Harboe - [email protected]
|
| 127 | | - * Copyright 2008 Andrew Lunn <[email protected]>
|
| 128 | | - * Copyright 2008 Duane Ellis <[email protected]>
|
| 129 | | - * Copyright 2008 Uwe Klein <[email protected]>
|
| 130 | | - *
|
| 131 | | - * Redistribution and use in source and binary forms, with or without
|
| 132 | | - * modification, are permitted provided that the following conditions
|
| 133 | | - * are met:
|
| 134 | | - *
|
| 135 | | - * 1. Redistributions of source code must retain the above copyright
|
| 136 | | - * notice, this list of conditions and the following disclaimer.
|
| 137 | | - * 2. Redistributions in binary form must reproduce the above
|
| 138 | | - * copyright notice, this list of conditions and the following
|
| 139 | | - * disclaimer in the documentation and/or other materials
|
| 140 | | - * provided with the distribution.
|
| 141 | | - *
|
| 142 | | - * THIS SOFTWARE IS PROVIDED BY THE JIM TCL PROJECT ``AS IS'' AND ANY
|
| 143 | | - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
| 144 | | - * THE IMPLIED WARRANTIES OF MERCHANTABILI |
| 120 | +#include <limits.h>
|
| 121 | +#define jim_wide _iint refCount;
|
| 122 | + charemptyObjhttp://jim.berlios.de/ 3cl. See htHAVE_MKDIR_ONE_AR3cl. See http://jim.berlios.de/ */
|
| 123 | +et result { if {$pattern in {. ..}$pattern{*[[*?]*}\n"
|
| 124 | +" set files[file isdir set files [list} else {\n"
|
| 125 | +" set files \" continue\n"
|
| 126 | +"
|
| 127 | +#define HAVE_SYSTEM3cl. See htglob.expandbraces {pattern} {\n"
|
| 128 | +"\n"
|
| 129 | +"\n"
|
| 130 | +" if {[set fb [string first \"\\{\" $pattern]] < 0list}\n"
|
| 131 | +" if {[set nb [string firstlist}\n"
|
| 132 | +" set beforeine HAVE_SYSTEM
|
| 133 | +#elif defin3cl. See http://jim.b$fb+1 $nb-1]\n"
|
| 134 | +" set afterine HAVE_SYSTEM
|
| 135 | +#elif de3cl. lmap part [split $braced ,] {\n"
|
| 136 | +" set pat $before$part$after\n"
|
| 137 | +" proc glob.glob if {$dir eq $pattern} {\n"
|
| 138 | +\n"
|
| 139 | +" set dir foreach dir $dirlismatch \"*/\" $dir]}ep \"\"\n"
|
| 140 | +" } elseif {$dir eq \".\"} {\n"
|
| 141 | +" set globdir \"\NESTING_DEPTH 1xpandbracesreaddir_pattern $dir $pat] {\n"
|
| 142 | +" globdir$sep$name http://jim.berl3c3cl. See http://jim.berlios.de/ */
|
| 143 | +#define _GNU_SOURCEREFERENCES single source file,/* This is single source file, bootstrap version of Jim Tcl. See http://jim.tcl.tk/ */
|
| 144 | +#define JIM_TCL_COMPAT_H
|
| 145 | +#define TCL_LIBRARY "."
|
| 146 | +#define jim_ext_stdlib
|
| 147 | +#define jimregexpxec
|
| 148 | +#define jim_efilexec
|
| 149 | +#define jim_eexecxec
|
| 150 | +#define jim_eclockxec
|
| 151 | +#define jim_ee TCL_PLATFORM_OS "windows"
|
| 152 | +#define TCL_PLATFORM_PLATFORM "windows"
|
| 153 | +#define TCL_PLATFORM_PATH_SEPARATOR ";"
|
| 154 | +#define HAVE_MKDIR_ONE_ARG
|
| 155 | +#define HAVE_SYSTEM
|
| 156 | +#elif defined(__MINGW32__)
|
| 157 | +#define TCL_PLATFOR3cl. consthashint indexjim_wide callFrameId3cl. See http://jim.berlios.d} vajim_wide jim_wide id3clchar *data;
|
| 158 | + size_t flags;
|
| 159 | + c |