| 1 |
2024-12-04 Shiro Kawai <[email protected]> |
| 2 |
|
| 3 |
* src/libeval.scm (%invoke-other-version): Avoid using cond-expand. |
| 4 |
This file may be precompiled on different platforms. |
| 5 |
|
| 6 |
2024-12-02 Shiro Kawai <[email protected]> |
| 7 |
|
| 8 |
* lib/gauche/interactive.scm (read-eval-print-loop): Adapt to |
| 9 |
user-provided prompter. |
| 10 |
https://github.com/shirok/Gauche/issues/1088 |
| 11 |
|
| 12 |
2024-11-30 Shiro Kawai <[email protected]> |
| 13 |
|
| 14 |
* src/compile-5.scm (pass5/$DYNENV): Stop emitting EXTEND-DENV; |
| 15 |
it is replaced by PRE-CALL and TAIL-EXTEND-DENV. |
| 16 |
https://github.com/shirok/Gauche/issues/1086 |
| 17 |
|
| 18 |
2024-11-29 Shiro Kawai <[email protected]> |
| 19 |
|
| 20 |
* src/compile-i.scm (with-exception-handler): Inline expand |
| 21 |
it to $DYNENV IForm when the body is a literal lambda. |
| 22 |
This speeds up a lot. |
| 23 |
https://github.com/shirok/Gauche/issues/1083 |
| 24 |
|
| 25 |
* src/compile*.scm: Additional work to enhance $DYNENV. |
| 26 |
|
| 27 |
* src/Makefile.in, src/core.c, lib/gauche/version-alist.scm: |
| 28 |
Make BUILD_GOSH's version available in version-alist |
| 29 |
(key 'build.gosh-version'). |
| 30 |
|
| 31 |
2024-11-28 Shiro Kawai <[email protected]> |
| 32 |
|
| 33 |
* src/vminsn.scm (EXTEND-DENV, TAIL-EXTEND-DENV), |
| 34 |
src/compile-5.scm (pass5/$DYNENV): Enhanced those instructions to |
| 35 |
cons a new value to existing value. The operation can be used |
| 36 |
to optimize with-exception-handler etc. |
| 37 |
|
| 38 |
2024-11-26 Shiro Kawai <[email protected]> |
| 39 |
|
| 40 |
* src/symbol.c (Scm_Gensym): Avoid race. It is theoretically |
| 41 |
harmless as far as gensym result is used as uninterned symbols |
| 42 |
(even two threads reads the same counter, created symbols are |
| 43 |
different), but their name can be dumped to a file, and it |
| 44 |
is better to avoid conflicts. |
| 45 |
|
| 46 |
2024-11-25 Shiro Kawai <[email protected]> |
| 47 |
|
| 48 |
* src/libeval.scm (load-from-port): Use with-exception-handler |
| 49 |
instead of guard to reraise wrapped condition. Guard rewinds |
| 50 |
stack before calling the handler, so a portion of stack trace |
| 51 |
is lost. |
| 52 |
|
| 53 |
* src/load.c (do_require): Use non-error-trapping Scm_Load when |
| 54 |
PROPAGATE_ERROR is requrested. |
| 55 |
https://github.com/shirok/Gauche/issues/1081 |
| 56 |
|
| 57 |
2024-11-24 Shiro Kawai <[email protected]> |
| 58 |
|
| 59 |
* configure.ac: 0.9.15-p2, for reproducible "official" package. |
| 60 |
|
| 61 |
2024-11-22 Shiro Kawai <[email protected]> |
| 62 |
|
| 63 |
* src/libobj.scm (%expand-define-method): Avoid including |
| 64 |
"#<identifier..>" in the method unique name, since it has portions |
| 65 |
that vary for each build and hinders reproducible build. The name |
| 66 |
is not relevant to the program execution; only needs to be unique |
| 67 |
inside the module. So we use gensym-generated counter instead. |
| 68 |
https://github.com/shirok/Gauche/issues/1080 |
| 69 |
|
| 70 |
2024-11-15 Shiro Kawai <[email protected]> |
| 71 |
|
| 72 |
* lib/srfi/230.scm: Support srfi-230. |
| 73 |
|
| 74 |
2024-11-10 Shiro Kawai <[email protected]> |
| 75 |
|
| 76 |
* ext/gauche/atomic.scm: Provide atomic operations in a separate |
| 77 |
module for now. It's mainly to organize namespaces. |
| 78 |
If we start using atomic boxes in core libraries, we might |
| 79 |
move this to the core. |
| 80 |
|
| 81 |
2024-11-07 Shiro Kawai <[email protected]> |
| 82 |
|
| 83 |
* lib/gauche/interactive/editable-reader.scm (make-editable-reader): |
| 84 |
Clear buffered input when a reader raise an error, so that |
| 85 |
subsequent read won't be confused. |
| 86 |
* src/gauche.h (SCM_CHAR_MAX): Change SCM_CHAR_MAX to 0x10ffff. |
| 87 |
We intentionally took wider range for the room of extension, |
| 88 |
but now that internal encoding is fixed to utf-8 and more |
| 89 |
libraries assume Unicode, it doesn't seem useful anymore. |
| 90 |
* src/read.c (Scm_ReadXdigitsFromString): Fix bug when a certain |
| 91 |
path failed to return SCM_CHAR_INVALID in out-of-range case. |
| 92 |
Also use SCM_CHAR_MAX instead of hardcoded limit number. |
| 93 |
Cf. https://github.com/shirok/Gauche/issues/1078 |
| 94 |
|
| 95 |
2024-11-06 Shiro Kawai <[email protected]> |
| 96 |
|
| 97 |
* src/gauche/priv/atomicP.h: Change API to align to C11 atomic |
| 98 |
primitives rather than emulating libatomic_ops primitives. |
| 99 |
atomic_compare_exchange in C11 is not a simple replacement of |
| 100 |
AO_compare_and_swap. Since AO_ will fade out, we emulate C11 |
| 101 |
semantics with AO_* when C11 primitives isn't available. |
| 102 |
|
| 103 |
2024-10-31 Shiro Kawai <[email protected]> |
| 104 |
|
| 105 |
* lib/gauche/parseopt.scm: Change the order of plural option's |
| 106 |
values; it's more reasonable to return the order appearing in |
| 107 |
the command-line arguments. Plural option support is added |
| 108 |
after 0.9.15, so this shouldn't be a compatibility issue. |
| 109 |
* lib/tools/*: Removed `reverse` from plural option values |
| 110 |
according to the above change. |
| 111 |
|
| 112 |
2024-10-30 Shiro Kawai <[email protected]> |
| 113 |
|
| 114 |
* lib/gauche/parseopt.scm (run-option-parser): Revise low-level API. |
| 115 |
There's not much point to make <option-parser> applicable. Explicit |
| 116 |
procedure to apply the parser on the args is better for clear API |
| 117 |
and readability. |
| 118 |
|
| 119 |
2024-10-25 Shiro Kawai <[email protected]> |
| 120 |
|
| 121 |
* src/compile-1.scm (pass1/check-inlinable-lambda): Allow inlining |
| 122 |
literal closures given to getter-with-setter |
| 123 |
https://github.com/shirok/Gauche/issues/1076 |
| 124 |
|
| 125 |
2024-10-19 Shiro Kawai <[email protected]> |
| 126 |
|
| 127 |
* lib/srfi/234.scm (connected-components): Fix a bug in the |
| 128 |
reference impl. |
| 129 |
|
| 130 |
2024-10-10 Shiro Kawai <[email protected]> |
| 131 |
|
| 132 |
* lib/gauche/version-alist.scm (gauche): Allow excluding certain |
| 133 |
info from the output of 'gosh -V' by setting an environment |
| 134 |
variable GAUCHE_VERSION_INFO_EXCLUSION. |
| 135 |
https://github.com/shirok/Gauche/issues/1042 |
| 136 |
|
| 137 |
2024-10-07 Shiro Kawai <[email protected]> |
| 138 |
|
| 139 |
* doc/corelib.texi: Document <Assortment> type constructor. |
| 140 |
|
| 141 |
2024-10-05 Shiro Kawai <[email protected]> |
| 142 |
|
| 143 |
* lib/gauche/interactive.scm: Avoid exporting REPL-variables *1 etc. |
| 144 |
from #<module gauche>. |
| 145 |
https://github.com/shirok/Gauche/issues/1066 |
| 146 |
|
| 147 |
2024-10-03 Shiro Kawai <[email protected]> |
| 148 |
|
| 149 |
* ext/digest/sha3.c: Officially support SHA-3. Add SHA3-224. |
| 150 |
|
| 151 |
2024-09-29 Shiro Kawai <[email protected]> |
| 152 |
|
| 153 |
* src/srfis.scm: Support srfi-234 officially. |
| 154 |
* lib/util/toposort.scm: Implement on top of srfi-234; this module |
| 155 |
is for the backward compatibility. |
| 156 |
|
| 157 |
2024-09-17 Shiro Kawai <[email protected]> |
| 158 |
|
| 159 |
* libsrc/gauche/process.scm: Support :envioronment keyword arg. |
| 160 |
|
| 161 |
2024-09-14 Shiro Kawai <[email protected]> |
| 162 |
|
| 163 |
* src/libsys.scm (sys-exec, sys-fork-and-exec): Add :environment |
| 164 |
keyword arg. |
| 165 |
|
| 166 |
* gc/: bumped bdwgc 8.2.8 |
| 167 |
|
| 168 |
2024-09-13 Shiro Kawai <[email protected]> |
| 169 |
|
| 170 |
* src/system.c (Scm_SysExec): Switch to use execve() on POSIX platform. |
| 171 |
Executable is searched by sys-find-file, instead of relying on |
| 172 |
execvp(). |
| 173 |
|
| 174 |
2024-09-11 Shiro Kawai <[email protected]> |
| 175 |
|
| 176 |
* src/system.c (Scm_SysExec): Change API to allow environment in the |
| 177 |
argument. This is technically a compatibility-breaking change. |
| 178 |
Our hope is that no extensions rely on this API, for it is |
| 179 |
pretty low-level and awkward to use. It's much more convenient |
| 180 |
to use gauche.process. |
| 181 |
|
| 182 |
2024-09-10 Shiro Kawai <[email protected]> |
| 183 |
|
| 184 |
* lib/gauche/sysutil.scm (sys-find-file), libsrc/file/util.scm: |
| 185 |
Move file.util#find-file-in-paths to the core, for sys-exec |
| 186 |
will need it. Cf. https://github.com/shirok/Gauche/issues/1071 |
| 187 |
|
| 188 |
2024-09-05 Shiro Kawai <[email protected]> |
| 189 |
|
| 190 |
* src/libobj.scm (describe-slots): Hide slots starting with '%' by |
| 191 |
default. Setting a dynamic state describe-details to a true value |
| 192 |
changes it. Since 'describe' is for human interaction, we think |
| 193 |
this bit of convention would help users. |
| 194 |
|
| 195 |
2024-08-29 Shiro Kawai <[email protected]> |
| 196 |
|
| 197 |
* lib/gauche/version.scm: Relaxed relnum syntax. Now it allows |
| 198 |
sequence of chars except delimiting ones ([._-]). It is becaues |
| 199 |
bleeding-edge tarball has something like 0.9.15-p1+20240829. |
| 200 |
|
| 201 |
2024-08-27 Shiro Kawai <[email protected]> |
| 202 |
|
| 203 |
* tools/make-tgz.sh: Allow creating snapshot tarball with snapshot_id |
| 204 |
|
| 205 |
* configure.ac: Add GAUCHE_SNAPSHOT_ID, an optional string to dicern |
| 206 |
versions of snapshot tarballs. |
| 207 |
|
| 208 |
* lib/lang/c/type.scm (c-actual-type): Fix the case when identifier |
| 209 |
is typedef'ed to an aggregate type. The old code assumed the |
| 210 |
inner type was always a basic type. |
| 211 |
This was the cause of https://github.com/shirok/Gauche/issues/1044 |
| 212 |
|
| 213 |
2024-08-11 Shiro Kawai <[email protected]> |
| 214 |
|
| 215 |
* lib/srfi/190.scm: Proper support of srfi-190, based on |
| 216 |
identifier syntax and syntax parameters. |
| 217 |
|
| 218 |
2024-08-09 Shiro Kawai <[email protected]> |
| 219 |
|
| 220 |
* src/compile-1.scm (define-syntax-parameter, syntax-parameterize): |
| 221 |
Added srfi-139 (preliminary). We need more error checks and tests. |
| 222 |
|
| 223 |
2024-08-06 Shiro Kawai <[email protected]> |
| 224 |
|
| 225 |
* src/compile-1.scm (make-id-transformer): Attach expression name |
| 226 |
to identifier macros. The id-macro object rarely surfaces: |
| 227 |
When you evaluate the identifier bound to an id-macro, it |
| 228 |
immediately expands, so the macro object can't be obtained through |
| 229 |
evaluation. Still it may be appear during debugging, and |
| 230 |
it's useful to see the name of the macro. |
| 231 |
|
| 232 |
2024-08-03 Shiro Kawai <[email protected]> |
| 233 |
|
| 234 |
* lib/util/identifier-syntax.scm (identifier-syntax): Add support |
| 235 |
of R6RS identifier-syntax. |
| 236 |
|
| 237 |
2024-08-02 Shiro Kawai <[email protected]> |
| 238 |
|
| 239 |
* src/macro.c (compile_rules, synrule-expand): Allow a single |
| 240 |
identifier as pattern, e.g. (syntax-rules () (_ template)). |
| 241 |
This pattern matches anything. Especially useful when compiled |
| 242 |
with make-id-transformer, for this pattern can be used to |
| 243 |
match the identifier macro. |
| 244 |
|
| 245 |
2024-08-01 Shiro Kawai <[email protected]> |
| 246 |
|
| 247 |
* src/compile-1.scm (make-id-transformer): Experimentally added. |
| 248 |
It wraps ordinary macro to make an id macro. Similar to R6RS |
| 249 |
make-variable-transformer, but you need it even the id macro is |
| 250 |
used without set!. |
| 251 |
|
| 252 |
2024-07-31 Shiro Kawai <[email protected]> |
| 253 |
|
| 254 |
* src/compile-1.scm (set!): Add support of identifier macro call |
| 255 |
when id-macro is used in (set! id expr) form. |
| 256 |
|
| 257 |
2024-07-30 Shiro Kawai <[email protected]> |
| 258 |
|
| 259 |
* src/compile.scm (define-cproc), src/compile-1.scm (pass1), |
| 260 |
src/libmacbase.scm (call-id-macro-expander): Allow id-macro |
| 261 |
to be global. |
| 262 |
|
| 263 |
2024-07-28 Shiro Kawai <[email protected]> |
| 264 |
|
| 265 |
* src/libdict.scm (dict-transparent?): Priting dictionary content |
| 266 |
unconditionally is a bad idea. A <dictionary> instance may access |
| 267 |
external resources, or may have unbounded size (e.g. computed content). |
| 268 |
Trying to print such a dictionary and write-walk recurse into it |
| 269 |
would be a disaster. |
| 270 |
With dict-transparent? method, a dictionary class may elect that |
| 271 |
pprint prints its content. Default is not transparent. |
| 272 |
|
| 273 |
2024-07-27 Shiro Kawai <[email protected]> |
| 274 |
|
| 275 |
* src/libdict.scm: Make dictionary protocol implementation of |
| 276 |
hashtables and treemaps built-in. We need dict methods |
| 277 |
to walk into dictionaries during write-walk. |
| 278 |
(See https://github.com/shirok/Gauche/issues/1060). |
| 279 |
We don't want entire gauche.dictionary built-in, since it |
| 280 |
drags gauche.collection into core as well. So externally |
| 281 |
gauche.dictionary remains as a library module and nothing changes. |
| 282 |
* src/libhash.scm: Moved original content of libdict.scm here. |
| 283 |
I've always been confused where to find hashtable cproc definitions. |
| 284 |
Now it's easier. |
| 285 |
|
| 286 |
2024-07-25 Shiro Kawai <[email protected]> |
| 287 |
|
| 288 |
* lib/gauche/pputil.scm (layout-dict): Instead of letting built-in |
| 289 |
print handler to display hash-table content, we can directly handle |
| 290 |
it in pprint. |
| 291 |
https://github.com/shirok/Gauche/issues/1032#issuecomment-2252319794 |
| 292 |
This can avoid the complications of recursing pprint and |
| 293 |
Scm_Vprintf https://github.com/shirok/Gauche/issues/1058 |
| 294 |
|
| 295 |
2024-07-21 Shiro Kawai <[email protected]> |
| 296 |
|
| 297 |
* src/write.c (Scm_Vprintf): Use current column for the indentation |
| 298 |
of %W. |
| 299 |
|
| 300 |
* src/core.c (Scm_RuntimeState): Generalize Scm_InitializedP() to |
| 301 |
Scm_RuntimeState(), to track several initialization phases. |
| 302 |
|
| 303 |
2024-07-20 Shiro Kawai <[email protected]> |
| 304 |
|
| 305 |
* src/hash.c (hash_print): Default printer to print hash table content. |
| 306 |
https://github.com/shirok/Gauche/issues/1032 |
| 307 |
|
| 308 |
2024-07-18 Shiro Kawai <[email protected]> |
| 309 |
|
| 310 |
* src/vm.c (Scm_VMDynamicWind): Allow 'before' handler to be SCM_FALSE, |
| 311 |
in which case we can skip calling it. A bit of saving. |
| 312 |
|
| 313 |
* src/vm.c: Ditched vm->escapePoint chain. It had two roles: |
| 314 |
error handler stack and a list of EPs that points to in-stack cont |
| 315 |
frames. Now we unified error handlers into exception handlers, |
| 316 |
and keeps in-stack cont EPs in vm->floatingEscapePoints list. |
| 317 |
See https://github.com/shirok/Gauche/issues/1037 |
| 318 |
|
| 319 |
2024-07-13 Shiro Kawai <[email protected]> |
| 320 |
|
| 321 |
* src/vm.c (Scm_NewVM): When a new VM (thread) is created, we only |
| 322 |
need to inherit parameterizations for the new dynamic environment. |
| 323 |
Other dynamic stuff are reset to the default values at the entrance |
| 324 |
of the thread and upstream values are never accessed. |
| 325 |
|
| 326 |
2024-07-12 Shiro Kawai <[email protected]> |
| 327 |
|
| 328 |
* ext/tls: Avoid depending tls-mbed shared object on tls shared object, |
| 329 |
for it complicates things on Windows. |
| 330 |
(tls-debug-level-set!): Saves the debug level globally, and |
| 331 |
tell it to newly registered subsystem. By this, the debug level |
| 332 |
setting isn't affected by the timing of loading of the subsystem. |
| 333 |
|
| 334 |
2024-07-06 Shiro Kawai <[email protected]> |
| 335 |
|
| 336 |
* libsrc/text/tr.scm (build-char-array): Fix backslash handling. |
| 337 |
https://github.com/shirok/Gauche/issues/1051 |
| 338 |
We also clarified the case when there are dups in from-list: |
| 339 |
the first entrly wins. |
| 340 |
|
| 341 |
2024-06-30 Shiro Kawai <[email protected]> |
| 342 |
|
| 343 |
* lib/srfi/234.scm: Added. |
| 344 |
|
| 345 |
2024-06-29 Shiro Kawai <[email protected]> |
| 346 |
|
| 347 |
* lib/Makefile.in: generate slibcat in builddir then install, |
| 348 |
instead of generating it in the installation directory. Generating |
| 349 |
after installation doesn't work if we use DESTDIR. We had |
| 350 |
slibcat-in-place makefile target specifically for that, but we can |
| 351 |
generate slibcat in builddir anyway, we can always use it. |
| 352 |
https://github.com/shirok/Gauche/issues/1046 |
| 353 |
|
| 354 |
2024-06-28 Shiro Kawai <[email protected]> |
| 355 |
|
| 356 |
* ext/tls/tls-mbed.c (mbed_read, mbed_write): Handle non-fatal |
| 357 |
errors. Without this, TLS1.3 session stops when server sends |
| 358 |
a session ticket. |
| 359 |
https://github.com/shirok/Gauche/issues/1047 |
| 360 |
|
| 361 |
2024-06-27 Shiro Kawai <[email protected]> |
| 362 |
|
| 363 |
* ext/tls/tls.scm (tls-debug-level-set!): API to set debug level of |
| 364 |
TLS submodules. |
| 365 |
|
| 366 |
2024-06-21 Shiro Kawai <[email protected]> |
| 367 |
|
| 368 |
* lib/tools/compile-r7rs: Drop support of COMPILE_R7RS. If the |
| 369 |
variable is set, we warn that we don't support it. See the |
| 370 |
discussion at https://github.com/shirok/Gauche/pull/1045. |
| 371 |
|
| 372 |
2024-06-19 Shiro Kawai <[email protected]> |
| 373 |
|
| 374 |
* src/genconfig.in.in: Remove '--prefix' and '--exec-prefix' configure |
| 375 |
arguments from CONFIGURE_ARGS if we compile Gauche to obtain |
| 376 |
runtime directory relative to the library location (MinGW, |
| 377 |
OSX framework). In such cases, '--prefix' etc. is irrelevant |
| 378 |
to recompile, and it becomes actually a nuisance if it appears |
| 379 |
in 'gauche-config --reconfigure'. |
| 380 |
|
| 381 |
2024-06-12 Shiro Kawai <[email protected]> |
| 382 |
|
| 383 |
* src/number.c (print_number), |
| 384 |
lib/gauche/numutil.scm (print-exact-decimal-point-number): |
| 385 |
Add hook to print exact decimal notation if ratonal number's |
| 386 |
denominator is divisible by 2 and 5. |
| 387 |
* src/gauche/priv/writerP.h, src/libio.scm, src/write.c: |
| 388 |
Add exact-decimal slot to <write-controls> |
| 389 |
* lib/gauche/interactive/toplevel.scm (print-mode): |
| 390 |
Allow changing exact-decimal setting. |
| 391 |
|
| 392 |
2024-06-09 Shiro Kawai <[email protected]> |
| 393 |
|
| 394 |
* lib/gauche/parseopt.scm (let-args): Rewrote using er-macro, |
| 395 |
supporting plural options (cmdoption that can be specified |
| 396 |
more than once). |
| 397 |
|
| 398 |
2024-06-08 Shiro Kawai <[email protected]> |
| 399 |
|
| 400 |
* lib/gauche/interactive.scm (describe): Show polar representaion |
| 401 |
when describing a complex number. |
| 402 |
|
| 403 |
2024-06-05 Shiro Kawai <[email protected]> |
| 404 |
|
| 405 |
* src/libobj.scm (ref): Make generic referencer work on <mv-box>. |
| 406 |
https://github.com/shirok/Gauche/issues/1038. |
| 407 |
|
| 408 |
* lib/gauche/interactive/completion.scm (%complete-symbol): Exclude |
| 409 |
verbose method names from completion candidates. |
| 410 |
Cf. https://github.com/shirok/Gauche/issues/1039 |
| 411 |
|
| 412 |
2024-06-02 Shiro Kawai <[email protected]> |
| 413 |
|
| 414 |
* lib/gauche/parseopt.scm (let-args, option-parser-help-string): |
| 415 |
Add option help string generation. |
| 416 |
Cf. https://github.com/shirok/Gauche/issues/661 |
| 417 |
|
| 418 |
2024-05-29 Shiro Kawai <[email protected]> |
| 419 |
|
| 420 |
* lib/text/fill.scm: Added. |
| 421 |
|
| 422 |
2024-05-27 Shiro Kawai <[email protected]> |
| 423 |
|
| 424 |
* lib/rfc/uuid.scm (make-uuid7-generator): Add optional argument to |
| 425 |
specify the amount of increment. Also fixed a bug to avoid |
| 426 |
increment gets 0. |
| 427 |
|
| 428 |
2024-05-26 Shiro Kawai <[email protected]> |
| 429 |
|
| 430 |
* ext/uvector/uvector.c.tmpl: Make sure recognizing big/little endian |
| 431 |
designator as well as big-endian/little-endian. |
| 432 |
https://github.com/shirok/Gauche/issues/1036 |
| 433 |
|
| 434 |
2024-05-24 Shiro Kawai <[email protected]> |
| 435 |
|
| 436 |
* lib/rfc/uuid.scm: Change to generator-make style a la data.random |
| 437 |
and srfi.194. This clarifies interaction with uuid-random-source, |
| 438 |
and makes less lock contention. |
| 439 |
https://github.com/shirok/Gauche/issues/1034 |
| 440 |
|
| 441 |
2024-05-21 Shiro Kawai <[email protected]> |
| 442 |
|
| 443 |
* src/genconfig.in, src/gen-genconfig.scm: Generate genconfig.in |
| 444 |
form the single source of config parameter description. |
| 445 |
Note: genconfig.in needs to be generated _before_ 'configure', |
| 446 |
hence the generation rule isn't in Makefile. 'DIST tgz' takes |
| 447 |
care of it. |
| 448 |
|
| 449 |
2024-05-17 Shiro Kawai <[email protected]> |
| 450 |
|
| 451 |
* lib/rfc/uuid.scm: Added uuid6 and uuid7, according to RFC9562. |
| 452 |
|
| 453 |
* configure.ac: Change --enable-common-commands to |
| 454 |
--enable-shared-commands. |
| 455 |
See the discussion in https://github.com/shirok/Gauche/pull/1030 |
| 456 |
|
| 457 |
2024-05-16 Shiro Kawai <[email protected]> |
| 458 |
|
| 459 |
* configure.ac: Add --enable-common-commands to install SRFI-defined |
| 460 |
common commands such as compile-r7rs, scheme-r7rs, etc. |
| 461 |
See the discussion in https://github.com/shirok/Gauche/pull/1030 |
| 462 |
|
| 463 |
2024-05-15 Shiro Kawai <[email protected]> |
| 464 |
|
| 465 |
* src/gen-features.sh: Define feature ids for operating system and CPU, |
| 466 |
using configure's $host. Inspired by |
| 467 |
https://github.com/shirok/Gauche/pull/1033 |
| 468 |
|
| 469 |
2024-05-12 Shiro Kawai <[email protected]> |
| 470 |
|
| 471 |
* lib/tools/compile-r7rs: Added SRFI-138 compliant script. |
| 472 |
Contributed by Antero Mejr |
| 473 |
https://github.com/shirok/Gauche/pull/1030 |
| 474 |
|
| 475 |
2024-05-10 Shiro Kawai <[email protected]> |
| 476 |
|
| 477 |
* lib/gauche/configure/output.scm (cf-output): Adjust escaping of |
| 478 |
cf-define-ed value when it appears in -Dvar=val. |
| 479 |
https://github.com/shirok/Gauche/issues/1028 |
| 480 |
|
| 481 |
2024-05-08 Shiro Kawai <[email protected]> |
| 482 |
|
| 483 |
* lib/srfi/252.scm (inexact-complex-generator): The previous one |
| 484 |
duplicates initial seqeunces by using inexact-real-generator |
| 485 |
for real and imag parts. Fixed. |
| 486 |
|
| 487 |
2024-05-07 Shiro Kawai <[email protected]> |
| 488 |
|
| 489 |
* lib/text/sh.scm: New module for shell-related text processing, |
| 490 |
including shell-style pattern match. |
| 491 |
(cf. https://github.com/shirok/Gauche/issues/1026) |
| 492 |
shell-escape-string and shell-tokenize-string are also moved |
| 493 |
here from gauche.process, since they are pure text processing and |
| 494 |
nothing to do with subprocess. (Though we keep them available |
| 495 |
through gauche.process as well). |
| 496 |
|
| 497 |
* src/libsys.scm (glob-component->regexp): Allow special characters |
| 498 |
to be scaped with '\'. Also added :shell mode. |
| 499 |
|
| 500 |
2024-05-06 Shiro Kawai <[email protected]> |
| 501 |
|
| 502 |
* lib/gauche/configure/output.scm (cf-output): Fix srcdir substitution |
| 503 |
for subdirectories |
| 504 |
https://github.com/shirok/Gauche/issues/1025 |
| 505 |
|
| 506 |
2024-05-05 Shiro Kawai <[email protected]> |
| 507 |
|
| 508 |
* examples/spigot-subdir: Added an example when C files are |
| 509 |
put under src/ subdirectory. |
| 510 |
|
| 511 |
2024-05-03 Shiro Kawai <[email protected]> |
| 512 |
|
| 513 |
* src/gauche-package.in: It gets too bloated, so moved the 'meat' |
| 514 |
into gauche.package.commands. |
| 515 |
|
| 516 |
* configure.ac: 0.9.15-p1, just to distinguish from released version. |
| 517 |
|
| 518 |
2024-05-02 Shiro Kawai <[email protected]> |
| 519 |
|
| 520 |
* libsrc/gauche/process.scm: (call-with-*-process): Allow #f |
| 521 |
for :on-abnormal-exit, which discards the result of proc |
| 522 |
and returns #f when the process exits abnormally. |
| 523 |
https://github.com/shirok/Gauche/issues/1024 |
| 524 |
|
| 525 |
2024-04-30 Shiro Kawai <[email protected]> |
| 526 |
|
| 527 |
* lib/gauche/configure/lang.scm: Changed cf-lang-program to take |
| 528 |
either a string or a list of strings as prologue and body arguments, |
| 529 |
instead of a string tree. This technically breaks compatibility, |
| 530 |
though most of the time it should work. |
| 531 |
https://github.com/shirok/Gauche/issues/1023 |
| 532 |
|
| 533 |
2024-04-26 Shiro Kawai <[email protected]> |
| 534 |
|
| 535 |
* src/vm.c (Scm__InitVM): Flip the default value of |
| 536 |
CHECK_UNDEFIFNED_TEST flag. Now it is on by default, |
| 537 |
and is suppressed with env var GAUCHE_ALLOW_UNDEFINED_TEST. |
| 538 |
|
| 539 |
2024-04-25 Shiro Kawai <[email protected]> |
| 540 |
|
| 541 |
* lib/gauche/libutil.scm (library-for-each): Make it agnostic |
| 542 |
to the return value of given proc. |
| 543 |
|
| 544 |
* lib/gauche/interactive/completion.scm (%complete-module-name): |
| 545 |
Avoid the closure returining #<undef>. |
| 546 |
https://github.com/shirok/Gauche/issues/1022 |
| 547 |
|
| 548 |
* src/srfis.scm: SRFI-252 went final, so we officially support it. |
| 549 |
|
| 550 |
2024-04-23 Shiro Kawai <[email protected]> |
| 551 |
|
| 552 |
* Release 0.9.15 |
| 553 |
|
| 554 |
* tools/tls/Makefile.in: Downgraded MbedTLS-internal version to |
| 555 |
3.5.2, since 3.6.0 has an issue on MinGW. See |
| 556 |
https://github.com/shirok/Gauche/issues/1021 |
| 557 |
* tools/tls/process-config.sh: Need to tweak MinGW i686 build. |
| 558 |
|
| 559 |
* lib/gauche/configure.scm (cf-call-with-cpp): Added. |
| 560 |
|
| 561 |
* src/genconfig.in: Add --cpp and --cppflags for C preprocessor |
| 562 |
configration. Useful for 'configure' script. |
| 563 |
|
| 564 |
2024-04-17 Shiro Kawai <[email protected]> |
| 565 |
|
| 566 |
* src/libnum.scm (sin etc.): Let them always return inexact numbers. |
| 567 |
Previously we had (sin #e0) => #e0 etc., but it's not necessary, |
| 568 |
and diverging from real-sin etc. isn't desirable. |
| 569 |
(atan): Fix the special case when both args are zero. |
| 570 |
|
| 571 |
2024-04-16 Shiro Kawai <[email protected]> |
| 572 |
|
| 573 |
* ext/tls/tls-mbed.c (Scm_Init_rfc__tls__mbed): Add missing |
| 574 |
psa_crypto_init() to fix TLS handshake error. |
| 575 |
https://github.com/shirok/Gauche/issues/1018 |
| 576 |
|
| 577 |
* tools/tls/Makefile.in (include/mbedtls): Bumped MbedTLS version |
| 578 |
to 3.6.0 to fetch with --with-tls=mbedtls-internal. |
| 579 |
|
| 580 |
2024-04-15 Shiro Kawai <[email protected]> |
| 581 |
|
| 582 |
* src/system.c (Scm_SysExec), |
| 583 |
src/libsys.scm (%sys-escape-windows-command-line): When a BAT file |
| 584 |
is run via CreateProcess, Windows uses different rules to parse |
| 585 |
the command line, causing a security risk. We reject 'unsafe' |
| 586 |
characters in the command line arguments if BAT file is the program |
| 587 |
to run. See CVE-2024-3566 |
| 588 |
https://nvd.nist.gov/vuln/detail/CVE-2024-3566 |
| 589 |
|
| 590 |
2024-04-10 Shiro Kawai <[email protected]> |
| 591 |
|
| 592 |
* DIST, test/standalone.scm: Run build-standalone with the installed |
| 593 |
Gauche during DIST self-host-test. |
| 594 |
This can catch the issue like |
| 595 |
https://github.com/shirok/Gauche/issues/1013 |
| 596 |
|
| 597 |
* src/gauche.h: Do not include gauche/priv/configP.h, even if it is |
| 598 |
#ifdef'ed. It is simply wrong to include a private header from a |
| 599 |
public header. Instead, it should be included from each |
| 600 |
individual source files. |
| 601 |
Cf. https://github.com/shirok/Gauche/issues/1013 |
| 602 |
|
| 603 |
2024-04-08 Shiro Kawai <[email protected]> |
| 604 |
|
| 605 |
* ext/sxml/sxml-tools.scm.in (sxml:sxml->xml): Replace original proc |
| 606 |
to handle namespaces. |
| 607 |
|
| 608 |
2024-04-07 Shiro Kawai <[email protected]> |
| 609 |
|
| 610 |
* src/libnum.scm (*, +): When used as unary operators on non-number |
| 611 |
object, delegate it to object-* or object-+. For the practical |
| 612 |
purposes, they should return the argument as is; their existence |
| 613 |
is the assertion that such opeartion is valid. We used to return |
| 614 |
the argument as is, but that may miss errors. Just in case if |
| 615 |
existing code depends on the old behavior, we issue a warning |
| 616 |
and return the argument if there's no unary method defined on |
| 617 |
the argument's class. |
| 618 |
https://github.com/shirok/Gauche/issues/1012 |
| 619 |
|
| 620 |
2024-04-05 Shiro Kawai <[email protected]> |
| 621 |
|
| 622 |
* src/libbox.scm (unbox, unbox-value): Associate setters. Now |
| 623 |
you can say (set! (unbox <box>) <value>) etc. |
| 624 |
|
| 625 |
* lib/gauche/cgen/cise.scm (<cise-env>): Use box for decls. Since |
| 626 |
a new inner env may be created during recursion, we need an |
| 627 |
indirection so that decls pushed into the inner env won't be lost. |
| 628 |
|
| 629 |
2024-04-04 Shiro Kawai <[email protected]> |
| 630 |
|
| 631 |
* src/string.c (string_putc): Buffer size too short. |
| 632 |
Fix from NIIBE Yutaka. |
| 633 |
|
| 634 |
* src/gauche/priv/arith.h (SADDOV): Avoid undefined behavior of |
| 635 |
signed integer overflow. Fix from NIIBE Yutaka. |
| 636 |
|
| 637 |
2024-04-03 Shiro Kawai <[email protected]> |
| 638 |
|
| 639 |
* src/list.c: Ensure statically allocated ExtendedPairDescriptor |
| 640 |
is aligned in 8 byte boundary. It should be treated the same |
| 641 |
as ScmClass because of tagged pointer. |
| 642 |
Original fix from NIIBE Yutaka. |
| 643 |
|
| 644 |
* lib/srfi/238.scm: Added. |
| 645 |
|
| 646 |
2024-04-01 Shiro Kawai <[email protected]> |
| 647 |
|
| 648 |
* lib/srfi/64.scm: Changed integration to gauche.test. Instead of |
| 649 |
having a specific runner to bridge to gauche.test, we now bridge |
| 650 |
regardless of the test runner. This actually reveled some bugs |
| 651 |
that have been overlooked (because it was reported only by the |
| 652 |
srfi-64 test runner and not by gauche.test). |
| 653 |
https://github.com/shirok/Gauche/issues/1010 |
| 654 |
|
| 655 |
* test/include/srfi-194-zipf-test.scm: Loosened tolerance of |
| 656 |
chi^2 test a bit. It is statistical tests and we need some |
| 657 |
more room of statistical deviation. |
| 658 |
|
| 659 |
* lib/scheme/mapping.scm (%mapping-cmp), |
| 660 |
lib/scheme/mapping/hash.scm (%hashmap-cmp): When given mappings |
| 661 |
have different comparators, we should return #f, instead of |
| 662 |
"cannot compare" error. |
| 663 |
|
| 664 |
* lib/srfi/235.scm (disjoin): Fix when a predicate created with |
| 665 |
disjoin is given no arguments. It is actually not specified |
| 666 |
in SRFI text. The test in srfi repo returns #t for it. |
| 667 |
|
| 668 |
2024-03-29 Shiro Kawai <[email protected]> |
| 669 |
|
| 670 |
* lib/gauche/test/generative.scm: Removed in favor of upcoming srfi-252. |
| 671 |
|
| 672 |
2024-03-27 Shiro Kawai <[email protected]> |
| 673 |
|
| 674 |
* src/core.c (Scm_Init): Explicitly start marker threads. Recent |
| 675 |
bdwgc delays marker thread creation until the user creates the |
| 676 |
first thread, by default. See the discussion at |
| 677 |
https://sourceforge.net/p/gauche/mailman/gauche-devel/thread/87r0fvd5bl.fsf%40karme.de/ |
| 678 |
|
| 679 |
* ext/sxml/sxml-tools.scm.in: Fix sxml:attr->html and sxml:sxml->html |
| 680 |
to handle HTML's diversion from XML properly. Specifically, |
| 681 |
- Do not treat colons in attribute names as namespace prefix |
| 682 |
- Do not emit self-closing tag for non-void elements with empty |
| 683 |
content. |
| 684 |
https://github.com/shirok/Gauche-makiki/issues/11 |
| 685 |
|
| 686 |
2024-03-25 Shiro Kawai <[email protected]> |
| 687 |
|
| 688 |
* Bumped version number to 0.9.14-p1 |
| 689 |
We're not quite ready for prerelease of next version (presumably |
| 690 |
1.0_pre1), but we have enough changes since the last release |
| 691 |
so we want to distinguish HEAD from the offical release. |
| 692 |
|
| 693 |
* lib/data/random.scm (reals-between$): Fix overflow and precision loss |
| 694 |
https://github.com/shirok/Gauche/issues/1000 |
| 695 |
|
| 696 |
2024-03-24 Shiro Kawai <[email protected]> |
| 697 |
|
| 698 |
* ext/sxml/sxml-tools.scm.in (sxml:attr->xml, sxml:attr->html): |
| 699 |
Override to fix shortcomings of the original sxml that attribute |
| 700 |
values are not quoted. |
| 701 |
Related: https://github.com/shirok/Gauche-makiki/issues/11 |
| 702 |
|
| 703 |
2024-03-23 Shiro Kawai <[email protected]> |
| 704 |
|
| 705 |
* src/gauche-package.in (compile): Support --c++ option. This tells |
| 706 |
precomp to generate *.cpp file. Later, we may switch precomp mode |
| 707 |
to support C++ specific stuff. |
| 708 |
|
| 709 |
* lib/gauche/cgen/unit.scm (<cgen-unit>): Add 'language slot; |
| 710 |
now it generate *.cpp if the language is 'c++. |
| 711 |
|
| 712 |
* src/libtype.scm (<Assortment>): Replace <Singleton> and |
| 713 |
<Singleton-set> with <Assortment>. With this word, we can |
| 714 |
use the same type for the union of singletons, eliminating |
| 715 |
the need to have separate 'set' type. |
| 716 |
Cf. https://github.com/shirok/Gauche/issues/906 |
| 717 |
|
| 718 |
2024-03-22 Shiro Kawai <[email protected]> |
| 719 |
|
| 720 |
* src/gauche.h, src/gauche/float.h: Ensure include complex.h outside |
| 721 |
of extern "C" linkage. OSX clang doesn't like otherwise if |
| 722 |
we include gauche.h to C++ source. |
| 723 |
https://github.com/shirok/Gauche/1006 |
| 724 |
|
| 725 |
2024-03-21 Shiro Kawai <[email protected]> |
| 726 |
|
| 727 |
* src/gauche-package.in (compile), |
| 728 |
lib/gauche/package/compile.scm (gauche-package-compile): |
| 729 |
Add --srcdir option for out-of-tree compilation. |
| 730 |
|
| 731 |
* libsrc/file/util.scm (build-path): Allow #f in the path components |
| 732 |
(interpreted as ".") for the convenience. |
| 733 |
|
| 734 |
2024-03-20 Shiro Kawai <[email protected]> |
| 735 |
|
| 736 |
* lib/gauche/cgen/stub.scm (.include): Split .include in stub toplevel |
| 737 |
and CiSE .include. Stub .include is emitted to decl section, |
| 738 |
while CiSE .include is emitted in place (body section). |
| 739 |
This may be potentially confusing, and good documentation is desired. |
| 740 |
See https://github.com/shirok/Gauche/issues/1003 for the background |
| 741 |
of this change. |
| 742 |
|
| 743 |
2024-03-19 Shiro Kawai <[email protected]> |
| 744 |
|
| 745 |
* lib/gauche/cgen/cise.scm (cise-omit-source-line): Change |
| 746 |
the parameter cise-emit-source-line to cise-omit-source-line, |
| 747 |
flipping the logic. This aligns better with the options |
| 748 |
(e.g. --no-line of `gauche-package compile`). |
| 749 |
|
| 750 |
* lib/data/range.scm (%appended-range-index): Bug in binary search. |
| 751 |
Patch from @gengar https://github.com/shirok/Gauche/pull/1004 |
| 752 |
|
| 753 |
2024-03-18 Shiro Kawai <[email protected]> |
| 754 |
|
| 755 |
* lib/gauche/cgen/precomp.scm: Take the default value of |
| 756 |
omit-line-directives keyword arg from the parameter |
| 757 |
cise-emit-source-info, so that the parameter settings by the |
| 758 |
the higher layer (e.g. 'gauche-package compile') is reflected. |
| 759 |
|
| 760 |
2024-03-16 Shiro Kawai <[email protected]> |
| 761 |
|
| 762 |
* lib/gauche/listener.scm (listener-read-handler): Fixed a bug revealed |
| 763 |
by the last fix. string-incomplete->complete is used in a |
| 764 |
meaningless way. |
| 765 |
|
| 766 |
* src/string.c (Scm_StringRefCursor): Fix a bug that leaked |
| 767 |
#<unbound> to the Scheme world when an incomplete string is given. |
| 768 |
It could be exhibited by this: |
| 769 |
(let1 z #**"\xe1;" |
| 770 |
(string-ref z (string-index->cursor z 0))) |
| 771 |
Now it properly raises an error. |
| 772 |
|
| 773 |
2024-03-15 Shiro Kawai <[email protected]> |
| 774 |
|
| 775 |
* lib/srfi/215.scm: Supported. Contribution from Antero Mejr. |
| 776 |
|
| 777 |
2024-03-12 Shiro Kawai <[email protected]> |
| 778 |
|
| 779 |
* lib/data/random.scm (reals-power-law$): Added. |
| 780 |
|
| 781 |
2024-03-11 Shiro Kawai <[email protected]> |
| 782 |
|
| 783 |
* lib/data/random.scm (finite-flonums$): Added. |
| 784 |
|
| 785 |
2024-03-10 Shiro Kawai <[email protected]> |
| 786 |
|
| 787 |
* doc/Makefile.in: Use install-info if it's available, and DESTDIR |
| 788 |
is not used. https://github.com/shirok/Gauche/issues/988 |
| 789 |
|
| 790 |
2024-03-09 Shiro Kawai <[email protected]> |
| 791 |
|
| 792 |
* examples/mqueue-cpp: Update to use modern way (no stub file). |
| 793 |
|
| 794 |
* ext/windows: Replace *.stub for *.scm. |
| 795 |
|
| 796 |
2024-03-08 Shiro Kawai <[email protected]> |
| 797 |
|
| 798 |
* lib/gauche/cgen/cise.scm: Handle C++ new and delete as operators. |
| 799 |
(cise-render-identifier): Allow C++ namespace qualified identifiers. |
| 800 |
|
| 801 |
2024-03-05 Shiro Kawai <[email protected]> |
| 802 |
|
| 803 |
* src/libnum.scm (greatest-positive-flonum): Add. Also renamed |
| 804 |
flonum-min-normalized and flonum-min-denormalized to |
| 805 |
least-positive-normalized-flonum and least-positive-flonum. |
| 806 |
They are consistent with {greatest|least}-fixnum. We added |
| 807 |
'positive' for clarity. We dropped 'denormalized', since |
| 808 |
the platform may not support denormalized flonums, and the |
| 809 |
procedure returns normalized flonum in that case. |
| 810 |
|
| 811 |
2024-03-04 Shiro Kawai <[email protected]> |
| 812 |
|
| 813 |
* lib/gauche/package/compile.scm: Revert the idea of *.scm.c for |
| 814 |
generated C files. It messes up Makefile inference rules |
| 815 |
(make thinks foo.scm should be regenerated if foo.scm.o is newer). |
| 816 |
For the name conflicts, we can name the stub definition file as |
| 817 |
foolib.scm, much like we've done with foolib.stub. Now we can |
| 818 |
do so because we split module definition file from stub definition |
| 819 |
file. |
| 820 |
|
| 821 |
* lib/gauche/cgen/precomp.scm: Add support of in-module form. |
| 822 |
For now, this form is valid only for precompilation; normal |
| 823 |
compiler ignores it with warning. It allows to switch modules |
| 824 |
during precompilation like select-module, but the module |
| 825 |
doesn't need to exist at the moment (it is created implicitly then). |
| 826 |
It suppors precompiling sources with stubs separately from |
| 827 |
the module definintion file. |
| 828 |
Cf. https://github.com/shirok/Gauche/issues/993 |
| 829 |
|
| 830 |
2024-03-02 Shiro Kawai <[email protected]> |
| 831 |
|
| 832 |
* lib/gauche/package/compile.scm: |
| 833 |
When 'gauche-package compile' receives *.scm file, we create |
| 834 |
intermediate C file as *.scm.c, instead of *.c, for a module |
| 835 |
may already have *.c with the same name. |
| 836 |
|
| 837 |
2024-03-01 Shiro Kawai <[email protected]> |
| 838 |
|
| 839 |
* examples/spigot: Update for modern way---no *.stub file, and *.scm |
| 840 |
file to be precompiled. |
| 841 |
|
| 842 |
* lib/gauche/package/compile.scm (gauche-package-compile): Make sure |
| 843 |
to pass DSO filename when '*.scm' is compiled with |
| 844 |
'gauche-package compile'. Without this fix, generated '*.sci' |
| 845 |
file can't have a proper dynamic-load call. |
| 846 |
|
| 847 |
2024-02-29 Shiro Kawai <[email protected]> |
| 848 |
|
| 849 |
* src/compile-1.scm, src/compile-5.scm, src/libcode.scm, src/libtype.scm: |
| 850 |
Carry procedure type of closures in $lambda-meta, instead of |
| 851 |
pair attribute of the source form---using pair attr was a kludge. |
| 852 |
The type is carried as <descriptive-type>. |
| 853 |
It is eventually stored in <compiled-code>#signature-info, |
| 854 |
and retrieved by compute-procedure-type (which is called from |
| 855 |
procedure-type). |
| 856 |
This allows argument type information of closures to be reflected |
| 857 |
to its procedure-type. |
| 858 |
|
| 859 |
2024-02-27 Shiro Kawai <[email protected]> |
| 860 |
|
| 861 |
* src/libtype.scm (type?): Added. |
| 862 |
|
| 863 |
2024-02-25 Shiro Kawai <[email protected]> |
| 864 |
|
| 865 |
* lib/lang/asm/regset.scm: Added. |
| 866 |
|
| 867 |
2024-02-20 Shiro Kawai <[email protected]> |
| 868 |
|
| 869 |
* src/vm.c, src/libeval.scm: Remove Scm_VMInsnOffsets and |
| 870 |
%vm-get-insn-offsets. Add Scm_VMInsnAddress and %vm-get-insn-address. |
| 871 |
This is an undocumented API change. |
| 872 |
|
| 873 |
2024-02-18 Shiro Kawai <[email protected]> |
| 874 |
|
| 875 |
* src/libexc.scm (print-additional-error-heading): Split auxiliary |
| 876 |
info reporting from print-default-error-heading, so that it can be |
| 877 |
used from other error reporters. |
| 878 |
* src/main.c (error_exit): When we exit during with -l or -e option, |
| 879 |
use print-additional-error-heading to print additional information |
| 880 |
(but not a stack trace). |
| 881 |
|
| 882 |
2024-02-14 Shiro Kawai <[email protected]> |
| 883 |
|
| 884 |
* lib/gauche/vm/insn-core.scm, src/code.c: Add 'obj+native' |
| 885 |
instruction type, for JIT support. |
| 886 |
|
| 887 |
2024-02-13 Shiro Kawai <[email protected]> |
| 888 |
|
| 889 |
* src/code.c, src/vminsn.scm: Change operand type 'addr' to 'label', |
| 890 |
to avoid confusion with the oncoming enhancement. |
| 891 |
(This is an API change, though it hasn't been documented). |
| 892 |
|
| 893 |
2024-02-12 Shiro Kawai <[email protected]> |
| 894 |
|
| 895 |
* lib/gauche/cgen/cise.scm (asm): Add asm cise macro to generate |
| 896 |
gcc inline assembly. |
| 897 |
|
| 898 |
2024-02-10 Shiro Kawai <[email protected]> |
| 899 |
|
| 900 |
* lib/srfi/247.scm: Add SRFI-247 |
| 901 |
|
| 902 |
2024-02-07 Shiro Kawai <[email protected]> |
| 903 |
|
| 904 |
* libsrc/gauche/collection.scm (size-of): Missing size-of method |
| 905 |
defintion specialized for hashtables and treemaps, causing |
| 906 |
size-of on these objects O(n). |
| 907 |
Cf. https://github.com/shirok/Gauche/issues/987 |
| 908 |
|
| 909 |
2024-02-04 Shiro Kawai <[email protected]> |
| 910 |
|
| 911 |
* lib/rfc/uri.scm (uri-decompose-query, uri-compose-query), |
| 912 |
lib/rfc/http.scm (http-compose-query), |
| 913 |
lib/www/cgi.scm (cgi-parse-parameters): Provide basic url query |
| 914 |
utilities in rfc.uri, and define existing utils on top of them. |
| 915 |
|
| 916 |
* src/liblist.scm: Change optional argument order of new alist-* |
| 917 |
procs. It is easier to have key= argument first, to handle |
| 918 |
variations. |
| 919 |
|
| 920 |
2024-02-03 Shiro Kawai <[email protected]> |
| 921 |
|
| 922 |
* src/liblist.scm (alist-merge): Added. |
| 923 |
(alist-ref, alist-key, alist-adjoin, alist-update-in): Renamed |
| 924 |
assoc-ref, rassoc-ref, assoc-adjoin, and assoc-update-in. |
| 925 |
Old names are kept for the backward compatibility. |
| 926 |
https://github.com/shirok/Gauche/issues/985 |
| 927 |
|
| 928 |
2024-02-02 Shiro Kawai <[email protected]> |
| 929 |
|
| 930 |
* libsrc/gauche/collection.scm (group-collection->alist): Added. |
| 931 |
|
| 932 |
2024-01-31 Shiro Kawai <[email protected]> |
| 933 |
|
| 934 |
* libsrc/rfc/822.scm (rfc822-header-ref*, rfc822-header-put): Added. |
| 935 |
|
| 936 |
2024-01-29 Shiro Kawai <[email protected]> |
| 937 |
|
| 938 |
* src/gauche-package.in: Add 'populate' subcommand. |
| 939 |
|
| 940 |
* lib/text/multicolumn.scm (layout-multicolumn): Fix the edge case |
| 941 |
when the string list is empty. |
| 942 |
|
| 943 |
2024-01-25 Shiro Kawai <[email protected]> |
| 944 |
|
| 945 |
* Release 0.9.14 |
| 946 |
|
| 947 |
2024-01-23 Shiro Kawai <[email protected]> |
| 948 |
|
| 949 |
* ext/charconv/jconv.c (jconv_open): If input and output encoding are |
| 950 |
the same but not supported natively, use pass-through transcoder |
| 951 |
instead of delegating it to iconv. Some verion of iconv doesn't |
| 952 |
seem to like it. |
| 953 |
https://github.com/shirok/Gauche/issues/979 |
| 954 |
|
| 955 |
* src/number.c (double_precision): Fix ratnum->flonum failure when |
| 956 |
when either denominator or numerator is 2^(64n-1). |
| 957 |
https://github.com/shirok/Gauche/issues/981 |
| 958 |
|
| 959 |
2024-01-22 Shiro Kawai <[email protected]> |
| 960 |
|
| 961 |
* src/libnum.scm (real-ln): Fix precision loss of taking log on |
| 962 |
a large bignum. https://github.com/shirok/Gauche/issues/980 |
| 963 |
|
| 964 |
2024-01-21 Shiro Kawai <[email protected]> |
| 965 |
|
| 966 |
* lib/data/priority-map.scm: Allow any comparator as key-comparator; |
| 967 |
we switch hashtable and treemap internally. Then dict->priority-map |
| 968 |
can take the given dictionary's key-comparator. |
| 969 |
|
| 970 |
2024-01-20 Shiro Kawai <[email protected]> |
| 971 |
|
| 972 |
* lib/data/priority-map.scm (dictionary->priority-map), |
| 973 |
(alist->priority-map): Added. |
| 974 |
|
| 975 |
* lib/text/multicolumn.scm (display-multicolumn): Add indent keyword |
| 976 |
arg. |
| 977 |
|
| 978 |
2024-01-19 Shiro Kawai <[email protected]> |
| 979 |
|
| 980 |
* src/gauche-package.in ("info"): Add 'gauche-package info' command. |
| 981 |
|
| 982 |
2024-01-16 Shiro Kawai <[email protected]> |
| 983 |
|
| 984 |
* lib/data/random.scm: Switch the handling of current random source. |
| 985 |
Now the procedures consistently captures the value of the |
| 986 |
current random source at the time of creation of generators. |
| 987 |
This is technically an incompatible change. |
| 988 |
https://github.com/shirok/Gauche/issues/977 |
| 989 |
|
| 990 |
2024-01-15 Shiro Kawai <[email protected]> |
| 991 |
|
| 992 |
* lib/srfi/194.scm, lib/srfi/194/*.scm: Completing srfi-194 support. |
| 993 |
|
| 994 |
2024-01-12 Shiro Kawai <[email protected]> |
| 995 |
|
| 996 |
* src/compile-5.scm (pass5/$DYNENV): Fixed a bug that when KEY or |
| 997 |
VALUE of with-continuation-mark is a procedure call, its result |
| 998 |
becomes the result of with-continuation-mark. |
| 999 |
|
| 1000 |
* lib/data/random.scm (reals-between$): The range calculation was |
| 1001 |
broken. |
| 1002 |
|
| 1003 |
2024-01-09 Shiro Kawai <[email protected]> |
| 1004 |
|
| 1005 |
* src/libfmt.scm (format-internal), src/libmacro.scm: Experimentally |
| 1006 |
introduce formatter cache. The compiler determines "potentially |
| 1007 |
cacheable" call of `format`, and the runtime takes advantage of it |
| 1008 |
if possible. The drawback is that the compiler macro now inserts |
| 1009 |
reference to `format-internal`. It's embedded in the precompiled |
| 1010 |
code and We can't change its API across versions. |
| 1011 |
|
| 1012 |
2024-01-08 Shiro Kawai <[email protected]> |
| 1013 |
|
| 1014 |
* src/libfmt.scm (formatter-parse): Support conditional directive |
| 1015 |
(tilde left-bracket). |
| 1016 |
|
| 1017 |
2023-12-30 Shiro Kawai <[email protected]> |
| 1018 |
|
| 1019 |
* src/error.c (Scm_MessageConditionPrint): Extend the error message |
| 1020 |
truncation limit so that unexpected exception can give more info. |
| 1021 |
|
| 1022 |
2023-12-29 Shiro Kawai <[email protected]> |
| 1023 |
|
| 1024 |
* ext/tls/tls-mbed.c (mbed_write): If the data is big, single |
| 1025 |
mbedtls_ssl_write may return with partial write, so we need |
| 1026 |
to retry to send the rest of the data. |
| 1027 |
|
| 1028 |
2023-12-28 Shiro Kawai <[email protected]> |
| 1029 |
|
| 1030 |
* 0.9.14_pre1. Preparing another release to make TLS addition |
| 1031 |
available. |
| 1032 |
|
| 1033 |
2023-12-17 Shiro Kawai <[email protected]> |
| 1034 |
|
| 1035 |
* libsrc/file/util.scm (build-path): Allow 'cwd and 'cld as base-path |
| 1036 |
argument, for current workding directory and current loading |
| 1037 |
directory, respectively. We've seen enough of this pattern, |
| 1038 |
especially the latter, so it's worth having it. |
| 1039 |
|
| 1040 |
2023-12-10 Shiro Kawai <[email protected]> |
| 1041 |
|
| 1042 |
* ext/charconv: Support utf8bom encoding, which drops the optional BOM |
| 1043 |
at the beginning of utf8 stream. We simply implement utf8bom->utf8 |
| 1044 |
internal routine, and use autosynthesis of other conversions. |
| 1045 |
We don't support utf8bom as an output encoding, at least for now |
| 1046 |
(see the discussion in the issue). |
| 1047 |
https://github.com/shirok/Gauche/issues/966 |
| 1048 |
|
| 1049 |
* src/librx.scm (%regexp-replace): Avoid rebinding current-output-port |
| 1050 |
during replacing, for the substitution procedure may output |
| 1051 |
and it's confusing that it is mixed into the result. |
| 1052 |
https://github.com/shirok/Gauche/issues/967 |
| 1053 |
|
| 1054 |
2023-12-06 Shiro Kawai <[email protected]> |
| 1055 |
|
| 1056 |
* src/string.c (string_putc): Make 'write' escape control characters |
| 1057 |
in strings so that it's easier if hard-to-see characters are there, |
| 1058 |
e.g. Zero-width no-break space. |
| 1059 |
|
| 1060 |
2023-12-03 Shiro Kawai <[email protected]> |
| 1061 |
|
| 1062 |
* src/libthr.scm (run-once): Added. |
| 1063 |
(<mutex>, <condition-variable>, <thread-local>): Export these. |
| 1064 |
Class names are not in SRFI-19, but now that threads are in the |
| 1065 |
core, other parts of core may refer to them. (Notably, precomp |
| 1066 |
now needs them). |
| 1067 |
|
| 1068 |
2023-11-29 Shiro Kawai <[email protected]> |
| 1069 |
|
| 1070 |
* src/gencomp: Removed. This is an ancient script, superseded by |
| 1071 |
precomp long ago. |
| 1072 |
|
| 1073 |
2023-11-25 Shiro Kawai <[email protected]> |
| 1074 |
|
| 1075 |
* src/system.c (Scm_ToTimeSpec): More general interface that takes |
| 1076 |
the base time (t0) when relative time is given. Passing NULL |
| 1077 |
to t0 uses the current time. |
| 1078 |
Scm_GetTimeSpec() is defined on top of it. We thought to drop it, |
| 1079 |
but this API may have been used from other extensions, so we may |
| 1080 |
keep it. |
| 1081 |
|
| 1082 |
2023-11-24 Shiro Kawai <[email protected]> |
| 1083 |
|
| 1084 |
* src/builtin-sym.scm: Rearranged predefined symbols. |
| 1085 |
It's been for long time since we made builtin-syms.h private, |
| 1086 |
so no external code should depend on the order of them anymore. |
| 1087 |
|
| 1088 |
* src/system.c (Scm_GetTimeSpec): Allow negative real number |
| 1089 |
for relative time specification. For the timeout argument, |
| 1090 |
we don't need that, but for general time operation it is useful. |
| 1091 |
Also support relative time specification with time-duration time. |
| 1092 |
|
| 1093 |
2023-11-21 Shiro Kawai <[email protected]> |
| 1094 |
|
| 1095 |
* lib/control/pmap.scm (run-map): Terminate threads when |
| 1096 |
timeout reaches with fully-concurrent-mapper. |
| 1097 |
https://github.com/shirok/Gauche/issues/964 |
| 1098 |
|
| 1099 |
* src/libsys.scm (absolute-time): Added. Handy to canonicalize |
| 1100 |
'timeout' argument. |
| 1101 |
|
| 1102 |
2023-11-20 Shiro Kawai <[email protected]> |
| 1103 |
|
| 1104 |
* lib/gauche/cgen/unit.scm (<cgen-dummy-unit>): Initialize |
| 1105 |
cgen-current-unit with a dummy instance which issues error message |
| 1106 |
saying <cgen-unit> isn't set up properly. It is better than |
| 1107 |
'object of class #<class <boolean>> doesn't have such slot'. |
| 1108 |
|
| 1109 |
2023-11-19 Shiro Kawai <[email protected]> |
| 1110 |
|
| 1111 |
* src/libmod.scm (module-exports?, module-binds?, module-binding-ref): |
| 1112 |
Introduced new names in place of global-variable-visible?, |
| 1113 |
global-variable-bound? and global-variable-ref. |
| 1114 |
See https://github.com/shirok/Gauche/issues/963 |
| 1115 |
|
| 1116 |
2023-11-18 Shiro Kawai <[email protected]> |
| 1117 |
|
| 1118 |
* src/libmod.scm (global-variable-visible?): Added. |
| 1119 |
https://github.com/shirok/Gauche/issues/936 |
| 1120 |
|
| 1121 |
* ext/tls/tls.scm (tls-connect, tls-bind): Make proto argument |
| 1122 |
optional. DTLS is not very usable now, so there's little point |
| 1123 |
to allow users to specify udp here. |
| 1124 |
* ext/tls: Add tls-poll |
| 1125 |
|
| 1126 |
2023-11-17 Shiro Kawai <[email protected]> |
| 1127 |
|
| 1128 |
* ext/tls: Support get self/peer address, option to not verify |
| 1129 |
certificate. |
| 1130 |
|
| 1131 |
2023-11-15 Shiro Kawai <[email protected]> |
| 1132 |
|
| 1133 |
* doc/: Support epub generation from @qykth-git |
| 1134 |
https://github.com/shirok/Gauche/pull/959 |
| 1135 |
|
| 1136 |
2023-11-14 Shiro Kawai <[email protected]> |
| 1137 |
|
| 1138 |
* ext/tls: Support TLS server connection. |
| 1139 |
|
| 1140 |
2023-11-10 Shiro Kawai <[email protected]> |
| 1141 |
|
| 1142 |
* ext/tls: Remove AxTLS support. |
| 1143 |
|
| 1144 |
* src/module.c (Scm__InitModule): Remove obsoleted code to create |
| 1145 |
built-in srfi modules. Now it is done in auto-generated libsrfi.scm |
| 1146 |
so they're no longer needed, but had been harmless until we switch |
| 1147 |
srfi-N to srfi.N naming convention. |
| 1148 |
|
| 1149 |
* lib/slib.scm (slib:features): Exclude srfi-0 from slib:features |
| 1150 |
to prevent slib initializer to load all available srfis, especially |
| 1151 |
srfi.29. It is mentioned in the comment immediately above, but |
| 1152 |
I seem to have reverted the change when I updated slib.scm based |
| 1153 |
on a newer template. https://github.com/shirok/Gauche/issues/960 |
| 1154 |
|
| 1155 |
2023-11-03 Shiro Kawai <[email protected]> |
| 1156 |
|
| 1157 |
* libsrc/file/util.scm (remove-directory*): Add :if-does-not-exit |
| 1158 |
argument |
| 1159 |
|
| 1160 |
2023-10-27 Shiro Kawai <[email protected]> |
| 1161 |
|
| 1162 |
* src/system.c (Scm__WinFastLockLock): Fast lock implementation for |
| 1163 |
Windows (by @Hamayama, https://github.com/shirok/Gauche/pull/955) |
| 1164 |
|
| 1165 |
2023-10-26 Shiro Kawai <[email protected]> |
| 1166 |
|
| 1167 |
* src/bignum.c (bignum_mul_si): Optimize special case when bignum |
| 1168 |
muliplied by y=2^n (y is fixnum). |
| 1169 |
|
| 1170 |
2023-10-24 Shiro Kawai <[email protected]> |
| 1171 |
|
| 1172 |
* lib/r7rs-setup.scm (open-binary-*-file): Even though Gauche |
| 1173 |
doesn't distinguish textual and binary ports, opening file as |
| 1174 |
binary may have an observable difference on Windows ('binary' mode). |
| 1175 |
|
| 1176 |
2023-10-22 Shiro Kawai <[email protected]> |
| 1177 |
|
| 1178 |
* src/core.c (Scm_ObjToExitCode): Consolidate exit code translation |
| 1179 |
to be shared between 'exit', 'sys-exit', and 'emergency-exit'. |
| 1180 |
https://github.com/shirok/Gauche/issues/947 |
| 1181 |
* src/libeval.scm (exit), lib/r7rs-setup.scm (emergency-exit), |
| 1182 |
src/libsys.scm (sys-exit): Allow to take #f as code, which |
| 1183 |
is mapped to exit code 1. |
| 1184 |
|
| 1185 |
2023-10-21 Shiro Kawai <[email protected]> |
| 1186 |
|
| 1187 |
* lib/srfi/74.scm: Fix blob-*-set! procedures. |
| 1188 |
|
| 1189 |
* lib/check-script, lib/tools/check-script: Move check-script |
| 1190 |
to tools subdirectory. |
| 1191 |
|
| 1192 |
2023-10-15 Shiro Kawai <[email protected]> |
| 1193 |
|
| 1194 |
* Drop eucjp, sjis and none internal CES support. We use utf8 |
| 1195 |
exclusively from now on. |
| 1196 |
|
| 1197 |
2023-10-14 Shiro Kawai <[email protected]> |
| 1198 |
|
| 1199 |
* Various files: Remove code with GAUCHE_API_VERSION < 98 |
| 1200 |
|
| 1201 |
2023-10-11 Shiro Kawai <[email protected]> |
| 1202 |
|
| 1203 |
* Release 0.9.13 |
| 1204 |
|
| 1205 |
2023-10-07 Shiro Kawai <[email protected]> |
| 1206 |
|
| 1207 |
* Rename gauche-default-encoding -> default-file-encoding |
| 1208 |
|
| 1209 |
2023-10-05 Shiro Kawai <[email protected]> |
| 1210 |
|
| 1211 |
* src/char.c (Scm_DefaultEncodingName, gauche-default-encoding), |
| 1212 |
src/libio.scm (open-input-file, open-output-file), |
| 1213 |
ext/charconv/convaux.scm (%open-input-file/conv), |
| 1214 |
(%open-output-file/conv): Add support fo gauche-default-encoding, |
| 1215 |
the encoding to be used when no :encoding option is given when |
| 1216 |
performing I/O. |
| 1217 |
https://github.com/shirok/Gauche/issues/944 |
| 1218 |
|
| 1219 |
2023-10-04 Shiro Kawai <[email protected]> |
| 1220 |
|
| 1221 |
* src/core.c (init_cond_features): Define feature identifier |
| 1222 |
'full-unicode' only when Gauche is compiled with utf8 encoding. |
| 1223 |
|
| 1224 |
2023-10-03 Shiro Kawai <[email protected]> |
| 1225 |
|
| 1226 |
* src/gauche/priv/writerP.h (SCM_WRITTEN_ELLIPSIS): Revert |
| 1227 |
using Unicode ellipsis to three dots for truncated output. |
| 1228 |
Windows terminals may not be able to handle Unicode ellipsis |
| 1229 |
(U+2026) depending on the OS default codepage, and it |
| 1230 |
triggers an error. |
| 1231 |
|
| 1232 |
2023-10-01 Shiro Kawai <[email protected]> |
| 1233 |
|
| 1234 |
* lib/rfc/json.scm (print-instance): If :json-name slot definition |
| 1235 |
option is #t, use slot's name as the key. |
| 1236 |
|
| 1237 |
2023-09-26 Shiro Kawai <[email protected]> |
| 1238 |
|
| 1239 |
* libsrc/text/console.scm, lib/text/console/windows.scm: |
| 1240 |
Allow console to cache screen size. query-screen-size |
| 1241 |
may return cached results, unless the optional clear-cache |
| 1242 |
argument is true. reset-terminal clears the cache so that |
| 1243 |
next query-screen-size takes the actual screen size. |
| 1244 |
* libsrc/text/line-edit.scm: Consider screen size to show |
| 1245 |
completion candidates. The screen size may be cached, but |
| 1246 |
updetad by refresh-display. |
| 1247 |
|
| 1248 |
2023-09-24 Shiro Kawai <[email protected]> |
| 1249 |
|
| 1250 |
* src/libexc.scm, src/libthr.scm: Expose thread exception API |
| 1251 |
from gauche.threads module to match the document. It was |
| 1252 |
defined in gauche module before, but that doesn't make sense. |
| 1253 |
|
| 1254 |
* src/liblazy.scm (make-promise), lib/r7rs-setup.scm: |
| 1255 |
Move R7RS make-promise into scheme.lazy, and make built-in |
| 1256 |
make-promise compatible to SRFI-226. This is technically |
| 1257 |
an incompatible change, but we've only documented make-promise |
| 1258 |
under scheme.lazy, so no code should be affected. |
| 1259 |
|
| 1260 |
2023-09-22 Shiro Kawai <[email protected]> |
| 1261 |
|
| 1262 |
* lib/srfi/226/parameter.scm (parameterize-srfi-226): If you |
| 1263 |
use srfi.226, 'parameterize' is strictly limited to the |
| 1264 |
srfi-226 compatible parmeters. |
| 1265 |
|
| 1266 |
2023-09-20 Shiro Kawai <[email protected]> |
| 1267 |
|
| 1268 |
* lib/gauche/cgen/literal.scm (literal-value=?): Optimized. |
| 1269 |
|
| 1270 |
* src/port.c: Reduce overhead of string port creation. A significant |
| 1271 |
one is to omit registering finalizers, for they're not needed for |
| 1272 |
string ports. Also a couple of micro-optimizations. |
| 1273 |
|
| 1274 |
2023-09-19 Shiro Kawai <[email protected]> |
| 1275 |
|
| 1276 |
* src/parameter.c: Fix semantics of thread parameter. To conform |
| 1277 |
SRFI-226, mutation of dyncamically bound thread parameter shoudln't |
| 1278 |
be visible from other threads. Thus we need a fresh thread local |
| 1279 |
for every dynamic scope. On the other hand, legacy parameters |
| 1280 |
only requires thread locals for the global scope. |
| 1281 |
|
| 1282 |
* src/threadlocal.c: Allow thread locals to be GC-ed and reused. |
| 1283 |
Each thread local storage keeps 'generation' along its value. |
| 1284 |
The generation is incremented when a thread local is GC-ed. |
| 1285 |
The next thread local which happens to use the same slot has |
| 1286 |
a different generation, so it can detect the slot is uninitialized, |
| 1287 |
even its value is not SCM_UNBOUND. |
| 1288 |
|
| 1289 |
2023-09-14 Shiro Kawai <[email protected]> |
| 1290 |
|
| 1291 |
* src/proc.c (proc_print): Allow a procedure to have a custom |
| 1292 |
printer. Scheme abstracts some kind of special constructs |
| 1293 |
as proceudres, e.g. parameters and continuations. It is nice |
| 1294 |
if we have a specialized printer to display info specific |
| 1295 |
to such construct, rather than the generic procedure printer |
| 1296 |
which can only show procedure-info. |
| 1297 |
|
| 1298 |
2023-09-13 Shiro Kawai <[email protected]> |
| 1299 |
|
| 1300 |
* src/write.c (write_object_fallback): If base class has print() |
| 1301 |
function pointer and derived class doesn't have write-object |
| 1302 |
method, we use base class's print() func instead of the |
| 1303 |
default printer. |
| 1304 |
|
| 1305 |
2023-09-12 Shiro Kawai <[email protected]> |
| 1306 |
|
| 1307 |
* src/parameter.c, src/libparam.scm (make-legacy-parameter): |
| 1308 |
Added. See https://github.com/shirok/Gauche/issues/935 |
| 1309 |
|
| 1310 |
2023-09-10 Shiro Kawai <[email protected]> |
| 1311 |
|
| 1312 |
* libsrc/gauche/process.scm (do-process): Add :exit-code option |
| 1313 |
to :on-abnormal-exit keyword arg |
| 1314 |
https://github.com/shirok/Gauche/issues/928 |
| 1315 |
|
| 1316 |
2023-09-09 Shiro Kawai <[email protected]> |
| 1317 |
|
| 1318 |
* libomega.scm: Add additional report for unbound variable error - |
| 1319 |
list modules that exports the name. It may help the user |
| 1320 |
to import necessary module. |
| 1321 |
|
| 1322 |
2023-09-08 Shiro Kawai <[email protected]> |
| 1323 |
|
| 1324 |
* libexc.scm, libomega.scm: Rename report-mixin-condition |
| 1325 |
to report-additional-condition, so that non-mixin condition |
| 1326 |
can also have customized error report. |
| 1327 |
|
| 1328 |
2023-09-07 Shiro Kawai <[email protected]> |
| 1329 |
|
| 1330 |
* src/error.c (Scm_MakeUnboundVariableError): Let evaluator throw |
| 1331 |
<unbound-variable> error for unbound variable. |
| 1332 |
|
| 1333 |
2023-09-06 Shiro Kawai <[email protected]> |
| 1334 |
|
| 1335 |
* lib/tools/docprep: Renamed from preprocess-info. The plan is to |
| 1336 |
make it handle common doc preparation tasks. |
| 1337 |
|
| 1338 |
2023-08-31 Shiro Kawai <[email protected]> |
| 1339 |
|
| 1340 |
* lib/tools/get-cacert: Moved from ext/tls/tls/get-cacert.scm, |
| 1341 |
for it's a runnable tool. |
| 1342 |
|
| 1343 |
* tools/preprocess-info: Support '@c DEPRECATED' to mark deprecated |
| 1344 |
APIs. |
| 1345 |
|
| 1346 |
2023-08-29 Shiro Kawai <[email protected]> |
| 1347 |
|
| 1348 |
* src/port.c, src/gauche/priv/portP.h: Fix the issue that port finalizer |
| 1349 |
causes access to already collected object. It was the cause of |
| 1350 |
https://github.com/shirok/Gauche/issues/900 |
| 1351 |
Note that a custom port's flusher and closer are no longer called |
| 1352 |
from the port finalizer if the custom structure is already |
| 1353 |
collected. If the custom port requires guaranteed cleanup, |
| 1354 |
it should attach its own finalizer to the custom port's heap |
| 1355 |
allocated object. In general, port's finalizer should be regarded |
| 1356 |
as a fail-safe mechanism, and explicit closing is recommended. |
| 1357 |
|
| 1358 |
2023-08-27 Shiro Kawai <[email protected]> |
| 1359 |
|
| 1360 |
* ext/gauche/bitvector.scm (bitvector-pad, bitvector-pad-right): |
| 1361 |
Fix to handle the case length argument is smaller than the length |
| 1362 |
of the given bitvector. For the consistency with string-pad, |
| 1363 |
the bitvector should be truncated. |
| 1364 |
https://github.com/shirok/Gauche/issues/922 |
| 1365 |
|
| 1366 |
2023-08-26 Shiro Kawai <[email protected]> |
| 1367 |
|
| 1368 |
* lib/rfc/hmac.scm: Revise API to suit for typical usage. |
| 1369 |
|
| 1370 |
2023-08-25 Shiro Kawai <[email protected]> |
| 1371 |
|
| 1372 |
* lib/rfc/base64.scm, lib/rfc/quoted-printable.scm: Revise API. |
| 1373 |
The encoder now can take both string and u8vector, and renamed |
| 1374 |
to *-encode-message to reflect the generic nature. |
| 1375 |
The decoder now takes target class, and renamed to *-decode-string-to. |
| 1376 |
The latter is consistent with message digest framework. |
| 1377 |
The existing APIs are kept for the backward compatibility. |
| 1378 |
|
| 1379 |
* src/libmacro.scm (typecase, etypecase): Added. |
| 1380 |
|
| 1381 |
* lib/rfc/digest.scm: Allow digest-string-to to take predefined |
| 1382 |
encoding targets, e.g. base64 or hex. |
| 1383 |
|
| 1384 |
* lib/rfc/base64.scm: Implement Base32, Base32hex and Base16 as |
| 1385 |
specified in RFC4648. |
| 1386 |
|
| 1387 |
2023-08-24 Shiro Kawai <[email protected]> |
| 1388 |
|
| 1389 |
* lib/rfc/hmac.scm, lib/util/digest.scm: Add API to return digest |
| 1390 |
result as <u8vector>. |
| 1391 |
|
| 1392 |
* src/libio.scm (%write-walk-rec): Avoid recursing into write-object |
| 1393 |
when obj is a <uvector>. This doesn't change the result, but |
| 1394 |
saves time. |
| 1395 |
|
| 1396 |
2023-08-22 Shiro Kawai <[email protected]> |
| 1397 |
|
| 1398 |
* lib/rfc/json.scm (<json-mixin>): A convenient mapping from Gauche |
| 1399 |
instance to JSON. |
| 1400 |
|
| 1401 |
* lib/rfc/base64.scm (base64-encode): Added omit-padding keyword arg. |
| 1402 |
Some protocol asks to do so, e.g. JWS (rfc7515). |
| 1403 |
|
| 1404 |
* src/Makefile.in (clean-to-regenerate): Add a new target just to clean |
| 1405 |
Gauche-generated files. Useful to regenerate them, but no need to |
| 1406 |
start from reconfigure. |
| 1407 |
|
| 1408 |
2023-08-17 Shiro Kawai <[email protected]> |
| 1409 |
|
| 1410 |
* lib/gauche/cgen/precomp.scm: Use packed debug info in the precompiled |
| 1411 |
C code. This reduces compiled *.o files about 10-20%. |
| 1412 |
|
| 1413 |
2023-08-11 Shiro Kawai <[email protected]> |
| 1414 |
|
| 1415 |
* doc/modutil.texi: Start documenting text.info. It is not particulary |
| 1416 |
featureful, but having been used for quite a while and may be worth |
| 1417 |
documenting. |
| 1418 |
|
| 1419 |
2023-08-09 Shiro Kawai <[email protected]> |
| 1420 |
|
| 1421 |
* src/memo.c (Scm_MemoTablePutv): Workaround for table extension |
| 1422 |
failure. https://github.com/shirok/Gauche/issues/914 |
| 1423 |
|
| 1424 |
2023-08-07 Shiro Kawai <[email protected]> |
| 1425 |
|
| 1426 |
* lib/control/scheduler.scm (scheduler-reschedule!): Allow to change |
| 1427 |
only time or duration argument, leaving the other intact. |
| 1428 |
|
| 1429 |
2023-08-04 Shiro Kawai <[email protected]> |
| 1430 |
|
| 1431 |
* src/compile-1.scm (pass1/extended-lambda-body): Expand :optional |
| 1432 |
handling hygienically. |
| 1433 |
|
| 1434 |
2023-08-01 Shiro Kawai <[email protected]> |
| 1435 |
|
| 1436 |
* lib/rfc/cookie.scm (construct-cookie-string): Catch up to |
| 1437 |
RFC6265. We no longer need Version attribute, and both Expires |
| 1438 |
and Max-Age are honored unconditionally. |
| 1439 |
https://github.com/shirok/Gauche/issues/911 |
| 1440 |
|
| 1441 |
2023-07-23 Shiro Kawai <[email protected]> |
| 1442 |
|
| 1443 |
* src/libio.scm, src/string.c, lib/gauche/interactive.scm: |
| 1444 |
Add string-length slot to <write-controls>, which can limit the |
| 1445 |
display length of strings. |
| 1446 |
https://github.com/shirok/Gauche/issues/908 |
| 1447 |
|
| 1448 |
* src/libstr.scm (string-ellipsis), lib/gauche/pputil.scm, etc.: |
| 1449 |
EXPERIMENTAL: If native CES is utf-8, use Unicode ellipsis (U+2026) |
| 1450 |
instead of three periods when the output is truncated. |
| 1451 |
We hope it makes easier to distinguish whether the output is actually |
| 1452 |
truncated, or there is indeed an ellipsis in the data. |
| 1453 |
|
| 1454 |
2023-07-20 Shiro Kawai <[email protected]> |
| 1455 |
|
| 1456 |
* src/port.c, src/portapi.c: Remove port terminal mode; it was a wrong |
| 1457 |
abstraction, for multiple ports can be connected to a terminal. |
| 1458 |
The actual issue https://github.com/shirok/Gauche/issues/877 has |
| 1459 |
been addressed with termios. |
| 1460 |
|
| 1461 |
2023-07-19 Shiro Kawai <[email protected]> |
| 1462 |
|
| 1463 |
* libsrc/text/console.scm (call-with-console), src/portapi.c: |
| 1464 |
Fix port terminal mode handling. |
| 1465 |
|
| 1466 |
2023-07-16 Shiro Kawai <[email protected]> |
| 1467 |
|
| 1468 |
* src/portapi.c: (Scm_Putc, Scm_Puts, Scm_Putz): Honor port terminal |
| 1469 |
mode. |
| 1470 |
* ext/termios/termios.scm: Switch port terminal mode along the |
| 1471 |
actial terminal state changes. |
| 1472 |
|
| 1473 |
2023-07-15 Shiro Kawai <[email protected]> |
| 1474 |
|
| 1475 |
* src/port.c (Scm_GetPortTerminalMode, Scm_SetPortTerminalMode): |
| 1476 |
Added. This is to address managing output while editable REPL |
| 1477 |
is active. https://github.com/shirok/Gauche/issues/877 |
| 1478 |
|
| 1479 |
* tools/make-export-list: Added. |
| 1480 |
|
| 1481 |
2023-07-14 Shiro Kawai <[email protected]> |
| 1482 |
|
| 1483 |
* src/libnum.scm (logset+clear): Added. |
| 1484 |
|
| 1485 |
2023-07-06 Shiro Kawai <[email protected]> |
| 1486 |
|
| 1487 |
* src/hash.c, src/libdict.scm (%current-recursive-hash), src/module.c, |
| 1488 |
src/libomega.scm (object-hash): |
| 1489 |
Make %current-recursive-hash a proper parameter. |
| 1490 |
https://github.com/shirok/Gauche/issues/879 |
| 1491 |
NB: This commit drops Scm_CurrentRecursiveHash(). It has only been |
| 1492 |
used from libdict.scm. Technically this is incompatible change, |
| 1493 |
but we bet nobody else depend on this. |
| 1494 |
|
| 1495 |
2023-07-04 Shiro Kawai <[email protected]> |
| 1496 |
|
| 1497 |
* lib/rfc/uuid.scm (parse-uuid): Add if-invalid keyword argument to |
| 1498 |
return #f for invalid uuid format, rather than raising an error. |
| 1499 |
|
| 1500 |
2023-07-03 Shiro Kawai <[email protected]> |
| 1501 |
|
| 1502 |
* doc/extract.scm, lib/tools/preprocess-info: Rename extract script |
| 1503 |
and make it avaialble as a tool script. |
| 1504 |
|
| 1505 |
2023-06-20 Shiro Kawai <[email protected]> |
| 1506 |
|
| 1507 |
* lib/srfi/216.scm, src/srfis.scm: Support SRFI-216, SICP prerequisites. |
| 1508 |
|
| 1509 |
2023-06-12 Shiro Kawai <[email protected]> |
| 1510 |
|
| 1511 |
* src/libvec.scm, ext/uvector/uvector.scm: Move string <-> uvector |
| 1512 |
conversion routines to core, to avoid dependency issues. |
| 1513 |
|
| 1514 |
2023-06-11 Shiro Kawai <[email protected]> |
| 1515 |
|
| 1516 |
* src/genstub, lib/tools/genstub: Move genstub to tools subdir. |
| 1517 |
|
| 1518 |
* lib/gauche/parseopt.scm: Allow omitting whitespace between |
| 1519 |
single-letter option and its argument. |
| 1520 |
https://github.com/shirok/Gauche/issues/904 |
| 1521 |
|
| 1522 |
2023-06-09 Shiro Kawai <[email protected]> |
| 1523 |
|
| 1524 |
* src/precomp, lib/tools/precomp: Start moving standard scripts |
| 1525 |
to tools/ namespace, e.g. one will say 'gosh tools/precomp ...' |
| 1526 |
instead of 'gosh precomp ...'. |
| 1527 |
https://github.com/shirok/Gauche/issues/891 |
| 1528 |
|
| 1529 |
2023-06-07 Shiro Kawai <[email protected]> |
| 1530 |
|
| 1531 |
* src/precomp, lib/gauche/cgen/precomp.scm: Add --omit-debug-source-info |
| 1532 |
option to drop debug-source-info from the generated compiled-code |
| 1533 |
literals. This can be used for: (1) The generated C file gets too |
| 1534 |
big, or (2) user wants to hide the source info for application |
| 1535 |
distribution. |
| 1536 |
* src/Makefile.in: Use --omit-debug-source-info to generate compile.c |
| 1537 |
for now. Adding source info makes compile.c too big to compile |
| 1538 |
on memory-tight machines. Note: We may be able to revert this |
| 1539 |
once we split compile.c. |
| 1540 |
* ext/uvector/Makefile.in: Ditto for gauche--uvector.c |
| 1541 |
|
| 1542 |
2023-06-06 Shiro Kawai <[email protected]> |
| 1543 |
|
| 1544 |
* src/precomp, lib/gauche/cgen/precomp.scm: Rename omit-source-info |
| 1545 |
keyword arg to omit-line-directives. We'll add option to omit |
| 1546 |
debug source info in the output, so the previous name is too |
| 1547 |
confusing. |
| 1548 |
Although this flag is in the output of 'usage' of precomp command, |
| 1549 |
it has never been implemented as a command-line option; the flag |
| 1550 |
can be turned on via an environment variable, which is not |
| 1551 |
documented. So we blatantly change the name without caring |
| 1552 |
the backard compatibility. |
| 1553 |
|
| 1554 |
* src/code.c (Scm_CompiledCodeFinishBuilder): Revive NOSOURCE |
| 1555 |
compiler flag (it's been ineffective after some big compiler |
| 1556 |
rewrite). |
| 1557 |
For now, we handle source-info just the same and discard them |
| 1558 |
at the last moment of the code generation. We may as well ignore |
| 1559 |
source-info in earlier stage, but we expect using this option |
| 1560 |
is relatively rare so it may not worth doing so. Let's see. |
| 1561 |
|
| 1562 |
2023-06-05 Shiro Kawai <[email protected]> |
| 1563 |
|
| 1564 |
* lib/gauche/procedure.scm: Renamed to procutil.scm for the |
| 1565 |
consistency. |
| 1566 |
|
| 1567 |
2023-06-04 Shiro Kawai <[email protected]> |
| 1568 |
|
| 1569 |
* gc/: bumped bdwgc 8.2.4 |
| 1570 |
|
| 1571 |
2023-06-02 Shiro Kawai <[email protected]> |
| 1572 |
|
| 1573 |
* lib/gauche/cgen/precomp.scm (serializable-debug-info): Attach |
| 1574 |
debug info to the precompiled codes. |
| 1575 |
|
| 1576 |
* src/vm.c (Scm_VMTakeSnapshot): Added. Since VMDump calls high-level |
| 1577 |
output routine that may call back to Scheme code, the dump routine |
| 1578 |
itself may change VM state during dumping. To prevent that, we |
| 1579 |
take snapshot of VM before dumping. |
| 1580 |
|
| 1581 |
2023-05-29 Shiro Kawai <[email protected]> |
| 1582 |
|
| 1583 |
* lib/gauche/numerical.scm, lib/gauche/logical.scm, |
| 1584 |
lib/gauche/signal.scm: Renamed to numutil.scm, logutil.scm and |
| 1585 |
sigutil.scm, respectively, for the consistency of autoloaded files. |
| 1586 |
|
| 1587 |
2023-05-23 Shiro Kawai <[email protected]> |
| 1588 |
|
| 1589 |
* src/thread.c (Scm_ThreadTerminate): Support |
| 1590 |
SCM_THREAD_TERMINATE_SCHEDULE flag. |
| 1591 |
* src/libthr.scm (thread-schedule-terminate!): Added. |
| 1592 |
|
| 1593 |
* lib/r7rs-setup.scm, src/libexc.scm, src/liblazy.scm: |
| 1594 |
Move raise-continuable and make-promise to the core, for |
| 1595 |
they are exported from srfi.226 as well. |
| 1596 |
|
| 1597 |
2023-05-22 Shiro Kawai <[email protected]> |
| 1598 |
|
| 1599 |
* lib/rfc/base64.scm (base64-decode): Add :strict keyword argument. |
| 1600 |
|
| 1601 |
2023-05-20 Shiro Kawai <[email protected]> |
| 1602 |
|
| 1603 |
* lib/gauche/mop/typed-slot.scm: Added experimentally. |
| 1604 |
|
| 1605 |
2023-05-19 Shiro Kawai <[email protected]> |
| 1606 |
|
| 1607 |
* libsrc/gauche/sequence.scm (inverse-permuter, unpermute): Added. |
| 1608 |
The names can be better. Let's see. |
| 1609 |
|
| 1610 |
2023-05-16 Shiro Kawai <[email protected]> |
| 1611 |
|
| 1612 |
* src/libio.scm (port-case-fold): Drop port-case-fold-set! (previously |
| 1613 |
undocumented) and replace (setter port-case-fold), for the API |
| 1614 |
consistency. A few references to the old name in the source tree |
| 1615 |
are updated. NB: lib/gauche/cgen/precomp.scm is used to compile |
| 1616 |
0.9.13, so it needs to work on both old and new gosh. For now, |
| 1617 |
we use an ugly kludge for transition. |
| 1618 |
Also put port-case-fold in gauche.internal. case-fold flag has |
| 1619 |
global effect and accidentally changing it can cause a wreak havoc. |
| 1620 |
There are already scope-delimited way to change the mode (#!fold-case |
| 1621 |
directive, or include-ci form). |
| 1622 |
* 0.9.13_pre4, because of the above change. |
| 1623 |
|
| 1624 |
2023-05-09 Shiro Kawai <[email protected]> |
| 1625 |
|
| 1626 |
* ext/package-templates/configure-compat: Remove compatibility hack. |
| 1627 |
Let's assume new modules are developed for 0.9.10 and later. |
| 1628 |
|
| 1629 |
2023-05-08 Shiro Kawai <[email protected]> |
| 1630 |
|
| 1631 |
* src/main.c, src/libeval.scm (%invoke-other-version): Extend -v option |
| 1632 |
so that -v:VERSION tries to run VERSION, but if it can't find one, |
| 1633 |
falls back to the current version. |
| 1634 |
|
| 1635 |
* lib/gauche/fileutil.scm, src/libsys.scm: Move glob to libsys.scm. |
| 1636 |
Before, '%invoke-other-version' triggered autoload of fileutil, |
| 1637 |
but that caused some issue when the user use gosh -vVERSION |
| 1638 |
from the uninstalled source tree. |
| 1639 |
|
| 1640 |
2023-05-01 Shiro Kawai <[email protected]> |
| 1641 |
|
| 1642 |
* src/libnum.scm: Dropped hidden real-only versions of elementary |
| 1643 |
functions, e.g. %sin, replacing with SRFI-94 real-sin etc. |
| 1644 |
They were never documented. Now we document real-* version. |
| 1645 |
* lib/compat/real-elementary-functions: Compatibility module to |
| 1646 |
provide the old names such as %sin etc. |
| 1647 |
|
| 1648 |
2023-04-17 Shiro Kawai <[email protected]> |
| 1649 |
|
| 1650 |
* src/lazy.c (Scm_VMForce): Fix a race condition; there was a hazard |
| 1651 |
when one thread reads promise's state and goes to evaluate thunk, |
| 1652 |
while another thread changes them simultaneously. |
| 1653 |
|
| 1654 |
2023-04-14 Shiro Kawai <[email protected]> |
| 1655 |
|
| 1656 |
* ext/gauche/unicode.scm (string-east-asian-width, string-take-width) |
| 1657 |
(string-drop-width): Added. |
| 1658 |
|
| 1659 |
2023-04-13 Shiro Kawai <[email protected]> |
| 1660 |
|
| 1661 |
* src/class.c: Changed my mind. Say :immutable instead of :init-once, |
| 1662 |
for the option is exacly for immutable slots. Besides, init-once |
| 1663 |
is weird, for 'initialization' occurs once regardless of slot's |
| 1664 |
immutablility. (Set-once would probably have been closer.) |
| 1665 |
|
| 1666 |
2023-04-12 Shiro Kawai <[email protected]> |
| 1667 |
|
| 1668 |
* src/class.c: Support :init-once slot option. This limits slot-set! |
| 1669 |
to a slot that's previously unbound. If the slot already has a value, |
| 1670 |
an error is signaled. This effectively works as an immutable |
| 1671 |
slot. Note that the slot initialization calls the internal setter, |
| 1672 |
so we need to allow the first set!. |
| 1673 |
|
| 1674 |
* ext/threads, src/thread.c, src/mutex.c, src/libthr.scm, |
| 1675 |
src/gauche/thread.h: Move ext/threads into core. |
| 1676 |
Cf. https://github.com/shirok/Gauche/issues/893 |
| 1677 |
|
| 1678 |
2023-04-09 Shiro Kawai <[email protected]> |
| 1679 |
|
| 1680 |
* lib/rfc/base64.scm (base64-encode-bytevector), |
| 1681 |
(base64-decode-bytevector): Added. They depend on gauche.vport, |
| 1682 |
and their tests are done separately in ext/vport. |
| 1683 |
|
| 1684 |
2023-04-05 Shiro Kawai <[email protected]> |
| 1685 |
|
| 1686 |
* src/compile-i.scm, src/vminsn.scm, src/vector.c: Allow uvector-ref |
| 1687 |
to be inlined. UVEC-REF can now handle generic uvector. |
| 1688 |
|
| 1689 |
2023-04-04 Shiro Kawai <[email protected]> |
| 1690 |
|
| 1691 |
* lib/math/simplex.scm: Allow any sequence to be b an c vectors; |
| 1692 |
we copy them internally anyway. |
| 1693 |
|
| 1694 |
2023-03-27 Shiro Kawai <[email protected]> |
| 1695 |
|
| 1696 |
* 0.9.13_pre3 |
| 1697 |
|
| 1698 |
2023-03-25 Shiro Kawai <[email protected]> |
| 1699 |
|
| 1700 |
* lib/rfc/base64.scm: Allow :digits keyword argument to specify |
| 1701 |
alternative digits. |
| 1702 |
|
| 1703 |
* src/vector.c (Scm_ReadUVector): Preliminary support of |
| 1704 |
SRFI-207 string-notated bytevectors. |
| 1705 |
|
| 1706 |
2023-03-20 Shiro Kawai <[email protected]> |
| 1707 |
|
| 1708 |
* lib/math/simplex.scm: Added. There are lots of room of optimization, |
| 1709 |
though it's working. |
| 1710 |
|
| 1711 |
* ext/uvector/matrix.scm (array-vector-mul, vector-array-mul): |
| 1712 |
Add (u)vector and array multiplication, for they appear frequently. |
| 1713 |
We may make array-mul to accept vector arguments, but it can be |
| 1714 |
done later. |
| 1715 |
|
| 1716 |
2023-03-15 Shiro Kawai <[email protected]> |
| 1717 |
|
| 1718 |
* src/lazy.c (Scm_VMForce): Allowing multiple threads to force |
| 1719 |
a promise simultaneously, as SRFI-226 semantics. We only guarantee |
| 1720 |
that the force value is always the same - the first delivered result |
| 1721 |
takes precedence. |
| 1722 |
* src/compile-1.scm (delay): Support mv-delivering delay. |
| 1723 |
|
| 1724 |
2023-03-11 Shiro Kawai <[email protected]> |
| 1725 |
|
| 1726 |
* src/lazy.c (Scm_MakePromise, Scm_VMForce): Run delayed thunk in |
| 1727 |
the parameterization of the time the promise is created. |
| 1728 |
This is for SRFI-226, but divergence from R7RS. |
| 1729 |
Note that this change breaks the current implementation of |
| 1730 |
SRFI-155 in a subtle way. Once SRFI-226 is adopted, however, |
| 1731 |
SRFI-155 semantics is supported natively. For now, we just |
| 1732 |
suppress the test that relies on the broken implementation. |
| 1733 |
|
| 1734 |
2023-03-10 Shiro Kawai <[email protected]> |
| 1735 |
|
| 1736 |
* lib/gauche/cgen/stub.scm (if, when): Warn when these obsoleted |
| 1737 |
stub toplevel forms are used. These are never officially documented |
| 1738 |
and we switched to .if/.when for years ago, but just in case we |
| 1739 |
keep them a bit more. |
| 1740 |
|
| 1741 |
2023-03-09 Shiro Kawai <[email protected]> |
| 1742 |
|
| 1743 |
* lib/gauche/cgen/cise.scm (.error): Add CiSE macro to |
| 1744 |
generate #error cpp directive. See libsys.scm for the use case. |
| 1745 |
|
| 1746 |
* src/compile-0.scm (define-simple-struct): Define macros and |
| 1747 |
cise-exprs that expands into slot offset. This allows the |
| 1748 |
CiSE code to use slot offset without relying on literal numbers. |
| 1749 |
(See LVAR_* macros in compile.scm for the use case). |
| 1750 |
|
| 1751 |
2023-03-07 Shiro Kawai <[email protected]> |
| 1752 |
|
| 1753 |
* src/libsys.scm (seconds+): Added (srfi-226) |
| 1754 |
|
| 1755 |
2023-03-01 Shiro Kawai <[email protected]> |
| 1756 |
|
| 1757 |
* lib/srfi/235.scm: Start adding. |
| 1758 |
|
| 1759 |
2023-02-28 Shiro Kawai <[email protected]> |
| 1760 |
|
| 1761 |
* src/libproc.scm (constantly): Allow to return multiple values, |
| 1762 |
adopting SRFI-235. |
| 1763 |
* lib/gauche/procedure.scm (flip, swap): Added a couple of SRFI-235 |
| 1764 |
procedures. |
| 1765 |
|
| 1766 |
2023-02-27 Shiro Kawai <[email protected]> |
| 1767 |
|
| 1768 |
* src/libparam.scm (temporarily): 'with' -> 'temporarily', according |
| 1769 |
to srfi-226 revision. |
| 1770 |
|
| 1771 |
2023-02-25 Shiro Kawai <[email protected]> |
| 1772 |
|
| 1773 |
* lib/control/plumbing.scm (plumbing): Add generic utility. |
| 1774 |
Simplify make-pump etc. just to take oports (without options). |
| 1775 |
If the user wants to specify options, they can use 'plumbing'. |
| 1776 |
|
| 1777 |
2023-02-23 Shiro Kawai <[email protected]> |
| 1778 |
|
| 1779 |
* lib/math/const.scm: Add greek identifiers (Ï€). UTF-8 has become |
| 1780 |
ubiquitous and we don't need to hesitate using them. |
| 1781 |
|
| 1782 |
2023-02-20 Shiro Kawai <[email protected]> |
| 1783 |
|
| 1784 |
* lib/control/plumbing.scm: Allow optional names to inlets/outlets |
| 1785 |
so that ports can be extracted from a plumbing by name. |
| 1786 |
NB: API of add-outlet-output-port! has changed. |
| 1787 |
We'll likely to change convenience utilities to accept names |
| 1788 |
as well. |
| 1789 |
|
| 1790 |
2023-02-19 Shiro Kawai <[email protected]> |
| 1791 |
|
| 1792 |
* lib/srfi/239.scm: Add srfi-239 (documented). |
| 1793 |
|
| 1794 |
2023-02-18 Shiro Kawai <[email protected]> |
| 1795 |
|
| 1796 |
* src/libsys.scm (time-comparator): Added. Although <time> can be |
| 1797 |
compared with default-comparator, a separate comparator is handy |
| 1798 |
to be used to compose more complicated comparators (cf. srfi.228). |
| 1799 |
We also want date-comparator, but <date> is defined in srfi.19, |
| 1800 |
and we don't want to add bindings not defined in the srfi to |
| 1801 |
the srfi module. We'll think where it should go. |
| 1802 |
|
| 1803 |
2023-02-16 Shiro Kawai <[email protected]> |
| 1804 |
|
| 1805 |
* src/Makefile.in (BUILD_GOSH_VERSION): Give -v option to BUILD_GOSH |
| 1806 |
so that precompilation of core is guaranteed to be done with the |
| 1807 |
specified version of Gauche. Without this, sometimes the changes |
| 1808 |
in the prerelease version caused build problems. |
| 1809 |
|
| 1810 |
2023-02-10 Shiro Kawai <[email protected]> |
| 1811 |
|
| 1812 |
* src/libeval.scm (load): Change return value - on successful loading, |
| 1813 |
return the actual filename loaded. It is useful, for 'load' tries |
| 1814 |
a few things to find the actual file (look for search paths, adding |
| 1815 |
file suffixes, etc.) so the actual file path may not be tha same |
| 1816 |
as the 'file' argument. |
| 1817 |
This is technically an incompatible change: Before, 'load' returns |
| 1818 |
#t on success, and it is documented. We think returning pathname |
| 1819 |
is better, and the code that treats the return value as a |
| 1820 |
generalized boolean still works. |
| 1821 |
|
| 1822 |
2023-02-09 Shiro Kawai <[email protected]> |
| 1823 |
|
| 1824 |
* src/portapi.c (Scm_Flush): Fix bug that stdout is locked |
| 1825 |
by the primoridal thread in REPL (or any thread that first |
| 1826 |
calls flush). https://github.com/shirok/Gauche/issues/876 |
| 1827 |
|
| 1828 |
2023-02-07 Shiro Kawai <[email protected]> |
| 1829 |
|
| 1830 |
* src/srfis.scm (srfi-244): Supported (it's already in the core). |
| 1831 |
|
| 1832 |
2023-02-01 Shiro Kawai <[email protected]> |
| 1833 |
|
| 1834 |
* src/precomp, lib/gauche/cgen/precomp.scm: Allow to suppress |
| 1835 |
#line directives with environment variable |
| 1836 |
GAUCHE_PRECOMP_OMIT_SOURCE_INFO. Sometimes the error position |
| 1837 |
in *.scm is unreliable for troubleshooting. |
| 1838 |
|
| 1839 |
* ext/file/event.scm: Start adding file event API; inotify for |
| 1840 |
the starter. We'll provide high-level API that hides |
| 1841 |
difference of subsystems. |
| 1842 |
|
| 1843 |
2023-01-29 Shiro Kawai <[email protected]> |
| 1844 |
|
| 1845 |
* src/geninsn: Add feature to load/save insn to opcode map. |
| 1846 |
See https://github.com/shirok/Gauche/issues/869 |
| 1847 |
|
| 1848 |
2023-01-26 Shiro Kawai <[email protected]> |
| 1849 |
|
| 1850 |
* src/libfmt.scm (make-format-plural): Support ~P. |
| 1851 |
|
| 1852 |
2023-01-24 Shiro Kawai <[email protected]> |
| 1853 |
|
| 1854 |
* src/libmacro.scm (define-class, define-generic, define-method): |
| 1855 |
Turn them into a macro rather than compiler-builtin, finally. |
| 1856 |
This, however, has a little side-effect; they expand to define |
| 1857 |
forms, so they can now appear in the declaration context, |
| 1858 |
not necessarily at the top-level. |
| 1859 |
We don't officially support non-toplevel use of these forms yet, |
| 1860 |
for these forms have global effect and we're not sure how they |
| 1861 |
should interact with lexical scope. |
| 1862 |
|
| 1863 |
* src/libobj.scm (define-method): Bind the method closure to a |
| 1864 |
module-local hidden toplevel variable, so that test-module |
| 1865 |
can find the method body and scan for undefined variable |
| 1866 |
references. |
| 1867 |
Note: This forces define-method to be on toplevel. Although |
| 1868 |
it hasn't been explicitly documented, it's been assumed that |
| 1869 |
they're toplevel forms as the name suggests. The code that has |
| 1870 |
been used define-method in non-toplevel raises an error after |
| 1871 |
this change; they should be rewritten to make define-method |
| 1872 |
toplevel. |
| 1873 |
Technically it can appear in the internal definition context, |
| 1874 |
but we're not sure about its semantics. |
| 1875 |
|
| 1876 |
2023-01-23 Shiro Kawai <[email protected]> |
| 1877 |
|
| 1878 |
* src/number.c (Scm_SinPi): Make sure |
| 1879 |
(= (real-sinpi 0.25) (real-cospi 0.25)). |
| 1880 |
|
| 1881 |
2023-01-22 Shiro Kawai <[email protected]> |
| 1882 |
|
| 1883 |
* lib/data/ulid.scm (make-ulid-generator): Use internal random source |
| 1884 |
when random-source argument is omitted. Using default-random-source |
| 1885 |
causes ULID conflict for multiple runs if the user didn't randomize |
| 1886 |
it beforehand. |
| 1887 |
https://github.com/shirok/Gauche/issues/873 |
| 1888 |
|
| 1889 |
2023-01-20 Shiro Kawai <[email protected]> |
| 1890 |
|
| 1891 |
* src/compile-1.scm (pass1/body-rec): Make duplicate internal |
| 1892 |
definitions an error. |
| 1893 |
https://github.com/shirok/Gauche/issues/872 |
| 1894 |
|
| 1895 |
2023-01-19 Shiro Kawai <[email protected]> |
| 1896 |
|
| 1897 |
* libsrc/data/ring-buffer.scm (ring-buffer-room): API Added. |
| 1898 |
|
| 1899 |
2023-01-18 Shiro Kawai <[email protected]> |
| 1900 |
|
| 1901 |
* lib/contro/plumbing.scm: Move tapping port from gauche.vport. |
| 1902 |
|
| 1903 |
2023-01-15 Shiro Kawai <[email protected]> |
| 1904 |
|
| 1905 |
* ext/vport/vport.scm (open-tapping-port): Experimentally added. |
| 1906 |
We might make a separate module for it, so do not count on this. |
| 1907 |
|
| 1908 |
2023-01-08 Shiro Kawai <[email protected]> |
| 1909 |
|
| 1910 |
* src/libnum.scm (negative-zero?): Rename undocumented '-zero?' to |
| 1911 |
'negative-zero?' and make it official. Replaced internal use of |
| 1912 |
'-zero?' to 'negative-zero?'. |
| 1913 |
|
| 1914 |
2023-01-07 Shiro Kawai <[email protected]> |
| 1915 |
|
| 1916 |
* src/libnum.scm: Change %expt -> real-expt etc. The real-only |
| 1917 |
versions (%expt, %sin, etc.) are undocumented but used internally |
| 1918 |
when the domain and range are real. SRFI-94 already defines |
| 1919 |
real-only names, so we name them accordingly and make them official. |
| 1920 |
NB: If an external program uses unofficial names, they would raise an |
| 1921 |
error. If that causes a serious problem, we'll provide compatibility |
| 1922 |
layer. |
| 1923 |
|
| 1924 |
* src/libsys.scm (sys-strsignal): Added. |
| 1925 |
|
| 1926 |
2023-01-04 Shiro Kawai <[email protected]> |
| 1927 |
|
| 1928 |
* lib/srfi/210.scm: Added SRFI-210. |
| 1929 |
|
| 1930 |
* src/libmacro.scm (set!-values): Allow improper list in the var list |
| 1931 |
for the consistency. |
| 1932 |
|
| 1933 |
2023-01-02 Shiro Kawai <[email protected]> |
| 1934 |
|
| 1935 |
* lib/gauche/fmtutil.scm: Support ~@r roman numeral formatter. |
| 1936 |
|
| 1937 |
2022-12-29 Shiro Kawai <[email protected]> |
| 1938 |
|
| 1939 |
* src/libmacro.scm (rotate!): Added. CL's rotatef. |
| 1940 |
|
| 1941 |
2022-12-25 Shiro Kawai <[email protected]> |
| 1942 |
|
| 1943 |
* src/port.c, src/vm.c: Switch current-*-port and SCM_CUR* to |
| 1944 |
parameters; R7RS specifies them to be so, and we want new |
| 1945 |
parameterization scheme to work on these values too. |
| 1946 |
NB: This requires recompilation of extension modules, for |
| 1947 |
the code that refers to SCM_CUROUT etc. is compiled to refer |
| 1948 |
to the VM slots directly, which no longer exist. |
| 1949 |
This change may also affect performance; need to take benchmark. |
| 1950 |
|
| 1951 |
2022-12-24 Shiro Kawai <[email protected]> |
| 1952 |
|
| 1953 |
* src/compile-i.scm (dynamic-wind): Optimized version of inlined |
| 1954 |
dynamic-wind incorrectly omitted POP-HANDLERS. It's rare that |
| 1955 |
this optimization is triggered (after thunk must be a constant |
| 1956 |
lambda, which is not common), and probably that's why this |
| 1957 |
hasn't been revealed. |
| 1958 |
Existing code precompiled with 0.9.12 and before may contain |
| 1959 |
erroneous code (though it's very unlikely). |
| 1960 |
|
| 1961 |
2022-12-22 Shiro Kawai <[email protected]> |
| 1962 |
|
| 1963 |
* lib/srfi/172.scm, lib/srfi/172/functional.scm: Added. |
| 1964 |
|
| 1965 |
2022-12-21 Shiro Kawai <[email protected]> |
| 1966 |
|
| 1967 |
* libsrc/text/line-edit.scm (insert-closing-paren): Change paren |
| 1968 |
highlight. Now it highlighs opening paren for a short period of |
| 1969 |
time when closing paren is inserted. |
| 1970 |
|
| 1971 |
2022-12-11 Shiro Kawai <[email protected]> |
| 1972 |
|
| 1973 |
* lib/srfi-*.scm, lib/srfi/*.scm: Make srfi/*.scm main implementation |
| 1974 |
files https://github.com/shirok/Gauche/issues/680 |
| 1975 |
|
| 1976 |
* src/core.c (Scm_SimpleMain): Fix exit status alined with script |
| 1977 |
execution. https://github.com/shirok/Gauche/issues/861 |
| 1978 |
|
| 1979 |
2022-12-10 Shiro Kawai <[email protected]> |
| 1980 |
|
| 1981 |
* src/libfmt.scm (formatter-lex): Support ~ + newline |
| 1982 |
|
| 1983 |
* lib/srfi-228.scm, src/srfis.scm: Add srfi-228. |
| 1984 |
|
| 1985 |
2022-12-08 Shiro Kawai <[email protected]> |
| 1986 |
|
| 1987 |
* src/libfmt.scm: Add ~&. |
| 1988 |
|
| 1989 |
* src/libio.scm (fresh-line): As a side-effect from port column |
| 1990 |
counting, we can now easily have CL's fresh-line. |
| 1991 |
|
| 1992 |
2022-12-06 Shiro Kawai <[email protected]> |
| 1993 |
|
| 1994 |
* src/libio.scm (port-link!, port-unlink!): Added. |
| 1995 |
* src/port.c: Reset output column count when linked input port |
| 1996 |
reads '\n', so that ~:W indent correctly during interactive REPL. |
| 1997 |
|
| 1998 |
2022-12-05 Shiro Kawai <[email protected]> |
| 1999 |
|
| 2000 |
* src/gauche/priv/portP.h, src/port.c: Add port linking. |
| 2001 |
Stdin and stdout is linked by default; reading from stdin |
| 2002 |
causes flushing stdout. |
| 2003 |
|
| 2004 |
2022-12-04 Shiro Kawai <[email protected]> |
| 2005 |
|
| 2006 |
* src/libio.scm (port-column): Expose this to Scheme (but only for |
| 2007 |
gauche.internal module, for now) |
| 2008 |
|
| 2009 |
* src/libfmt.scm (make-format-pprint): Support ~:w (pretty print) |
| 2010 |
and ~@w. |
| 2011 |
|
| 2012 |
2022-12-01 Shiro Kawai <[email protected]> |
| 2013 |
|
| 2014 |
* src/write.c (Scm_Vprintf): Add provisional support of %W (pprint). |
| 2015 |
We still need to figure out how to set indent. |
| 2016 |
|
| 2017 |
2022-11-30 Shiro Kawai <[email protected]> |
| 2018 |
|
| 2019 |
* src/write.c, src/io.scm: Add indent slot to <write-controls> |
| 2020 |
* lib/gauche/pprint.scm: Add indentation according to the indent |
| 2021 |
value of the controls. |
| 2022 |
|
| 2023 |
2022-11-24 Shiro Kawai <[email protected]> |
| 2024 |
|
| 2025 |
* src/vm.c: Ensure dynamic handlers are invoked on a proper dynamic |
| 2026 |
environment. This is important to ensure 'with' and delimited |
| 2027 |
continuations work together. |
| 2028 |
The entry of dynamic handler chain is changed. They should be |
| 2029 |
treated opaque outside of vm.c. |
| 2030 |
|
| 2031 |
2022-11-23 Shiro Kawai <[email protected]> |
| 2032 |
|
| 2033 |
* libsrc/gauche/parameter.scm: Export parameterize as an alias of |
| 2034 |
parameterize/dynwind, so that the legacy code gets |
| 2035 |
backward-compatible parameterize. New code shouldn't use this |
| 2036 |
module. |
| 2037 |
|
| 2038 |
* src/libparam.scm (parameterize/dynwind): Provide backward-compatible |
| 2039 |
parameterize under this name. |
| 2040 |
|
| 2041 |
2022-11-22 Shiro Kawai <[email protected]> |
| 2042 |
|
| 2043 |
* src/libmacro.scm (independently), src/srfis.scm (srfi-236): |
| 2044 |
As srfi-236 is finalized, support this officially. It's general |
| 2045 |
enough to be built-in. |
| 2046 |
|
| 2047 |
2022-11-20 Shiro Kawai <[email protected]> |
| 2048 |
|
| 2049 |
* lib/scheme/comparator.scm: Incorporate srfi-162 as sell. |
| 2050 |
|
| 2051 |
* lib/compat/chibi-test.scm (chibi-test): Support test-equal. |
| 2052 |
|
| 2053 |
2022-11-18 Shiro Kawai <[email protected]> |
| 2054 |
|
| 2055 |
* src/parameter.c, src/libparam.scm (current-parameterization), |
| 2056 |
(parameterization?, call-with-parameterization): Added. |
| 2057 |
|
| 2058 |
2022-11-15 Shiro Kawai <[email protected]> |
| 2059 |
|
| 2060 |
* lib/gauche/test/include.scm (test-include-r7): Added. Make it easier |
| 2061 |
to include r7rs test script in Gauche tests. |
| 2062 |
|
| 2063 |
2022-11-13 Shiro Kawai <[email protected]> |
| 2064 |
|
| 2065 |
* lib/srfi-236.scm: Added. |
| 2066 |
|
| 2067 |
2022-11-12 Shiro Kawai <[email protected]> |
| 2068 |
|
| 2069 |
* src/parameter.c: Change how parameter procedure keeps parameter |
| 2070 |
object. Now we emply the same way as continuation procedure; |
| 2071 |
that is, SCM_PROCEDURE_INFO holds a unique uninterned symbol, |
| 2072 |
and the extractino procedure can use SCM_SUBR_DATA. |
| 2073 |
NB: With this change, parameter? returns #t for primitive parameter |
| 2074 |
procedures as well. It should be. |
| 2075 |
|
| 2076 |
* src/libparam.scm (%parameterize): Start using dynamic env to keep |
| 2077 |
ordinary parameters. |
| 2078 |
|
| 2079 |
2022-11-10 Shiro Kawai <[email protected]> |
| 2080 |
|
| 2081 |
* lib/gauche/time.scm (time-these/report, report-time-results): |
| 2082 |
Allow measure/report using not only cpu times, but also real, |
| 2083 |
user or sys. |
| 2084 |
|
| 2085 |
2022-11-04 Shiro Kawai <[email protected]> |
| 2086 |
|
| 2087 |
* src/compaux.c, src/libmacbase.scm: Remove syntactic closure support. |
| 2088 |
They haven't been used at all. |
| 2089 |
|
| 2090 |
* src/vm.c, src/class.c, src/libproc.scm (make-continuation-prompt-tag, |
| 2091 |
default-continuation-prompt-tag): Add continuation prompt tag. |
| 2092 |
|
| 2093 |
2022-11-02 Shiro Kawai <[email protected]> |
| 2094 |
|
| 2095 |
* src/vm.c: Store exception handler in DENV. |
| 2096 |
|
| 2097 |
2022-10-29 Shiro Kawai <[email protected]> |
| 2098 |
|
| 2099 |
* src/vm.c: VM inherits denv from calling thread. |
| 2100 |
|
| 2101 |
* src/list.c (Scm_AlistCopy): Implement in C. |
| 2102 |
|
| 2103 |
2022-10-28 Shiro Kawai <[email protected]> |
| 2104 |
|
| 2105 |
* src/compile-*.scm: Support with-continuation-mark. |
| 2106 |
|
| 2107 |
2022-10-27 Shiro Kawai <[email protected]> |
| 2108 |
|
| 2109 |
* src/compile.scm ($DYNENV): New IForm node for supporting |
| 2110 |
continuation marks. |
| 2111 |
|
| 2112 |
2022-10-20 Shiro Kawai <[email protected]> |
| 2113 |
|
| 2114 |
* src/parameter.c, ext/threads/threads.scm (make-thread-local): |
| 2115 |
Add srfi-226 thread-local APIs. |
| 2116 |
|
| 2117 |
2022-10-19 Shiro Kawai <[email protected]> |
| 2118 |
|
| 2119 |
* src/gauche/priv/vmP.h (ScmEscapePoint), |
| 2120 |
src/vm.c (Scm_VMDefaultExceptionHandler, Scm_VMReraise), |
| 2121 |
src/libexc.scm (%reraise): Address the issue that escapePoint |
| 2122 |
in the floating chain loses pointer to the continuation frames. |
| 2123 |
https://github.com/shirok/Gauche/issues/852 |
| 2124 |
We fell back to safe-but-slow option: Continuation chains are |
| 2125 |
saved as soon as default exception handler is invoked, so that |
| 2126 |
all active EPs point to contFrames on heap. |
| 2127 |
|
| 2128 |
2022-10-03 Shiro Kawai <[email protected]> |
| 2129 |
|
| 2130 |
* src/libmacro.scm (quasirename): Attach source info of the |
| 2131 |
quasirename constructed lists. |
| 2132 |
|
| 2133 |
2022-10-02 Shiro Kawai <[email protected]> |
| 2134 |
|
| 2135 |
* src/read.c (process_sharp_comma): Attach source info to the |
| 2136 |
output of sharp-comma constructor, if it yields a pair. |
| 2137 |
Notably, this results source info attached to string |
| 2138 |
interpolations. |
| 2139 |
|
| 2140 |
2022-10-01 Shiro Kawai <[email protected]> |
| 2141 |
|
| 2142 |
* macro.c (compile_rule1, realize_template_rec): Carry over |
| 2143 |
source info of macro template and macro input. |
| 2144 |
* libeva.scm (%show-stack-trace): Show all macro expansion |
| 2145 |
history along the source info. |
| 2146 |
|
| 2147 |
2022-09-27 Shiro Kawai <[email protected]> |
| 2148 |
|
| 2149 |
* src/list.c (Scm_MakeImmutablePair): C API INCOMPATIBLE CHANGE: |
| 2150 |
Now it takes the third argument, attrs, being parallel to |
| 2151 |
Scm_MakeExtendedPair, for the consistency. We expect the API |
| 2152 |
isn't used by external libraries, for the immutable pairs are |
| 2153 |
recent addition. |
| 2154 |
* Bug fix on debug source info of quoted literals. |
| 2155 |
https://github.com/shirok/Gauche/issues/847 |
| 2156 |
|
| 2157 |
2022-09-25 Shiro Kawai <[email protected]> |
| 2158 |
|
| 2159 |
* lib/gauche/vm/debugger.scm (debug-print-conditionally) |
| 2160 |
(debug-funcall-conditionally), |
| 2161 |
src/read.c (read_internal): Add "#??=" and "#??," debug helper |
| 2162 |
syntax, to print info only when condition is met. |
| 2163 |
|
| 2164 |
2022-09-21 Shiro Kawai <[email protected]> |
| 2165 |
|
| 2166 |
* lib/gauche/redefutil.scm (class-redefinition): Fix redefining |
| 2167 |
a class with redefined metaclass |
| 2168 |
https://github.com/shirok/Gauche/issues/845 |
| 2169 |
|
| 2170 |
* src/libobj.scm (write-object <class>): Show 'redefined' for |
| 2171 |
class objects with custom metaclass. |
| 2172 |
|
| 2173 |
2022-09-18 Shiro Kawai <[email protected]> |
| 2174 |
|
| 2175 |
* lib/data/range.scm (bitvector/bool-range, bitvector/int-range): |
| 2176 |
Added bitvector to range constructors. Also revised <flat-range> |
| 2177 |
definition to allow raw-indexer customization and optimization. |
| 2178 |
|
| 2179 |
2022-09-14 Shiro Kawai <[email protected]> |
| 2180 |
|
| 2181 |
* tools/tls/Makefile.in: Use mbedtls 3.2.1 for mbedtls-internal |
| 2182 |
|
| 2183 |
* src/portapi.c (Scm_Getz): Bug fix: We've treated bufport_filler |
| 2184 |
returning 0 as EOF, but that's not always the case---if the requested |
| 2185 |
size is 0, e.g. via (read-bytevector 0), returning 0 is a valid |
| 2186 |
return value without meaning EOF. |
| 2187 |
|
| 2188 |
* ext/tls/tls-mbed.c: Show string error message for mbedtls errors, |
| 2189 |
along the error code. |
| 2190 |
|
| 2191 |
2022-08-26 Shiro Kawai <[email protected]> |
| 2192 |
|
| 2193 |
* src/vm.c (Scm_VMApply0, etc.): Experimentally turn on subr |
| 2194 |
trampoline; if a subr is tail-called from another subr, and |
| 2195 |
the number of argument matches, then we skip the usual |
| 2196 |
argument folding & procedure dispatching sequence. |
| 2197 |
|
| 2198 |
2022-08-14 Shiro Kawai <[email protected]> |
| 2199 |
|
| 2200 |
* lib/srfi-222.scm: Added. |
| 2201 |
|
| 2202 |
2022-08-12 Shiro Kawai <[email protected]> |
| 2203 |
|
| 2204 |
* libsrc/text/line-edit.scm (completion-command): Allow completion |
| 2205 |
with hyphenated prefxies, e.g. 'w-i-f' -> 'with-input-from-'. |
| 2206 |
|
| 2207 |
2022-08-11 Shiro Kawai <[email protected]> |
| 2208 |
|
| 2209 |
* lib/text/segmented-match.scm (text.segmented-match): Added. |
| 2210 |
|
| 2211 |
2022-08-09 Shiro Kawai <[email protected]> |
| 2212 |
|
| 2213 |
* doc/modutil.texi: Start adding text.multicolumn doc |
| 2214 |
|
| 2215 |
* lib/text/multicolumn.scm (layout-multicolumn): Make multicolumn |
| 2216 |
formatting two-step process for flexibility; layout-multicolumn |
| 2217 |
returns a list of text for each line, and display-multicolumn |
| 2218 |
uses it to print out the formatted text. |
| 2219 |
|
| 2220 |
2022-08-06 Shiro Kawai <[email protected]> |
| 2221 |
|
| 2222 |
* src/libexc.scm, src/srfis.scm: Export missing identifiers from |
| 2223 |
srfi-35. |
| 2224 |
|
| 2225 |
2022-08-04 Shiro Kawai <[email protected]> |
| 2226 |
|
| 2227 |
* src/libvec.scm (bitvector-any-value?, bitvector-every-value?): |
| 2228 |
Allow start/end optional args. |
| 2229 |
|
| 2230 |
2022-08-03 Shiro Kawai <[email protected]> |
| 2231 |
|
| 2232 |
* src/vector.scm (bitvector-any-value?, bitvector-every-value?): |
| 2233 |
Rename bitvector-any? and bitvector-every? and let them take the |
| 2234 |
bit value to search. This eliminates the need of bitvector-none?, |
| 2235 |
and also make it symmetric (we can test 'having at least 1 zero). |
| 2236 |
|
| 2237 |
2022-07-30 Shiro Kawai <[email protected]> |
| 2238 |
|
| 2239 |
* lib/srfi-209.scm: Added, passes the tests (tests depend on |
| 2240 |
gauche.bitvector, so it is tested in ext/gauche). |
| 2241 |
|
| 2242 |
2022-07-29 Shiro Kawai <[email protected]> |
| 2243 |
|
| 2244 |
* lib/scheme/regex.scm (scheme.regex): Export missing regex? |
| 2245 |
https://github.com/shirok/Gauche/pull/836 |
| 2246 |
|
| 2247 |
2022-07-28 Shiro Kawai <[email protected]> |
| 2248 |
|
| 2249 |
* src/vm.c (POP_CONT): Avoid copying C continuation data into |
| 2250 |
machine stack. The data argument of Ccont proc now points |
| 2251 |
direclty to the continuation's data field. This should be ok, |
| 2252 |
for subrs aren't supposed to modify these fields. |
| 2253 |
NB: There may be an issue if void* and ScmObj are different in size, |
| 2254 |
though its very unlikely in modern platforms. |
| 2255 |
|
| 2256 |
2022-07-14 Shiro Kawai <[email protected]> |
| 2257 |
|
| 2258 |
* ext/srfi/srfi-178.scm, ext/gauche/bitvector.scm, lib/srfi-178.scm: |
| 2259 |
Move bitvector lib as gauche.bitvector, for we'll add some more |
| 2260 |
bitvector utilities. srfi-178 just reexport srfi procedures. |
| 2261 |
|
| 2262 |
2022-07-12 Shiro Kawai <[email protected]> |
| 2263 |
|
| 2264 |
* src/libvec.scm (bitvector-any?, bitvector-every?, bitvector-none?): |
| 2265 |
These are not in srfi-178 but handy to have. |
| 2266 |
|
| 2267 |
2022-07-06 Shiro Kawai <[email protected]> |
| 2268 |
|
| 2269 |
* doc/corelib.texi (format): Description of ~nR was missing. |
| 2270 |
|
| 2271 |
* lib/gauche/cgen/stub.scm (define-cclass): Fix cise issue in |
| 2272 |
define-cclass https://github.com/shirok/Gauche/issues/832 |
| 2273 |
|
| 2274 |
2022-07-04 Shiro Kawai <[email protected]> |
| 2275 |
|
| 2276 |
* ext/mt-random: Make mersenne twister RNG thread-safe by default. |
| 2277 |
|
| 2278 |
2022-07-03 Shiro Kawai <[email protected]> |
| 2279 |
|
| 2280 |
* lib/data/ulid.scm (ulid): Drop record type name from export list. |
| 2281 |
It doesn't follow Gauche's class naming convention. We may |
| 2282 |
reintroduce it as <ulid> in future, but let's see. |
| 2283 |
|
| 2284 |
2022-06-30 Shiro Kawai <[email protected]> |
| 2285 |
|
| 2286 |
* lib/gauche/interactive.scm (describe <generic>): Show each method's |
| 2287 |
source location if available. |
| 2288 |
|
| 2289 |
* src/libobj.scm (%expand-define-method), |
| 2290 |
src/class.c (method_initialize): Set source location info to |
| 2291 |
the list in <method>'info, so that it can be retrieved by |
| 2292 |
source-info. |
| 2293 |
|
| 2294 |
2022-06-28 Shiro Kawai <[email protected]> |
| 2295 |
|
| 2296 |
* src/libmacro.scm (assume-type): support optional msg objs ... |
| 2297 |
arguments for the custom error message. |
| 2298 |
(assume): Use custom error message if provided. |
| 2299 |
|
| 2300 |
* src/libtype.scm, src/number.c: Native type support for |
| 2301 |
<intptr_t> and <uintptr_t>. |
| 2302 |
|
| 2303 |
2022-06-27 Shiro Kawai <[email protected]> |
| 2304 |
|
| 2305 |
* src/libalpha.scm (make-case-lambda): Make procedure-info of |
| 2306 |
case-lambda more readable. It is for human reader, and having |
| 2307 |
#(#<closure ...> ...) is not helpful. Now it is |
| 2308 |
(<name> #(<formals> ...)). |
| 2309 |
|
| 2310 |
2022-06-25 Shiro Kawai <[email protected]> |
| 2311 |
|
| 2312 |
* Release 0.9.12 |
| 2313 |
|
| 2314 |
2022-06-21 Shiro Kawai <[email protected]> |
| 2315 |
|
| 2316 |
* src/number.c (read_number): Support srfi-169, underscores in numbers. |
| 2317 |
Technically this introduces incompatibility: |
| 2318 |
- Tokens such as 1_2_3 is now read as a number 123, instead of |
| 2319 |
a symbol. |
| 2320 |
- Underscores in prefexed numeric literals must obey srfi-169 |
| 2321 |
instead of simply being ignored. #x_dead_beef_ was ok before, |
| 2322 |
but no longer. |
| 2323 |
|
| 2324 |
2022-06-19 Shiro Kawai <[email protected]> |
| 2325 |
|
| 2326 |
* ext/uvector/uvlib.scm.tmpl (@vector-segment): Check arg to avoid |
| 2327 |
infinite loop. https://github.com/shirok/Gauche/issues/828 |
| 2328 |
|
| 2329 |
2022-06-06 Shiro Kawai <[email protected]> |
| 2330 |
|
| 2331 |
* lib/srfi-232.scm: Add srfi-232 Flexible curried procedures. |
| 2332 |
|
| 2333 |
2022-06-05 Shiro Kawai <[email protected]> |
| 2334 |
|
| 2335 |
* src/compile-4.scm (pass4/scan): Fix incorrect free-variable |
| 2336 |
propagation in $clambda node. |
| 2337 |
https://github.com/shirok/Gauche/issues/826 |
| 2338 |
|
| 2339 |
2022-06-04 Shiro Kawai <[email protected]> |
| 2340 |
|
| 2341 |
* src/liblist.scm (num-pairs): Added. |
| 2342 |
|
| 2343 |
2022-05-30 Shiro Kawai <[email protected]> |
| 2344 |
|
| 2345 |
* test/net.scm: Recover gauche.net test |
| 2346 |
|
| 2347 |
2022-05-29 Shiro Kawai <[email protected]> |
| 2348 |
|
| 2349 |
* src/list.c (Scm_LastPair): Detect circular list. It is not required |
| 2350 |
in the spec (last and last-pair), but doing so is cheap and it's |
| 2351 |
something nice to have. |
| 2352 |
|
| 2353 |
2022-05-28 Shiro Kawai <[email protected]> |
| 2354 |
|
| 2355 |
* src/libvec.scm (make-s8vector etc.), ext/uvector/uvlib.scm.tmpl: |
| 2356 |
Move constructors to the core. |
| 2357 |
|
| 2358 |
2022-05-21 Shiro Kawai <[email protected]> |
| 2359 |
|
| 2360 |
* lib/gauche/connection.scm, lib/gauche/netutil.scm: Moved |
| 2361 |
connection protocol implementation to gauche.net. Keep |
| 2362 |
gauche.connection just for the backward compatibility. |
| 2363 |
|
| 2364 |
2022-05-20 Shiro Kawai <[email protected]> |
| 2365 |
|
| 2366 |
* ext/net, src/libnet.scm, src/net.c, src/netaddr.c, src/netdb.c: |
| 2367 |
Move ext/net into core. Sometimes it's handy for the extension |
| 2368 |
modules to be able to call net-related C functions. |
| 2369 |
|
| 2370 |
2022-05-16 Shiro Kawai <[email protected]> |
| 2371 |
|
| 2372 |
* ext/tls/tls.ac: Do not compile axtls by default. Preparing |
| 2373 |
to drop axtls support in future releases. |
| 2374 |
|
| 2375 |
2022-05-10 Shiro Kawai <[email protected]> |
| 2376 |
|
| 2377 |
* src/signal.c (Scm_SigWait): Avoid using signal number 0 for |
| 2378 |
sigismember/sigdelset. This causes failure on OSX Monterey. |
| 2379 |
|
| 2380 |
2022-04-21 Shiro Kawai <[email protected]> |
| 2381 |
|
| 2382 |
* ext/srfi/srfi-19.scm: Define object-compare for <date>. |
| 2383 |
|
| 2384 |
2022-04-20 Shiro Kawai <[email protected]> |
| 2385 |
|
| 2386 |
* lib/util/temporal-relation.scm: Added. |
| 2387 |
|
| 2388 |
2022-04-18 Shiro Kawai <[email protected]> |
| 2389 |
|
| 2390 |
* configure.ac: 0.9.12_pre1 |
| 2391 |
|
| 2392 |
2022-04-17 Shiro Kawai <[email protected]> |
| 2393 |
|
| 2394 |
* src/liblist.scm (list-ref): Better error message. |
| 2395 |
(See comments in https://github.com/shirok/Gauche/issues/814) |
| 2396 |
|
| 2397 |
2022-04-16 Shiro Kawai <[email protected]> |
| 2398 |
|
| 2399 |
* src/libmacro.scm (push-unique!): Added, finally. CL's pushnew. |
| 2400 |
I've been resisting the temptation to add this, for most of the |
| 2401 |
times it doesn't bother me much to write out the logic explicitly. |
| 2402 |
However, I hit the cases where this makes code much cleaner |
| 2403 |
enough times. |
| 2404 |
|
| 2405 |
2022-04-07 Shiro Kawai <[email protected]> |
| 2406 |
|
| 2407 |
* src/main.c (main): Noticed *program-name* and *argv* aren't defined |
| 2408 |
when gosh invoked as REPL. Although they are of little use in REPL, |
| 2409 |
leaving them undefined may cause some inconvenience. We just |
| 2410 |
define "" as *program-name* and () as *argv*. |
| 2411 |
|
| 2412 |
2022-04-06 Shiro Kawai <[email protected]> |
| 2413 |
|
| 2414 |
* ext/tls/tls.c: Fix fd leak in <ax-tls> |
| 2415 |
https://github.com/shirok/Gauche/issues/817 |
| 2416 |
|
| 2417 |
2022-03-21 Shiro Kawai <[email protected]> |
| 2418 |
|
| 2419 |
* lib/control/thread-pool.scm (wait-all): Fix race condition |
| 2420 |
( https://github.com/shirok/Gauche/issues/812 ) |
| 2421 |
|
| 2422 |
2022-03-16 Shiro Kawai <[email protected]> |
| 2423 |
|
| 2424 |
* src/system.c (Scm_StrfTime): MinGW's strftime() returns a |
| 2425 |
multibyte string in system's language settings, so its handling |
| 2426 |
is tricky. We introduced a compatibility layer. |
| 2427 |
|
| 2428 |
* src/libsys.scm (sys-setlocale): Allow #f for locale argument |
| 2429 |
(corresponding to passing NULL in C API). It can be used to |
| 2430 |
obtain the current locale. |
| 2431 |
|
| 2432 |
2022-03-10 Shiro Kawai <[email protected]> |
| 2433 |
|
| 2434 |
* src/write.c, src/libfmt.scm: If string is truncated within double |
| 2435 |
quotes, add '"...' (instead of ' ..."' as before). The normal |
| 2436 |
truncation is ' ...' (a whitespace before dots), so it gives a |
| 2437 |
clue that the string is truncated. We also support the same |
| 2438 |
format in Scm_Printf(). |
| 2439 |
|
| 2440 |
2022-03-09 Shiro Kawai <[email protected]> |
| 2441 |
|
| 2442 |
* lib/gauche/cgen/precomp.scm: Revert commit #f5577697cf - this |
| 2443 |
appears no longer needed to inline procedures within the same |
| 2444 |
compilation unit during precompilation. |
| 2445 |
|
| 2446 |
2022-03-06 Shiro Kawai <[email protected]> |
| 2447 |
|
| 2448 |
* src/write.c (vprintf_pass2): Fix truncation of %S and %A - it looked |
| 2449 |
like we were in the middle of the change and then forgot to pick |
| 2450 |
it up. |
| 2451 |
|
| 2452 |
2022-03-05 Shiro Kawai <[email protected]> |
| 2453 |
|
| 2454 |
* src/libfmt.scm (chop-and-out): Make 'truncation' format directive |
| 2455 |
recognize an open double quote and close it properly even if |
| 2456 |
the content is truncated. This will prevent font colorlizer |
| 2457 |
(e.g. Emacs Scheme mode) from being messed up by unclosed |
| 2458 |
double quotes caused by truncation. |
| 2459 |
|
| 2460 |
2022-02-26 Shiro Kawai <[email protected]> |
| 2461 |
|
| 2462 |
* src/compile-2.scm (pass2/$LET): Lift component closures of locally |
| 2463 |
defined case-lambda into the same level of environment. Expecting |
| 2464 |
the later stage of case-lambda optimization to become easier. |
| 2465 |
Note that this changes ordinary let frame to letrec frame (since |
| 2466 |
the newly introduced variable is referred to by the case-lambda |
| 2467 |
construction in the same environment). We expect such conversion |
| 2468 |
would occur rarely (if local case-lambda is introduced by internal |
| 2469 |
defines, the frame is already letrec*.) |
| 2470 |
|
| 2471 |
2022-02-21 Shiro Kawai <[email protected]> |
| 2472 |
|
| 2473 |
* src/libalpha.scm (case-lambda-decompose): Rename from case-lambda-info |
| 2474 |
(too vague). Use new %case-lambda-info so that it can have definite |
| 2475 |
info, instead of relying procedure-info slot. |
| 2476 |
This procedure hasn't been public, so name change shouldn't affect |
| 2477 |
existing code. We may come up a better name later. |
| 2478 |
|
| 2479 |
2022-02-20 Shiro Kawai <[email protected]> |
| 2480 |
|
| 2481 |
* src/compile-1.scm, src/libalpha.scm: Global case-lambda inliner. |
| 2482 |
Now case-lambda procedure can be define-inline'd, and if the call |
| 2483 |
site knows the number of arguments, it preselects the apprpricate |
| 2484 |
branch and direclty inlines it. |
| 2485 |
|
| 2486 |
2022-02-15 Shiro Kawai <[email protected]> |
| 2487 |
|
| 2488 |
* src/libalpha.scm (make-case-lambda): No longer look at 'formals' |
| 2489 |
argument; the info can be extracted from closures. |
| 2490 |
|
| 2491 |
2022-02-14 Shiro Kawai <[email protected]> |
| 2492 |
|
| 2493 |
* src/number.c (Scm_NumCmp): Make sure '=' transitivity is kept |
| 2494 |
in exact v inexact comparison. |
| 2495 |
https://github.com/shirok/Gauche/issues/805 |
| 2496 |
|
| 2497 |
2022-02-12 Shiro Kawai <[email protected]> |
| 2498 |
|
| 2499 |
* text/line-edit.scm: Add whitespace after the completed word if |
| 2500 |
the completion returns a single definite result. It is indicated |
| 2501 |
by the lister callback returning a string, rather than a list. |
| 2502 |
Note that we need to distinguish the case when there's only one |
| 2503 |
candidate but further search is possible (e.g. completing a directory |
| 2504 |
name when searching the actula file). |
| 2505 |
|
| 2506 |
2022-02-11 Shiro Kawai <[email protected]> |
| 2507 |
|
| 2508 |
* data/ulid.scm: Added. Port from https://github.com/shirok/scheme-ulid |
| 2509 |
|
| 2510 |
2022-02-10 Shiro Kawai <[email protected]> |
| 2511 |
|
| 2512 |
* gc: Bumped bdwgc 8.0.6 |
| 2513 |
|
| 2514 |
2022-02-09 Shiro Kawai <[email protected]> |
| 2515 |
|
| 2516 |
* lib/gauche/libutil.scm (library-fold): Rewrote on top of glob-fold. |
| 2517 |
This allows extended glob pattern such as {} and **. |
| 2518 |
|
| 2519 |
* lib/gauche/fileutil.scm (glob-fold): Add prefix keyword arg. |
| 2520 |
|
| 2521 |
2022-02-02 Shiro Kawai <[email protected]> |
| 2522 |
|
| 2523 |
* src/read.c (Scm_CharWordConstituent), |
| 2524 |
src/libio.scm (char-word-consituent?): Expose these for they are |
| 2525 |
generally useful to write something that deal with Scheme names. |
| 2526 |
|
| 2527 |
2022-01-30 Shiro Kawai <[email protected]> |
| 2528 |
|
| 2529 |
* libsrc/text/gap-buffer.scm |
| 2530 |
(gap-buffer-contains, gap-buffer-looking-at?): Added. |
| 2531 |
|
| 2532 |
* src/libstr.scm (opt-substring): Rename %maybe-substring opt-substring |
| 2533 |
and officially support it in #<module gauche>. It is generally |
| 2534 |
useful. |
| 2535 |
|
| 2536 |
2022-01-23 Shiro Kawai <[email protected]> |
| 2537 |
|
| 2538 |
* libsrc/text/line-edit.scm: Some improvement of completion. Now |
| 2539 |
if there're multiple candidate and TAB is typed twice, the candidate |
| 2540 |
list is displayed. |
| 2541 |
|
| 2542 |
* lib/text/multicolumn.scm: Added |
| 2543 |
|
| 2544 |
2022-01-21 Shiro Kawai <[email protected]> |
| 2545 |
|
| 2546 |
* lib/srfi-227.scm: Added srfi-227. |
| 2547 |
|
| 2548 |
2022-01-18 Shiro Kawai <[email protected]> |
| 2549 |
|
| 2550 |
* lib/gauche/editable-reader.scm: Implement a rudimental symbol |
| 2551 |
completion. We'll experiment for a while to see what's best |
| 2552 |
in REPL. |
| 2553 |
|
| 2554 |
2022-01-16 Shiro Kawai <[email protected]> |
| 2555 |
|
| 2556 |
* libsrc/text/line-edit.scm: Add a hook for completion. |
| 2557 |
|
| 2558 |
* libsrc/text/gap-buffer: Drop gap-buffer-gap-start and |
| 2559 |
gap-buffer-gap-end. They reveals internals unnecessarily. They |
| 2560 |
weren't documented, and have only been used for testing. |
| 2561 |
(gap-buffer-pos-at-end?): Added. |
| 2562 |
|
| 2563 |
2022-01-13 Shiro Kawai <[email protected]> |
| 2564 |
|
| 2565 |
* src/compile-1.scm (case-lambda): Change case-lambda handling. |
| 2566 |
Instead of expanding to the call for make-case-lambda in pass1, |
| 2567 |
we create $CLAMBDA node and carry it up to pass5. This will allow |
| 2568 |
more optimizations. |
| 2569 |
|
| 2570 |
2022-01-05 Shiro Kawai <[email protected]> |
| 2571 |
|
| 2572 |
* src/mmap.c (Scm_SysMmapWX): Separate writable pages and executable |
| 2573 |
page if PaX MPROTEXT is active. |
| 2574 |
|
| 2575 |
2022-01-04 Shiro Kawai <[email protected]> |
| 2576 |
|
| 2577 |
* src/list-ext-objects.sh: Allow to take extra directories to scan |
| 2578 |
object files to archive. |
| 2579 |
* src/Makefile.in, tools/tls/Makefile.in: |
| 2580 |
If --with-tls=mbedtls-internal, scan tools/tls to archive mbed |
| 2581 |
object files in the static library. |
| 2582 |
Cf. https://github.com/shirok/Gauche/issues/802 |
| 2583 |
|
| 2584 |
2021-12-28 Shiro Kawai <[email protected]> |
| 2585 |
|
| 2586 |
* Release 0.9.11-p1: A "patch" release fixing mbedtls-internal issue. |
| 2587 |
|
| 2588 |
* ext/tls/tls.ac: Fix build defect when internal mbedtls is used |
| 2589 |
https://github.com/shirok/Gauche/issues/799 |
| 2590 |
|
| 2591 |
2021-12-23 Shiro Kawai <[email protected]> |
| 2592 |
|
| 2593 |
* Release 0.9.11 |
| 2594 |
|
| 2595 |
2021-12-16 Shiro Kawai <[email protected]> |
| 2596 |
|
| 2597 |
* src/libsys.scm (sys-mmap, <memory-region>): Improve mmap API. |
| 2598 |
size argument needs to be mandatory (there's no reasonable default). |
| 2599 |
Expose fields of <memory-region> for introspection. |
| 2600 |
|
| 2601 |
2021-12-14 Shiro Kawai <[email protected]> |
| 2602 |
|
| 2603 |
* ext/tls/tls-mbed.c: Support MbedTLS 3.0. This is a partial support: |
| 2604 |
we need tls-bind to allow TLS-enabled server. But at least this one |
| 2605 |
works as a client. |
| 2606 |
|
| 2607 |
2021-12-03 Shiro Kawai <[email protected]> |
| 2608 |
|
| 2609 |
* src/libio.scm (%write-walk-rec): Handle circular reference through |
| 2610 |
boxes. https://github.com/shirok/Gauche/issues/787 |
| 2611 |
|
| 2612 |
2021-12-01 Shiro Kawai <[email protected]> |
| 2613 |
|
| 2614 |
* check-build-version, configure.ac, Makefile.in: Before generating |
| 2615 |
files by BUILD_GOSH, check if it is the latest release. With this, |
| 2616 |
the user who accidentally try to compile from the repo using older |
| 2617 |
Gauche will be told so upfront, instead of getting an misterious |
| 2618 |
error in the middle of building. |
| 2619 |
The required BUILD_GOSH version is kept in configure.ac, right |
| 2620 |
below the AC_INIT line. Don't forget to update when you make |
| 2621 |
a new release. |
| 2622 |
|
| 2623 |
2021-11-23 Shiro Kawai <[email protected]> |
| 2624 |
|
| 2625 |
* lib/gauche/cgen/precomp.scm (handle-define-inline): Fix that |
| 2626 |
define-inline'ed procedures weren't expanded within the same |
| 2627 |
compilation unit. We need to let the compiling enviornment know |
| 2628 |
about the inlined procedures. |
| 2629 |
|
| 2630 |
2021-11-22 Shiro Kawai <[email protected]> |
| 2631 |
|
| 2632 |
* src/libmacro.scm (cond-expand): EXPERIMENTALLY add 'package' |
| 2633 |
clause to test package existence and its version. A special |
| 2634 |
package name 'gauche' can be used to check running Gauche |
| 2635 |
version. Let's see how it goes. |
| 2636 |
|
| 2637 |
2021-11-15 Shiro Kawai <[email protected]> |
| 2638 |
|
| 2639 |
* src/gauche.h (ScmProcedure), src/proc.c (Scm__CopyProcedure): |
| 2640 |
Use the reserved slot of ScmProcedure as tags-alist. |
| 2641 |
We can keep srfi-229 procedure tag there, and more in future. |
| 2642 |
INCOMPATIBLE CHANGE: We make Scm_CopyProcedure private, moved |
| 2643 |
to priv/procP.h and renamed to Scm__CopyProcedure. Use code |
| 2644 |
shouldn't need to use it, for procedures are immutable entity |
| 2645 |
and copying shouldn't make difference. It is only used internally |
| 2646 |
to do certain bookkeeping. |
| 2647 |
|
| 2648 |
* lib/srfi-229.scm: Added. |
| 2649 |
|
| 2650 |
2021-11-11 Shiro Kawai <[email protected]> |
| 2651 |
|
| 2652 |
* lib/gauche/cgen/stub.scm (make-array-getter-setter): Support |
| 2653 |
treating u8int_t array in cstruct as <u8vector>. Eventually |
| 2654 |
we'll extend it to other uniform vectors, and this is the first |
| 2655 |
step. |
| 2656 |
(define-cproc): Allow '_ in the arguments to indicate unused args. |
| 2657 |
|
| 2658 |
* lib/gauche/cgen/cise.scm: (define-cenum): Added. This has been |
| 2659 |
in Gauche-gl for a while. |
| 2660 |
|
| 2661 |
2021-11-10 Shiro Kawai <[email protected]> |
| 2662 |
|
| 2663 |
* lib/gauche/cgen/cise.scm: Allow '_' as an unused argument in |
| 2664 |
define-cfn, so that we don't need a dummy cast expression to |
| 2665 |
suppress 'unused argument' warnings. |
| 2666 |
We also need the similar stuff for define-cproc and define-cmethod, |
| 2667 |
but the handling of arguments differ a lot. So, maybe later. |
| 2668 |
|
| 2669 |
2021-11-07 Shiro Kawai <[email protected]> |
| 2670 |
|
| 2671 |
* lib/gauche/cgen/stub.scm: Rename define-type to declare-stub-type. |
| 2672 |
Make it clear that it is merely a hint to the stub generator, |
| 2673 |
only effective during a single stub file processing. |
| 2674 |
(define-cclass): Let it handle declare-stub-type, even if it needs |
| 2675 |
custom c-predicate name or unboxer name. |
| 2676 |
(define-cstruct): Incorporated define-cstruct, an easier stub |
| 2677 |
interface for C struct. |
| 2678 |
|
| 2679 |
2021-11-05 Shiro Kawai <[email protected]> |
| 2680 |
|
| 2681 |
* src/libtype.scm (ScmNativeType): Let it keep C type name as well. |
| 2682 |
The long-term plan is to integrate stub types to the built-in type |
| 2683 |
system, though we'll still keep some info outside of the built-in |
| 2684 |
types (e.g. C notation of boxer/unboxer won't be used except stub |
| 2685 |
generators, so no need to carry it around in the <native-type>). |
| 2686 |
|
| 2687 |
* lib/gauche/cgen/type.scm: Keep reference to the actual Scheme type |
| 2688 |
in the stub type. Changed API of make-cgen-type. |
| 2689 |
|
| 2690 |
2021-10-27 Shiro Kawai <[email protected]> |
| 2691 |
|
| 2692 |
* lib/rfc/http.scm: Use new tls-connect interface that lets TLS |
| 2693 |
module opens the socket. This allows proper use of mbedTLS. |
| 2694 |
|
| 2695 |
* ext/*/Makefile.in: Adjust GENERATED and CONFIG_GENERATED macros |
| 2696 |
to the src/*. The 'distcclean' target removes CONFIG_GENERATED |
| 2697 |
(e.g. Makefile), and 'maintainer-clean' removes GENERATED as well. |
| 2698 |
Before this change, a build after distclean caused an error |
| 2699 |
while building ext/gauche, for unicode-attr.scm is removed by |
| 2700 |
distclean but not regenerated since src/char_attr.c exists. |
| 2701 |
Also, renamed GENERATED -> PREGENERATED to avoid confusion. |
| 2702 |
|
| 2703 |
* lib/rfc/http (start-connection): When no TLS module is available, |
| 2704 |
raise an error saying so, rather than letting rfc.tls module |
| 2705 |
throw an obscure error. |
| 2706 |
Cf. https://github.com/shirok/Gauche/issues/784 |
| 2707 |
NB: rfc.tls is loaded by cond-expand gauche.net.tls, so we don't |
| 2708 |
bother to make it autoload. |
| 2709 |
|
| 2710 |
2021-10-24 Shiro Kawai <[email protected]> |
| 2711 |
|
| 2712 |
* ext/digest/sha2.c (SHA1_End): Fix strict aliasing violation. |
| 2713 |
The original code yields incorrect binary with gcc 11.2 when |
| 2714 |
compiled with -O2. |
| 2715 |
|
| 2716 |
2021-10-03 Shiro Kawai <[email protected]> |
| 2717 |
|
| 2718 |
* src/gauche/priv/bignumP.h: Make bignum.h private. It was never |
| 2719 |
intended for public use. Technically this is compatiblity-breaking, |
| 2720 |
but if the user code directly uses bignum API, there's something wrong. |
| 2721 |
|
| 2722 |
2021-09-28 Shiro Kawai <[email protected]> |
| 2723 |
|
| 2724 |
* lib/data/random.scm (random-data-random-source): A parameter to |
| 2725 |
keep the current random source. Previous random-state thingy was |
| 2726 |
awkward and not compatible to srfi-194. |
| 2727 |
|
| 2728 |
* ext/mt-random: Add mt-random-get-seed |
| 2729 |
|
| 2730 |
2021-09-07 Shiro Kawai <[email protected]> |
| 2731 |
|
| 2732 |
* src/gauche/vm/debugger.scm, src/read.c: Experimentally implemented |
| 2733 |
per-thread debug logging. #?@=expr records evaluation of expr like |
| 2734 |
#?=, but the output goes to per-thread file, with timestamp. |
| 2735 |
This prevents logs to be mixed up. |
| 2736 |
|
| 2737 |
* ext/threads/threads.scm (latch-clear!): Added. |
| 2738 |
|
| 2739 |
2021-09-03 Shiro Kawai <[email protected]> |
| 2740 |
|
| 2741 |
* lib/gauche/interactive.scm (describe): Add (describe <rational>). |
| 2742 |
* src/libnum.scm (ratnum?): Added. |
| 2743 |
|
| 2744 |
2021-09-01 Shiro Kawai <[email protected]> |
| 2745 |
|
| 2746 |
* ext/threads/threads.scm (thread-try-start!): Added. A thread can |
| 2747 |
be terminated before it is started. thread-start! raises an error |
| 2748 |
when it is applied on such a thread. However, we may want to just |
| 2749 |
ignore such case. |
| 2750 |
|
| 2751 |
2021-08-29 Shiro Kawai <[email protected]> |
| 2752 |
|
| 2753 |
* lib/gauche/interactive.scm (describe): Add (describe <real>) |
| 2754 |
to describe flonum. |
| 2755 |
|
| 2756 |
* ext/threads/threads.c (Scm_TerminateThread): Add flags argument, and |
| 2757 |
allow to choose forcible/non-forcible termination. |
| 2758 |
* ext/threads/threads.scm (thread-terminate!): Make non-forcible |
| 2759 |
termination default. Forcible termination has no guarantee the |
| 2760 |
process state is sane afterwards, so it should be reserved for |
| 2761 |
absolutely desperate situation. We expect non-forcible termination |
| 2762 |
shows little difference from forcible termination, for the program |
| 2763 |
will go on anyways---the only difference should be the hanged thread |
| 2764 |
remains in the process. |
| 2765 |
|
| 2766 |
2021-08-28 Shiro Kawai <[email protected]> |
| 2767 |
|
| 2768 |
* src/gauche-cesconv.in: Add --in-place option. |
| 2769 |
|
| 2770 |
2021-08-24 Shiro Kawai <[email protected]> |
| 2771 |
|
| 2772 |
* src/boolean.c (Scm_EqvP): Let (eqv? -0.0 0.0) #f. The spec of eqv? |
| 2773 |
has been changed since R5RS; in R7RS, it must return #f if two objects |
| 2774 |
are numbers and it yields different results with Scheme's standard |
| 2775 |
arithmetic operations. |
| 2776 |
Subsequently, (equal? -0.0 0.0) also returns #f. |
| 2777 |
* src/numebr.c: Make sure integer divisions and roundings never return |
| 2778 |
-0.0. It complicates things when the result is compared to 0.0 |
| 2779 |
with equal?. |
| 2780 |
|
| 2781 |
2021-08-22 Shiro Kawai <[email protected]> |
| 2782 |
|
| 2783 |
* src/number.c (scm_abs): Fix: (abs -0.0) returned -0.0. Oops. |
| 2784 |
|
| 2785 |
* ext/srfi/srfi-19.scm: Define object-equal? on <date>. |
| 2786 |
|
| 2787 |
2021-08-15 Shiro Kawai <[email protected]> |
| 2788 |
|
| 2789 |
* lib/srfi-69.scm (hash-table-hash-function): The returned procedure's |
| 2790 |
second argument is now optional, for the compatibility with srfi-128. |
| 2791 |
https://github.com/shirok/Gauche/issues/777 |
| 2792 |
|
| 2793 |
2021-08-11 Shiro Kawai <[email protected]> |
| 2794 |
|
| 2795 |
* lib/srfi-197.scm: Added (reference implementation) |
| 2796 |
|
| 2797 |
2021-08-06 Shiro Kawai <[email protected]> |
| 2798 |
|
| 2799 |
* lib/gauche/test/diff.scm (test*/diff): Renamed from test*-diff. |
| 2800 |
Use unified diff instead of context diff. Handle the case |
| 2801 |
when the result isn't a string. |
| 2802 |
|
| 2803 |
2021-08-05 Shiro Kawai <[email protected]> |
| 2804 |
|
| 2805 |
* lib/util/lcs.scm (lcs-edit-list/unified), |
| 2806 |
lib/text/diff.scm (diff-report/unified): Also added unified diff. |
| 2807 |
|
| 2808 |
2021-08-03 Shiro Kawai <[email protected]> |
| 2809 |
|
| 2810 |
* lib/gauche/cgen/stub.scm (cgen-genstub): Add output-directory |
| 2811 |
keyword argument. |
| 2812 |
|
| 2813 |
2021-08-02 Shiro Kawai <[email protected]> |
| 2814 |
|
| 2815 |
* lib/gauche/test.scm: Save failure report procedure in |
| 2816 |
*discrepancy-list* as well, so that we can report in the same |
| 2817 |
format in the test summary. test-fail++ is enhanced to |
| 2818 |
take the optioanl report procedure; it's optional to keep the |
| 2819 |
backward compatibility. |
| 2820 |
Note the report procedure output is slightly changed. The prefix |
| 2821 |
"ERROR: GOT " and the last newline is printed by the test framework |
| 2822 |
now, so the report procedure only need to display the content. |
| 2823 |
(prim-test): Change the optional argument order. 'hook' argument will |
| 2824 |
be rarely used (it's to adapt other test frameworks to Gauche), so |
| 2825 |
it will make more sense to have it last. |
| 2826 |
|
| 2827 |
2021-08-01 Shiro Kawai <[email protected]> |
| 2828 |
|
| 2829 |
* lib/text/diff.scm (diff-report/context): Added. |
| 2830 |
|
| 2831 |
* lib/util/lcs.scm (lcs-edit-list/context): Add 'context diff' |
| 2832 |
functonality. |
| 2833 |
|
| 2834 |
2021-07-29 Shiro Kawai <[email protected]> |
| 2835 |
|
| 2836 |
* lib/gauche/test/diff.scm (test*-diff): Add a utility that reports |
| 2837 |
diff of expected and actual results. It's a lot easier to spot |
| 2838 |
what went wrong than the default output. |
| 2839 |
|
| 2840 |
2021-07-28 Shiro Kawai <[email protected]> |
| 2841 |
|
| 2842 |
* lib/gauche/test.scm (test-report): Add an optional 'report' arg to |
| 2843 |
prim-test, test and test*, to customize failure reporting. |
| 2844 |
|
| 2845 |
2021-07-27 Shiro Kawai <[email protected]> |
| 2846 |
|
| 2847 |
* lib/gauche/test.scm (test-remove-files, test-with-temporary-directory): |
| 2848 |
Added. test-remove-files is effectively the same as remove-files in |
| 2849 |
file.util, and only for the tests that can't rely on file.util. |
| 2850 |
test-with-temporary-directory is generally useful. |
| 2851 |
|
| 2852 |
2021-07-24 Shiro Kawai <[email protected]> |
| 2853 |
|
| 2854 |
* src/gauche/priv/nativeP.h (SCM_ALIGNOF): Added. |
| 2855 |
|
| 2856 |
2021-07-23 Shiro Kawai <[email protected]> |
| 2857 |
|
| 2858 |
* src/libtype.scm: Change <stub-type> -> <native-type>. It'll be |
| 2859 |
the basis of FFI type system. |
| 2860 |
|
| 2861 |
2021-07-22 Shiro Kawai <[email protected]> |
| 2862 |
|
| 2863 |
* ext/srfi/srfi-19.scm (describe): Let (describe <time>) show in |
| 2864 |
user-friendly time units. If it's a point of time, we show it |
| 2865 |
in the date format, and if it's a duration, we show it in |
| 2866 |
days/hours/minutes/seconds. |
| 2867 |
|
| 2868 |
2021-07-19 Shiro Kawai <[email protected]> |
| 2869 |
|
| 2870 |
* lib/gauche/interactive.scm (describe): Show type info when describing |
| 2871 |
procedures. |
| 2872 |
|
| 2873 |
2021-07-17 Shiro Kawai <[email protected]> |
| 2874 |
|
| 2875 |
* libsrc/gauche/record.scm (define-record-type, make-rtd): Set |
| 2876 |
defined-modules slot of the newly created record type. |
| 2877 |
|
| 2878 |
2021-07-16 Shiro Kawai <[email protected]> |
| 2879 |
|
| 2880 |
* lib/gauche/cgen/stub.scm: Save cproc's type info as a vector |
| 2881 |
(we drop the type-string, for we need module info.) |
| 2882 |
* src/libproc.scm (procedure-type): Returns descriptive type of the |
| 2883 |
procedure. If the procedure is subr, type info is reconstructed |
| 2884 |
from the saved type hint. |
| 2885 |
|
| 2886 |
2021-07-12 Shiro Kawai <[email protected]> |
| 2887 |
|
| 2888 |
* src/libobj.scm (subclass?), src/libtype.scm (subtype?): Move subtype? |
| 2889 |
to libtype.scm, for it needs to handle types other than classes. |
| 2890 |
The existing class-only predicate is renamed to subclass?. It is |
| 2891 |
only supposed to be used internal business; the user can keep using |
| 2892 |
subtype?, which is upper-compatible to subclass?. |
| 2893 |
For now, subtype? handles <stub-type> and <proxy-type>. We'll |
| 2894 |
enhance it to handel <descriptive-type> later. |
| 2895 |
|
| 2896 |
2021-07-10 Shiro Kawai <[email protected]> |
| 2897 |
|
| 2898 |
* Use <double> instead of <real> as a stub-type expecting C double. |
| 2899 |
<real> in Scheme world includes bignums and rationals, and coercing |
| 2900 |
it into C double is not a right thing. Eventually we use <real> |
| 2901 |
type restriction to check the input is Scheme real number, but |
| 2902 |
pass it as ScmObj to the C world. |
| 2903 |
|
| 2904 |
2021-07-08 Shiro Kawai <[email protected]> |
| 2905 |
|
| 2906 |
* src/class.c (Scm_SubclassP): Rename Scm_SubtypeP to Scm_SubclassP; |
| 2907 |
now that we have types other than classes, SubtypeP does no longer |
| 2908 |
do what the name suggests. The Scheme API subtype? will be |
| 2909 |
enhanced to handle types as well. |
| 2910 |
|
| 2911 |
2021-07-06 Shiro Kawai <[email protected]> |
| 2912 |
|
| 2913 |
* lib/srfi-42: Support :range qualifier (srfi-196). |
| 2914 |
|
| 2915 |
2021-07-05 Shiro Kawai <[email protected]> |
| 2916 |
|
| 2917 |
* lib/data/range.scm: Move the implementation of srfi-196 here, for |
| 2918 |
we want to provide more range operations better integrated in |
| 2919 |
Gauche. Srfi-196 re-exports subset of data.range. |
| 2920 |
|
| 2921 |
* lib/srfi-196.scm, test/include/srfi-196-test.scm: Finishing srfi-196. |
| 2922 |
|
| 2923 |
2021-07-04 Shiro Kawai <[email protected]> |
| 2924 |
|
| 2925 |
* src/libnum.scm (<=:<, <:<=): Added open-closed/closed-open range |
| 2926 |
comparator. Tired of writing (and (<= x y) (< y z)) etc. And the |
| 2927 |
symbol is kind of cute (like squid?). |
| 2928 |
|
| 2929 |
2021-06-22 Shiro Kawai <[email protected]> |
| 2930 |
|
| 2931 |
* lib/gauche/cgen/stub.scm (cclass-emit-standard-decls): The type check |
| 2932 |
macro generated by define-cclass now use SCM_ISA instead of |
| 2933 |
SCM_XTYPEP (so it can recognize subclasses). We don't think this |
| 2934 |
affects existing code, but note it here just in case. |
| 2935 |
|
| 2936 |
2021-06-21 Shiro Kawai <[email protected]> |
| 2937 |
|
| 2938 |
* src/gauche.h, src/class.c, src/libtype.scm: Introduced <type> |
| 2939 |
abstract class and reorganize class hierarchies. Now <class>, |
| 2940 |
<descriptive-type>, and <proxy-type> inherits <type>, for they all |
| 2941 |
behave as types. <descriptive-type> (formerly <type-instance-meta>) |
| 2942 |
is no longer a <class>, for they don't define instances in any ways. |
| 2943 |
|
| 2944 |
2021-06-15 Shiro Kawai <[email protected]> |
| 2945 |
|
| 2946 |
* lib/gauche/cgen/literal.scm: Allow class object to appear in the |
| 2947 |
literals of precompiled code. The class object is looked up based |
| 2948 |
on its name and defined-module. The descriptive type instance |
| 2949 |
is reconstructed in the initialization code. |
| 2950 |
|
| 2951 |
* src/compile-t.scm: Start adding compile-time type handling. |
| 2952 |
|
| 2953 |
* src/class.c (init_class): Make bindings of statically initialized |
| 2954 |
classes inlinable, to use type information at compile-time. |
| 2955 |
|
| 2956 |
2021-06-07 Shiro Kawai <[email protected]> |
| 2957 |
|
| 2958 |
* lib/srfi-221.scm: Support srfi-221 |
| 2959 |
|
| 2960 |
* lib/srfi-217.scm: Support srfi-217 |
| 2961 |
|
| 2962 |
2021-06-06 Shiro Kawai <[email protected]> |
| 2963 |
|
| 2964 |
* src/libomega.scm (object-equal? <comparator>): Fixed a long-standing |
| 2965 |
bug - it didn't work if the flavor is 'ordering. |
| 2966 |
|
| 2967 |
2021-06-04 Shiro Kawai <[email protected]> |
| 2968 |
|
| 2969 |
* lib/gauche/treeutil.scm (tree-map->generator/key-range): Added. |
| 2970 |
|
| 2971 |
2021-05-30 Shiro Kawai <[email protected]> |
| 2972 |
|
| 2973 |
* lib/gauche/treeutil.scm (tree-map-seek-right): Added. |
| 2974 |
|
| 2975 |
* libsrc/gauche/dictionary.scm (dict-seek), |
| 2976 |
src/libdict.scm (hash-table-seek), |
| 2977 |
lib/gauche/treeutil.scm (tree-map-seek): Reversed failure and success |
| 2978 |
arguments, to match SRFI's convention (esp. *-search procedures). |
| 2979 |
Technically this is an incompatible change, but those |
| 2980 |
procedures are still unofficial and undocumented. The name '*-seek' |
| 2981 |
is still provisional. |
| 2982 |
|
| 2983 |
2021-05-28 Shiro Kawai <[email protected]> |
| 2984 |
|
| 2985 |
* lib/data/heap.scm (binary-heap-find): Change argument order to |
| 2986 |
align other *-find API (except hash-table-find, which is peculiar). |
| 2987 |
Old API is still recognized by the argument type. |
| 2988 |
|
| 2989 |
2021-05-26 Shiro Kawai <[email protected]> |
| 2990 |
|
| 2991 |
* ext/sparse (sparse-vector-find, sparse-table-find): Added. |
| 2992 |
The API may be reconsidered, for there are some variations |
| 2993 |
in the 'find' and 'any' APIs. |
| 2994 |
|
| 2995 |
2021-05-23 Shiro Kawai <[email protected]> |
| 2996 |
|
| 2997 |
* src/compile.scm (global-call-type): Recognize type constructor expr. |
| 2998 |
For now, we don't do nothing in the compiler and leave it to the |
| 2999 |
runtime, but will switch later. |
| 3000 |
|
| 3001 |
* src/libalpha.scm (%transfer-binding), src/libobj.scm, src/libtype.scm: |
| 3002 |
Replace the kludgy macro 'insert-bindings' with a cproc, for we |
| 3003 |
need to transfer binding flags as well. It is only available |
| 3004 |
during initialization. |
| 3005 |
|
| 3006 |
2021-05-21 Shiro Kawai <[email protected]> |
| 3007 |
|
| 3008 |
* src/class.c, src/gauche.h (SCM_CLASS_METACLASS_CPL): Added to |
| 3009 |
initialize builtin metaclass easier. |
| 3010 |
|
| 3011 |
2021-05-17 Shiro Kawai <[email protected]> |
| 3012 |
|
| 3013 |
* configure.ac, src/gauche.h: Bumped ABI/ABI version to 0.98. |
| 3014 |
We'll tweak binary ABIs in subsequent commits until 0.9.11 release. |
| 3015 |
Don't expect the extensions built with 0.9.10 to work; they must be |
| 3016 |
recompiled. If you're using HEAD with other extensions, |
| 3017 |
stay with 0.9.10, or configure with --with-abi-version=97 |
| 3018 |
|
| 3019 |
* 0.9.11_pre1 |
| 3020 |
|
| 3021 |
2021-05-16 Shiro Kawai <[email protected]> |
| 3022 |
|
| 3023 |
* ext/srfi/srfi-19.scm (date->string): Fix ~V to behave as specified |
| 3024 |
in ISO 8601. https://github.com/shirok/Gauche/issues/763 |
| 3025 |
NB: Srfi is vague about how date-week-number should behave. We may |
| 3026 |
need to change that, too. |
| 3027 |
|
| 3028 |
2021-05-15 Shiro Kawai <[email protected]> |
| 3029 |
|
| 3030 |
* src/compile-1.scm (er-macro-transformer): Experimentally enable |
| 3031 |
identifier macro (set! magic hasn't done yet). The public API is |
| 3032 |
still fluid; keyword arguments for macro seems awkward. We may |
| 3033 |
give a different macro name. |
| 3034 |
|
| 3035 |
2021-05-14 Shiro Kawai <[email protected]> |
| 3036 |
|
| 3037 |
* src/compile-1.scm (pass1), |
| 3038 |
src/libmacbase.scm (call-id-macro-expander), |
| 3039 |
src/gauche/priv/macroP.h (SCM_MACRO_IDENTIFIER): Basis of supporting |
| 3040 |
identifier macro. This is an initial step. The means to create |
| 3041 |
identifier macros will come next. |
| 3042 |
|
| 3043 |
2021-05-13 Shiro Kawai <[email protected]> |
| 3044 |
|
| 3045 |
* src/compile.scm (cenv-lookup): No longer distinguish 'lookup as |
| 3046 |
syntax' and 'lookup as variable'. This doesn't change |
| 3047 |
RnRS valid programs, but programs that depend on previous |
| 3048 |
(non-standard) behavior may be affected. |
| 3049 |
The distinction concerns the resolution of variable that appear |
| 3050 |
at non-head position. In pre-R6RS era, macro keyword can only be |
| 3051 |
valid when it appears at the head of the list. So when we looked |
| 3052 |
up a variable that doesn't appear at the head, we ignored local |
| 3053 |
macro bindings. As an introduction of identifier macros in R6RS |
| 3054 |
that's no longer the case. Although Gauche hasn't supported |
| 3055 |
identifier macros, we see some identifier-related srfis recently |
| 3056 |
and it is a good time to align the semantics. |
| 3057 |
Here's an example that shows the difference: |
| 3058 |
(let ((a 0)) |
| 3059 |
(let-syntax ((a (syntax-rules () ((_ x) '(a x))))) |
| 3060 |
(list a))) ;-> used to (0), now ERROR: invalid macro use |
| 3061 |
|
| 3062 |
2021-05-12 Shiro Kawai <[email protected]> |
| 3063 |
|
| 3064 |
* src/gen-unicode.scm, ext/gauche/unicode.scm: Generate break property |
| 3065 |
symbols in unicode-attr.scm, instead of unicode_attr.h. With the |
| 3066 |
latter, those symbols won't be available until runtime, preventing |
| 3067 |
some compile-time compuation. |
| 3068 |
|
| 3069 |
* src/precomp, lib/gauche/cgen/precomp.scm: Make precomp recognize -I |
| 3070 |
option. This is mainly for 'include' form in the source; when |
| 3071 |
the build is out-of-tree and the source includes generated files, |
| 3072 |
it can be that the location of includer (srcdir) and the location |
| 3073 |
of includee (builddir) differ. |
| 3074 |
|
| 3075 |
2021-05-11 Shiro Kawai <[email protected]> |
| 3076 |
|
| 3077 |
* src/gen-unicode.scm, ext/gauche/unicode.scm: Catch up word break |
| 3078 |
algorithm to Unicode 13. |
| 3079 |
|
| 3080 |
2021-05-04 Shiro Kawai <[email protected]> |
| 3081 |
|
| 3082 |
* ext/windows/windows.scm etc.: Improve windows console handling |
| 3083 |
by @Hamayama https://github.com/shirok/Gauche/pull/756 |
| 3084 |
* src/libsys.scm: Fix Windows home directory handling |
| 3085 |
by @Hamayama https://github.com/shirok/Gauche/pull/757 |
| 3086 |
* ext/charconv/jconv.c: Fix utf-16 surrogate handling |
| 3087 |
by @Hamayama https://github.com/shirok/Gauche/pull/758 |
| 3088 |
|
| 3089 |
* lib/text/unicode/udc.scm: Add 'ExtPict' from emoji-data.txt in |
| 3090 |
grapheme boundary info. |
| 3091 |
* ext/gauche/unicode.scm: Support new grapheme break rules |
| 3092 |
(GB11, GB12, GB13) for Unicode 13. |
| 3093 |
|
| 3094 |
2021-04-24 Shiro Kawai <[email protected]> |
| 3095 |
|
| 3096 |
* src/libobj.scm (%expand-define-class), |
| 3097 |
src/gloc.c (Scm_GlocSupersedableP): We make class definition |
| 3098 |
"inlinable" binding, to ease the compiler to do type-based |
| 3099 |
work. Class redefinition needs to alter this inlinable binding, |
| 3100 |
so we specially allow such rebinding. |
| 3101 |
|
| 3102 |
2021-04-23 Shiro Kawai <[email protected]> |
| 3103 |
|
| 3104 |
* ext/threads/threads.scm (<barrier>): Added. |
| 3105 |
|
| 3106 |
* lib/gauche/vm/debugger.scm (debug-funcall-pre): Attach thread id |
| 3107 |
in funcall debug print as well. |
| 3108 |
|
| 3109 |
2021-04-21 Shiro Kawai <[email protected]> |
| 3110 |
|
| 3111 |
* lib/srfi-120.scm: Added. |
| 3112 |
|
| 3113 |
2021-04-20 Shiro Kawai <[email protected]> |
| 3114 |
|
| 3115 |
* lib/srfi-219.scm: Support srfi-219. |
| 3116 |
|
| 3117 |
* ext/threads/threads.scm (<semaphore>. <latch>): Added. |
| 3118 |
|
| 3119 |
2021-04-18 Shiro Kawai <[email protected]> |
| 3120 |
|
| 3121 |
* lib/gauche/lazy.scm (coroutine->lseq): Added, for the symmetry |
| 3122 |
of coroutine->cseq. |
| 3123 |
|
| 3124 |
* ext/data/queue.scm: Add 'close' operation in mtqueue. This is |
| 3125 |
useful in producer-consumer concurrency, when the producer side |
| 3126 |
wants to tell consumer to stop the service. If we use a separate |
| 3127 |
flag, we'd need to protect the flag and the queue with another mutex. |
| 3128 |
|
| 3129 |
2021-04-16 Shiro Kawai <[email protected]> |
| 3130 |
|
| 3131 |
* libsrc/scheme/charset.scm : moved from lib/srfi-14.scm. |
| 3132 |
|
| 3133 |
* src/main.c, src/libomega.scm: Make line-editing mode on by default. |
| 3134 |
Users can turn it off by GAUCHE_NO_READ_EDIT environment variable. |
| 3135 |
|
| 3136 |
2021-04-15 Shiro Kawai <[email protected]> |
| 3137 |
|
| 3138 |
* lib/control/scheduler.scm: Added. |
| 3139 |
|
| 3140 |
* lib/data/priority-map.scm (priority-map-{min|max}): Fix: It should |
| 3141 |
pick a single key, even when there are more than one keys with |
| 3142 |
the same value. Manual entry is correct. Tests got it wrong. |
| 3143 |
(priority-map-{min|all}-all): Added, in case user wants all keys. |
| 3144 |
|
| 3145 |
* ext/srfi/srfi-19.scm (make-time, make-date): Check the range of |
| 3146 |
slot values. Giving out-of-range values inadvertently would result |
| 3147 |
hard-to-track bugs. |
| 3148 |
|
| 3149 |
2021-04-08 Shiro Kawai <[email protected]> |
| 3150 |
|
| 3151 |
* src/compile.scm (macroexpand-all, global-call-type), |
| 3152 |
src/gauche/vm.h (SCM_COMPILE_NOINLINE_INLINER): Allow macroexpand-all |
| 3153 |
to expand hybrid macro as well. We still need to suppress expansion |
| 3154 |
of general inliners, for they can insert $asm node, which is not |
| 3155 |
useful as the output of macro expansion. This is a kludge, due to |
| 3156 |
the current way that hybrid macro keeps macro xformer in the |
| 3157 |
inliner slot. If we track macro binding and runtime binding |
| 3158 |
separately, NOINLINE_GLOBALS flag may suffice. We may adopt |
| 3159 |
that solution in future, dropping NOINLINE_INLINER flag. |
| 3160 |
|
| 3161 |
2021-04-04 Shiro Kawai <[email protected]> |
| 3162 |
|
| 3163 |
* src/vminsn.scm (PUSH-HANDLERS): Change it to take one parameter, |
| 3164 |
an argument list for before/after procedure. This will allow |
| 3165 |
the compiler to lift those procedures. |
| 3166 |
* lib/gauche/vm/insn-core.scm: 0.9.10 compiler tries to generate |
| 3167 |
PUSH-HANDLERS without parameters, so we need a transient hack |
| 3168 |
to convert it to PUSH-HANDLERS(0). |
| 3169 |
|
| 3170 |
* src/vm.c (Scm_VMDynamicWindC): Deprecate it. It has never been |
| 3171 |
used and not so useful anyway. |
| 3172 |
|
| 3173 |
2021-03-30 Shiro Kawai <[email protected]> |
| 3174 |
|
| 3175 |
* doc/modutil.texi: Document control.cseq. Haven't used heavily, but |
| 3176 |
probably it's useful enough. |
| 3177 |
|
| 3178 |
2021-03-29 Shiro Kawai <[email protected]> |
| 3179 |
|
| 3180 |
* ext/bcrypt: Rename blowfish functions so that it won't conflict |
| 3181 |
with system's libcrypt function. |
| 3182 |
Generallly we *should* use system's functions when available, but |
| 3183 |
we had a incompatibility case. Besides, system's crypt function |
| 3184 |
is available through sys-crypt. |
| 3185 |
|
| 3186 |
2021-03-28 Shiro Kawai <[email protected]> |
| 3187 |
|
| 3188 |
* src/module.c (Scm_ModuleExports): Include symbols exported from |
| 3189 |
the parent modules. It is probably accidental that we didn't included |
| 3190 |
them. |
| 3191 |
|
| 3192 |
2021-03-27 Shiro Kawai <[email protected]> |
| 3193 |
|
| 3194 |
* src/compile-4.scm (pass4/scan): Fix an issue that some closures |
| 3195 |
weren't lifted when they should've been. |
| 3196 |
As a side effect, we now reject non-internal define that doesn't |
| 3197 |
appear in the toplevel; e.g. (when (...) (define ...) ...). |
| 3198 |
Some cases of this form were tolerated previously. The code that |
| 3199 |
depends on this behavior will stop working. |
| 3200 |
|
| 3201 |
2021-03-26 Shiro Kawai <[email protected]> |
| 3202 |
|
| 3203 |
* lib/gauche/procedure.scm (disasm): Force an object in the closed |
| 3204 |
environment before checking if it is a lifted closure. Such |
| 3205 |
'delayed' closure can be seen in the ones created with parser.peg. |
| 3206 |
|
| 3207 |
* lib/contro/cseq.scm: Added experimentally. |
| 3208 |
|
| 3209 |
2021-03-25 Shiro Kawai <[email protected]> |
| 3210 |
|
| 3211 |
* src/compile-1.scm (pass1/mark-closure-inlinable!): We didn't set |
| 3212 |
inlinable flag in the dummy binding, preventing inlinable procedure |
| 3213 |
to be expanded within the expressions in the same compiler unit. |
| 3214 |
This is particularly hurting performance of the precompiled modules. |
| 3215 |
After the fix and recompilation, for example, parsing char.c of |
| 3216 |
with PEG get 30% speed improvement, because the small inlinable |
| 3217 |
procedures such as parse-success? got inlined. |
| 3218 |
Fixing it revealed another bug that sets incorrect inliner procedure |
| 3219 |
to the dummy proc. Actually we don't need a special inliner |
| 3220 |
procedure at all--we can just set the packed iform. |
| 3221 |
|
| 3222 |
* src/module.c, src/glob.c: Add SCM_BINDING_DUMMY flag, that indicates |
| 3223 |
the inlinable binding is for the dummy proc. Without this, the |
| 3224 |
runtime can't distinguish legit redefinition of inlinable procedures |
| 3225 |
(replacing dummy proc during compilation, and the proper proc |
| 3226 |
inserted at the runtime). |
| 3227 |
|
| 3228 |
2021-03-23 Shiro Kawai <[email protected]> |
| 3229 |
|
| 3230 |
* ext/peg/peg.scm ($binding): Allow fail procedure to yield |
| 3231 |
non-recoverable failure. The interface is a bit awkward (optional |
| 3232 |
tag argument) so we may reconsider it. |
| 3233 |
|
| 3234 |
2021-03-14 Shiro Kawai <[email protected]> |
| 3235 |
|
| 3236 |
* lib/gauche/configure.scm (cf-prog-cxx): This hasn't been working |
| 3237 |
after we changed cf-arg-var. Now cf-arg-var sets "" if the |
| 3238 |
environment variable isn't defined, and other parts of the code |
| 3239 |
thinks it has value. |
| 3240 |
|
| 3241 |
2021-03-13 Shiro Kawai <[email protected]> |
| 3242 |
|
| 3243 |
* src/port.c, src/portapi.c, src/libio.scm: Revised port attribute |
| 3244 |
API. This is technically an incompatible change, but port atttribute |
| 3245 |
API has never been documented, so it should be OK. |
| 3246 |
See https://github.com/shirok/Gauche/issues/753 for the issue |
| 3247 |
initiated this change. |
| 3248 |
- We don't lock the port's main lock while accessing port attr. |
| 3249 |
Rather, we use a separate lock. Port attr can be accessed from |
| 3250 |
a thread other than the one reading from/writing to the port. |
| 3251 |
This eliminates *Unsafe version of C API. |
| 3252 |
- We dropped procedural port attributes. If we call back to the |
| 3253 |
Scheme, lock management gets complicated. |
| 3254 |
- We dropped port-attribute-create API. It is only needed for |
| 3255 |
procedural attributes. |
| 3256 |
|
| 3257 |
* ext/peg/peg.scm ($raise, $cut): Experimentally add 'early exit' |
| 3258 |
means. A new failure type, fail-error, prevents parsers from |
| 3259 |
backtracking. This helps producing better error messages. |
| 3260 |
See Andre Murbach Maidl, et al., "Error Reporting in Parsing |
| 3261 |
Expression Grammers", https://arxiv.org/abs/1405.6646 |
| 3262 |
|
| 3263 |
2021-03-11 Shiro Kawai <[email protected]> |
| 3264 |
|
| 3265 |
* ext/peg/peg.scm (<parse-error>): Add 'rest' slot to keep the rest |
| 3266 |
of input stream. It turned out that just keeping offending token |
| 3267 |
isn't enough. The 'token' slot is now redundant, but we keep it |
| 3268 |
for the backward compatibility. |
| 3269 |
|
| 3270 |
2021-03-09 Shiro Kawai <[email protected]> |
| 3271 |
|
| 3272 |
* ext/peg/peg.scm ($one-of, $.): Fixed symbol matching. We've doing |
| 3273 |
something different. ($. 'foo) should match the symbol itself |
| 3274 |
in the token stream. |
| 3275 |
($symbol): Moved to parser.peg.deprecated. It was never documented, |
| 3276 |
and the name is ambiguous, for it looks like it matches input symbol |
| 3277 |
token. |
| 3278 |
($list, $list*): Added. |
| 3279 |
|
| 3280 |
2021-03-06 Shiro Kawai <[email protected]> |
| 3281 |
|
| 3282 |
* libsrc/data/ring-buffer.scm: Rename 'flat-vector' to 'xvector', |
| 3283 |
and rewrote them using ring-buffer->xsubvectors. |
| 3284 |
|
| 3285 |
2021-03-03 Shiro Kawai <[email protected]> |
| 3286 |
|
| 3287 |
* lib/rfc/uuid.scm (uuid-random-source): Make this a parameter. |
| 3288 |
Deprecate uuid-random-source-set!, for it has global effect. |
| 3289 |
|
| 3290 |
2021-03-02 Shiro Kawai <[email protected]> |
| 3291 |
|
| 3292 |
* libsrc/data/ring-buffer.scm: Add ring-buffer->flat-vector. |
| 3293 |
Also make-ring-buffer accepts initial indexes. It allows to |
| 3294 |
create a pre-filled ring-buffer. |
| 3295 |
|
| 3296 |
2021-02-24 Shiro Kawai <[email protected]> |
| 3297 |
|
| 3298 |
* src/libnum.scm (degrees->radians, radians->degrees): Added. |
| 3299 |
https://github.com/shirok/Gauche/issues/749 |
| 3300 |
|
| 3301 |
2021-02-22 Shiro Kawai <[email protected]> |
| 3302 |
|
| 3303 |
* lib/srfi-189.scm (either-guard): Fixed the recognized syntax of |
| 3304 |
either-guard. It has been changed during draft period but hasn't |
| 3305 |
been reflected. |
| 3306 |
|
| 3307 |
2021-02-19 Shiro Kawai <[email protected]> |
| 3308 |
|
| 3309 |
* src/port.c: Ensure to compute port address hash as unsigned. |
| 3310 |
Fix from@Hamaya https://github.com/shirok/Gauche/pull/748 |
| 3311 |
This caused crash on Windows 64bit with recent MSYS toolchain. |
| 3312 |
|
| 3313 |
2021-02-16 Shiro Kawai <[email protected]> |
| 3314 |
|
| 3315 |
* doc/Makefile.in, doc/makedoc.scm: New target 'make htmls-head' |
| 3316 |
generates html docs for development HEAD: The header shows |
| 3317 |
"Development HEAD" instead of Gauche version. It is generated |
| 3318 |
in a separate directory, gauche-ref[ej]-head, from the normal |
| 3319 |
destination. It is maily to publis the cutting-edge documentation |
| 3320 |
on the web. |
| 3321 |
|
| 3322 |
2021-02-09 Shiro Kawai <[email protected]> |
| 3323 |
|
| 3324 |
* src/native.c, src/libnative.scm, ext/native: Experimenting FFI. |
| 3325 |
Currently only started to support amd64 ABI, with limited argument |
| 3326 |
types. The API isn't fixed at all. ext/native is just for |
| 3327 |
testing, not the real extension module. |
| 3328 |
|
| 3329 |
* lib/gauche/cgen/literal.scm (<cgen-scheme-uvector>): Bug fix: |
| 3330 |
Needed 'static' in uvector literal content definition, otherwise |
| 3331 |
it caused name conflict if more than one DSOs had uvector literals. |
| 3332 |
|
| 3333 |
2021-02-05 Shiro Kawai <[email protected]> |
| 3334 |
|
| 3335 |
* src/libeval.scm (dynamic-load): Change the default value of |
| 3336 |
:init-function to #t, indicating using the default name derived |
| 3337 |
from DSO name. We use :init-function #f to indicate not to call |
| 3338 |
init function at all. This makes more sense than the previous |
| 3339 |
implicit convention that #f indicates default name. |
| 3340 |
The value #f was never documented, and previously there's no |
| 3341 |
reason that user directly use dynamic-load, so we presume |
| 3342 |
this won't break existing code. |
| 3343 |
|
| 3344 |
(dlobj-get-entry-address): Expose Scm_DLOGetEntryAddress in |
| 3345 |
gauche module. When we support ffi, there'll be no reason to |
| 3346 |
hide this procedure. (We might want a separate namespace, |
| 3347 |
e.g. gauche.ffi, just to indicate this is for those who know |
| 3348 |
what they're doing, though. Let's see.) |
| 3349 |
|
| 3350 |
2021-02-03 Shiro Kawai <[email protected]> |
| 3351 |
|
| 3352 |
* src/load.c (Scm_DynLoad): Make it return #<dlobj>. Allow #t as |
| 3353 |
initfn argument _not_ to call initialization function. Preparation |
| 3354 |
for ffi. |
| 3355 |
|
| 3356 |
2021-01-31 Shiro Kawai <[email protected]> |
| 3357 |
|
| 3358 |
* lib/control/future.scm: Added. This is a provisional impl. |
| 3359 |
We'd like to use implicit thread pool to avoid thread creation |
| 3360 |
overhead. |
| 3361 |
|
| 3362 |
* src/vector.c, src/libvec.scm (make-view-uvector): Provides the means |
| 3363 |
to access memory region via uvector. |
| 3364 |
|
| 3365 |
2021-01-30 Shiro Kawai <[email protected]> |
| 3366 |
|
| 3367 |
* src/system.c, src/libsys.scm (sys-mmap): Added mmap interface. |
| 3368 |
|
| 3369 |
2021-01-29 Shiro Kawai <[email protected]> |
| 3370 |
|
| 3371 |
* lib/gauche/cgen/type.scm (cgen-box-tail-expr): Separate box-expr |
| 3372 |
and box-tail-expr, the latter to be used when boxed value will |
| 3373 |
immediately be returned to the VM. Only <real> type needs the |
| 3374 |
distinction, to utilize VM flonum registers. NB: If there's a code |
| 3375 |
that directly accesses <cgen-type>'boxer (which it shouldn't do), |
| 3376 |
this change may slow it down, for boxer of <real> is now |
| 3377 |
Scm_MakeFlonum. It should use cgen-box-tail-expr. |
| 3378 |
(<cgen-type>): Change slot name of c-predicate, unboxer, boxer and |
| 3379 |
maybe, to make it private. Those info should be accessed via |
| 3380 |
cgen-pred-expr, cgen-unbox-expr, cgen-box[-tail]-expr, and |
| 3381 |
cgen-type-maybe?. |
| 3382 |
|
| 3383 |
2021-01-28 Shiro Kawai <[email protected]> |
| 3384 |
|
| 3385 |
* doc/modgauche.texi: Add doc of gauche.mop.instance-pool; make it |
| 3386 |
official. |
| 3387 |
|
| 3388 |
2021-01-23 Shiro Kawai <[email protected]> |
| 3389 |
|
| 3390 |
* lib/gauche/interactive.scm (describe): Show source info for macro |
| 3391 |
description if available. |
| 3392 |
|
| 3393 |
2021-01-22 Shiro Kawai <[email protected]> |
| 3394 |
|
| 3395 |
* src/macro.c (Scm_MakeMacro): Switch macro internal fields; making |
| 3396 |
'source' field to more general alist, and ditch 'describer' field |
| 3397 |
(One time I had a plan to use it for better macro debugging, but |
| 3398 |
now we have macro tracer and I'm no longer sure what I had in mind |
| 3399 |
then). We have flags field instead, but reserved for future use. |
| 3400 |
Technically this is API change, but noboty external should be |
| 3401 |
affected. |
| 3402 |
|
| 3403 |
2021-01-21 Shiro Kawai <[email protected]> |
| 3404 |
|
| 3405 |
* src/libcode.scm (<compiled-code>): Removed obsoleted 'info' and |
| 3406 |
'arg-info' slots from the defintiion. They're now |
| 3407 |
'debug-info' and 'signature-info'. We switched so long ago |
| 3408 |
so we supposed it's about time. |
| 3409 |
* src/libstr.scm, src/string.c: Removed string pointer code. |
| 3410 |
|
| 3411 |
2021-01-19 Shiro Kawai <[email protected]> |
| 3412 |
|
| 3413 |
* src/libalpha.scm (error): Initialize message-prefix and message-args |
| 3414 |
when it is invoked as (error <error> args ...). |
| 3415 |
|
| 3416 |
2021-01-16 Shiro Kawai <[email protected]> |
| 3417 |
|
| 3418 |
* src/vm.c (Scm_VMThrowException): Changed the semantics of |
| 3419 |
with-exception-handler from srfi-18 to srfi-34/R7RS. Srfi-18's |
| 3420 |
semantics aims at minimalism and the user should be responsible |
| 3421 |
to avoid infinite recursion of the handler; unfortunately, it seems |
| 3422 |
that users casually use it without being aware of the pitfall. |
| 3423 |
Almost all srfi-18 code should work with srfi-34 semantics. |
| 3424 |
A contrived counterexample may be to recurse into the current |
| 3425 |
exception handler via 'raise', but the same can be achieved more |
| 3426 |
easily and explicitly. |
| 3427 |
|
| 3428 |
2021-01-10 Shiro Kawai <[email protected]> |
| 3429 |
|
| 3430 |
* lib/gauche/lazy.scm (<sequence-position>): OK, let's make it a |
| 3431 |
record to give it a solid interface and keep the option of future |
| 3432 |
extension without clients depending on internal stuff too much. |
| 3433 |
One concern is a performance, but we should solve it with better |
| 3434 |
optimization of record types. |
| 3435 |
At this moment, we don't expose constructor of the position, though; |
| 3436 |
it can still be constructed with 'make'. |
| 3437 |
|
| 3438 |
2021-01-09 Shiro Kawai <[email protected]> |
| 3439 |
|
| 3440 |
* lib/gauche/lazy.scm (lseq->list): Added. |
| 3441 |
|
| 3442 |
2021-01-08 Shiro Kawai <[email protected]> |
| 3443 |
|
| 3444 |
* lib/gauche/lazy.scm (port->char-lseq/position): Generating lseq |
| 3445 |
with input position carried in pair attributes. |
| 3446 |
|
| 3447 |
|
| 3448 |
2021-01-07 Shiro Kawai <[email protected]> |
| 3449 |
|
| 3450 |
* src/libmacro.scm (lcons): Experimental: Allow optional attrs argument |
| 3451 |
to specify pair attributes. |
| 3452 |
|
| 3453 |
* src/liblazy.scm, src/lazy.c (Scm_LazyCons): Further simplify |
| 3454 |
lazy pair protocol. Basically, we have two kinds of lazy pairs-- |
| 3455 |
one that the generator yields next element, and the one that the |
| 3456 |
generator yields next pair. We can separeate two by the constructor, |
| 3457 |
instead of fiddling the return value(s) of the generator. |
| 3458 |
For the Scheme world, the former is created by generator->lseq and |
| 3459 |
the latter is created by lcons. How we distinguish two kinds |
| 3460 |
internally is hidden in lazy.c. |
| 3461 |
|
| 3462 |
2021-01-06 Shiro Kawai <[email protected]> |
| 3463 |
|
| 3464 |
* src/lazy.c: Experimentally allow the generator to generate |
| 3465 |
pair attributes to be attached after a lazy pair is forced. |
| 3466 |
Pretty kludgy, so we keep it unofficial and see how it is useful. |
| 3467 |
ABI INCOMPATIBLE CHANGE: Scm_MakeLazyPair now takes the third |
| 3468 |
argument. I presume nobody is calling such obscture API directly. |
| 3469 |
|
| 3470 |
Also we changed internal protocol of generator output so that |
| 3471 |
eliminated Scm_DecomposeLazyPair; it is also technially an |
| 3472 |
incompatible ABI change, though I also presume nobody is directly |
| 3473 |
calling this. |
| 3474 |
|
| 3475 |
2021-01-05 Shiro Kawai <[email protected]> |
| 3476 |
|
| 3477 |
* src/liblist.scm: Make extended pairs public. Add optional arg |
| 3478 |
to extended-cons to specify initial attributes. |
| 3479 |
|
| 3480 |
* src/lazy.c: Make a lazy pair turn into an extended pair |
| 3481 |
(it happens to be the case in older versions, but no longer in |
| 3482 |
0.9.10 when we changed extended pair layout. Now it is the case |
| 3483 |
again.) |
| 3484 |
|
| 3485 |
2020-12-26 Shiro Kawai <[email protected]> |
| 3486 |
|
| 3487 |
* lib/gauche/typteutil.scm: Add experimentally. Abstract type |
| 3488 |
utitilies for type checking. |
| 3489 |
|
| 3490 |
2020-12-23 Shiro Kawai <[email protected]> |
| 3491 |
|
| 3492 |
* src/libsys.scm (sys-ctermid): Fix a bug accessing local memory |
| 3493 |
out of its extent. https://github.com/shirok/Gauche/issues/740 |
| 3494 |
|
| 3495 |
2020-12-14 Shiro Kawai <[email protected]> |
| 3496 |
|
| 3497 |
* lib/gauche/version-alist.scm (version-alist): Make it autoloaded |
| 3498 |
code, since build.configure info needs to load gauche.config and |
| 3499 |
gauche.process. |
| 3500 |
* src/main.c: Process version info output after -ftest path setup, |
| 3501 |
for we need to be able to load gauche.version-alist. |
| 3502 |
|
| 3503 |
2020-12-10 Shiro Kawai <[email protected]> |
| 3504 |
|
| 3505 |
* Release 0.9.10 |
| 3506 |
|
| 3507 |
* lib/gauche/configure.scm: Define more descriptive alias for feature |
| 3508 |
check predicate, e.g. cf-check-header == cf-header-available?. |
| 3509 |
It is so confusing that cf-check-header is a predicate while |
| 3510 |
cf-check-headers is for side-effecting procedure. |
| 3511 |
|
| 3512 |
2020-12-03 Shiro Kawai <[email protected]> |
| 3513 |
|
| 3514 |
* lib/srfi-181.scm: Properly support all eol-styles. |
| 3515 |
|
| 3516 |
2020-12-01 Shiro Kawai <[email protected]> |
| 3517 |
|
| 3518 |
* ext/charconv: Support iso8859-N (N = [2-11,13-16]) |
| 3519 |
|
| 3520 |
2020-11-27 Shiro Kawai <[email protected]> |
| 3521 |
|
| 3522 |
* ext/chaconv/jconv.c: Support utf-16 & iso8859-1. |
| 3523 |
|
| 3524 |
2020-11-26 Shiro Kawai <[email protected]> |
| 3525 |
|
| 3526 |
* libsrc/file/util.scm (file->bytevector): Added. |
| 3527 |
|
| 3528 |
2020-11-23 Shiro Kawai <[email protected]> |
| 3529 |
|
| 3530 |
* lib/gauche/redefutil.scm (update-direct-subclass!): Do not recover |
| 3531 |
direct-subclasses link of the parent of redefined class. |
| 3532 |
|
| 3533 |
Suppose we have a class <foo> and its subclass <bar>. When we |
| 3534 |
redefine <foo>, <bar> is also redefined since its slots and/or |
| 3535 |
CPL may change. We want to keep both parent-child relationship of |
| 3536 |
old <foo> - old <bar>, and new <foo> - new <bar>, for it may matter |
| 3537 |
during transition (including instance update, which occur the |
| 3538 |
later timing). However, if <bar> has more than one parents, say |
| 3539 |
<foo> and <baz>, the old code makes <baz> refer to both old <bar> |
| 3540 |
and new <bar>, causing issues. |
| 3541 |
|
| 3542 |
Since direct-subclasses link isn't used much except class |
| 3543 |
redefinition, we make a choice that redefined class won't appear |
| 3544 |
in the direc-subclasses list (the redefined class still keeps |
| 3545 |
direct-supers link). |
| 3546 |
|
| 3547 |
http://chaton.practical-scheme.net/gauche/a/2020/11/22#entry-5fbab148-42ea5 |
| 3548 |
|
| 3549 |
2020-11-22 Shiro Kawai <[email protected]> |
| 3550 |
|
| 3551 |
* src/libexc.scm (condition-message): Added. |
| 3552 |
|
| 3553 |
2020-11-20 Shiro Kawai <[email protected]> |
| 3554 |
|
| 3555 |
* libsrc/text/gap-buffer.scm (gap-buffer-replace!): Renamed from |
| 3556 |
gap-buffer-change!, for the consistency and clarity. |
| 3557 |
|
| 3558 |
2020-11-19 Shiro Kawai <[email protected]> |
| 3559 |
|
| 3560 |
* ext/charconv/jconv.c: Drop euc-jp pivoting. To widen supported |
| 3561 |
CESes, fixing the pivot encoding is cumbersome. Instead, each |
| 3562 |
pair of {in-code, out-code} can choose suitable intermediate |
| 3563 |
encoding if necessary. |
| 3564 |
|
| 3565 |
2020-11-16 Shiro Kawai <[email protected]> |
| 3566 |
|
| 3567 |
* src/libobj.scm (%expand-define-class): Fix hygienic keyword match |
| 3568 |
issue. If define-class is generated by a macro, keywords such as |
| 3569 |
:metaclass may be renamed. |
| 3570 |
This fix is provisional---we simply compare identifier's name. |
| 3571 |
Eventually we should compare them hygienically. |
| 3572 |
|
| 3573 |
2020-11-11 Shiro Kawai <[email protected]> |
| 3574 |
|
| 3575 |
* lib/srfi-181.scm (i/o-decoding-error?, i/o-encoding-error?): |
| 3576 |
Use built-in <io-decoding-error> and <io-encoding-error>, which |
| 3577 |
gauche.characonv raises. |
| 3578 |
NB: We don't have i/o-encoding-error-char support yet. |
| 3579 |
|
| 3580 |
* src/error.c (Scm_PortError): Set PORT_ERROR_OCCURRED flag of the |
| 3581 |
port within this procedure. If a port raised an error and left open |
| 3582 |
with an inconsitent state, Scm_Cleanup tries to flush it when the |
| 3583 |
process exit and bad things can happen. |
| 3584 |
(Scm_PortErrorWithAux): Enhanced ScmPortError condition to allow |
| 3585 |
keeping extra 'auxinfo', which should be an alist. Its content |
| 3586 |
depends on the actual class of the port error. |
| 3587 |
|
| 3588 |
2020-11-09 Shiro Kawai <[email protected]> |
| 3589 |
|
| 3590 |
* lib/srfi-181.scm (transcoded-port, bytevector->string) |
| 3591 |
(string->bytevector): Reimplement on top of gauche.charconv. |
| 3592 |
|
| 3593 |
2020-11-07 Shiro Kawai <[email protected]> |
| 3594 |
|
| 3595 |
* src/portapi.c (Scm_GetPortPosition), ext/vport/vport.c: |
| 3596 |
Support getpos/setpos slots. It allows srfi-181 get-position/ |
| 3597 |
set-position! to be directly mapped to vport slots. |
| 3598 |
|
| 3599 |
* src/string.c (build_index_array): Fixed another bug that the |
| 3600 |
index array is allocated too short. |
| 3601 |
Also changed to store the index array size in the second word of |
| 3602 |
the index array. By doing so we can check the accidental out-of-bound |
| 3603 |
access. |
| 3604 |
|
| 3605 |
2020-11-06 Shiro Kawai <[email protected]> |
| 3606 |
|
| 3607 |
* src/string.c (build_index_array): Fix: The signature byte is supposed |
| 3608 |
to be repeated in the first element of the vector, so it can work |
| 3609 |
for any endianness, but it didn't. |
| 3610 |
|
| 3611 |
* src/liblist.scm (length<=?): Fix integer overflow bug. Also, |
| 3612 |
if list is circular we treat it infinitely long. |
| 3613 |
|
| 3614 |
2020-11-05 Shiro Kawai <[email protected]> |
| 3615 |
|
| 3616 |
* Document identity and constantly. |
| 3617 |
|
| 3618 |
* src/compile-1.scm (pass1/extended-lambda-body): Fix ((:key var) init) |
| 3619 |
pattern handling when GAUCHE_KEYWORD_DISJOINT=1. |
| 3620 |
|
| 3621 |
* src/libmacro.scm (%let-keywords-rec): Compare input as bare symbol |
| 3622 |
against potential keywords. This may not be ideal, for hygiene is |
| 3623 |
not preserved. Since keywords are from gauche.keyword module, |
| 3624 |
we should be able to compare it hygienically. |
| 3625 |
|
| 3626 |
* src/libmacbase.scm (unwrap-syntax-1): Added. |
| 3627 |
|
| 3628 |
2020-10-30 Shiro Kawai <[email protected]> |
| 3629 |
|
| 3630 |
* ext/tls/tls.ac, tools/tls: Adding configure option to build mbedtls |
| 3631 |
inside the build tree. |
| 3632 |
|
| 3633 |
2020-10-29 Shiro Kawai <[email protected]> |
| 3634 |
|
| 3635 |
* ext/windows/windows.stub (sys-get-disk-free-space-ex): Added. |
| 3636 |
|
| 3637 |
* src/libsys.scm, ext/fcntl/fcntl.scm: Move statvfs stuff to |
| 3638 |
gauche.fcntl, for it is less frequently used. |
| 3639 |
|
| 3640 |
2020-10-28 Shiro Kawai <[email protected]> |
| 3641 |
|
| 3642 |
* lib/srfi-170.scm: Catch up with the final srfi. |
| 3643 |
|
| 3644 |
* src/libsys.scm: Add <sys-statvfs> class and sys-statvfs(2) interface. |
| 3645 |
|
| 3646 |
2020-10-20 Shiro Kawai <[email protected]> |
| 3647 |
|
| 3648 |
* libsrc/gauche/process.scm (process-shutdown): Rename from |
| 3649 |
process-terminate-gracefully. It's shorter, more appripriate, |
| 3650 |
and in sync with (connection-shutdown <process-connection>). |
| 3651 |
|
| 3652 |
2020-10-19 Shiro Kawai <[email protected]> |
| 3653 |
|
| 3654 |
* lib/gauche/package/util.scm (copy-templates): Fill authors name |
| 3655 |
of the package.scm from git config output, if available. |
| 3656 |
|
| 3657 |
* libsrc/gauche/process.scm (run-process): Allow :merge to :error |
| 3658 |
keyword arg, for the shorthand of :redirect ((>& 2 1)). |
| 3659 |
This is especially useful for higher-level utilities such as |
| 3660 |
process-output->string, in which you can get error output in |
| 3661 |
the result as well. |
| 3662 |
|
| 3663 |
2020-10-18 Shiro Kawai <[email protected]> |
| 3664 |
|
| 3665 |
* libsrc/gauche/process.scm (process-wait/poll) |
| 3666 |
(process-terminate-gracefuly): Added. |
| 3667 |
|
| 3668 |
2020-10-14 Shiro Kawai <[email protected]> |
| 3669 |
|
| 3670 |
* src/libeval.scm (gauche): Include thread subsystem and tls subsystem |
| 3671 |
info in version-alist. |
| 3672 |
|
| 3673 |
2020-10-06 Shiro Kawai <[email protected]> |
| 3674 |
|
| 3675 |
* src/libio.scm (open-input-fd-port, open-output-fd-port): There was a |
| 3676 |
bug that owner? argument logic is reversed. It was introduced when |
| 3677 |
we add support of 'dup a month ago. |
| 3678 |
|
| 3679 |
2020-10-02 Shiro Kawai <[email protected]> |
| 3680 |
|
| 3681 |
* ext/tls/tls/get-cacert: Provide a script to download cacert.pem from |
| 3682 |
curl official site and install it into Gauche library directory. |
| 3683 |
This is for the users who can't somehow install |
| 3684 |
ca-certificates package or openssl. |
| 3685 |
* ext/tls: The 'system' ca-bundle search include the cacert.pem |
| 3686 |
downloaded by get-cacert. |
| 3687 |
|
| 3688 |
2020-10-01 Shiro Kawai <[email protected]> |
| 3689 |
|
| 3690 |
* ext/tls/tls.ac: Make the default of --with-ca-bundle to "check". |
| 3691 |
It checks the system ca-bundle availability at initialization and |
| 3692 |
set tls-ca-bundle-path to either 'system or #f. |
| 3693 |
This allows the use to explicitly disable default ca bundle path |
| 3694 |
by saying --with-ca-bundle=no. |
| 3695 |
|
| 3696 |
2020-09-30 Shiro Kawai <[email protected]> |
| 3697 |
|
| 3698 |
* ext/tls/tls.c: Changed handling of default tls-ca-bundle-path |
| 3699 |
and default-tls-class. If we find system ca bundle in initialization, |
| 3700 |
we favor <mbed-tls>. |
| 3701 |
|
| 3702 |
2020-09-27 Shiro Kawai <[email protected]> |
| 3703 |
|
| 3704 |
* src/core.c: Add a secret feature to show initialization progress |
| 3705 |
if env var GAUCHE_DEBUG_INITIALIZATION is set. This helps when |
| 3706 |
things got derailed during core initialization. |
| 3707 |
|
| 3708 |
* src/module.c (Scm_FindModule), lib/gauche/cgen/precomp.scm: |
| 3709 |
Distinguish a module created explicitly (by define-module |
| 3710 |
or find-module) and implicitly (via identifier literals). |
| 3711 |
If a module is created only because of identifiers embedded |
| 3712 |
in macro output, it shouldn't appear in (all-modules). |
| 3713 |
|
| 3714 |
2020-09-18 Shiro Kawai <[email protected]> |
| 3715 |
|
| 3716 |
* src/error.c: Add <io-invalid-position-error> as a subclass of |
| 3717 |
<port-error>. |
| 3718 |
|
| 3719 |
2020-09-15 Shiro Kawai <[email protected]> |
| 3720 |
|
| 3721 |
* ext/tls: Refactor load_system_cert(). Try known ca-bundle.crt path |
| 3722 |
for 'system' ca-bundle on non-Windows platforms. |
| 3723 |
Cf. https://github.com/shirok/Gauche/issues/365 |
| 3724 |
|
| 3725 |
2020-09-14 Shiro Kawai <[email protected]> |
| 3726 |
|
| 3727 |
* src/box.c: Added srfi-195 multi-valued box support. We use separate |
| 3728 |
type for mv-box, for we want to keep single-value box lightweight. |
| 3729 |
|
| 3730 |
* src/vm.c (Scm_ValuesFromArray): Added. |
| 3731 |
|
| 3732 |
2020-09-13 Shiro Kawai <[email protected]> |
| 3733 |
|
| 3734 |
* src/gauche/port.h (ScmPort): INCOMPATIBLE CHANGE: Hide most of |
| 3735 |
ScmPort guts from the user. User code that directly accesses |
| 3736 |
fields of ScmPort needs to be changed to use the public access |
| 3737 |
functions. |
| 3738 |
The actual struct definition is moved to src/gauche/priv/portP.h. |
| 3739 |
This change is to give flexibility in the future port enhancement. |
| 3740 |
|
| 3741 |
2020-09-11 Shiro Kawai <[email protected]> |
| 3742 |
|
| 3743 |
* src/port.c: Make port-name an attribute. |
| 3744 |
|
| 3745 |
* src/portapi.c: Add a new port attribute entry that is read-only |
| 3746 |
and undeletable; it's for the system-reserved attributes such as |
| 3747 |
'name'. |
| 3748 |
|
| 3749 |
2020-09-10 Shiro Kawai <[email protected]> |
| 3750 |
|
| 3751 |
* src/srfis.scm: Make srfi-193 official, as it is finalized. |
| 3752 |
|
| 3753 |
2020-09-09 Shiro Kawai <[email protected]> |
| 3754 |
|
| 3755 |
* src/gauche-package.in: Add --scheme-only option. |
| 3756 |
|
| 3757 |
* ext/template.*: Moved package template files under |
| 3758 |
package-templates subdirectory. |
| 3759 |
|
| 3760 |
2020-09-08 Shiro Kawai <[email protected]> |
| 3761 |
|
| 3762 |
* src/libio.scm: open-{input|output}-fd-port and port-file-number |
| 3763 |
now have an option to dup the fd. |
| 3764 |
|
| 3765 |
2020-09-07 Shiro Kawai <[email protected]> |
| 3766 |
|
| 3767 |
* doc/modgauche.texi: Document <stacked-map>. |
| 3768 |
|
| 3769 |
2020-09-06 Shiro Kawai <[email protected]> |
| 3770 |
|
| 3771 |
* src/libparam.scm, libsrc/gauche/parameter.scm: Move make-parameter |
| 3772 |
and parameterize into core. gauche.parameter is kept for the |
| 3773 |
backward compatibility and some fluff (observers). |
| 3774 |
|
| 3775 |
2020-09-05 Shiro Kawai <[email protected]> |
| 3776 |
|
| 3777 |
* libsrc/gauche/parameter.scm: Make <parameter> a subclass of |
| 3778 |
<primitive-parameter>, and make make-parameter return a procedure. |
| 3779 |
The latter is to conforms R7RS. |
| 3780 |
The code that tested if obj is a parameter by is-a? should now use |
| 3781 |
parameter?. The code that uses parameters in the standard way |
| 3782 |
doesn't need to be changed. |
| 3783 |
|
| 3784 |
2020-09-04 Shiro Kawai <[email protected]> |
| 3785 |
|
| 3786 |
* lib/srfi-192.scm: Added. Currently it's a copy of the reference |
| 3787 |
implementation. We need to modify port protocl to fully support |
| 3788 |
this srfi. |
| 3789 |
|
| 3790 |
* src/parameter.c: Make BindPrimitiveParameter wraps primitive |
| 3791 |
parameter with subr. In R7RS, parameters should behave strictly |
| 3792 |
as a procedure, e.g. must respond #t to procedure?. |
| 3793 |
Rel: https://github.com/shirok/Gauche/issues/720 |
| 3794 |
|
| 3795 |
2020-09-03 Shiro Kawai <[email protected]> |
| 3796 |
|
| 3797 |
* lib/r7rs-setup.scm, src/libio.scm, ext/vport/vport.scm, |
| 3798 |
ext/uvector/uvector.scm: Move R7RS binary i/o stuff (read-u8, |
| 3799 |
write-bytevectr etc.) into Gauche side. It is easier to run |
| 3800 |
a snippet written for r7rs without loading full r7rs. |
| 3801 |
|
| 3802 |
* lib/srfi-181.scm: Added. Currently it's a copy of the reference |
| 3803 |
implementation. Need customize on transcoded port. |
| 3804 |
|
| 3805 |
2020-09-02 Shiro Kawai <[email protected]> |
| 3806 |
|
| 3807 |
* libsrc/gauche/dictionary.scm: Revised <stacked-map>; make it |
| 3808 |
comparator-aware. Add a couple of methods. |
| 3809 |
|
| 3810 |
2020-09-01 Shiro Kawai <[email protected]> |
| 3811 |
|
| 3812 |
* lib/srfi-178.scm: finished implementation. |
| 3813 |
|
| 3814 |
* libsrc/gauche/sequence.scm (subseq): Dropped the undocumented feature |
| 3815 |
that subseq accepts negative value as END, counting from the end |
| 3816 |
of the sequence. It will get in a way if more sequence types defines |
| 3817 |
specialized method, for such convention isn't widely adopted for |
| 3818 |
type-specific procedures. |
| 3819 |
|
| 3820 |
2020-08-26 Shiro Kawai <[email protected]> |
| 3821 |
|
| 3822 |
* src/read.c, src/string.c: Changed incomplete string literal to |
| 3823 |
#**"...", for #*"..." conflicts with bitvector literals (we thought |
| 3824 |
it wouldn't, but overlooked that '#*' can be a valid bitvector |
| 3825 |
literal.) The reader allows old syntax depending on reader lexical |
| 3826 |
mode. |
| 3827 |
|
| 3828 |
* src/main.c (further_options): If -fwarn-legacy-sytnax is given, |
| 3829 |
don't forget to change the reader syntax mode of SCM_CURIN, which |
| 3830 |
has already been opened. The setting of Scm_SetReaderLexicalMode only |
| 3831 |
affects the ports opened after the change. |
| 3832 |
|
| 3833 |
2020-08-24 Shiro Kawai <[email protected]> |
| 3834 |
|
| 3835 |
* src/main.c: Allow multiple S-exprs in -e option. |
| 3836 |
|
| 3837 |
2020-08-22 Shiro Kawai <[email protected]> |
| 3838 |
|
| 3839 |
* libsrc/text/line-edit.scm (read-line/edit): Install SIGCONT handler |
| 3840 |
to handle the case when REPL is stopped by shell's job control and |
| 3841 |
then restarted. Singal handler has global effect, so it may |
| 3842 |
interfere with the application---in which case we may provide an |
| 3843 |
option to turn it off. For now, let's see how it goes. |
| 3844 |
Cf. https://github.com/shirok/Gauche/issues/715 |
| 3845 |
|
| 3846 |
2020-08-21 Shiro Kawai <[email protected]> |
| 3847 |
|
| 3848 |
* libsrc/text/console.scm (canonical-mode?): Add an API to query |
| 3849 |
if the terminal is in canonical (line editing) mode. Useful to |
| 3850 |
detect when a process wakes up by SIGCONT and see if the terminal |
| 3851 |
setting has been changed by shell job control. |
| 3852 |
|
| 3853 |
* ext/threads/threads.scm (atomic-update!): Allow proc to return more |
| 3854 |
values than the atom holds. It is useful if one wants to update |
| 3855 |
atom state and compute something using before-update values. |
| 3856 |
|
| 3857 |
2020-08-18 Shiro Kawai <[email protected]> |
| 3858 |
|
| 3859 |
* libsrc/gauche/process.scm: Allow command pipeline in process port API |
| 3860 |
https://github.com/shirok/Gauche/issues/717 |
| 3861 |
|
| 3862 |
2020-08-16 Shiro Kawai <[email protected]> |
| 3863 |
|
| 3864 |
* src/gauche/vector.h (ScmBitvector), src/vector.c: Start adding |
| 3865 |
bitvector support (srfi-178). |
| 3866 |
|
| 3867 |
2020-08-15 Shiro Kawai <[email protected]> |
| 3868 |
|
| 3869 |
* src/signal.c (Scm_SigFillSetMostly): Allow SIGCONT to be handled |
| 3870 |
in Gauche by default. |
| 3871 |
|
| 3872 |
2020-08-12 Shiro Kawai <[email protected]> |
| 3873 |
|
| 3874 |
* src/gauche/vm.h, src/vm.c: Add SCM_COMPILE_SRFI_FEATURE_ID flag. |
| 3875 |
* src/libmacro.scm (cond-expand): Warn srfi-N feature id is used |
| 3876 |
when SCM_COMPILE_SRFI_FEATURE_ID flag isn't set. |
| 3877 |
This is to gradually retire usage of srfi-N as a feature id. |
| 3878 |
Ref. https://github.com/shirok/Gauche/issues/709 |
| 3879 |
|
| 3880 |
2020-08-11 Shiro Kawai <[email protected]> |
| 3881 |
|
| 3882 |
* lib/gauche/pputil.scm (layout-misc): Fix circular structure printing |
| 3883 |
in case when the cycle begins in the middle of a list. |
| 3884 |
https://github.com/shirok/Gauche/issues/713 |
| 3885 |
|
| 3886 |
2020-08-08 Shiro Kawai <[email protected]> |
| 3887 |
|
| 3888 |
* lib/srfi-180.scm: Finishing support of srfi-180. |
| 3889 |
|
| 3890 |
* lib/rfc/json.scm (construct-json): rfc7159 loosened the restriction |
| 3891 |
of rfc4627 that the toplevel object must be an array or an object. |
| 3892 |
Updated the code to allow that. |
| 3893 |
|
| 3894 |
* ext/vport/vport.scm (open-output-accumulator): Added procedures |
| 3895 |
to convert accumulators to an output port. |
| 3896 |
|
| 3897 |
2020-08-04 Shiro Kawai <[email protected]> |
| 3898 |
|
| 3899 |
* src/libomega.scm (object-hash): Let the base method of object-hash |
| 3900 |
return a constant value. We can't make it error if we want |
| 3901 |
default-hash to accept arbitrary Scheme value, and we can't |
| 3902 |
compute a non-constant hash value without knowing equality semantics. |
| 3903 |
We'll encourage users to define object-hash method for user-defined |
| 3904 |
classes if their instances are ever hashed. |
| 3905 |
https://github.com/shirok/Gauche/issues/708 |
| 3906 |
|
| 3907 |
2020-08-03 Shiro Kawai <[email protected]> |
| 3908 |
|
| 3909 |
* src/libdict.scm (make-hash-table): If a comparator whose equality |
| 3910 |
predicate is eq?/eqv?, we use eq-/eqv-hash regardless of comparator's |
| 3911 |
hash function. It is permitted by srfi-125, and it allows |
| 3912 |
objects that doesn't have hash method can still be used |
| 3913 |
with eq/eqv based hashtables. |
| 3914 |
https://github.com/shirok/Gauche/issues/708 |
| 3915 |
|
| 3916 |
2020-07-29 Shiro Kawai <[email protected]> |
| 3917 |
|
| 3918 |
* src/class.c (<box>): Rename <%box> to <box>, for there's no reason |
| 3919 |
to obscure it. |
| 3920 |
|
| 3921 |
* src/libobj.scm (ref): Added accessor for a box. srfi-123. |
| 3922 |
|
| 3923 |
2020-07-28 Shiro Kawai <[email protected]> |
| 3924 |
|
| 3925 |
* src/libmacro.scm (let-optionals*): Fix the expander inserting |
| 3926 |
'undefined' unhygienically. |
| 3927 |
|
| 3928 |
2020-07-26 Shiro Kawai <[email protected]> |
| 3929 |
|
| 3930 |
* src/system.c: Add support of timespec timestamps in struct stat |
| 3931 |
(st_atim, st_mtim and st_ctim). |
| 3932 |
|
| 3933 |
* src/libsys.scm (sys-nice): Added. |
| 3934 |
|
| 3935 |
2020-07-25 Shiro Kawai <[email protected]> |
| 3936 |
|
| 3937 |
* ext/fcntl/fcntl.scm (O_CLOEXEC): Add flag. |
| 3938 |
|
| 3939 |
2020-07-24 Shiro Kawai <[email protected]> |
| 3940 |
|
| 3941 |
* src/libsys.scm (sys-utime): Use utimensat(2) instead of utime(2). |
| 3942 |
Allow <time> object, real number, and #t for atime/mtime. |
| 3943 |
#t is for "unchanged". |
| 3944 |
|
| 3945 |
* ext/fcntl/fcntl.scm (sys-open): Added low-level open(2) interface. |
| 3946 |
Generally Scheme programs should use open-{input|output}-file. |
| 3947 |
This is for the rare case that you want to get fd without building |
| 3948 |
whole Scheme port thing, so we put it in the extension rather than |
| 3949 |
in the core. SRFI-170 needs this. |
| 3950 |
|
| 3951 |
2020-07-21 Shiro Kawai <[email protected]> |
| 3952 |
|
| 3953 |
* src/number.c (Scm_GetDouble): Fix double-rounding bug in ratnum to |
| 3954 |
flonum conversion. Originall reported in Ruby, it is a common |
| 3955 |
issue that first convert numerator and denominator to double |
| 3956 |
and then divide. |
| 3957 |
Cf. https://twitter.com/tanaka_akr/status/1285273115464007685 |
| 3958 |
|
| 3959 |
2020-07-15 Shiro Kawai <[email protected]> |
| 3960 |
|
| 3961 |
* lib/srfi-189.scm: Srfi finalized. Adjust to the final spec. |
| 3962 |
|
| 3963 |
2020-07-13 Shiro Kawai <[email protected]> |
| 3964 |
|
| 3965 |
* lib/srfi-42 (:collection): Allow to use a collection as a generator. |
| 3966 |
|
| 3967 |
* lib/rfc/json.scm (json-nesting-depth-limit): Add the parameter |
| 3968 |
to support srfi-180. |
| 3969 |
|
| 3970 |
* src/error.c (Scm_MixinConditionClass), src/libexc.scm: Make |
| 3971 |
<mixin-condition> a base class so that Scheme code can define |
| 3972 |
other mixin condition inheriting it. Functionally there's no |
| 3973 |
special feature in <mixin-condition> itself; it's just to indicate |
| 3974 |
the condition is intended to be used as a mixin. |
| 3975 |
|
| 3976 |
2020-07-08 Shiro Kawai <[email protected]> |
| 3977 |
|
| 3978 |
* lib/srfi-175.scm: Added. |
| 3979 |
|
| 3980 |
2020-07-03 Shiro Kawai <[email protected]> |
| 3981 |
|
| 3982 |
* src/compile-1.scm (and-let*): Fix 20-year old bug - and-let* is |
| 3983 |
allowed an empty body. |
| 3984 |
|
| 3985 |
2020-07-02 Shiro Kawai <[email protected]> |
| 3986 |
|
| 3987 |
* src/libmacro.scm (assume, assume-type): Fix assume, which must return |
| 3988 |
expr's value according to srfi-145. Adjust assume-type as well. |
| 3989 |
|
| 3990 |
* src/gauche-package.in: Add some options to 'generate' command. |
| 3991 |
|
| 3992 |
2020-06-13 Shiro Kawai <[email protected]> |
| 3993 |
|
| 3994 |
* lib/math/prime.scm (naive-factorize): Reject other than positive |
| 3995 |
exact integers. Also let (naive-factorize 1) return (), for the |
| 3996 |
consistency. |
| 3997 |
|
| 3998 |
2020-06-04 Shiro Kawai <[email protected]> |
| 3999 |
|
| 4000 |
* lib/srfi-78.scm: Officially support srfi-78. |
| 4001 |
|
| 4002 |
* lib/gauche/test.scm: Add some hooks to make it easy to wrap |
| 4003 |
gauche.test with other test framework. |
| 4004 |
|
| 4005 |
2020-06-02 Shiro Kawai <[email protected]> |
| 4006 |
|
| 4007 |
* src/number.c (Scm_StringToNumber), src/libnum.c (string->number): |
| 4008 |
Support default-exactness flag, to specify the exactness of the |
| 4009 |
read number when no exactness prefix is given. |
| 4010 |
|
| 4011 |
2020-05-29 Shiro Kawai <[email protected]> |
| 4012 |
|
| 4013 |
* src/lazy.c (Scm_Force): The original code assumes VM trampoline, |
| 4014 |
so it should really be named Scm_VMForce. We added Scm_Force which |
| 4015 |
is safe to be called with C convention, using ApplyRec. |
| 4016 |
|
| 4017 |
2020-05-26 Shiro Kawai <[email protected]> |
| 4018 |
|
| 4019 |
* lib/gauche/sortutil.scm: Absorbed into src/libcmp.scm |
| 4020 |
|
| 4021 |
* libsrc/srfi-1.scm (lset=): Fix bug on the argument order of =. |
| 4022 |
|
| 4023 |
2020-05-23 Shiro Kawai <[email protected]> |
| 4024 |
|
| 4025 |
* lib/gauche/interactive/ed.scm -> lib/text/external-editor.scm |
| 4026 |
Renamed. Generally useful. |
| 4027 |
|
| 4028 |
* src/main.c: Add -fread-edit and -fno-read-edit command-line arguments |
| 4029 |
to enable/disable input editing. This overrides the setting by |
| 4030 |
the environment variable GAUCHE_READ_EDIT. |
| 4031 |
|
| 4032 |
2020-05-21 Shiro Kawai <[email protected]> |
| 4033 |
|
| 4034 |
* src/list.c (Scm_CopyList): Detect circular list and raise an error. |
| 4035 |
|
| 4036 |
2020-05-20 Shiro Kawai <[email protected]> |
| 4037 |
|
| 4038 |
* lib/gauche/configure.scm: Set build, host and target substs. |
| 4039 |
Not that we don't really support cross compiling yet---but the code |
| 4040 |
that checks (cf$ 'target) etc. will work. |
| 4041 |
|
| 4042 |
2020-05-17 Shiro Kawai <[email protected]> |
| 4043 |
|
| 4044 |
* lib/gauche/regexp.scm: Move rxmatch-* macros into core. |
| 4045 |
|
| 4046 |
2020-05-15 Shiro Kawai <[email protected]> |
| 4047 |
|
| 4048 |
* lib/gauche/vm/debugger.scm, src/libeval.scm (debug-source-info): |
| 4049 |
Moved to the core, for it is used in some macros needed for |
| 4050 |
editable-reader, and we don't want to load gauche.vm.debugger just |
| 4051 |
for it. |
| 4052 |
|
| 4053 |
* lib/gauche/listener.scm, src/libstr.scm (complete-sexp?): Moved |
| 4054 |
the definition from listener to core, for it is also used in |
| 4055 |
gauche.interactive.editable-reader. |
| 4056 |
|
| 4057 |
2020-05-14 Shiro Kawai <[email protected]> |
| 4058 |
|
| 4059 |
* libsrc/gauche/process.scm: Precompile. |
| 4060 |
|
| 4061 |
* src/gauche/condutil.scm, src/gauche/stringutil.scm: Absorbed into |
| 4062 |
the core. |
| 4063 |
|
| 4064 |
* configure.ac: 0.9.10_pre1. Looks like we need more releases before |
| 4065 |
1.0. |
| 4066 |
|
| 4067 |
2020-05-13 Shiro Kawai <[email protected]> |
| 4068 |
|
| 4069 |
* lib/gauche/interactive.scm: Allow turn on/off input editing by |
| 4070 |
the toplevel command (,edit). Note: If the input editing isn't |
| 4071 |
available at the initialization time, you can't turn it on. |
| 4072 |
|
| 4073 |
2020-05-08 Shiro Kawai <[email protected]> |
| 4074 |
|
| 4075 |
* lib/text/line-edit.scm (keymap-describe): Start adding online |
| 4076 |
editor help. |
| 4077 |
|
| 4078 |
2020-05-07 Shiro Kawai <[email protected]> |
| 4079 |
|
| 4080 |
* lib/text/pager.scm: Refactor out the pager calling heuristics |
| 4081 |
from gauche.interactive.info. |
| 4082 |
|
| 4083 |
2020-05-04 Shiro Kawai <[email protected]> |
| 4084 |
|
| 4085 |
* lib/text/line-edit.scm: Bind C-M-x to commit input. |
| 4086 |
https://github.com/shirok/Gauche/issues/683 |
| 4087 |
|
| 4088 |
2020-05-03 Shiro Kawai <[email protected]> |
| 4089 |
|
| 4090 |
* src/vm.c (check_arglist_tail_for_apply): Detect circular list |
| 4091 |
in the argument. |
| 4092 |
* src/libproc.scm (apply): Ditto. |
| 4093 |
|
| 4094 |
* ext/peg/peg.scm ($match1, $match1*): Support 'failure procedure'. |
| 4095 |
The result expression can do additional check and let the parser fail. |
| 4096 |
|
| 4097 |
2020-04-30 Shiro Kawai <[email protected]> |
| 4098 |
|
| 4099 |
* ext/vport: Support bidirectional virtual ports. |
| 4100 |
|
| 4101 |
2020-04-29 Shiro Kawai <[email protected]> |
| 4102 |
|
| 4103 |
* src/*: Surround pre-1.0 compatibility APIs with #if. |
| 4104 |
If you set GAUCHE_API_VERSION to 1000, they are excluded. |
| 4105 |
|
| 4106 |
* lib/text/line-edit.scm (default-keymap): Let C-j always insert newline. |
| 4107 |
If it's commit-or-newline, we can't insert a newline in completed |
| 4108 |
sexp. (Well, we can do C-q C-j but ont intuitive.) |
| 4109 |
Later, we'll implement auto-indent, too. |
| 4110 |
|
| 4111 |
2020-04-27 Shiro Kawai <[email protected]> |
| 4112 |
|
| 4113 |
* src/class.c: Changed ScmClass.serialize to ScmClass.hash. The |
| 4114 |
serialize proc has never been used, and we think now that it's better |
| 4115 |
to be implemented at Scheme level, outside of class. |
| 4116 |
OTOH, class-specific hash is became more important than before, for |
| 4117 |
now users count on default-hash just works. |
| 4118 |
|
| 4119 |
* lib/srfi-174.scm: Added. |
| 4120 |
|
| 4121 |
2020-04-26 Shiro Kawai <[email protected]> |
| 4122 |
|
| 4123 |
* lib/srfi-185.scm: Added. |
| 4124 |
|
| 4125 |
2020-04-25 Shiro Kawai <[email protected]> |
| 4126 |
|
| 4127 |
* libsrc/gauche/generator.scm (giterate, giterate1): Added. |
| 4128 |
lib/gauche/lazy.scm (literate): Added. |
| 4129 |
http://chaton.practical-scheme.net/gauche/a/2020/04/25#entry-5ea4496b-9be8a |
| 4130 |
|
| 4131 |
* src/compile-3.scm (pass3/$RECEIVE): Optimize the common pattern |
| 4132 |
(receive vs expr body ... (apply values vs)). It appears in the |
| 4133 |
expansion of begin0, for example. We omit |
| 4134 |
packing/unpacking of multiple values when we know expr can only |
| 4135 |
yield a single value. |
| 4136 |
|
| 4137 |
* lib/gauche/vm/insn-core.scm, src/vminsn.scm: Added multi-value slot, |
| 4138 |
specifies if the insn can result multiple values. Used by the |
| 4139 |
compiler for optimization. |
| 4140 |
|
| 4141 |
2020-04-18 Shiro Kawai <[email protected]> |
| 4142 |
|
| 4143 |
* doc/modutil.texi: Officially document data.priority-map. |
| 4144 |
|
| 4145 |
* lib/gauche/interactive/init.scm: Do not load ~/.gaucherc if |
| 4146 |
the process is suid/sgid-ed. |
| 4147 |
|
| 4148 |
* lib/gauche/interactive.scm (get-history-filename): Changed |
| 4149 |
history file environment variable from GAUCHE_HISTFILE to |
| 4150 |
GAUCHE_HISTORY_FILE; we generally avoid abbreviation. |
| 4151 |
Also we ignore it when process is suid/sgid-ed. |
| 4152 |
|
| 4153 |
* src/libsys.scm (sys-setugid?): eXpose Scm_IsSugid() to Scheme. |
| 4154 |
|
| 4155 |
* src/system.c (Scm_IsSugid): Use issetugid() if the system has it. |
| 4156 |
If it is not available, we remember the initial state of real and |
| 4157 |
effective uid/gid. Just comparing them when this function is called |
| 4158 |
isn't good, for suid-ed process may have changed its real and |
| 4159 |
effective uids match. |
| 4160 |
|
| 4161 |
2020-04-16 Shiro Kawai <[email protected]> |
| 4162 |
|
| 4163 |
* configure.ac: Report whether document will be built or not in |
| 4164 |
the summary. |
| 4165 |
|
| 4166 |
* lib/gauche/interactive/info.scm (get-info): Graceful handling for |
| 4167 |
the case when info document couldn't be found. |
| 4168 |
|
| 4169 |
2020-04-14 Shiro Kawai <[email protected]> |
| 4170 |
|
| 4171 |
* .dir-locals.el: Gauche-specific settings for Emacs |
| 4172 |
by @lassik https://github.com/shirok/Gauche/pull/670 |
| 4173 |
|
| 4174 |
2020-04-12 Shiro Kawai <[email protected]> |
| 4175 |
|
| 4176 |
* src/libfmt.scm (make-format-currency): Add ~$ support. |
| 4177 |
|
| 4178 |
2020-04-09 Shiro Kawai <[email protected]> |
| 4179 |
|
| 4180 |
* lib/srfi-125.scm (alist->hash-table, hash-table-unfold): Fix bugs. |
| 4181 |
* src/libdict.scm (hash-table-map!-r7, hash-table-fold-r7, |
| 4182 |
hash-table=?): Fix incorrect implementation. |
| 4183 |
|
| 4184 |
2020-04-07 Shiro Kawai <[email protected]> |
| 4185 |
|
| 4186 |
* src/libfmt.scm (make-format-flo): Make ~f handle complex numbers. |
| 4187 |
The d parameters are effective on both real and imaginary part. |
| 4188 |
(format): Support single character escape family, ~nt, ~n%, ~n~ and |
| 4189 |
~n|. |
| 4190 |
Also support ~?. |
| 4191 |
|
| 4192 |
2020-04-06 Shiro Kawai <[email protected]> |
| 4193 |
|
| 4194 |
* src/libeval.scm (load-from-port): Fixed 3-year old bug |
| 4195 |
https://github.com/shirok/Gauche/issues/292 |
| 4196 |
|
| 4197 |
2020-04-04 Shiro Kawai <[email protected]> |
| 4198 |
|
| 4199 |
* lib/gauche/experimental/command-lines.scm: Added. To test out |
| 4200 |
command-line srfi. The interface is subject to change. |
| 4201 |
|
| 4202 |
* src/libsys.scm (sys-normalize-pathname), |
| 4203 |
src/system.c (Scm_NormalizePathname): Rewrote this in Scheme. |
| 4204 |
|
| 4205 |
* src/execenv.c: Overhaul Scm_InitCommandLine taking the idea of |
| 4206 |
@lassik https://github.com/shirok/Gauche/pull/640 |
| 4207 |
- Added `os-command-line` parameter, that keeps entire command line |
| 4208 |
list given by the OS. (The name is subject to change, to follow |
| 4209 |
the coming command-lines srfi.) |
| 4210 |
- Application can set up `command-line` and/or `os-command-line` |
| 4211 |
separately, or simultaneously. |
| 4212 |
- For 1.0 API, we have 'kind' argument in Scm_InitCommandLine. To |
| 4213 |
keep the ABI compatibility, 0.97 API has Scm_InitCommandLine2. |
| 4214 |
* src/libeval.scm (load): Add :main-script parameter; if #t, it |
| 4215 |
records the full path of loaded file in `script-file` parameter. |
| 4216 |
It can only be done here, since the full path is known after `load` |
| 4217 |
searches the file. |
| 4218 |
* src/load.c, src/gauche/load.h: Add SCM_LOAD_MAIN_SCRIPT flag. |
| 4219 |
|
| 4220 |
2020-04-03 Shiro Kawai <[email protected]> |
| 4221 |
|
| 4222 |
* src/gauche.h: Introduced GAUCHE_API_VERSION macro in place of |
| 4223 |
GAUCHE_API_xx. Currently it's 97. It'll be 1000 on 1.0 prerelease. |
| 4224 |
After 1.0 release, we'll use it as major*1000 + revision. Revision |
| 4225 |
is only incremented when API changes, and isn't necessarily in sync |
| 4226 |
with Gauche minor/micro versions. |
| 4227 |
* src/vector.c: Add immutable flag for API_VERSION >= 1000. This is |
| 4228 |
binary incompatible change and client code will need to be recompiled. |
| 4229 |
* src/compaux.c (unwrap_rec): Make literal vectors immutable on |
| 4230 |
API_VERSION >= 1000. |
| 4231 |
|
| 4232 |
2020-04-01 Shiro Kawai <[email protected]> |
| 4233 |
|
| 4234 |
* src/main.c: When -ftest is given, try to use executable location |
| 4235 |
first, if it's available. |
| 4236 |
This achieves the goal of https://github.com/shirok/Gauche/pull/600 |
| 4237 |
|
| 4238 |
2020-03-29 Shiro Kawai <[email protected]> |
| 4239 |
|
| 4240 |
* src/compile-1.scm: Make literal pairs immutable by default. |
| 4241 |
Can be switched back by env var GAUCHE_MUTABLE_LITERALS. |
| 4242 |
If this breaks too many existing code, we'll reverse the default. |
| 4243 |
Let's see. |
| 4244 |
|
| 4245 |
* src/list.c, src/class.c: Abandon the idea of having <mpair> and |
| 4246 |
<ipair> separately. (1) It breaks the existing code that assumes |
| 4247 |
class of pair is always <pair>. (2) It'll be cumbersome if we have |
| 4248 |
to define mutable/immutable subclasses for other kind of extended |
| 4249 |
pairs. (3) We don't have separate classes for other immutable objects. |
| 4250 |
Note that, now the first word of ScmRealExtendedPair is not a tagged |
| 4251 |
pointer to ScmClass. Less uniformity, but the extended pairs are |
| 4252 |
exceptional, so it wouldn't matter except you're looking at the |
| 4253 |
binary dump. |
| 4254 |
|
| 4255 |
2020-03-28 Shiro Kawai <[email protected]> |
| 4256 |
|
| 4257 |
* src/compaux.c (unwrap_rec): Fix circular structure handling. The |
| 4258 |
old code didn't correctly handle all the cases. |
| 4259 |
|
| 4260 |
2020-03-27 Shiro Kawai <[email protected]> |
| 4261 |
|
| 4262 |
* src/libmacbase.scm (unwrap-syntax), |
| 4263 |
src/compaux.c (Scm_UnwrapSyntaxImmutable): Way to create immutable |
| 4264 |
structure after unwrap-syntax. |
| 4265 |
|
| 4266 |
2020-03-26 Shiro Kawai <[email protected]> |
| 4267 |
|
| 4268 |
* lib/srfi-116.scm, lib/scheme/ilist.scm : Added. |
| 4269 |
|
| 4270 |
2020-03-24 Shiro Kawai <[email protected]> |
| 4271 |
|
| 4272 |
* src/libeval.scm (Scm_RuntimeDirectory): Make it public API, for |
| 4273 |
it is generally useful, and we'll cover more platforms. |
| 4274 |
|
| 4275 |
* lib/gauche/process.scm (%apply-run-process): Fix high-level |
| 4276 |
utilities rejecting :encoding keyword argument. |
| 4277 |
https://github.com/shirok/Gauche/issues/651 |
| 4278 |
|
| 4279 |
2020-03-22 Shiro Kawai <[email protected]> |
| 4280 |
|
| 4281 |
* lib/www/css.scm: Support an+b syntax |
| 4282 |
from @gengar https://github.com/shirok/Gauche/pull/648 |
| 4283 |
|
| 4284 |
2020-03-21 Shiro Kawai <[email protected]> |
| 4285 |
|
| 4286 |
* lib/www/css.scm (construct-css): Fix :not pseudo class rendering |
| 4287 |
from @leque https://github.com/shirok/Gauche/pull/645 |
| 4288 |
Also add rendering of @import and @media. |
| 4289 |
* libsrc/file/util.scm (make-directory*): Fix timing hazard. |
| 4290 |
|
| 4291 |
2020-03-15 Shiro Kawai <[email protected]> |
| 4292 |
|
| 4293 |
* src/*: Implement immutable pairs. This has a few visibile changes: |
| 4294 |
- An ordinary pair is an instance of <mpair>, which inherits <pair>. |
| 4295 |
An immutable pair is an instance of <ipair> which is also a |
| 4296 |
subclass of <pair>. We can't just keep mutable pairs as <pair> |
| 4297 |
and subclass <ipair> from it, for mutable pairs and immutable pairs |
| 4298 |
don't have subtype relationship. BUT, this change may break code |
| 4299 |
that assumes all pairs are instances of <pair> and has tests like |
| 4300 |
(eq? (class-of x) <pair>). |
| 4301 |
- SCM_SET_CAR and SCM_SET_CDR simply calls Scm_SetCar and Scm_SetCdr, |
| 4302 |
which rejects mutating immutable pairs (and we'll have other kind of |
| 4303 |
hooks). They do have far more overhead than signle assignment like |
| 4304 |
before. If you KNOW you're setting car/cdr of normal pairs (typically |
| 4305 |
the one you just allocated), you can use SCM_SET_CAR_UNCHECKED and |
| 4306 |
SCM_SET_CDR_UNCHECKED. |
| 4307 |
- These changes are provisional. If it breaks something horribly, |
| 4308 |
we'll change the strategy. |
| 4309 |
|
| 4310 |
2020-03-14 Shiro Kawai <[email protected]> |
| 4311 |
|
| 4312 |
* Exclude string pointers unless GAUCHE_STRING_POINTER is defined |
| 4313 |
non-zero. String pointers are never officially documented, and |
| 4314 |
now we have string cursors that does the job. We keep the code |
| 4315 |
one more release in case there's application code that depends on it. |
| 4316 |
|
| 4317 |
2020-03-13 Shiro Kawai <[email protected]> |
| 4318 |
|
| 4319 |
* lib/gauche/interactive/editable-reader.scm (%input-complete?): |
| 4320 |
Regard an empty string as complete input. I don't remember why |
| 4321 |
I explicitly excluded it. |
| 4322 |
Cf: https://github.com/shirok/Gauche/pull/629 |
| 4323 |
|
| 4324 |
2020-03-12 Shiro Kawai <[email protected]> |
| 4325 |
|
| 4326 |
* src/compile-1.scm (pass1/extended-lambda-body): |
| 4327 |
Allow :allow-other-keys without :key. It can be useful that the |
| 4328 |
procedure itself won't handle specific keyword arguments, but |
| 4329 |
want to let Gauche check the arguments are even. |
| 4330 |
|
| 4331 |
2020-03-10 Shiro Kawai <[email protected]> |
| 4332 |
|
| 4333 |
* src/compile-1.scm (define-macro, define-syntax): Fix |
| 4334 |
macro-defining-macro called from other module. |
| 4335 |
Cf: https://github.com/shirok/Gauche/issues/532 |
| 4336 |
|
| 4337 |
2020-03-03 Shiro Kawai <[email protected]> |
| 4338 |
|
| 4339 |
* src/regexp.c, lib/gauce/regexp/sre.scm: Implement BOG/EOG asseritions. |
| 4340 |
Patch by @pclouds https://github.com/shirok/Gauche/pull/618 |
| 4341 |
Also support 'grapheme' of SRE. |
| 4342 |
Patch by @pclouds https://github.com/shirok/Gauche/pull/620 |
| 4343 |
|
| 4344 |
2020-02-28 Shiro Kawai <[email protected]> |
| 4345 |
|
| 4346 |
* lib/text/line-edit.scm (macro!): Keystrokes macro feature by @pclouds |
| 4347 |
https://github.com/shirok/Gauche/pull/612 |
| 4348 |
|
| 4349 |
* src/compile-1.scm (define-hybrid-syntax): Renamed |
| 4350 |
define-inline/syntax, which is a name from implementor's viewpoint |
| 4351 |
(we use the same mechanism to handle it as define-inline) but rather |
| 4352 |
confusing for the users. |
| 4353 |
* doc/macro.texi: Document define-hybrid-syntax |
| 4354 |
|
| 4355 |
2020-02-27 Shiro Kawai <[email protected]> |
| 4356 |
|
| 4357 |
* src/libeval.scm (version-alist): srfi-176 defines Scheme proc |
| 4358 |
to retrieve this info. |
| 4359 |
* src/main.c (version): Use version-alist to generate output. |
| 4360 |
|
| 4361 |
2020-02-24 Shiro Kawai <[email protected]> |
| 4362 |
|
| 4363 |
* src/srfis.scm, src/main.c: Support srfi-176 |
| 4364 |
Cf. https://github.com/shirok/Gauche/pull/607 by @lassik |
| 4365 |
|
| 4366 |
2020-02-18 Shiro Kawai <[email protected]> |
| 4367 |
|
| 4368 |
* lib/gauche/cgen/literal.scm, src/gauche.h: Align statically allocated |
| 4369 |
pairs in two-ScmWord boundary. A preparation for the new extended |
| 4370 |
pair tagging. |
| 4371 |
|
| 4372 |
2020-02-17 Shiro Kawai <[email protected]> |
| 4373 |
|
| 4374 |
* lib/srfi-159*, lib/scheme/show*: Ported from Chibi, done by |
| 4375 |
@pclouds. Also with documentation. |
| 4376 |
|
| 4377 |
2020-02-13 Shiro Kawai <[email protected]> |
| 4378 |
|
| 4379 |
* ext/tls: Avoid using Scm_SysError to report tls error (axTLS routine |
| 4380 |
doesn't set errno!). Use our own error code -> message conversion. |
| 4381 |
|
| 4382 |
2020-02-11 Shiro Kawai <[email protected]> |
| 4383 |
|
| 4384 |
* ext/peg/peg.scm (peg-parse-string, peg-parse-port): Add optional |
| 4385 |
continuation procedure to allow to receive the rest of the input. |
| 4386 |
|
| 4387 |
2020-02-07 Shiro Kawai <[email protected]> |
| 4388 |
|
| 4389 |
* src/libsym.scm (identifier?, identifier->symbol): POSSIBLY |
| 4390 |
INCOMPATIBLE CHANGE: Make identifier? respond to both symbol and |
| 4391 |
<identifier>s. It greatly simplifies low-level macros. |
| 4392 |
The original 'identifier?' is renamed to 'wrapped-identifier?' |
| 4393 |
(we may change the name later). The 'identifier?' procedure entry |
| 4394 |
has been in the manual, but without descriptions. We expect |
| 4395 |
no other code depends on it, and most of the dependent one |
| 4396 |
won't break, as long as it only uses these two procedures. |
| 4397 |
(The accessor to the <identifier> field is in gauche.internal). |
| 4398 |
Some code needs to be read by 0.9.9 during build, so we have |
| 4399 |
transient code in several places. The VM instruction IDENTIFIERP |
| 4400 |
is also changed to respond to both symbol and identifier. |
| 4401 |
|
| 4402 |
2020-02-02 Shiro Kawai <[email protected]> |
| 4403 |
|
| 4404 |
* lib/srfi-135.scm: Added. |
| 4405 |
|
| 4406 |
* src/libstr.scm (string-copy-immutable): Added. |
| 4407 |
(string-map, string-for-each): Integrate R7RS one and SRFI-13 one |
| 4408 |
into one procedure supporting both interface. |
| 4409 |
|
| 4410 |
* src/string.c (Scm_MaybeSubstring): Returns immutable string if |
| 4411 |
input is immutable. The caller can't count on the input string |
| 4412 |
begin copied, so it must copy the returned value anyway if it wants |
| 4413 |
a mutable string. |
| 4414 |
|
| 4415 |
2020-02-01 Shiro Kawai <[email protected]> |
| 4416 |
|
| 4417 |
* src/vm.c, src/main.c (-fsafe-string-cursors): A runtime flag |
| 4418 |
that makes all string cursors 'large', for misuse detection |
| 4419 |
trading off the speed and space. |
| 4420 |
https://github.com/shirok/Gauche/pull/584 by @pclouds. |
| 4421 |
|
| 4422 |
* ext/template.Makefile.in: Pass down CFLAGS etc into |
| 4423 |
;gauche-package compile'. Other small fixes. |
| 4424 |
https://github.com/shirok/Gauche/pull/580 from @Hamayama |
| 4425 |
|
| 4426 |
* src/string.c (Scm_StringBodyBuildIndex), |
| 4427 |
src/libstr.c (string-build-index!, string-fast-indexable?): |
| 4428 |
Add O(1) access multibyte string feature. |
| 4429 |
|
| 4430 |
2020-01-30 Shiro Kawai <[email protected]> |
| 4431 |
|
| 4432 |
* lib/gauche/configure.scm (cf-arg-var): Always make the symbol a |
| 4433 |
subst var even if the environment variable isn't set. |
| 4434 |
(cf-subst): Make the value optional. When omitted, the symbol |
| 4435 |
is made subst and set to "" if it hasn't been a subst var, but |
| 4436 |
is left intact if it's already a subst var. |
| 4437 |
|
| 4438 |
2020-01-29 Shiro Kawai <[email protected]> |
| 4439 |
|
| 4440 |
* src/string.c, src/gauche.h, src/gauche/string.h: Introduce small |
| 4441 |
string cursor which is an immediate value. Almost all cursors fit |
| 4442 |
in the small range and we can avoid allocations. |
| 4443 |
Done by @pclouds https://github.com/shirok/Gauche/pull/576 |
| 4444 |
|
| 4445 |
2020-01-28 Shiro Kawai <[email protected]> |
| 4446 |
|
| 4447 |
* examples/pegintro.scm: Added. |
| 4448 |
|
| 4449 |
2020-01-27 Shiro Kawai <[email protected]> |
| 4450 |
|
| 4451 |
* src/string.c, src/libstr.c (Scm_StringRefCursor, Scm_SubstringCursor): |
| 4452 |
Added. |
| 4453 |
(Scm_MaybeSubstring): Support cursor. |
| 4454 |
by @pclouds https://github.com/shirok/Gauche/pull/571 |
| 4455 |
|
| 4456 |
2020-01-26 Shiro Kawai <[email protected]> |
| 4457 |
|
| 4458 |
* src/gauche/string.h, src/string.c, src/libstr.scm, src/class.c: |
| 4459 |
Add ScmStringCursor type by @pclouds |
| 4460 |
https://github.com/shirok/Gauche/pull/569 |
| 4461 |
|
| 4462 |
2020-01-25 Shiro Kawai <[email protected]> |
| 4463 |
|
| 4464 |
* ext/uvector/uvector.scm: Enhanced make-bytevector and bytevector-fill! |
| 4465 |
so that we don't need have separate definition in scheme.bytevector. |
| 4466 |
We also provide bytevector-copy!-r6 here to alleviate confusion |
| 4467 |
having same name, different procedures (we can just explain that |
| 4468 |
scheme.bytevector exports bytevector-copy!-r6 as bytevector-copy!) |
| 4469 |
|
| 4470 |
2020-01-24 Shiro Kawai <[email protected]> |
| 4471 |
|
| 4472 |
* lib/scheme/bytevector.scm: Added R7RS-large scheme.bytevector. |
| 4473 |
Tests are coming along. |
| 4474 |
|
| 4475 |
2020-01-23 Shiro Kawai <[email protected]> |
| 4476 |
|
| 4477 |
* ext/gauche/unicode.scm (string->utf32, utf32->string): Added. |
| 4478 |
(codeponts->words): Fix: Document has been saying the result |
| 4479 |
is a list of sequences of the same type as input, but we returned |
| 4480 |
a list of lists. Code relying on previous behavior will break, but |
| 4481 |
technically this is an implementation bug. |
| 4482 |
|
| 4483 |
2020-01-22 Shiro Kawai <[email protected]> |
| 4484 |
|
| 4485 |
* ext/gauche/unicode.scm (string->utf16): Add add-bom? argument, for |
| 4486 |
the symmetry of utf16->string (but the logic is reversed, for the |
| 4487 |
convenience). |
| 4488 |
|
| 4489 |
2020-01-21 Shiro Kawai <[email protected]> |
| 4490 |
|
| 4491 |
* ext/uvector/uvector.scm (string->[su]32vector[!]), |
| 4492 |
([su]32vector->string): Add endian argument. |
| 4493 |
* src/string.c (count_size_and_length): Strictly check invalid encoding |
| 4494 |
in input so that such string becomes incomplete. |
| 4495 |
* ext/gauche/unicode.scm (utf8->string): When input contains invalid |
| 4496 |
utf8 sequences, replace them with U+FFFD instead of throwing an error. |
| 4497 |
The behavior is consistent with scheme.bytevector. |
| 4498 |
NB: This breaks the code that relied on the throwing error behavior |
| 4499 |
and implemented their own alternative conversion mechanism by catching |
| 4500 |
the error. I doubt there's any, though, for it is easier to |
| 4501 |
use u8vector->string if that's Gauche-specific code. |
| 4502 |
|
| 4503 |
2020-01-20 Shiro Kawai <[email protected]> |
| 4504 |
|
| 4505 |
* src/gauche/endian.h: We can't refer to SCM_SYM_BIG_ENDIAN etc publicly. |
| 4506 |
So we export functions (Scm_IsBE() etc.) here, and moved the macros |
| 4507 |
to src/gauche/priv/bytesP.h. The function definitions are in |
| 4508 |
number.c for now, since we already have Scm_DefaultEndian() there. |
| 4509 |
Also endian.h is now included from gauche.h. |
| 4510 |
|
| 4511 |
2020-01-19 Shiro Kawai <[email protected]> |
| 4512 |
|
| 4513 |
* ext/gauche/unicode.scm (utf8->ucs4, ucs4->utf8, utf16->ucs4) |
| 4514 |
(ucs4->utf16): Support 'replace' strictness that replaces invalid |
| 4515 |
encoding with U+FFFD. |
| 4516 |
|
| 4517 |
2020-01-17 Shiro Kawai <[email protected]> |
| 4518 |
|
| 4519 |
* src/srfis.scm: Do not load srfi-101 on (cond-expand ((srfi-101) ...)). |
| 4520 |
Loading srfi-101 without prefix or renaming would shadow important |
| 4521 |
list operators and cause surprises. Slib uses cond-expand to |
| 4522 |
check library availability and loading srfi-101 would make slib |
| 4523 |
unusable. Cf. https://github.com/shirok/Gauche/issues/566 |
| 4524 |
|
| 4525 |
2020-01-15 Shiro Kawai <[email protected]> |
| 4526 |
|
| 4527 |
* ext/peg/peg.scm ($symbol): Make it take a symbol; which is just |
| 4528 |
natural. |
| 4529 |
($string): We don't need to gather the matched result. We already know |
| 4530 |
what it would be. |
| 4531 |
($many-chars): Deprecate this. ($many ($. #[...])) isn't much longer. |
| 4532 |
($.): Support $symbol as well. |
| 4533 |
(return-failure): To explicitly show it's a failure. |
| 4534 |
|
| 4535 |
2020-01-14 Shiro Kawai <[email protected]> |
| 4536 |
|
| 4537 |
* ext/peg/peg.scm ($alternate): Deprecate $alternate, for |
| 4538 |
it overlaps $sep-by. |
| 4539 |
($match1*): Rename from $match, to avoid confusion of util.match |
| 4540 |
macro, which takes multiple clauses. |
| 4541 |
($any): Drop optional arg. It only fails at the end of input. |
| 4542 |
|
| 4543 |
2020-01-13 Shiro Kawai <[email protected]> |
| 4544 |
|
| 4545 |
* ext/peg/peg.scm ($do, $skip-many, $skip-many1, $followed-by, $count): |
| 4546 |
Make these deprecated, moved to parser.peg.deprecated. |
| 4547 |
$do can be rewritten with $let or $let*. |
| 4548 |
$skip-many and $skip-many1 got new names $many_ and $many1_. |
| 4549 |
$followed-by is renamed to $seq0. |
| 4550 |
$count is the same as $repeat. |
| 4551 |
($repeat_, $many-till_): Added for the consistency. |
| 4552 |
($unexpect, $skip-count): Removed, for they were not exported and |
| 4553 |
not used anywhere. |
| 4554 |
($assert-not): Dropped. Instead, make $not never consume input. |
| 4555 |
($and): Dropped. Upon the change of $not, we can simply use $seq for |
| 4556 |
negative lookahead assertions, and having $assert for positive |
| 4557 |
lookahead assertions won't be so much hassle, so I see not much |
| 4558 |
point of having $and. |
| 4559 |
|
| 4560 |
2020-01-12 Shiro Kawai <[email protected]> |
| 4561 |
|
| 4562 |
* ext/peg/peg.scm ($assert, $assert-not, $and): Added zero-width |
| 4563 |
assertions. |
| 4564 |
|
| 4565 |
2020-01-11 Shiro Kawai <[email protected]> |
| 4566 |
|
| 4567 |
* src/gauche/endian.h, src/gauche/priv/bytesP.h: C MACRO API CHANGE: |
| 4568 |
Split bytes_inline.h into these two; the first one provides a |
| 4569 |
public macros to check endianness symbols, and the second one is |
| 4570 |
private for byte-swapping macros. The public macros are prefixed |
| 4571 |
with SCM_. |
| 4572 |
* src/gauche/bytes_inline.h: Removed. |
| 4573 |
|
| 4574 |
* lib/scheme/rlist.scm: srfi-101 is also scheme.rlist |
| 4575 |
|
| 4576 |
2020-01-10 Shiro Kawai <[email protected]> |
| 4577 |
|
| 4578 |
* lib/srfi-101.scm: Added. |
| 4579 |
|
| 4580 |
2020-01-08 Shiro Kawai <[email protected]> |
| 4581 |
|
| 4582 |
* ext/mt-random/mt-random.c (Scm_MTInitByUI): When bignum is given |
| 4583 |
as a seed, use all the bits in it. (Technically this is |
| 4584 |
an INCOMPATIBLE CHANGE, for the random series would change |
| 4585 |
for the same bignum seed. We assume it is rare that bignum |
| 4586 |
is actually used.) |
| 4587 |
|
| 4588 |
2020-01-07 Shiro Kawai <[email protected]> |
| 4589 |
|
| 4590 |
* src/srfi-27.scm (random-source-randomize!): If /dev/urandom is |
| 4591 |
available, use 128 bits from it for the seed. |
| 4592 |
|
| 4593 |
2020-01-04 Shiro Kawai <[email protected]> |
| 4594 |
|
| 4595 |
* src/libio.scm (current-trace-port): A parameter to keep trace output. |
| 4596 |
* src/libmacbase.scm: Macro traces goes to current-trace-port. |
| 4597 |
* lib/gauche/vm/debugger.scm: Debug print goes to current-trace-port. |
| 4598 |
|
| 4599 |
2020-01-01 Shiro Kawai <[email protected]> |
| 4600 |
|
| 4601 |
* rfc/uuid.scm: Added. |
| 4602 |
|
| 4603 |
2019-12-31 Shiro Kawai <[email protected]> |
| 4604 |
|
| 4605 |
* src/compile-3.scm (pass3/optimize-call): Apply constant computation |
| 4606 |
if arguments are not only constants but has inlinable binding. |
| 4607 |
|
| 4608 |
2019-12-29 Shiro Kawai <[email protected]> |
| 4609 |
|
| 4610 |
* src/libproc.scm (procedure-constant?): Added (internally) |
| 4611 |
|
| 4612 |
* lib/gauche/time.scm: make-time-result wasn't exported. |
| 4613 |
|
| 4614 |
* src/class.c, src/gauche.h, src/libobj.scm (generic-seal!): |
| 4615 |
Experimentally use 'constant' attribute of generic as the "sealed |
| 4616 |
generic" to allow the compiler to pre-select methods. |
| 4617 |
|
| 4618 |
2019-12-27 Shiro Kawai <[email protected]> |
| 4619 |
|
| 4620 |
* libsrc/gauche/record.scm: Enhance define-record-type and make-rtd |
| 4621 |
to allow to specify metaclass, and list of mixin classes separately |
| 4622 |
from record inheritance. |
| 4623 |
|
| 4624 |
* lib/gauche/pputil.scm: Render (quote X) as 'X etc. |
| 4625 |
|
| 4626 |
2019-12-26 Shiro Kawai <[email protected]> |
| 4627 |
|
| 4628 |
* libsrc/gauche/record.scm: Rewrote define-record-type with er-macro. |
| 4629 |
|
| 4630 |
2019-12-24 Shiro Kawai <[email protected]> |
| 4631 |
|
| 4632 |
* src/liblazy.scm, src/libmacro.scm (lcons, lcons*, llist*): Implement |
| 4633 |
them in er-macro. |
| 4634 |
|
| 4635 |
2019-12-21 Shiro Kawai <[email protected]> |
| 4636 |
|
| 4637 |
* data/skew-list.scm: Add list*->skew-list to handle improper lists. |
| 4638 |
Also adapted to the sequence protocol. |
| 4639 |
|
| 4640 |
* libsrc/gauche/record.scm (make-rtd): Allow record type to inherit |
| 4641 |
from non-record class, as long as the class doesn't add slots. |
| 4642 |
|
| 4643 |
2019-12-20 Shiro Kawai <[email protected]> |
| 4644 |
|
| 4645 |
* src/main.c: Make sure libgauche.so in the build tree is linked |
| 4646 |
when invoked with -ftest, even LD_LIBRARY_PATH is set. |
| 4647 |
Based on https://github.com/shirok/Gauche/pull/557 by @pclouds |
| 4648 |
|
| 4649 |
* data/skew-list.scm: Added. This will be the base of scheme.rlist. |
| 4650 |
|
| 4651 |
2019-12-17 Shiro Kawai <[email protected]> |
| 4652 |
|
| 4653 |
* Gauche.spec.in, rpmfiles-*.txt: Remove rpmfiles*.txt from repo, |
| 4654 |
and let it be generated by makefile. Also make Gauche.spec generated |
| 4655 |
by configure (we tend to forget updating version in it.) |
| 4656 |
|
| 4657 |
2019-12-15 Shiro Kawai <[email protected]> |
| 4658 |
|
| 4659 |
* lib/srfi-14/set.scm (char-set-diff+intersection!): Provisional |
| 4660 |
fix to avoid depending on evaluation order. |
| 4661 |
https://github.com/shirok/Gauche/issues/554 |
| 4662 |
|
| 4663 |
* src/libomega.scm: Make charset hashable by default-hash. |
| 4664 |
* lib/gauche/interactive.scm (apropos): Allow to take a string |
| 4665 |
https://github.com/shirok/Gauche/pull/555 |
| 4666 |
|
| 4667 |
2019-12-14 Shiro Kawai <[email protected]> |
| 4668 |
|
| 4669 |
* lib/srfi-14.scm, src/libchar.scm (char-set-hash): Moved to core. |
| 4670 |
|
| 4671 |
2019-12-13 Shiro Kawai <[email protected]> |
| 4672 |
|
| 4673 |
* Release 0.9.9 |
| 4674 |
|
| 4675 |
2019-12-06 Shiro Kawai <[email protected]> |
| 4676 |
|
| 4677 |
* src/compile-1.scm, src/vm.c: Add compiler flag |
| 4678 |
SCM_COMPILE_LEGACY_DEFINE to switch back the behavior of define |
| 4679 |
to older mode, in case if old code depends on it. Environment |
| 4680 |
variable GAUCHE_LEGACY_DEFINE turn it on. |
| 4681 |
|
| 4682 |
2019-12-05 Shiro Kawai <[email protected]> |
| 4683 |
|
| 4684 |
* src/gauche.h: Add SCM_UNINITIALIZED that indicates the toplevel |
| 4685 |
variable is bound but not initialized. It clarifies the state |
| 4686 |
introduced by https://github.com/shirok/Gauche/issues/549, when |
| 4687 |
a variable is bound at the compile-time but its value hasn't been |
| 4688 |
calculated at runtime. It's different from SCM_UNBOUND, which |
| 4689 |
says the variable is not bound at all. Like SCM_UNBOUND, |
| 4690 |
SCM_UNINITIALIZED should never be seen by the Scheme user code. |
| 4691 |
* src/vm.c (GLOBAL_REF): Catches when a global variable has |
| 4692 |
SCM_UNINITIALIZED, and raises an error. |
| 4693 |
|
| 4694 |
* src/gauche/priv/macroP.h (ScmSyntax): Keep defining module for |
| 4695 |
better debugging info. |
| 4696 |
(Scm_MakeSyntax): INCOMPATIBLE CHANGE: move to private header and |
| 4697 |
change API. No external libraries should've called this. |
| 4698 |
|
| 4699 |
2019-12-04 Shiro Kawai <[email protected]> |
| 4700 |
|
| 4701 |
* src/compile-1.scm (pass1/define): Allow R6RS-style (define <name>). |
| 4702 |
(pass1/body-rec): Ditto. |
| 4703 |
|
| 4704 |
* lib/r7rs-setup.scm (define): We've been exporting Gauche's define |
| 4705 |
instead of vanilla define inadvertently. Fixed. |
| 4706 |
|
| 4707 |
2019-11-28 Shiro Kawai <[email protected]> |
| 4708 |
|
| 4709 |
* src/numebr.c, src/read.c: Reject underscores in numeric literals |
| 4710 |
in strict-r7rs mode. |
| 4711 |
|
| 4712 |
2019-11-26 Shiro Kawai <[email protected]> |
| 4713 |
|
| 4714 |
* src/compile-1.scm (pass1/define): Insert a dummy binding to the |
| 4715 |
compiling module at compile-time. It is necessary if we compile |
| 4716 |
multiple modules at once, and one imports another with qualifiers. |
| 4717 |
Cf. https://github.com/shirok/Gauche/issues/549 |
| 4718 |
|
| 4719 |
2019-11-07 Shiro Kawai <[email protected]> |
| 4720 |
|
| 4721 |
* lib/gauche/sortutil.scm (stable-sort!): Make sure sort! and |
| 4722 |
stable-sort! can be used without referring to their return values; |
| 4723 |
that is, after calling them, seq argument should point to sorted |
| 4724 |
list. Before, we assumed sort! is linear-updating, thus caller |
| 4725 |
should use the return value insted of counting the side effects. |
| 4726 |
However, srfi-95 doesn't explicitly says so. |
| 4727 |
|
| 4728 |
* lib/srfi-162.scm: Added srfi-162 support. Move comparator-{min|max} |
| 4729 |
implementation to from srfi-114.scm to srfi-162.scm, and let |
| 4730 |
srfi-114 depend on srfi-162. |
| 4731 |
|
| 4732 |
2019-11-06 Shiro Kawai <[email protected]> |
| 4733 |
|
| 4734 |
* lib/srfi-173.scm: Added srfi-173 Hooks. |
| 4735 |
|
| 4736 |
2019-10-21 Shiro Kawai <[email protected]> |
| 4737 |
|
| 4738 |
* src/gauche/vm.h (ScmContFrameRec, ScmVM), src/vm.c: Fix partial |
| 4739 |
conitnuation structure by @Hamayama. See PR #529 for the details. |
| 4740 |
|
| 4741 |
2019-10-17 Shiro Kawai <[email protected]> |
| 4742 |
|
| 4743 |
* src/libproc.scm, src/libmacro.scm (let-optionals*, let-keywords), |
| 4744 |
(let-keywords*): Make these macros hygienic, and moved their |
| 4745 |
definitions to libmacro (er-macro-transformer must be placed |
| 4746 |
_after_ the compiler is initialized). |
| 4747 |
|
| 4748 |
* src/compile-1.scm (pass1/extended-lambda-body): Insert aux macros |
| 4749 |
hygienically. |
| 4750 |
|
| 4751 |
2019-10-16 Shiro Kawai <[email protected]> |
| 4752 |
|
| 4753 |
* lib/rfc/json.scm (%number): Fix number parser - converting integral |
| 4754 |
part and fractional part separately to numbers then combining them |
| 4755 |
could introduce rounding errors. |
| 4756 |
|
| 4757 |
2019-10-13 Shiro Kawai <[email protected]> |
| 4758 |
|
| 4759 |
* src/compile.scm (macroexpand-all): Also let it take environment |
| 4760 |
argument, for the consistency with macroexapnd. |
| 4761 |
* src/libmacbase.scm (macroexpand, macroexpand-1): INCOMPATIBLE CHANGE: |
| 4762 |
Process output via unravel-syntax by default. These procedures are |
| 4763 |
mainly used for humans to check macro output, so identifier |
| 4764 |
information is just an annoyance. If you need identifier information, |
| 4765 |
pass #t to the second arg. You can also pass a module to the second |
| 4766 |
arg to expand in the given environment. |
| 4767 |
|
| 4768 |
2019-10-11 Shiro Kawai <[email protected]> |
| 4769 |
|
| 4770 |
* src/libmacbase.scm (trace-macro, untrace-macro): Allow regexp pattern |
| 4771 |
for the macros to trace. Make it official. |
| 4772 |
|
| 4773 |
2019-10-03 Shiro Kawai <[email protected]> |
| 4774 |
|
| 4775 |
* src/regexp.c (rc1_lex_charset_category): Support \p{<category} and |
| 4776 |
\P{<category>} in regexp literals. |
| 4777 |
|
| 4778 |
2019-09-28 Shiro Kawai <[email protected]> |
| 4779 |
|
| 4780 |
* src/char.c: Support \p{<category>}, \P{<cateogry>} notation in |
| 4781 |
charset literals. |
| 4782 |
|
| 4783 |
2019-09-27 Shiro Kawai <[email protected]> |
| 4784 |
|
| 4785 |
* src/gen-unicode.scm, src/char.c: Add overall general category |
| 4786 |
charsets, e.g. char-set:L for all L* categories. |
| 4787 |
|
| 4788 |
2019-09-24 Shiro Kawai <[email protected]> |
| 4789 |
|
| 4790 |
* src/gen-unicode.scm, src/char.c: Add ascii-* counterparts to |
| 4791 |
all predefined charsets (except when it doesn't make sense), |
| 4792 |
for the consistency. |
| 4793 |
* src/char.c (read_predef_charset): Read [:alpha:] etc. as ASCII |
| 4794 |
charset. Recognize [:ALPHA:] etc. to cover full Unicode range. |
| 4795 |
Support [:^alpha:] negation (like Go). |
| 4796 |
|
| 4797 |
2019-09-18 Shiro Kawai <[email protected]> |
| 4798 |
|
| 4799 |
* src/char.c, src/gen-unicode.scm: Also enhance char-set:whitespace |
| 4800 |
and char-set:blank to full Unicode range. For the backward |
| 4801 |
compatibility, char-set:ascii-whitespace and char-set:ascii-blank |
| 4802 |
is also defined. \s means char-set:ascii-whitespace. |
| 4803 |
|
| 4804 |
2019-09-17 Shiro Kawai <[email protected]> |
| 4805 |
|
| 4806 |
* src/char.c, src/gen-unicode.scm: Enhance char-set:digit and |
| 4807 |
SCM_CHAR_SET_DIGIT to include all Unicode Nd characters. |
| 4808 |
Add char-set:ascii-digit to cover the original range. "\d" in |
| 4809 |
regexp and char-set means ascii-digit for the backward compatibility. |
| 4810 |
By @pclouds, https://github.com/shirok/Gauche/pull/525 |
| 4811 |
|
| 4812 |
2019-09-12 Shiro Kawai <[email protected]> |
| 4813 |
|
| 4814 |
* ext/parser/peg.scm ($parameterize): Added, based on the suggestion |
| 4815 |
from @SaitoAtsushi |
| 4816 |
|
| 4817 |
2019-09-11 Shiro Kawai <[email protected]> |
| 4818 |
|
| 4819 |
* lib/text/line-edit.scm (backward-word, forward-word): Added |
| 4820 |
By @pclouds, https://github.com/shirok/Gauche/pull/524 |
| 4821 |
|
| 4822 |
* src/main.c: `gosh -h` to emit help message to stdout, and exit |
| 4823 |
with 0, while other unrecognized option use stderr and 1. |
| 4824 |
|
| 4825 |
2019-09-07 Shiro Kawai <[email protected]> |
| 4826 |
|
| 4827 |
* ext/parser/peg.scm ($let, $let*): Experimenting $let/$let* |
| 4828 |
instead of $do. |
| 4829 |
|
| 4830 |
2019-08-29 Shiro Kawai <[email protected]> |
| 4831 |
|
| 4832 |
* lib/r7rs-setup.scm: Rename 'r7rs' module to 'r7rs.vanilla', to |
| 4833 |
avoid people from doing (import (r7rs)) accidentally. |
| 4834 |
|
| 4835 |
2019-08-27 Shiro Kawai <[email protected]> |
| 4836 |
|
| 4837 |
* ext/uvector: Generate interface module gauche.uvector.base, |
| 4838 |
corresponds to (srfi-160 base) library. |
| 4839 |
|
| 4840 |
2019-08-26 Shiro Kawai <[email protected]> |
| 4841 |
|
| 4842 |
* lib/r7rs.scm -> lib/r7rs-setup.scm: Renamed. The name 'r7rs' might |
| 4843 |
give a wrong impression to users that (use r7rs) or (import (r7rs)) |
| 4844 |
is suffice to use r7rs features, while the 'r7rs' module should |
| 4845 |
never be used or imported directly. Thus we rename it to |
| 4846 |
r7rs-setup, indicating it's the internal setup for r7rs libraries |
| 4847 |
such as (scheme base). |
| 4848 |
Cf. https://github.com/shirok/Gauche/issues/513 |
| 4849 |
|
| 4850 |
2019-08-17 Shiro Kawai <[email protected]> |
| 4851 |
|
| 4852 |
* src/librx.scm (%regexp-replace-rec): If regexp matches zero-length |
| 4853 |
string, after replacing it we advance one character to loop, to |
| 4854 |
avoid infinite loop. (We used to make it error.) This behavior |
| 4855 |
is adopted by Perl and Ruby as well. |
| 4856 |
|
| 4857 |
2019-08-14 Shiro Kawai <[email protected]> |
| 4858 |
|
| 4859 |
* src/libfmt.scm: Fix ~vr https://github.com/shirok/Gauche/issues/509 |
| 4860 |
|
| 4861 |
2019-08-11 Shiro Kawai <[email protected]> |
| 4862 |
|
| 4863 |
* lib/util/stream.scm: Add srfi-41 procedures |
| 4864 |
* lib/srfi-41.scm, lib/scheme/stream: Add srfi-41 (scheme.stream) |
| 4865 |
support |
| 4866 |
|
| 4867 |
2019-08-02 Shiro Kawai <[email protected]> |
| 4868 |
|
| 4869 |
* ext/uvector/uvlib.scm.stub (TAGvector-swap!, TAGvector-reverse!) |
| 4870 |
(TAGvector-fill!): Let them return #<undef>, so that programs won't |
| 4871 |
accidentally relies on the return value. NB: TAGvector-fill! used |
| 4872 |
to return the uvector itself, but it's undocumented. |
| 4873 |
|
| 4874 |
2019-07-27 Shiro Kawai <[email protected]> |
| 4875 |
|
| 4876 |
* src/libsys.scm, src/port.c: Do not restart close() and dup2(). |
| 4877 |
https://github.com/shirok/Gauche/issues/504 |
| 4878 |
|
| 4879 |
* lib/srfi-115.scm, src/regexp.c etc.: More support of SRE and |
| 4880 |
srfi-115, by @pclouds https://github.com/shirok/Gauche/pull/502 |
| 4881 |
|
| 4882 |
2019-07-25 Shiro Kawai <[email protected]> |
| 4883 |
|
| 4884 |
* src/module.c (search_binding): Fix transitive export and only/rename |
| 4885 |
import combination |
| 4886 |
https://github.com/shirok/Gauche/issues/472 |
| 4887 |
* lib/scheme/vector/*: Added scheme.vector.@ files (R7RS tangerine). |
| 4888 |
|
| 4889 |
2019-07-23 Shiro Kawai <[email protected]> |
| 4890 |
|
| 4891 |
* src/regexp.c, lib/gauche/regexp/sre.scm: Added support of SRE by |
| 4892 |
@pclouds https://github.com/shirok/Gauche/pull/495 |
| 4893 |
* lib/gauche/cgen/stub.scm: Added # of return values check in |
| 4894 |
'return' macro. |
| 4895 |
|
| 4896 |
2019-07-23 Shiro Kawai <[email protected]> |
| 4897 |
|
| 4898 |
* lib/gauche/cgen/stub.scm (process-body-inner): Support more than |
| 4899 |
3 return values |
| 4900 |
Patch by @pclouds https://github.com/shirok/Gauche/pull/499 |
| 4901 |
|
| 4902 |
* src/char.c (Scm_CharSetAdd): Fix a bug when adding ASCII char |
| 4903 |
to a large char set inadvertently cleared the large flag. |
| 4904 |
Patch by @pclouds https://github.com/shirok/Gauche/pull/500 |
| 4905 |
|
| 4906 |
* ext/uvector - Added support of srfi-160 procedures. |
| 4907 |
|
| 4908 |
2019-07-22 Shiro Kawai <[email protected]> |
| 4909 |
|
| 4910 |
* lib/gauche/cgen/precomp.scm (compile-toplevel-form): Handle toplevel |
| 4911 |
begin and include. |
| 4912 |
|
| 4913 |
2019-07-21 Shiro Kawai <[email protected]> |
| 4914 |
|
| 4915 |
* src/gauche/priv/vmP.h, src/boolean.c, src/gauche/vminsin.scm: |
| 4916 |
EXPERIMENTAL: Add a check if #<undef> appear in the test of |
| 4917 |
conditional expression. It can be turned on by the environment |
| 4918 |
variable GAUCHE_CHECK_UNDEFINED_TEST. The expression returning |
| 4919 |
#<undef> means the value doesn't matter. It leads to an assumption |
| 4920 |
that you can change the value without affecting other parts of the |
| 4921 |
program. But such change breaks if the value is used in |
| 4922 |
conditional tests. |
| 4923 |
It turned out Gauche internal code has plenty of such cases, |
| 4924 |
so we keep it unofficial until we fix out code first. Eventually |
| 4925 |
we'd like to prohibit #<undef> from being used in conditional tests. |
| 4926 |
|
| 4927 |
2019-07-20 Shiro Kawai <[email protected]> |
| 4928 |
|
| 4929 |
* ext/uvector/ifgen.scm: Generate interface modules such as |
| 4930 |
gauche.uvector.u8 etc. They are to be used as scheme.vector.u8 etc. |
| 4931 |
later. |
| 4932 |
|
| 4933 |
2019-07-19 Shiro Kawai <[email protected]> |
| 4934 |
|
| 4935 |
* ext/uvector: Added almost full support of c32, c64 and c128 uvectors |
| 4936 |
(except byte swapping). |
| 4937 |
|
| 4938 |
2019-07-17 Shiro Kawai <[email protected]> |
| 4939 |
|
| 4940 |
* src/gauche/int64.h etc.: Removed [u]int64 emulation code. Now we |
| 4941 |
assume C99, [u]int64_t types are available. |
| 4942 |
|
| 4943 |
2019-07-15 Shiro Kawai <[email protected]> |
| 4944 |
|
| 4945 |
* lib/srfi-124.scm, lib/scheme/ephemeron.scm: Added. |
| 4946 |
|
| 4947 |
2019-07-14 Shiro Kawai <[email protected]> |
| 4948 |
|
| 4949 |
* src/vector.c, src/class.c, src/read.c: Core support of complex |
| 4950 |
uniform vectors (for srfi-160). |
| 4951 |
|
| 4952 |
* src/gauche/float.h, src/gauche/number.h, src/number.c: |
| 4953 |
Support of native complex numbers (ScmHalfComplex, complex float |
| 4954 |
and complex double). |
| 4955 |
|
| 4956 |
2019-07-13 Shiro Kawai <[email protected]> |
| 4957 |
|
| 4958 |
* libsrc/gauche/generator.scm (grange): Support negative step. |
| 4959 |
|
| 4960 |
2019-07-09 Shiro Kawai <[email protected]> |
| 4961 |
|
| 4962 |
* src/compile-4.scm (pass4): Avoid generating large local frame |
| 4963 |
for lifted lambdas in toplevel $seq node. |
| 4964 |
|
| 4965 |
2019-07-08 Shiro Kawai <[email protected]> |
| 4966 |
|
| 4967 |
* src/vminsn.scm (XLREF, XLSET), src/compile-5.scm: Support large env |
| 4968 |
frames---the offset exceeds 1023. Now we can support up to |
| 4969 |
2^20-1. There are other instructions (e.g. BOX, ENV-SET) that uses |
| 4970 |
the same range for frame offset so this is the reasonable limit. |
| 4971 |
https://github.com/shirok/Gauche/issues/487 |
| 4972 |
|
| 4973 |
2019-07-06 Shiro Kawai <[email protected]> |
| 4974 |
|
| 4975 |
* lib/gauche/test/script.scm (test-script): Add compile-only option |
| 4976 |
to prevent toplevel forms in the script to be executed. |
| 4977 |
|
| 4978 |
2019-07-05 Shiro Kawai <[email protected]> |
| 4979 |
|
| 4980 |
* src/compile-1.scm (lambda): Attach formal parameter info to |
| 4981 |
extended lambdas as well (it's been missing for a while). |
| 4982 |
|
| 4983 |
2019-06-30 Shiro Kawai <[email protected]> |
| 4984 |
|
| 4985 |
* lib/gauche/pputil.scm: Fixes a bug that emits lables in negative |
| 4986 |
numbers https://github.com/shirok/Gauche/issues/484 |
| 4987 |
|
| 4988 |
2019-06-15 Shiro Kawai <[email protected]> |
| 4989 |
|
| 4990 |
* Release 0.9.8 |
| 4991 |
|
| 4992 |
2019-06-13 Shiro Kawai <[email protected]> |
| 4993 |
|
| 4994 |
* libobj.scm (%record-ref): Check unbound slot. #<unbound> should never |
| 4995 |
be leaked to Scheme world. |
| 4996 |
* class.c (Scm_InstanceSlotRef3): New API that checks slot unbound |
| 4997 |
situation. This one follows the standard *Ref() API. The old |
| 4998 |
Scm_InstanceSlotRef should be considered as obsoleted. We'll |
| 4999 |
rename *Ref3() version to *Ref() in 1.0 release. |
| 5000 |
* libobj.scm (instance-slot-ref): Rewrite using Scm_InstanceSlotRef3. |
| 5001 |
|
| 5002 |
2019-06-10 Shiro Kawai <[email protected]> |
| 5003 |
|
| 5004 |
* test/include/srfi-144-tests.scm: Change one flexp-1 test to use |
| 5005 |
test/approx. |
| 5006 |
http://chaton.practical-scheme.net/gauche/a/2019/06/10#entry-5cfe669c-c4805 |
| 5007 |
|
| 5008 |
2019-06-05 Shiro Kawai <[email protected]> |
| 5009 |
|
| 5010 |
* lib/gauche/interactive.scm: (Experimental): Turn on prettyprinting |
| 5011 |
on REPL by default. It can be turned off by setting env var |
| 5012 |
GAUCHE_REPL_NO_PPRINT. |
| 5013 |
|
| 5014 |
2019-05-20 Shiro Kawai <[email protected]> |
| 5015 |
|
| 5016 |
* ext/vport/vport.c: Accept :name initarg to set port names |
| 5017 |
when a virtual port is constructed. |
| 5018 |
|
| 5019 |
* lib/gauche/pputil.scm (layout-misc): Fixed pprint on uvector. |
| 5020 |
|
| 5021 |
2019-05-10 Shiro Kawai <[email protected]> |
| 5022 |
|
| 5023 |
* src/libmacro.scm (cond-expand): Let 'library' clause accept |
| 5024 |
Gauche-style library name, as well as R7RS-style one. |
| 5025 |
|
| 5026 |
2019-05-08 Shiro Kawai <[email protected]> |
| 5027 |
|
| 5028 |
* libsrc/gauche/generator.scm: Add specialized methods for |
| 5029 |
(x->generator <hash-table>) and (x->generator <tree-map>) |
| 5030 |
|
| 5031 |
* src/vm.c (PUSH_ARG): Fix a bug that had stepped on UB. Surfaced |
| 5032 |
depending on optimization. |
| 5033 |
|
| 5034 |
2019-05-03 Shiro Kawai <[email protected]> |
| 5035 |
|
| 5036 |
* src/gen-unicode.scm: Update Unicode database to 12.1.0, thanks to |
| 5037 |
@qykth-git. https://github.com/shirok/Gauche/pull/471 |
| 5038 |
|
| 5039 |
2019-04-19 Shiro Kawai <[email protected]> |
| 5040 |
|
| 5041 |
* ext/test/unicode.scm (utf8-length): Fix behavior of permissive and |
| 5042 |
ignore strictness for the consistency; these shoudn't throw error if |
| 5043 |
octet is in [0..255], but does throw error if octet is out of range. |
| 5044 |
Within the range, permissive strictness returns 1 for invalid octet, |
| 5045 |
while ignore strictness returns 0 for them. |
| 5046 |
|
| 5047 |
2019-03-31 Shiro Kawai <[email protected]> |
| 5048 |
|
| 5049 |
* src/number.c (scm_div): Fix bug that yields infinity in (/. +nan.0 0). |
| 5050 |
|
| 5051 |
2019-03-30 Shiro Kawai <[email protected]> |
| 5052 |
|
| 5053 |
* lib/gauche/numerical.scm (approx=?): Added. |
| 5054 |
|
| 5055 |
* src/libnum.scm (flonum-min-normalized, flonum-min-denormalized): |
| 5056 |
Added. |
| 5057 |
|
| 5058 |
* src/number.c (Scm_EncodeFlonum): Clean up the code; make it |
| 5059 |
truly inverse of Scm_DecodeFlonum. |
| 5060 |
(Scm__EncodeDouble): Switched argument order for the consistency. |
| 5061 |
This is internal function and shouldn't be used from other than |
| 5062 |
number.c and binum.c. |
| 5063 |
|
| 5064 |
2019-03-28 Shiro Kawai <[email protected]> |
| 5065 |
|
| 5066 |
* src/libmacro.scm (unwind-protect): Moved here from common-macros.scm, |
| 5067 |
and removed the restriction that prevents from reentering to BODY |
| 5068 |
once HANDLERS are executed. There are useful cases to reenter to |
| 5069 |
BODY even after HANDLERS are done (such as calculations captured |
| 5070 |
in a delimited continuations within BODY and that doesn't depend |
| 5071 |
on resources cleaned up by HANDLERS). |
| 5072 |
See the comment for other implementation details. Be aware that |
| 5073 |
unwined-protect now expands to the call of %unwind-protect, and |
| 5074 |
that persists across Gauche versions so we can't change the interface |
| 5075 |
of %unwind-protect casually. |
| 5076 |
|
| 5077 |
2019-03-26 Shiro Kawai <[email protected]> |
| 5078 |
|
| 5079 |
* lib/gauche/cgen/literal.scm: Fix uniform vector literal generation. |
| 5080 |
We have to handle infinity, NaN, and minus zero properly. |
| 5081 |
|
| 5082 |
* lib/srfi-42.scm (srfi-42-uvector): Support uvector as well. |
| 5083 |
|
| 5084 |
* ext/uvector/uvector.scm: (uvector->list, uvector->vector): |
| 5085 |
Add generic version. |
| 5086 |
|
| 5087 |
2019-03-25 Shiro Kawai <[email protected]> |
| 5088 |
|
| 5089 |
* src/libnum.scm (-zero?): Added experimentally. Could be better |
| 5090 |
to provide signbit instead; not sure yet. |
| 5091 |
|
| 5092 |
2019-03-24 Shiro Kawai <[email protected]> |
| 5093 |
|
| 5094 |
* lib/gauche/procedure.scm (disasm): Show lifted closure (the one |
| 5095 |
that's only referenced thru closed env). |
| 5096 |
|
| 5097 |
* src/compile.scm (transparent?): Recognize some $ASM node transparent. |
| 5098 |
* src/compile-3.scm (pass3/$SEQ): Let empty $seq at the last of |
| 5099 |
sequence prevent the previous constant expression from being |
| 5100 |
optimized away. |
| 5101 |
|
| 5102 |
* src/compile-2.scm (pass2/dissolve-apply): Optimize away TAIL-APPLY |
| 5103 |
if we know all the arguments. It often happens after inline expansion. |
| 5104 |
Note: As the result of this optimination, merely 'apply'-ing |
| 5105 |
procedure to a list of argument won't suppress further inlining, |
| 5106 |
e.g. (apply + '(1 2)) will become constant 3. Needed to tweak |
| 5107 |
tests so that we can ensure the tested procedures are called. |
| 5108 |
* src/compile.scm, src/main.c: Add -fnodissolve-apply option to |
| 5109 |
disable above optimization. |
| 5110 |
|
| 5111 |
2019-03-23 Shiro Kawai <[email protected]> |
| 5112 |
|
| 5113 |
* src/vminsn.scm (SCM_NUMMUL2): Fix: finite inexact number multiplied |
| 5114 |
by an exact zero should yield an exact zero (consistency with |
| 5115 |
Scm_Mul). |
| 5116 |
* src/liblist.scm (iota): Fix: make sure inexact step calculation |
| 5117 |
uses inexact multiplication (because of above fix, normal |
| 5118 |
multiplication can yield exact zero). |
| 5119 |
|
| 5120 |
2019-03-21 Shiro Kawai <[email protected]> |
| 5121 |
|
| 5122 |
* ext/srfi/srfi-144.scm: Start adding srfi-144. |
| 5123 |
|
| 5124 |
2019-03-16 Shiro Kawai <[email protected]> |
| 5125 |
|
| 5126 |
* ext/uvector: Move r7rs core bytevector procedures into |
| 5127 |
gauche.uvector. |
| 5128 |
|
| 5129 |
2019-03-15 Shiro Kawai <[email protected]> |
| 5130 |
|
| 5131 |
* lib/scheme: Add aliases for R7RS-large Tangerine Edition: |
| 5132 |
scheme.mapping -> srfi-146 |
| 5133 |
scheme.mapping.hash -> srfi-146.hash |
| 5134 |
scheme.generator -> srfi-158 (change from srfi-121) |
| 5135 |
scheme.division -> srfi-141 |
| 5136 |
scheme.bitwise -> srfi-151 |
| 5137 |
scheme.fixnum -> srfi-143 |
| 5138 |
|
| 5139 |
2019-03-13 Shiro Kawai <[email protected]> |
| 5140 |
|
| 5141 |
* src/libmacro.scm (cut, cute, define-values, set!-values), |
| 5142 |
lib/srfi-26.scm, lib/gauche/defvalues.scm: Make these macros |
| 5143 |
built-in. |
| 5144 |
|
| 5145 |
2019-03-12 Shiro Kawai <[email protected]> |
| 5146 |
|
| 5147 |
* src/libmacro.scm (cond-expand), lib/srfi-0.sm: Make cond-expand |
| 5148 |
built-in. |
| 5149 |
|
| 5150 |
2019-03-11 Shiro Kawai <[email protected]> |
| 5151 |
|
| 5152 |
* src/libmacro.scm (rec), lib/srfi-31.scm: Make 'rec' built-in. |
| 5153 |
|
| 5154 |
2019-03-10 Shiro Kawai <[email protected]> |
| 5155 |
|
| 5156 |
* gc: Bumped bdwgc 8.0.4 and libatomic_ops 7.6.10 |
| 5157 |
by @qykth-git https://github.com/shirok/Gauche/pull/457 |
| 5158 |
|
| 5159 |
2019-03-06 Shiro Kawai <[email protected]> |
| 5160 |
|
| 5161 |
* ext/uvector/matrix.scm: Added array-negate-elements! and |
| 5162 |
array-reciprocate-elements!. |
| 5163 |
See also @Hayamaya's fix https://github.com/shirok/Gauche/pull/456. |
| 5164 |
|
| 5165 |
2019-03-01 Shiro Kawai <[email protected]> |
| 5166 |
|
| 5167 |
* ext/peg/peg.scm ($match1): Added experimentally. |
| 5168 |
|
| 5169 |
2019-02-22 Shiro Kawai <[email protected]> |
| 5170 |
|
| 5171 |
* src/symbol.c: Make GAUCHE_KEYWORD_IS_SYMBOL default. It's been |
| 5172 |
4.5 yrs since its introduction. To get the old behavior, a user |
| 5173 |
can set GAUCHE_KEYWORD_DISJOINT env var. |
| 5174 |
|
| 5175 |
* src/libnum.scm: Let trigonometric functions return exact value |
| 5176 |
when the arg is exact zero. |
| 5177 |
|
| 5178 |
2019-02-21 Shiro Kawai <[email protected]> |
| 5179 |
|
| 5180 |
* ext/peg/peg.scm ($match): Added experimentally. |
| 5181 |
|
| 5182 |
2019-02-19 Shiro Kawai <[email protected]> |
| 5183 |
|
| 5184 |
* lib/libmisc.scm, lib/libomega.scm (identity): Attach compiler macro |
| 5185 |
to identity so that it can be optimized away when used literally. |
| 5186 |
It is useful for macro---identity inserted by macro expansion will |
| 5187 |
cost nothing. We need to move the definition to libomega, though, |
| 5188 |
for define-inline/syntax requires the compiler to be booted up. |
| 5189 |
|
| 5190 |
2019-02-16 Shiro Kawai <[email protected]> |
| 5191 |
|
| 5192 |
* lib/gauche/interactive.scm, src/main.c: Instead of loading |
| 5193 |
gauche.interactive, main.c loads gauche/interactive/init.scm, |
| 5194 |
which in turn 'use' gauche.interactive. This is to exclude |
| 5195 |
side-effect causing expressions from gauche.interactive module, |
| 5196 |
so that it can be used as an ordinary module. Notably, the code |
| 5197 |
to load .gaucherc is done in gauche/interactive/init.scm. |
| 5198 |
Cf. https://github.com/shirok/Gauche/issues/448 |
| 5199 |
|
| 5200 |
2019-01-30 Shiro Kawai <[email protected]> |
| 5201 |
|
| 5202 |
* INSTALL.adoc: Converted to asciidoc by @qykth-git |
| 5203 |
https://github.com/shirok/Gauche/pull/441 |
| 5204 |
|
| 5205 |
2019-01-28 Shiro Kawai <[email protected]> |
| 5206 |
|
| 5207 |
* src/hash.c: Support uniform vector hashing |
| 5208 |
Patch by @Hamayama: https://github.com/shirok/Gauche/pull/440 |
| 5209 |
Plus enabling default-hash work on every uvector types. |
| 5210 |
|
| 5211 |
2019-01-26 Shiro Kawai <[email protected]> |
| 5212 |
|
| 5213 |
* configure.ac: Generate features.{c|flags} at configuration time. |
| 5214 |
When cross compiling, features.flags is passed to BUILD_GOSH |
| 5215 |
so that it expants cond-expand according to the host architecture |
| 5216 |
instead of the build architecture. |
| 5217 |
Cf. https://github.com/shirok/Gauche/issues/407 |
| 5218 |
|
| 5219 |
2019-01-24 Shiro Kawai <[email protected]> |
| 5220 |
|
| 5221 |
* src/gen-features.sh: Generate Scm_AddFeatures code by scanning |
| 5222 |
config.h instead of relying C preprocessor. |
| 5223 |
|
| 5224 |
2019-01-19 Shiro Kawai <[email protected]> |
| 5225 |
|
| 5226 |
* lib/gauche/cgen/cise.scm: Support function type in the form: |
| 5227 |
(.function (arg::type ...) ::rettype) |
| 5228 |
|
| 5229 |
2019-01-18 Shiro Kawai <[email protected]> |
| 5230 |
|
| 5231 |
* lib/gauche/cgen/cise.scm: Support struct and union types, in the |
| 5232 |
following forms: |
| 5233 |
(.struct tag (member::type ...)) |
| 5234 |
(.struct (member::type ...)) |
| 5235 |
(.struct tag) |
| 5236 |
and substituting .struct with .union. |
| 5237 |
(declare-cvar, define-ctype): Added. |
| 5238 |
|
| 5239 |
2019-01-17 Shiro Kawai <[email protected]> |
| 5240 |
|
| 5241 |
* lib/gauche/cgen/cise.scm (declare-cfn): Added. See |
| 5242 |
https://github.com/shirok/Gauche/pull/430 |
| 5243 |
|
| 5244 |
2019-01-15 Shiro Kawai <[email protected]> |
| 5245 |
|
| 5246 |
* src/gauche-package.in, lib/gauche/package/compile.scm: |
| 5247 |
Add -k | --keep-c-files option. |
| 5248 |
Add --no-line option to suppress #line directive. |
| 5249 |
(cf: https://github.com/shirok/Gauche/issues/427) |
| 5250 |
|
| 5251 |
2019-01-13 Shiro Kawai <[email protected]> |
| 5252 |
|
| 5253 |
* lib/control/mapper.scm: Added. |
| 5254 |
|
| 5255 |
2019-01-11 Shiro Kawai <[email protected]> |
| 5256 |
|
| 5257 |
* src/gauche/priv/atomicP.h: If GC is using compiler-builtins, we |
| 5258 |
also use them and totally depart from AO_t stuff. OSX compiler |
| 5259 |
seems picky about types of atomic and atomic variables, so |
| 5260 |
we introduce two typedefs, ScmAtomicWord and ScmAtomicVar, and |
| 5261 |
switch them whether we use C11 intrinsics or libatomic_ops. |
| 5262 |
|
| 5263 |
2019-01-10 Shiro Kawai <[email protected]> |
| 5264 |
|
| 5265 |
* configure.ac, src/gauche/priv/atomicP.h: Drop duplicate check of |
| 5266 |
libatomic_ops in configure.ac; instead, we rely on the check |
| 5267 |
in gc/configure and take the result. Also adapted to the |
| 5268 |
intrinsic support of atomic operations. |
| 5269 |
|
| 5270 |
2019-01-04 Shiro Kawai <[email protected]> |
| 5271 |
|
| 5272 |
* lib/gauche/numerical.scm (floor/), lib/srfi-141.scm (ceiling/): |
| 5273 |
Fix bugs that returns incorrect values when remainder is zero. |
| 5274 |
https://github.com/shirok/Gauche/issues/420 |
| 5275 |
|
| 5276 |
* src/gen-unicode.scm, src/char.c: Replace predefined charsets |
| 5277 |
for static immutable char-sets. Note that SCM_CHAR_SET_x enums are |
| 5278 |
changed. Srfi-14's predefined charsets such as char-set:letter |
| 5279 |
are now in gauche module. In addition to srfi-14 sets, we have |
| 5280 |
char-set:Lu etc., as well. |
| 5281 |
|
| 5282 |
2019-01-01 Shiro Kawai <[email protected]> |
| 5283 |
|
| 5284 |
* src/gen-unicode.scm, lib/text/unicode/codeset.scm: Generate static |
| 5285 |
immutable char-sets corresponding to Unicode General Category. |
| 5286 |
|
| 5287 |
2018-12-29 Shiro Kawai <[email protected]> |
| 5288 |
|
| 5289 |
* gc/: Update to libgc 8. https://github.com/shirok/Gauche/pull/414 |
| 5290 |
|
| 5291 |
* src/compile-1.scm (_, ...): Bind these two as syntaxes so that they |
| 5292 |
can be exported from (scheme base). |
| 5293 |
|
| 5294 |
2018-12-28 Shiro Kawai <[email protected]> |
| 5295 |
|
| 5296 |
* src/libmacro.scm (quasirename): Adjust behavior of quasirename |
| 5297 |
by the environment variable GAUCHE_QUASIRENAME_MODE, to help |
| 5298 |
the transition. |
| 5299 |
|
| 5300 |
2018-12-26 Shiro Kawai <[email protected]> |
| 5301 |
|
| 5302 |
* src/libmacro.scm (quasirename): Fixed to handle nested quasiX |
| 5303 |
properly. In order to work with nested quasiquotes, we now |
| 5304 |
recognize (quasirename expr `form) as the proper form. We'll |
| 5305 |
support the old format (without quasiquote) for a while. |
| 5306 |
|
| 5307 |
2018-12-22 Shiro Kawai <[email protected]> |
| 5308 |
|
| 5309 |
* src/libmac.scm (define-compiler-macro): Drop support. It now |
| 5310 |
just triggers an error. |
| 5311 |
|
| 5312 |
2018-12-21 Shiro Kawai <[email protected]> |
| 5313 |
|
| 5314 |
* gc/: Update to libgc 7.6.10 / libatomic_ops 7.6.8 |
| 5315 |
https://github.com/shirok/Gauche/pull/409 |
| 5316 |
|
| 5317 |
* src/*.c: Remove pre-GAUCHE_API_0_95 entries. |
| 5318 |
|
| 5319 |
2018-12-20 Shiro Kawai <[email protected]> |
| 5320 |
|
| 5321 |
* Release 0.9.7 |
| 5322 |
|
| 5323 |
2018-12-18 Shiro Kawai <[email protected]> |
| 5324 |
|
| 5325 |
* src/core.c (Scm_DisableFeature), src/main.c (feature_options): |
| 5326 |
Allow to disable a feature by -F-feature option. |
| 5327 |
|
| 5328 |
2018-12-16 Shiro Kawai <[email protected]> |
| 5329 |
|
| 5330 |
* ext/peg - Deprecate pre-defined character parsers (anychar, |
| 5331 |
upper, lower, letter, alphanum, digit, hexdigit, newline, |
| 5332 |
tab, space, spaces, and eof), and shorthands ($s, $c, and $y). |
| 5333 |
Those names are easy to conflict (esp. 'newline') yet not so |
| 5334 |
much useful, for it's quite easy to define. |
| 5335 |
We added $any and $eos parser makers; with inlining |
| 5336 |
there's no overhead from using predefined parsers. We also add |
| 5337 |
$., which supersedes $s and $c, and also can be used for $one-of. |
| 5338 |
Although parser.peg is unofficial, they've been around for years |
| 5339 |
and there might be code that depends on it, so we provide the |
| 5340 |
deprecated APIs in a separate module, parser.peg.deprecated. |
| 5341 |
|
| 5342 |
2018-12-08 Shiro Kawai <[email protected]> |
| 5343 |
|
| 5344 |
* configure.ac (--with-gperftools), main.c, signal.c: Support linking |
| 5345 |
with gperftools. |
| 5346 |
|
| 5347 |
2018-12-06 Shiro Kawai <[email protected]> |
| 5348 |
|
| 5349 |
* src/libomega.scm: Turn on generic dispatcher on a few popular |
| 5350 |
gfs experimentally. Env var GAUCHE_DISABLE_GENERIC_DISPATCHER |
| 5351 |
turn off this feature in case if there's a serious bug. |
| 5352 |
|
| 5353 |
* src/parameter.c: Rename Scm_DefinePrimitiveParameter to |
| 5354 |
Scm_BindPrimitiveParameter; it's weird that Scm_Define* returns |
| 5355 |
a value. |
| 5356 |
|
| 5357 |
2018-12-04 Shiro Kawai <[email protected]> |
| 5358 |
|
| 5359 |
* src/parameter.c: Make primitive parameter an ScmObj. |
| 5360 |
|
| 5361 |
2018-12-03 Shiro Kawai <[email protected]> |
| 5362 |
|
| 5363 |
* src/compile.scm (pack-iform, unpack-iform): Save iform symbolic tags |
| 5364 |
instead of numeric tags in packed iforms, so that we can change |
| 5365 |
numeric tag values across versions. |
| 5366 |
|
| 5367 |
2018-12-01 Shiro Kawai <[email protected]> |
| 5368 |
|
| 5369 |
* src/hash.c (Scm_HashCoreCopy): Fix a bug that didn't copy |
| 5370 |
entries' hashval. It won't surface until the copied hashtable |
| 5371 |
is rehashed, at that time the entries are chained in a wrong |
| 5372 |
bucket. The culprit of https://github.com/shirok/Gauche/issues/400 |
| 5373 |
|
| 5374 |
2018-11-26 Shiro Kawai <[email protected]> |
| 5375 |
|
| 5376 |
* src/parameter.c: Add 'lazy parameter' feature, that implicitly |
| 5377 |
forces the parameter value when dereferenced. For now, we have |
| 5378 |
this feature available only from C API (use SCM_PARAMETER_LAZY flag |
| 5379 |
upon creation of ScmPrimitiveParameter). |
| 5380 |
* ext/tls: Made default-tls-class a lazy parameter, and set its |
| 5381 |
value to <mbed-tls> when mbedTLS is used but not axTLS. We need it |
| 5382 |
to be lazy so that rfc.tls.mbed won't be loaded during loading |
| 5383 |
rfc.tls. |
| 5384 |
|
| 5385 |
2018-11-24 Shiro Kawai <[email protected]> |
| 5386 |
|
| 5387 |
* src/parameter.c etc.: C API/ABI INCOMPATIBLE CHANGE: Revised |
| 5388 |
low-level parameter handling. Obsoleted ScmParameterLoc and |
| 5389 |
introduced opaque ScmPrimitiveParameter. Scm_InitParameterLoc, |
| 5390 |
Scm_ParameterRef and Scm_ParameterSet still work but deprecated. |
| 5391 |
Scm_DefinePrimitiveParameter API is incompatibly changed to return |
| 5392 |
ScmPrimitiveParameter*. Updated other components to use the new API. |
| 5393 |
|
| 5394 |
2018-11-22 Shiro Kawai <[email protected]> |
| 5395 |
|
| 5396 |
* src/parameter.h: Change parameter table rayout |
| 5397 |
(ABI incompatible change - recompilation needed). |
| 5398 |
|
| 5399 |
2018-11-21 Shiro Kawai <[email protected]> |
| 5400 |
|
| 5401 |
* ext/tls: Support 'system CA store for axTLS as well. By @qykth-git |
| 5402 |
https://github.com/shirok/Gauche/pull/398 |
| 5403 |
|
| 5404 |
2018-11-18 Shiro Kawai <[email protected]> |
| 5405 |
|
| 5406 |
* ext/tls: Support 'system CA store on Windows/mbed, that fetches |
| 5407 |
CA certs from the system certificate store. By @qykth-git |
| 5408 |
https://github.com/shirok/Gauche/pull/395 |
| 5409 |
|
| 5410 |
2018-11-12 Shiro Kawai <[email protected]> |
| 5411 |
|
| 5412 |
* src/vminsn.scm: Reorder instructions for better understandability, |
| 5413 |
and removed obsoleted instructions. This break binary compatibiltiy. |
| 5414 |
We break it anyways in 0.9.7, so let's do this now. |
| 5415 |
|
| 5416 |
2018-11-02 Shiro Kawai <[email protected]> |
| 5417 |
|
| 5418 |
* src/genconfig.in, m4/gauche.m4: Drop support of fixup-extension. |
| 5419 |
GC can already detects data section of DSO files. |
| 5420 |
|
| 5421 |
2018-11-01 Shiro Kawai <[email protected]> |
| 5422 |
|
| 5423 |
* lib/gauche/macroutil.scm, src/libomega.scm (quasirename): Move |
| 5424 |
quasirename into core. |
| 5425 |
|
| 5426 |
2018-10-27 Shiro Kawai <[email protected]> |
| 5427 |
|
| 5428 |
* ext/tls: Adapted to <connection> interface. INCOMPATIBLE CHANGE: |
| 5429 |
Now tls-connect and tls-accept takes socket, not the fd. |
| 5430 |
These procedures are undocumented. |
| 5431 |
|
| 5432 |
* src/class.c, lib/gauche/connection.scm, ext/net/net.scm: |
| 5433 |
Add <connection> interface. Make <socket> implements connection. |
| 5434 |
|
| 5435 |
2018-10-25 Shiro Kawai <[email protected]> |
| 5436 |
|
| 5437 |
* src/liblist.scm (assoc-adjoin, assoc-update-in): Added. |
| 5438 |
|
| 5439 |
2018-10-19 Shiro Kawai <[email protected]> |
| 5440 |
|
| 5441 |
* lib/gauche/fileutil.scm (glob-fold): Let glob sort the result |
| 5442 |
by default. The sorter argument allows to customize sorting, |
| 5443 |
or disable sorting at all. Inspired by comment from NIIBE Yutaka. |
| 5444 |
|
| 5445 |
2018-10-15 Shiro Kawai <[email protected]> |
| 5446 |
|
| 5447 |
* libsrc/file/util.scm (call-with-temporary-file), |
| 5448 |
(call-with-temporary-directory): Added. |
| 5449 |
|
| 5450 |
2018-10-14 Shiro Kawai <[email protected]> |
| 5451 |
|
| 5452 |
* lib/gauche/package/build.scm (gauche-package-tarball): Modernize |
| 5453 |
tarball creation: |
| 5454 |
- Reading package.scm for package name and version |
| 5455 |
- Add operations what "DIST tgz" has bee doing---creating |
| 5456 |
exclusion files. |
| 5457 |
- Used with gauche.configure, this basically eliminates the need |
| 5458 |
of DIST script. |
| 5459 |
|
| 5460 |
* lib/gauche/configure.scm (cf-check-func, cf-check-funcs) |
| 5461 |
(cf-msg-notice): Added. |
| 5462 |
|
| 5463 |
2018-10-13 Shiro Kawai <[email protected]> |
| 5464 |
|
| 5465 |
* lib/gauche/configure.scm (cf-check-type, cf-check-types) |
| 5466 |
(cf-check-decl, cf-check-decls, cf-check-member, cf-check-members): |
| 5467 |
Added. |
| 5468 |
|
| 5469 |
2018-10-11 Shiro Kawai <[email protected]> |
| 5470 |
|
| 5471 |
* lib/gauche/configure.scm (cf-init-gauche-extension), |
| 5472 |
(cf-output-default): Simplify boilerplate script a lot |
| 5473 |
by including common tasks in these two APIs. |
| 5474 |
|
| 5475 |
2018-10-03 Shiro Kawai <[email protected]> |
| 5476 |
|
| 5477 |
* ext/net/addr.c: Avoid type punning to access ipv6 address fields. |
| 5478 |
|
| 5479 |
2018-10-01 Shiro Kawai <[email protected]> |
| 5480 |
|
| 5481 |
* lib/gauche/package.scm (make-gauche-package-description): Instead of |
| 5482 |
rejecting unrecognized keywords, just issue warnings. It is useful |
| 5483 |
to update package.scm for the newer Gauche and still allowing |
| 5484 |
it to work for older Gauche. |
| 5485 |
Also added :providing-modules to gpd. |
| 5486 |
|
| 5487 |
* lib/gauche/configure.scm (cf-check-lib, with-cf-subst): Add support |
| 5488 |
of cf-check-lib. Auxiliary funciton with-cf-subst is also useful |
| 5489 |
so we export it. |
| 5490 |
|
| 5491 |
2018-09-29 Shiro Kawai <[email protected]> |
| 5492 |
|
| 5493 |
* lib/srfi-154.scm (dynamic-lambda): Updated to the final srfi-154. |
| 5494 |
Make it official. |
| 5495 |
|
| 5496 |
2018-09-22 Shiro Kawai <[email protected]> |
| 5497 |
|
| 5498 |
* lib/util/digest.scm (digest-hexify): Accept u8vector as well, for |
| 5499 |
the consistency. |
| 5500 |
* doc/modutil.texi: Make it clear that digester accepts both strings |
| 5501 |
and u8vectors. |
| 5502 |
|
| 5503 |
2018-09-17 Shiro Kawai <[email protected]> |
| 5504 |
|
| 5505 |
* configure.ac: 0.9.7_pre1 |
| 5506 |
|
| 5507 |
* src/gauche.h: Switched C API 0_95 by default - the following functions |
| 5508 |
are affected: |
| 5509 |
- Change Scm_Raise(e) to Scm_Raise(e, 0). |
| 5510 |
Use Scm_Raise2(e, 0) to work both 0_9 and 0_95 API. |
| 5511 |
- Change Scm_ReportError(e) to Scm_ReportError(e, SCM_OBJ(SCM_CURERR)). |
| 5512 |
Use Scm_ReportError2(e, port) to work both 0_9 and 0_95 API. |
| 5513 |
- Change Scm_MakeMacro(name, xformer) to |
| 5514 |
Scm_MakeMacro(name, xformer, SCM_FALSE, SCM_FALSE) |
| 5515 |
Use Scm_MakeMacroFull(e, x, s, d) to work both API. |
| 5516 |
- Change Scm_VMThrowException(vm, exc) to |
| 5517 |
Scm_VMThrowException(vm, exc, 0). |
| 5518 |
|
| 5519 |
2018-09-16 Shiro Kawai <[email protected]> |
| 5520 |
|
| 5521 |
* configure.ac: Bumped up ABI version to 0.97, for we can't safely |
| 5522 |
use extensions compiled with 0.9.6 or before. |
| 5523 |
* src/libomega.scm: Removed the compatibility code that searches |
| 5524 |
extension modules compiled with 0.9. |
| 5525 |
|
| 5526 |
* src/gauche/string.h: INCOMPATIBLE CHANGE: Switched string length |
| 5527 |
and size from int to ScmSmallInt. Also the 'flags' argument becomes |
| 5528 |
u_long. Both ABI and C API are affected. |
| 5529 |
For C code, callers of those APIs that receives string length and |
| 5530 |
size and pointers needs to be modified: Scm_GetStringContent, |
| 5531 |
Scm_CStringArrayToList and Scm_DStringPeek. |
| 5532 |
Precompiled code includes static data of struct ScmStringRec, |
| 5533 |
so they need to be recompiled. |
| 5534 |
|
| 5535 |
2018-09-08 Shiro Kawai <[email protected]> |
| 5536 |
|
| 5537 |
* doc/modutil.texi: Document compat.chibi-test. |
| 5538 |
|
| 5539 |
2018-08-30 Shiro Kawai <[email protected]> |
| 5540 |
|
| 5541 |
* lib/srfi-113.scm (set<? etc.): The reference implementation assumed |
| 5542 |
(set<? x y) == (not (set>=? x y)) but it is incorrect. |
| 5543 |
|
| 5544 |
2018-08-23 Shiro Kawai <[email protected]> |
| 5545 |
|
| 5546 |
* ext/array.scm (array-copy): Added as a public API. |
| 5547 |
NB: We remove copy-object generic function. It is undocumented |
| 5548 |
and only used internally in matrix.scm. If we ever expose it, |
| 5549 |
we need to support otehr types consistently. |
| 5550 |
|
| 5551 |
2018-08-18 Shiro Kawai <[email protected]> |
| 5552 |
|
| 5553 |
* lib/text/mexpr.scm: Added. |
| 5554 |
|
| 5555 |
2018-08-17 Shiro Kawai <[email protected]> |
| 5556 |
|
| 5557 |
* ext/peg/peg.scm ($satisfy): Accept result argument that can modify |
| 5558 |
the parse result. The result argument, if given, is a procedure |
| 5559 |
that takes two arg, the input datum and the result of predicate. |
| 5560 |
By default, the input datum is returned as is. |
| 5561 |
($string, $string-ci, $char, $char-ci, $one-of): Allow input being |
| 5562 |
not a character stream. Useful if we have a separate tokenizer. |
| 5563 |
|
| 5564 |
2018-08-16 Shiro Kawai <[email protected]> |
| 5565 |
|
| 5566 |
* src/libexc.scm (%reraise), lib/gauche/commom-macros.scm (guard): |
| 5567 |
The argument of %reraise isn't used, so we omit it. |
| 5568 |
(For the backward compatibility, we allowed it but ignore). |
| 5569 |
The C API Scm_VMReraise is changed. |
| 5570 |
|
| 5571 |
2018-08-14 Shiro Kawai <[email protected]> |
| 5572 |
|
| 5573 |
* various files: Further code cleanup. The following C API |
| 5574 |
has changed: |
| 5575 |
- Scm_ReadDigitsAsLong : the last arg is ScmSize* now. |
| 5576 |
- Scm_Putz : len arg is ScmSize now. |
| 5577 |
- ScmCharSet : size member is ScmSize now. |
| 5578 |
* src/libio.scm (%open-input-file, %open-output-file): Check and |
| 5579 |
honor element-type keyword arg (only makes sense on Windows, |
| 5580 |
but we check its vailidity on Unix as well). |
| 5581 |
|
| 5582 |
* gc/ : Bumped to bdwgc 7.6.8 (by @qykth-git) |
| 5583 |
https://github.com/shirok/Gauche/pull/373 |
| 5584 |
|
| 5585 |
2018-08-11 Shiro Kawai <[email protected]> |
| 5586 |
|
| 5587 |
* src/gauche.h (ScmSize): Use ScmSize instead of int where it's |
| 5588 |
appropriate. |
| 5589 |
THIS IS C API COMPATIBILIY-BREAKING CHANGE. Extenstions that |
| 5590 |
do the following may be required to recompile and/or edit. |
| 5591 |
- C code that defines custom port. Buffer sizes and the amout |
| 5592 |
of data trasferred are now ScmSize instead of int. The ScmPort |
| 5593 |
structure layout may change. |
| 5594 |
- Scm_ListToArray: Now the # of elements is in ScmSize. The |
| 5595 |
second argument type is changed from int* to ScmSize*. |
| 5596 |
|
| 5597 |
2018-08-09 Shiro Kawai <[email protected]> |
| 5598 |
|
| 5599 |
* lib/text/html-lite.scm: Add HTML5 elements |
| 5600 |
by @tabe https://github.com/shirok/Gauche/pull/363 |
| 5601 |
|
| 5602 |
2018-08-08 Shiro Kawai <[email protected]> |
| 5603 |
|
| 5604 |
* src/libeval.scm (load-from-port): If internal encoding is utf-8, |
| 5605 |
ignore BOM at the beginning of file. |
| 5606 |
|
| 5607 |
2018-07-17 Shiro Kawai <[email protected]> |
| 5608 |
|
| 5609 |
* ext/tls: Support server cert validation in axTLS, too. |
| 5610 |
https://github.com/shirok/Gauche/pull/362 |
| 5611 |
* lib/rfc/http.scm (start-secure-agent) |
| 5612 |
It is desirable to validate certs always. However, for the backward |
| 5613 |
compatiblity, we proceed the migration gradually. |
| 5614 |
- If tls-ca-bundle-path isn't given at configuation time, we set its |
| 5615 |
default value to #f. |
| 5616 |
- If tls-ca-bundle-path is #f at the time of start-secure-agent, |
| 5617 |
we use SSL_SERVER_VERIFY_LATER. (It is ignored by <mbed-tls>). |
| 5618 |
Next step is to issue warnings when we don't validate certs, then |
| 5619 |
we switch the default to always validate unless user explicitly |
| 5620 |
asks not to. |
| 5621 |
|
| 5622 |
2018-07-15 Shiro Kawai <[email protected]> |
| 5623 |
|
| 5624 |
* src/libobj.scm (%make-accessor): Fix the confusing behavior regarding |
| 5625 |
implicit setter gf visibility, reported in |
| 5626 |
https://sourceforge.net/p/gauche/mailman/message/36363814/ . |
| 5627 |
Now we try to find setter gf from the getter gf first, before |
| 5628 |
creating our own |setter of ...|. (Actually, we might get rid of |
| 5629 |
|setter of ...| thing altogether by keeping setter gf anonymous, |
| 5630 |
but there may be old code that depends on the existence of |
| 5631 |
the named setter gf.) |
| 5632 |
|
| 5633 |
* src/core.c: Add feature identifier gauche.sys.zlib to detect |
| 5634 |
whether rfc.zlib is available. (The name of feature identifier |
| 5635 |
is debatable; let's see how it sits.) |
| 5636 |
* lib/text/info.scm: Make it work even --without-zlib. |
| 5637 |
|
| 5638 |
2018-07-09 Shiro Kawai <[email protected]> |
| 5639 |
|
| 5640 |
* ext/sxml/src/SSAX.scm: Fix whitespace handling. |
| 5641 |
https://github.com/shirok/Gauche/pull/360 |
| 5642 |
* ext/sxml/src/serializer.scm (srl:attribute->str-lst): Dropped |
| 5643 |
special handling of boolean attributes indicated as attr='attr'. |
| 5644 |
It is indistinguishable from a string attribute with the value |
| 5645 |
being 'attr'. It is harmless to render it as ordinary attributes. |
| 5646 |
Patch by @pclouds https://github.com/shirok/Gauche/pull/359 |
| 5647 |
|
| 5648 |
2018-07-04 Shiro Kawai <[email protected]> |
| 5649 |
|
| 5650 |
* lib/gauche/interactive/info.scm: Allow PAGER to have command and |
| 5651 |
options. https://github.com/shirok/Gauche/pull/358 |
| 5652 |
|
| 5653 |
2018-07-03 Shiro Kawai <[email protected]> |
| 5654 |
|
| 5655 |
* Release 0.9.6 |
| 5656 |
|
| 5657 |
2018-07-02 Shiro Kawai <[email protected]> |
| 5658 |
|
| 5659 |
* Document regular-string$. |
| 5660 |
|
| 5661 |
2018-07-01 Shiro Kawai <[email protected]> |
| 5662 |
|
| 5663 |
* ext/tls/tls.scm: Set rfc.tls.mbed autoloaded by referencing |
| 5664 |
<mbed-tls>. The user is no longer supposed to directly use |
| 5665 |
rfc.tls.mbed; just (use rfc.tls) and refer to <mbed-tls> if |
| 5666 |
you need it. |
| 5667 |
|
| 5668 |
2018-06-26 Shiro Kawai <[email protected]> |
| 5669 |
|
| 5670 |
* ext/tls: Split mbedTLS-dependent part to a separate DSO. Preparation |
| 5671 |
to build static linked binary without depending libmbed. |
| 5672 |
* src/vector.c (Scm_GetBytes): Added. |
| 5673 |
|
| 5674 |
2018-06-24 Shiro Kawai <[email protected]> |
| 5675 |
|
| 5676 |
* ext/tls/tls.ac: Allow to compile both axtls and mbedtls support. |
| 5677 |
By default, axtls is automatically enabled, and mbedtls is enabled |
| 5678 |
when it's available. |
| 5679 |
Also changed --enable-tls-ca-file-path to --with-ca-bundle, following |
| 5680 |
curl's configure option. |
| 5681 |
* ext/tls/tls.scm (tls-ca-bundle-path): Renamed from |
| 5682 |
tls-ca-certificate-path. |
| 5683 |
(default-tls-class): Make TLS class used by make-tls parameterized. |
| 5684 |
(<ax-tls>, <mbed-tls>): Conditionally exported. |
| 5685 |
|
| 5686 |
2018-06-23 Shiro Kawai <[email protected]> |
| 5687 |
|
| 5688 |
* src/libstr.scm (string-incomplete->complete): Add :escape mode |
| 5689 |
to escape illegal bytes in lossless way. |
| 5690 |
* src/string.c (Scm_StringIncompleteToComplete): Obsolete this |
| 5691 |
C API; for the function is now implented in libstr.scm. |
| 5692 |
|
| 5693 |
2018-06-14 Shiro Kawai <[email protected]> |
| 5694 |
|
| 5695 |
* src/gauche/vector.h, src/libvec.scm, ext/uvector/uvlib.scm.tmpl: |
| 5696 |
Fix integer overflow of TAGvector-length. |
| 5697 |
|
| 5698 |
2018-06-09 Shiro Kawai <[email protected]> |
| 5699 |
|
| 5700 |
* ext/tls/tls.c: Make ca cert path changeable at runtime, using |
| 5701 |
a parameter tls-ca-certificate-path. |
| 5702 |
|
| 5703 |
2018-06-02 Shiro Kawai <[email protected]> |
| 5704 |
|
| 5705 |
* ext/tls: Incorporated mbedTLS support by @qykth-git. |
| 5706 |
(https://github.com/shirok/Gauche/pull/350) |
| 5707 |
Note that the actual availability of proper version of mbedTLS |
| 5708 |
isn't checked (yet). We also wanto to make TLS subsystem switchable |
| 5709 |
at runtime. Until then, we consider this unofficial. |
| 5710 |
|
| 5711 |
2018-05-25 Shiro Kawai <[email protected]> |
| 5712 |
|
| 5713 |
* src/srfis.scm: Make srfi-146 support official, for it is |
| 5714 |
finalized. |
| 5715 |
|
| 5716 |
2018-05-14 Shiro Kawai <[email protected]> |
| 5717 |
|
| 5718 |
* lib/data/random.scm (regular-string$): EXPERIMENTAL - a generator |
| 5719 |
maker that generates strings that match the given regexp. |
| 5720 |
|
| 5721 |
2018-05-13 Shiro Kawai <[email protected]> |
| 5722 |
|
| 5723 |
* src/libexc.scm (print-default-error-heading): Actually, limiting |
| 5724 |
the length of error message is better to be done in the printing |
| 5725 |
stage, instead of error object constructing stage. Reverting the |
| 5726 |
previous Scm_Error change and add the feature here. |
| 5727 |
|
| 5728 |
2018-05-12 Shiro Kawai <[email protected]> |
| 5729 |
|
| 5730 |
* src/error.c (Scm_Error etc.): Limit the length of error message |
| 5731 |
header. When error irritant is a huge structure, displaying the |
| 5732 |
entire structure in the error header gets in way of debugging. |
| 5733 |
It also makes Emacs slow when it happens in *scheme* buffer |
| 5734 |
with font-locking on. |
| 5735 |
NB: We need to do the similar thing in Scheme-side definition |
| 5736 |
of error. |
| 5737 |
|
| 5738 |
2018-05-09 Shiro Kawai <[email protected]> |
| 5739 |
|
| 5740 |
* src/char.c (Scm_CharLexerCategoryP): Common lexer predicate to be |
| 5741 |
used in both symbol writer and symbol reader. |
| 5742 |
* src/symbol.c (Scm_WriteSymbolName): Make symbol writer to avoid |
| 5743 |
escaping iff the symbol name is a valid R7RS symbol name without |
| 5744 |
escapes. |
| 5745 |
|
| 5746 |
2018-04-02 Shiro Kawai <[email protected]> |
| 5747 |
|
| 5748 |
* src/libnum.scm (flonum-epsilon): Added. |
| 5749 |
|
| 5750 |
2018-03-16 Shiro Kawai <[email protected]> |
| 5751 |
|
| 5752 |
* lib/gauche/process.scm (do-process!): Added. |
| 5753 |
|
| 5754 |
2018-03-05 Shiro Kawai <[email protected]> |
| 5755 |
|
| 5756 |
* doc/coresyn.texi: Document define-inline. |
| 5757 |
|
| 5758 |
2018-02-28 Shiro Kawai <[email protected]> |
| 5759 |
|
| 5760 |
* gc/: Update to bdwgc 7.6.4 |
| 5761 |
Patch from @qykth-git https://github.com/shirok/Gauche/pull/342 |
| 5762 |
|
| 5763 |
2018-02-17 Shiro Kawai <[email protected]> |
| 5764 |
|
| 5765 |
* gauche.process: Fix a bug that prevented extra keyword arguments |
| 5766 |
such as :directory to be given to high-level API like |
| 5767 |
call-with-input-process etc. |
| 5768 |
|
| 5769 |
2018-02-13 Shiro Kawai <[email protected]> |
| 5770 |
|
| 5771 |
* configure.ac: Make BUILD_GOSH precious variable. |
| 5772 |
* src/Makefile.in: Add BUILD_GOSH_FLAGS make variable so that |
| 5773 |
the user can give extra flags to BUILD_GOSH during precompilation. |
| 5774 |
(It only matters when building from scratch; building from tarball |
| 5775 |
isn't affected.) |
| 5776 |
This is useful when you want to build HEAD with the latest release |
| 5777 |
of gosh, while you've already installed newer gosh. After ./configure, |
| 5778 |
run make BUILD_GOSH_FLAGS=-v0.9.5 will use 0.9.5 instead of |
| 5779 |
the installed version. (You have had 0.9.5 installed, of course). |
| 5780 |
* ext/Makefile.ext.in: Use BUILD_GOSH when cross compiling. |
| 5781 |
|
| 5782 |
2018-02-09 Shiro Kawai <[email protected]> |
| 5783 |
|
| 5784 |
* doc/modutil.texi: Document text.template; make it official. |
| 5785 |
|
| 5786 |
2018-02-01 Shiro Kawai <[email protected]> |
| 5787 |
|
| 5788 |
* src/main.c, doc/program.texi: Document -v<version> option; make it |
| 5789 |
official. |
| 5790 |
|
| 5791 |
2018-01-26 Shiro Kawai <[email protected]> |
| 5792 |
|
| 5793 |
Squash merge of @Hamayama's work on R7RS-compatible exception handling |
| 5794 |
https://github.com/shirok/Gauche/pull/335 |
| 5795 |
* src/gauche/vm.h (ScmEscapePoint): Add reraised flag. |
| 5796 |
* src/vm.c (Scm_VMDefaultExceptionHandler): Allow to return from this |
| 5797 |
if the exception is reraised. |
| 5798 |
(Scm_VMReraise): API for reraise exception to return from the |
| 5799 |
caller of raise. |
| 5800 |
* lib/gauche/common-macros.scm (guard): Adjust semantics to R7RS. |
| 5801 |
* lib/r7rs.scm (with-exception-handler): Added R7RS-compatible |
| 5802 |
with-exception-handler. |
| 5803 |
|
| 5804 |
* lib/gauche/common-macros.scm: Make it a separate module to hide |
| 5805 |
auxiliary toplevel bindings. |
| 5806 |
|
| 5807 |
2018-01-16 Shiro Kawai <[email protected]> |
| 5808 |
|
| 5809 |
* src/compaux.c: Make identifier's module and env slots immutable. |
| 5810 |
|
| 5811 |
2018-01-14 Shiro Kawai <[email protected]> |
| 5812 |
|
| 5813 |
* gc: Bumped GC version to 7.6.2. Patch from @qykth-git |
| 5814 |
https://github.com/shirok/Gauche/pull/337 |
| 5815 |
|
| 5816 |
2018-01-13 Shiro Kawai <[email protected]> |
| 5817 |
|
| 5818 |
* src/macro.c: Renaming identifiers in template only at the |
| 5819 |
macro expansion time. This avoids extra wrapping of identifiers. |
| 5820 |
|
| 5821 |
2018-01-06 Shiro Kawai <[email protected]> |
| 5822 |
|
| 5823 |
* src/libmod.scm, src/compile.scm (free-identifier=?): Moved it to |
| 5824 |
compile.scm, for it needs access to internal env-lookup. |
| 5825 |
Also rewrote er-compare in C to speed up syntax-rules expander. |
| 5826 |
|
| 5827 |
2018-01-05 Shiro Kawai <[email protected]> |
| 5828 |
|
| 5829 |
* src/macro.c (compare), src/compile.scm (er-comparer): |
| 5830 |
Fix literal identifier comparison in syntax-rules macro, based |
| 5831 |
on the patch by @Hamayama https://github.com/shirok/Gauche/pull/330 |
| 5832 |
We should employ the same semantics as er-comparer when we deal |
| 5833 |
with literals, ellipses and underbar, while expanding syntax-rules |
| 5834 |
macro. |
| 5835 |
|
| 5836 |
2017-12-26 Shiro Kawai <[email protected]> |
| 5837 |
|
| 5838 |
* src/libeval.scm (add-embedded-code-loader!): Added to support |
| 5839 |
statically linked applications. |
| 5840 |
* lib/gauche/cgen/standalone.scm: Fixes library loading via |
| 5841 |
relative paths. |
| 5842 |
|
| 5843 |
2017-12-25 Shiro Kawai <[email protected]> |
| 5844 |
|
| 5845 |
* src/libeval.scm (find-load-file): Introduced an alternative way to |
| 5846 |
trigger load hooks; if a path in load-path begins with "@", it will |
| 5847 |
invoke load hooks. With this, we can make the relative path loading |
| 5848 |
from string ports work. The previous way of using "" to trigger |
| 5849 |
the load hooks is deprecated, for it can be achieved by just "@". |
| 5850 |
See the comment of find-load-file for the details. |
| 5851 |
|
| 5852 |
* src/libio.scm (open-input-string, open-output-string): Add name |
| 5853 |
keyword argument to specify the name of created ports. |
| 5854 |
|
| 5855 |
2017-12-24 Shiro Kawai <[email protected]> |
| 5856 |
|
| 5857 |
* rfc.http (http-request): Do not include extra headers whose value |
| 5858 |
is #f. |
| 5859 |
|
| 5860 |
2017-12-23 Shiro Kawai <[email protected]> |
| 5861 |
|
| 5862 |
* Makefile.in: Create static link library by default. |
| 5863 |
|
| 5864 |
* src/gen-staticinit.scm: Split gdbm-related code to a separate C |
| 5865 |
file. This enables to generate a stand-alone binary without linking |
| 5866 |
GPL code. |
| 5867 |
|
| 5868 |
* lib/gauche/pputil.scm (pprint): Change default print-length and |
| 5869 |
print-level to #f, and add newline after printing by default. |
| 5870 |
That behavior captures the most common use case. |
| 5871 |
|
| 5872 |
2017-12-22 Shiro Kawai <[email protected]> |
| 5873 |
|
| 5874 |
* lib/gauche/cgen/precomp.scm |
| 5875 |
(cgen-scm-path->c-file,cgen-c-file->initfn): expose those translation |
| 5876 |
functions so that other tools can use consistent naming scheme. |
| 5877 |
|
| 5878 |
2017-12-14 Shiro Kawai <[email protected]> |
| 5879 |
|
| 5880 |
* src/macro.c (compile_rule1): Fix the long-standing bug in hygienic |
| 5881 |
macro-generating macros. The key was that we assumed we could |
| 5882 |
avoid renaming pattern variables, for they wouldn't appear in the |
| 5883 |
output (because they would be replaced by macro input). |
| 5884 |
However, if the pattern itself is generated by hygienic macro, |
| 5885 |
we have to distinguish the generated pattern variables from bare |
| 5886 |
symbols carried over from macro input. |
| 5887 |
|
| 5888 |
2017-12-11 Shiro Kawai <[email protected]> |
| 5889 |
|
| 5890 |
* src/compaux.c (Scm_MakeIdentifier, Scm_IdentifierEnv): Delay the |
| 5891 |
truncation of closed binding frames until needed. This fixes a bug |
| 5892 |
that local macro-inserted identifier fails to refer to the binding |
| 5893 |
introduced in the same level of internal defines. See the enabled |
| 5894 |
tests in test/macro.scm for the concrete examples. |
| 5895 |
Note: We changed the member name of ScmIdentifierRec (env -> frames) |
| 5896 |
to detect code that touches the member directly. Such code should |
| 5897 |
use Scm_IdentifierEnv() instead. |
| 5898 |
This fix is based on the patch provided by @Hamayama |
| 5899 |
https://github.com/shirok/Gauche/pull/328 |
| 5900 |
|
| 5901 |
2017-12-09 Shiro Kawai <[email protected]> |
| 5902 |
|
| 5903 |
* src/libmac.scm (unravel-syntax): Added experimentally. |
| 5904 |
(call-macro-expander): Use unravel-syntax to display macro input |
| 5905 |
and output. |
| 5906 |
|
| 5907 |
2017-12-08 Shiro Kawai <[email protected]> |
| 5908 |
|
| 5909 |
* src/compile.scm: Removed PATTERN frame - no longer used. This opens |
| 5910 |
up a new optimization for cenv-lookup-syntax (it doesn't need to |
| 5911 |
check frame type at all), but we'll take care of it later. |
| 5912 |
(cenv-toplevel?): Since R7RS let{rec}-syntax delimits scope, we |
| 5913 |
shouldn't treat <body> of outermost let{rec}-syntax as toplevel. |
| 5914 |
That makes this procedure simpler; just check if the frames are empty. |
| 5915 |
|
| 5916 |
2017-11-30 Shiro Kawai <[email protected]> |
| 5917 |
|
| 5918 |
* ext/tls: Update to axTLS 2.1.4, by @qykth-git. |
| 5919 |
|
| 5920 |
2017-11-24 Shiro Kawai <[email protected]> |
| 5921 |
|
| 5922 |
* ext/sxml/src/serializer.scm: Adapt to HTML5, fix from @pclouds |
| 5923 |
https://github.com/shirok/Gauche/pull/322 |
| 5924 |
|
| 5925 |
2017-11-17 Shiro Kawai <[email protected]> |
| 5926 |
|
| 5927 |
* lib/rfc/http.scm (http-request): Fix a bug in the path where |
| 5928 |
we give up redirect and the 3xx response has a body. |
| 5929 |
|
| 5930 |
2017-11-04 Shiro Kawai <[email protected]> |
| 5931 |
|
| 5932 |
* lib/gauche/process.scm (%check-redirects): Fix a bug that rejected |
| 5933 |
uvector for '<<' redirects. |
| 5934 |
|
| 5935 |
2017-11-03 Shiro Kawai <[email protected]> |
| 5936 |
|
| 5937 |
* libsrc/gauche/generator.scm, lib/srfi-158.scm (ggroup) |
| 5938 |
(genreator-map->list): Moved srfi-158 extra 2 generator procedures |
| 5939 |
to gauche.generator. Leave accumulators in srfi-158. |
| 5940 |
(make-bits-generator): Dropped. This was in srfi-121 draft but |
| 5941 |
didn't get in to final srfi, so shouldn't have been added. |
| 5942 |
We have bits->generator. Also srfi-151 has make-bitwise-generator. |
| 5943 |
|
| 5944 |
2017-10-31 Shiro Kawai <[email protected]> |
| 5945 |
|
| 5946 |
* src/vm.c, src/vmcall.c, src/gauche/priv/vmP.h, src/main.c: |
| 5947 |
Experimentally add call trace feature, proposed several years ago. |
| 5948 |
For now, we make it available when env var GAUCHE_CALL_TRACE is set |
| 5949 |
to a positive integer (the API is ugly, so we may change it later). |
| 5950 |
This change incurs slight overhead for every call ever we don't use |
| 5951 |
call traces. We'll benchmark it and if it's a problem we might |
| 5952 |
need more heavy changes (e.g. switch VM loop entirely with or without |
| 5953 |
instrumentation.) |
| 5954 |
|
| 5955 |
2017-10-28 Shiro Kawai <[email protected]> |
| 5956 |
|
| 5957 |
* lib/srfi-158.scm: Update to the final srfi. |
| 5958 |
|
| 5959 |
2017-10-24 Shiro Kawai <[email protected]> |
| 5960 |
|
| 5961 |
* src/string.c (Scm_StringCmp): Allow comparing complete string vs. |
| 5962 |
incomplete string. It is inconveninent if we throw an error. |
| 5963 |
We compare based on the octet array, and if both have the same |
| 5964 |
octets, complete string comes before incomplete string. |
| 5965 |
NB: We haven't touched case-insensitive comparison; we could make |
| 5966 |
it work if we define incomplete string fold into itself. |
| 5967 |
|
| 5968 |
2017-10-20 Shiro Kawai <[email protected]> |
| 5969 |
|
| 5970 |
* src/libfmt.scm (format): Support ~f directive. |
| 5971 |
* Makefiles: Make them work when install destination path contains |
| 5972 |
whitespaces. |
| 5973 |
|
| 5974 |
2017-10-19 Shiro Kawai <[email protected]> |
| 5975 |
|
| 5976 |
* src/number.c (print_double): Implement notational rounding mode. |
| 5977 |
|
| 5978 |
2017-10-16 Shiro Kawai <[email protected]> |
| 5979 |
|
| 5980 |
* libsrc/gauche/generator.scm (gmerge): Fixed to ensure that |
| 5981 |
if elements ties, leftmost one is taken. |
| 5982 |
|
| 5983 |
2017-10-15 Shiro Kawai <[email protected]> |
| 5984 |
|
| 5985 |
* doc/modsrfi.scm: Document srfi-152. For now, most procedures are |
| 5986 |
described in other modules (e.g. srfi-13). If this srfi gets |
| 5987 |
traction as a standard string library, we'll move description to |
| 5988 |
here from srfi-13. |
| 5989 |
|
| 5990 |
2017-10-14 Shiro Kawai <[email protected]> |
| 5991 |
|
| 5992 |
* doc/modsrfi.scm: Document srfi-151. Reduces content of srfi-60 |
| 5993 |
description to avoid duplication. Change references to srfi-60 |
| 5994 |
for references to srfi-151 wherever relevant. |
| 5995 |
|
| 5996 |
* lib/srfi-158.scm: Added. Srfi-158 is still draft, so this is |
| 5997 |
a provisional addition and may be changed later. |
| 5998 |
|
| 5999 |
2017-10-13 Shiro Kawai <[email protected]> |
| 6000 |
|
| 6001 |
* test/include/srfi-152-tests.scm: Added srfi-152 tests. |
| 6002 |
Now srfi-152 support is complete. |
| 6003 |
|
| 6004 |
2017-10-12 Shiro Kawai <[email protected]> |
| 6005 |
|
| 6006 |
* src/libnum.scm (number->string): Use Scm_PrintNumber directly |
| 6007 |
so that we can make ScmNumberFormat customization feature available |
| 6008 |
to Scheme. Need more testing, so it's unofficial yet. |
| 6009 |
|
| 6010 |
2017-10-10 Shiro Kawai <[email protected]> |
| 6011 |
|
| 6012 |
* lib/gauche/stringutil.scm (string-split): INCOMPATIBLE CHANGE: |
| 6013 |
splitting an empty string now yields an empty list instead of |
| 6014 |
(""), as srfi-152 specifies. Let's see if it cause a problem. |
| 6015 |
|
| 6016 |
2017-10-09 Shiro Kawai <[email protected]> |
| 6017 |
|
| 6018 |
* lib/gauche/stringutil.scm (string-split): Enhanced to support |
| 6019 |
srfi-152. Accept grammar, start and end optional arguments. |
| 6020 |
Allow zero-width splitting. |
| 6021 |
|
| 6022 |
2017-10-07 Shiro Kawai <[email protected]> |
| 6023 |
|
| 6024 |
* src/libio.scm, lib/r7rs.scm (write-string): Make it built-in, |
| 6025 |
for it'll be also exported from srfi-152. Also, made it more |
| 6026 |
efficient using %maybe-substring. |
| 6027 |
|
| 6028 |
2017-10-01 Shiro Kawai <[email protected]> |
| 6029 |
|
| 6030 |
* lib/srfi-154.scm, lib/srfi-155.scm : Added. |
| 6031 |
NB: srfi-154 and 155 haven't finalized yet. This is for testing. |
| 6032 |
|
| 6033 |
2017-09-26 Shiro Kawai <[email protected]> |
| 6034 |
|
| 6035 |
* ext/peg/peg.scm (make-peg-parse-error): Fix error message of |
| 6036 |
nested compound error. |
| 6037 |
|
| 6038 |
2017-09-03 Shiro Kawai <[email protected]> |
| 6039 |
|
| 6040 |
* src/main.c, src/libeval.scm (%invoke-other-version): |
| 6041 |
EXPERIMENTAL: Add -v VERSION option to gosh, which execs the |
| 6042 |
specified version of gosh given that the version is also installed |
| 6043 |
in parallel. It is mainly for testing---invoking different version |
| 6044 |
incurs overhead, so it shouldn't be used in production. |
| 6045 |
|
| 6046 |
2017-09-02 Shiro Kawai <[email protected]> |
| 6047 |
|
| 6048 |
* configure.ac, src/Makefile.in: Link gosh aganist |
| 6049 |
$(ARCH_INSTALL_DIR)/libgauche instead of $(LIB_INSTALL_DIR)'s. |
| 6050 |
The former isn't overwritten by installation of other versions of |
| 6051 |
Gauche, so $(ARCH_INSTALL_DIR)/gosh stays runnable when |
| 6052 |
multiple versions of Gauche are installed. |
| 6053 |
NB: We still install libgauche to $(LIB_INSTALL_DIR) for linking |
| 6054 |
extension modules and applications. |
| 6055 |
|
| 6056 |
2017-08-30 Shiro Kawai <[email protected]> |
| 6057 |
|
| 6058 |
* lib/text/console.scm, lib/text/line-edit.scm: Incorporated patches |
| 6059 |
from @Hamayama to support various Windows console supports. |
| 6060 |
|
| 6061 |
2017-08-27 Shiro Kawai <[email protected]> |
| 6062 |
|
| 6063 |
* lib/gauche/test.scm (test-module-common): Fix binding check on |
| 6064 |
remaing export. |
| 6065 |
|
| 6066 |
2017-08-24 Shiro Kawai <[email protected]> |
| 6067 |
|
| 6068 |
* lib/data/ring-buffer.scm (%ensure-room!): Fix a bug when add-front! |
| 6069 |
is used in overwrite mode. It didn't overwrite from the end. |
| 6070 |
|
| 6071 |
2017-08-23 Shiro Kawai <[email protected]> |
| 6072 |
|
| 6073 |
* lib/text/progress.scm (make-text-progress-bar): Check if max-value |
| 6074 |
is positive. If it's 0, the error message was incomprehensible |
| 6075 |
to the user. |
| 6076 |
|
| 6077 |
2017-08-22 Shiro Kawai <[email protected]> |
| 6078 |
|
| 6079 |
* lib/srfi-11.scm, lib/gauche/common-macro.scm (let-values, let*-values): |
| 6080 |
Make them built-in. |
| 6081 |
|
| 6082 |
2017-08-19 Shiro Kawai <[email protected]> |
| 6083 |
|
| 6084 |
* lib/srfi-132.scm, src/srfis.scm: Support srfi-132. |
| 6085 |
|
| 6086 |
2017-08-10 Shiro Kawai <[email protected]> |
| 6087 |
|
| 6088 |
* src/libio.scm (<write-controls>): INCOMPATIBLE CHANGE: |
| 6089 |
Dropped 'print-' prefix from slot names, for it is redundant. |
| 6090 |
Keep make-write-controls and write-controls-copy backward |
| 6091 |
compatible by making old keywords recognized. Only the code |
| 6092 |
that directly access with the slot names must be changed. |
| 6093 |
|
| 6094 |
2017-08-07 Shiro Kawai <[email protected]> |
| 6095 |
|
| 6096 |
* lib/gauche/interactive.scm (print-mode), |
| 6097 |
lib/gauche/interactive/toplevel.scm (print-mode, print-all): |
| 6098 |
New REPL feature to switch print-mode (<write-controls> parameters). |
| 6099 |
|
| 6100 |
2017-08-06 Shiro Kawai <[email protected]> |
| 6101 |
|
| 6102 |
* src/gauche/priv/writerP.h, src/libio.scm: Add printPretty field to |
| 6103 |
ScmWriteControls. |
| 6104 |
* src/write.c: Integrated pretty printer to 'write'. If printPretty |
| 6105 |
slot of controls is true, pretty printer is invoked. |
| 6106 |
NB: Haven't worked on the case when user-defined object-write method |
| 6107 |
recurses to write. |
| 6108 |
* lib/gauche/pputil.scm: Renamed from pp.scm and set to be autoloaded. |
| 6109 |
|
| 6110 |
2017-08-05 Shiro Kawai <[email protected]> |
| 6111 |
|
| 6112 |
* src/gauche/writer.h, src/gauche/priv/writerP.h (ScmWriteControlsRec): |
| 6113 |
Move the definition to the private header. |
| 6114 |
|
| 6115 |
2017-08-01 Shiro Kawai <[email protected]> |
| 6116 |
|
| 6117 |
* src/libmac.scm (trace-macro, untrace-macro): Added experimentally. |
| 6118 |
|
| 6119 |
2017-07-30 Shiro Kawai <[email protected]> |
| 6120 |
|
| 6121 |
* src/compile-1.scm (pass1/body-rec): First step of fixing internal |
| 6122 |
definitions. |
| 6123 |
|
| 6124 |
2017-07-29 Shiro Kawai <[email protected]> |
| 6125 |
|
| 6126 |
* lib/scheme/box.scm, lib/scheme/charset.scm, lib/scheme/comparator.scm, |
| 6127 |
lib/scheme/generator.scm, lib/scheme/ideque.scm, |
| 6128 |
lib/scheme/list-queue.scm, lib/scheme/list.scm, |
| 6129 |
lib/scheme/lseq.scm, lib/scheme/set.scm, lib/scheme/sort.scm, |
| 6130 |
lib/scheme/vector.scm: Added dummy libraries that are defined in |
| 6131 |
Red edition of R7RS-Large and already supportedin Gauche. |
| 6132 |
|
| 6133 |
2017-07-27 Shiro Kawai <[email protected]> |
| 6134 |
|
| 6135 |
* lib/gauche/common-macros.scm (doplist): Added experimentally. Not |
| 6136 |
documented yet (document commented out). Let's see if it's worth |
| 6137 |
to have. |
| 6138 |
|
| 6139 |
2017-07-25 Shiro Kawai <[email protected]> |
| 6140 |
|
| 6141 |
* lib/srfi-151.scm: Support srfi-151. |
| 6142 |
|
| 6143 |
2017-07-23 Shiro Kawai <[email protected]> |
| 6144 |
|
| 6145 |
* src/srfis.scm: Officially support srfi-149. |
| 6146 |
|
| 6147 |
2017-07-22 Shiro Kawai <[email protected]> |
| 6148 |
|
| 6149 |
* src/libomega.scm (object-hash, object-equal?): Add those methods |
| 6150 |
for builtin hashtables. |
| 6151 |
* lib/gauche/hashutil.scm (hash-table-empty?) |
| 6152 |
(hash-table-compare-as-sets): Added. |
| 6153 |
|
| 6154 |
2017-07-21 Shiro Kawai <[email protected]> |
| 6155 |
|
| 6156 |
* lib/compat/r7rs-srfi-tests.scm: An ad-hoc adapter to run srfi |
| 6157 |
tests written in r7rs define-library directly without loading |
| 6158 |
full r7rs layer. See test/srfi.scm for example usage. |
| 6159 |
|
| 6160 |
2017-07-20 Shiro Kawai <[email protected]> |
| 6161 |
|
| 6162 |
* src/libomega.scm (default-comparator): Fix the default comparator |
| 6163 |
when comparing numbers; we should use =, instead of equal?. |
| 6164 |
|
| 6165 |
2017-07-18 Shiro Kawai <[email protected]> |
| 6166 |
|
| 6167 |
* lib/gauche/configure.scm (cf-check-headers): Fix bug that passed |
| 6168 |
a string, instead of a symbol, to cf-define. |
| 6169 |
|
| 6170 |
2017-07-13 Shiro Kawai <[email protected]> |
| 6171 |
|
| 6172 |
* lib/srfi-146.scm, tests/include/srfi-146-test.scm: Add srfi-146 |
| 6173 |
based on draft #10. The API may change before finalization. |
| 6174 |
|
| 6175 |
2017-07-12 Shiro Kawai <[email protected]> |
| 6176 |
|
| 6177 |
* src/treemap.c: Fix bug that deleting the current node during |
| 6178 |
iterator traversal broke the iterator. |
| 6179 |
|
| 6180 |
2017-07-11 Shiro Kawai <[email protected]> |
| 6181 |
|
| 6182 |
* lib/gauche/treeutil.scm, src/treemap.c: Make treemaps comparable |
| 6183 |
using tree-map-compare-as-sequences. |
| 6184 |
|
| 6185 |
* src/gauche.h, src/class.c (Scm_ObjectCompare): Make it public API. |
| 6186 |
Built-in classes can give this cfn as 'compare' function, then |
| 6187 |
object-compare and object-equal? methods will work on the instances |
| 6188 |
of the classes. |
| 6189 |
|
| 6190 |
2017-07-08 Shiro Kawai <[email protected]> |
| 6191 |
|
| 6192 |
* lib/gauche/treeutil.scm (tree-map-compare-as-sets), |
| 6193 |
(tree-map-compare-as-sequences): Added. |
| 6194 |
|
| 6195 |
2017-07-07 Shiro Kawai <[email protected]> |
| 6196 |
|
| 6197 |
* src/libdict.scm: Move internal procedures (%tree-map-iter etc.) to |
| 6198 |
gauche.internal. They're not supposed to be exposed. |
| 6199 |
|
| 6200 |
2017-07-06 Shiro Kawai <[email protected]> |
| 6201 |
|
| 6202 |
* src/libdict.scm: Add {hash-table|tree-map}-{adjoin!|replace!}. |
| 6203 |
|
| 6204 |
2017-07-04 Shiro Kawai <[email protected]> |
| 6205 |
|
| 6206 |
* src/hash.c (Scm_HashTableSet), src/treemap.c (Scm_TreeMapSet): |
| 6207 |
INCOMPATIBLE CHANGE: Let these return the previous value associated |
| 6208 |
with the key. If there's no entry with the key, SCM_UNBOUND is |
| 6209 |
returned. (1) This works consistently across flags, and (2) The |
| 6210 |
caller can know whether the association has already been there |
| 6211 |
or not. The code that expects these to return the updated value |
| 6212 |
will break and need to be changed. We see that in most cases |
| 6213 |
these procedures are used only for the side effects and the |
| 6214 |
return value is ignored. |
| 6215 |
|
| 6216 |
2017-07-01 shiro <[email protected]> |
| 6217 |
|
| 6218 |
* lib/gauche/common-macros (assume-type): Added. |
| 6219 |
* src/libexc.scm (type-error): Added. Consolidate type error |
| 6220 |
handling in Scm_TypeError. |
| 6221 |
|
| 6222 |
2017-06-30 Shiro Kawai <[email protected]> |
| 6223 |
|
| 6224 |
* libsrc/gauche/generator.scm (generator->uvector, generator->uvector!) |
| 6225 |
(generator->bytevector, generator->bytevector!): Added. |
| 6226 |
|
| 6227 |
2017-06-23 Shiro Kawai <[email protected]> |
| 6228 |
|
| 6229 |
* lib/srfi-64.scm: Add integration to gauche.test. When srfi-64 tests |
| 6230 |
are executed during gauche.test tests, the behavior of default test |
| 6231 |
runner switches to cope with gauche.test. |
| 6232 |
|
| 6233 |
2017-06-22 Shiro Kawai <[email protected]> |
| 6234 |
|
| 6235 |
* lib/gauche/logger.scm: Allow 'current-output as path of <log-drain> |
| 6236 |
to send output to stdout. Accept 'current-error, too, as well as |
| 6237 |
#t to send output ot stderr, for the consistency. |
| 6238 |
Also allow 'ignore to completely ignore log-format (not even does |
| 6239 |
formatting). |
| 6240 |
* lib/gauche/test.scm: Expose test-count++, test-pass++ and test-fail++ |
| 6241 |
(for srfi-64 integration). |
| 6242 |
|
| 6243 |
2017-06-14 Shiro Kawai <[email protected]> |
| 6244 |
|
| 6245 |
* lib/srfi-64.scm: Added. |
| 6246 |
|
| 6247 |
2017-06-11 Shiro Kawai <[email protected]> |
| 6248 |
|
| 6249 |
* src/main.c: If the interpreter basename is "scheme-r7rs", we assume |
| 6250 |
the script is in R7RS and invoked under SRFI-22 convention, and calls |
| 6251 |
r7rs.user#main. |
| 6252 |
|
| 6253 |
2017-06-09 Shiro Kawai <[email protected]> |
| 6254 |
|
| 6255 |
* lib/text/console.scm: Enhance *vt100-compatible-terminals* to |
| 6256 |
cover screen-256color. |
| 6257 |
|
| 6258 |
* lib/gauche/test.scm (test-module-common): Show the line number |
| 6259 |
and the actual code for dangling gref etc. Patch from nkoguro: |
| 6260 |
https://github.com/shirok/Gauche/pull/288 |
| 6261 |
|
| 6262 |
2017-06-01 Shiro Kawai <[email protected]> |
| 6263 |
|
| 6264 |
* lib/gauche/common-macro.scm (syntax-error, syntax-errorf): |
| 6265 |
Wrap the error with extra <compile-error-mixin>, when we know |
| 6266 |
what macro call resulted the error, helping diagnose macro |
| 6267 |
error. |
| 6268 |
|
| 6269 |
2017-05-31 Shiro Kawai <[email protected]> |
| 6270 |
|
| 6271 |
* Bumped libatomic_ops to 7.6.0, thanks to @qykth-git |
| 6272 |
https://github.com/shirok/Gauche/pull/286 |
| 6273 |
|
| 6274 |
* lib/gauche/precomp.scm, src/compile-1.scm (define-macro): |
| 6275 |
We no longer use make-macro-transformer to create legacy macros; |
| 6276 |
we directly call %make-macro-transformer instead, which is *the* |
| 6277 |
formal way to create macros. |
| 6278 |
* src/libalpha.scm, src/libmac.scm: Put %make-macro-transformer |
| 6279 |
in libalpha.scm, since it is now referenced from the precompiled |
| 6280 |
code of define-macro. Move make-macro-transformer to src/libmac.scm; |
| 6281 |
it is no longer used, but old extension code precompiled by 0.9.5 |
| 6282 |
or before may refer to it, so we keep it until 1.0. |
| 6283 |
* src/macro.c (Scm_MakeMacroTransformerOld): This is truly obsoleted. |
| 6284 |
Nobody should be calling this directly. We keep the entry for |
| 6285 |
ABI compatibility but calling it would result Scm_Panic. |
| 6286 |
|
| 6287 |
2017-05-30 Shiro Kawai <[email protected]> |
| 6288 |
|
| 6289 |
* src/gauche.h, src/macro.c (ScmMacro): Enhanced ScmMacro to keep |
| 6290 |
some useful info for macro debugging. |
| 6291 |
|
| 6292 |
2017-05-28 Shiro Kawai <[email protected]> |
| 6293 |
|
| 6294 |
* lib/srfi-143.scm, src/srfis.scm: Support srfi-143, as the srfi |
| 6295 |
has been finalized. |
| 6296 |
|
| 6297 |
* src/libnum.scm (twos-complement-factor): INCOMPATIBLE BUG FIX: |
| 6298 |
It used to return 0 when the argument is 0. Mathematcially, the |
| 6299 |
result is arbitrary. But for other arguments, this procedure |
| 6300 |
is equivalent as first-set-bit and log2-binary-factors in SRFI-60, |
| 6301 |
and it's unreasonable to diverge in just one argument; the SRFI-60 |
| 6302 |
versions returns -1 for 0. |
| 6303 |
Unfortunately, the case when argument is 0 has been documented, |
| 6304 |
so this is compatibility-breaking change. |
| 6305 |
|
| 6306 |
* lib/gauche/test/script.scm (test-script): Handle the case |
| 6307 |
when the script file has its own module (patch from KOGURO Naoki, |
| 6308 |
https://github.com/shirok/Gauche/pull/285). |
| 6309 |
Splitted into autoloaded file to avoid the core functions of |
| 6310 |
gauche.test from depending other modules (we test those modules |
| 6311 |
using gauche.test so we can't depend on them). |
| 6312 |
|
| 6313 |
2017-05-25 Shiro Kawai <[email protected]> |
| 6314 |
|
| 6315 |
* src/macro.c (compile_rule1, realize_template_rec): Support srfi-149 |
| 6316 |
multiple following ellipses in templates. |
| 6317 |
|
| 6318 |
2017-05-23 Shiro Kawai <[email protected]> |
| 6319 |
|
| 6320 |
* src/macro.c (compile_rule1): Fix a bug that failed to catch |
| 6321 |
bad ellipses usage in a pattern. |
| 6322 |
|
| 6323 |
* libsrc/gauche/record.scm (describe-slots): Provide specialized |
| 6324 |
describe method for records. Records may have duplicate slot |
| 6325 |
names, so the default method, which retrieves slot values by |
| 6326 |
their name, doesn't work. |
| 6327 |
|
| 6328 |
2017-05-22 Shiro Kawai <[email protected]> |
| 6329 |
|
| 6330 |
* src/libobj.scm (describe, describe-common, describe-slots): |
| 6331 |
Moved core methods to here, so that libraries can specialize |
| 6332 |
'describe' without using gauche.interactive. |
| 6333 |
(instance-slot-ref): Check unbound slot (it returned #<unbound> |
| 6334 |
object; yikes!). Add fallback optional argument so that the caller |
| 6335 |
can detect and handle the situation. Note: This API is still |
| 6336 |
unofficial. |
| 6337 |
(instance-slot-set!): Renamed from instance-slot-set for the |
| 6338 |
consistency. This is unofficial API so we don't mark it incompatible |
| 6339 |
change. |
| 6340 |
|
| 6341 |
2017-05-20 Shiro Kawai <[email protected]> |
| 6342 |
|
| 6343 |
* libsrc/gauche/record.scm: INCOMPATIBILE CHANGE: Make positional |
| 6344 |
pattern match work reasonably on inherited records (the same order |
| 6345 |
as the default constructor). We'd say the old behavior was a bug; |
| 6346 |
it makes little sense to have positional match different from the |
| 6347 |
constructor. The document, however, implied that the old behavior |
| 6348 |
was a supposed one (it defined the position in terms of class-slots). |
| 6349 |
So we mark it as compatibility-breakage. |
| 6350 |
|
| 6351 |
2017-05-16 Shiro Kawai <[email protected]> |
| 6352 |
|
| 6353 |
* libsrc/util/match.scm: Make match:$-ref generic function, so that |
| 6354 |
a metaclass can tweak how positional match is handled. |
| 6355 |
|
| 6356 |
2017-05-14 Shiro Kawai <[email protected]> |
| 6357 |
|
| 6358 |
* lib/srfi-143.scm: Added (provisional; the srfi is still draft). |
| 6359 |
|
| 6360 |
* lib/text/console.scm (make-default-console): Check if stdin is tty; |
| 6361 |
if not, just return #f. In typical cases, this procedure won't |
| 6362 |
be called (via gauche.interactive#read-eval-print-loop) when gosh |
| 6363 |
is in non-interactive mode. But there can be a settings that the |
| 6364 |
user invokes it directly. |
| 6365 |
|
| 6366 |
2017-05-11 Shiro Kawai <[email protected]> |
| 6367 |
|
| 6368 |
* libsrc/gauche/dictionary.scm (dict-find, dict-any): Added, defined |
| 6369 |
on top of dict-seek. NB: We found the dict-seek protocol is not |
| 6370 |
enough to implement dict-every, in terms of srfi-1 every semantics, |
| 6371 |
which returns the result of last invocation of PRED (instead of |
| 6372 |
acting a pure predicate). So we keep these and dict-seek unofficial |
| 6373 |
for now. |
| 6374 |
|
| 6375 |
2017-05-10 Shiro Kawai <[email protected]> |
| 6376 |
|
| 6377 |
* src/class.c (Scm_MethodApplicableForClasses): If a specializer |
| 6378 |
is <top>, we don't need to check subtypeness. Micro-optimization, |
| 6379 |
but the effect is visible. (A few percent improvement in 'ref' |
| 6380 |
when dispatch accelerator is on.) |
| 6381 |
|
| 6382 |
2017-05-08 Shiro Kawai <[email protected]> |
| 6383 |
|
| 6384 |
* libsrc/gauche/dictionary.scm (dict-seek): Added new protocol API. |
| 6385 |
* lib/gauche/hashutil.scm (hash-seek), |
| 6386 |
lib/gauche/treeutil.scm (tree-map-seek): Added. |
| 6387 |
|
| 6388 |
2017-05-07 Shiro Kawai <[email protected]> |
| 6389 |
|
| 6390 |
* libsrc/gauche/dictionary.scm (dict-immutable?): Added new protocol |
| 6391 |
API. |
| 6392 |
|
| 6393 |
2017-05-06 Shiro Kawai <[email protected]> |
| 6394 |
|
| 6395 |
* src/list.scm, src/liblist.scm (append, append!): Strictly check |
| 6396 |
args to reject dotted list in non-last argument. |
| 6397 |
NB: We don't check circular list, for it requires more overhead. |
| 6398 |
|
| 6399 |
2017-05-04 Shiro Kawai <[email protected]> |
| 6400 |
|
| 6401 |
* src/liblist.scm (list*, cons*): Require at least one arg, as |
| 6402 |
specified in srfi-1 and CL. Zero arg list*/cons* don't make sense. |
| 6403 |
Gauche doc have always been required >=1 arg, so allowing zero arg |
| 6404 |
was just an implementation artifacts. |
| 6405 |
|
| 6406 |
* lib/gauche/process.scm (shell-tokenize-string): Fix a bug that |
| 6407 |
failed to recognize quoted string appearing in middle of unquoted |
| 6408 |
string. |
| 6409 |
|
| 6410 |
2017-05-02 Shiro Kawai <[email protected]> |
| 6411 |
|
| 6412 |
* lib/r7rs.scm (define-library): Fix another bug in cond-expand. |
| 6413 |
Cond-expand in library decl differs from srfi-0 cond-expand |
| 6414 |
where the output of the former is spliced into library decls. |
| 6415 |
It is tricky because we have to deal with the output of cond-expand |
| 6416 |
macro at the macro transformer level. For now, we call macroexpand |
| 6417 |
inside the transformer---very CL-ish. |
| 6418 |
|
| 6419 |
* src/compile-1.scm (pass1/body-rec): Use global-identifier=? |
| 6420 |
to check internal define and internal define-syntax. See the |
| 6421 |
added test in test/macro.scm for the case this fixes. |
| 6422 |
|
| 6423 |
* lib/r7rs.scm (scheme.r5rs): Avoid redefining 'define', |
| 6424 |
for it interferes with internal definition recognition. Instead |
| 6425 |
we fiddle with r7rs.aux to expose r7rs#define as r7rs:define, |
| 6426 |
and use export renaming in scheme.r5rs to export it as 'define'. |
| 6427 |
|
| 6428 |
2017-05-01 Shiro Kawai <[email protected]> |
| 6429 |
|
| 6430 |
* lib/r7rs.scm (define-library): Fix a mysterious bug that internal |
| 6431 |
definitions inserted by a macro defined in an r7rs library |
| 6432 |
wasn't recognized as internal definitions. Initially we suspected |
| 6433 |
a bug that broke hygiene of 'define'. It turned out that the |
| 6434 |
bug was in the sloppy definition of 'define-library': The expansion |
| 6435 |
redefined 'begin'. And because hygienic expansion is working as |
| 6436 |
expected, the compiler didn't recognize 'begin' as the original |
| 6437 |
meaning, and skipped splicing internal defines. |
| 6438 |
Fix https://github.com/shirok/Gauche/issues/221 |
| 6439 |
|
| 6440 |
* src/class.c (Scm_ShortClassName): Unofficial API change: Previously |
| 6441 |
called Scm__InternalClassName. It's just a C function that strips |
| 6442 |
'<' and '>' from the class name, but its handy and used from |
| 6443 |
some ext/* stuff, so let it be public. Old name will go in 1.0. |
| 6444 |
|
| 6445 |
2017-04-29 Shiro Kawai <[email protected]> |
| 6446 |
|
| 6447 |
* src/class.c, src/dispatch.c: EXPERIMENTAL: Add method dispatch |
| 6448 |
accelerator. By default nothing changes; it must be turned on |
| 6449 |
explicitly for each GF. We'll do some experiment before making it |
| 6450 |
automatic. Consider this feature highly experimental and |
| 6451 |
do not use it in production before we declar it's stable. |
| 6452 |
See src/dispatch.c for the detail mechanism. |
| 6453 |
A preliminary benchmark shows `ref' being 4x faster on sparse |
| 6454 |
vectors. |
| 6455 |
ABI INCOMPATIBILITY: If you have precompiled files with |
| 6456 |
`define-cgeneric', you need to recompile it; a new field |
| 6457 |
is added to ScmGeneric so the static initializer needs to be |
| 6458 |
recompiled. |
| 6459 |
|
| 6460 |
2017-04-26 Shiro Kawai <[email protected]> |
| 6461 |
|
| 6462 |
* src/libcmp.scm, lib/gauche/computil.scm (=?, <?, <=?, >?, >=?): |
| 6463 |
Reimplemented in C, for they can be used in performance critical |
| 6464 |
paths (esp. implementation of data structures). |
| 6465 |
About 2x-3x speed up. Still 2.5x-3.3x slower than the |
| 6466 |
primitive =, < etc., but it's hard to beat them since they are |
| 6467 |
expanded into VM insns. If we see =?, <? etc are used frequent |
| 6468 |
enough we might need to go futher into that path, though. |
| 6469 |
|
| 6470 |
2017-04-23 Shiro Kawai <[email protected]> |
| 6471 |
|
| 6472 |
* src/vmcall.c: Skip Scm_SortMethods when we have only one applicable |
| 6473 |
methods. Obvious, yeah? This makes 'ref' call 20% faster. |
| 6474 |
|
| 6475 |
* src/libproc.scm (method-leaf?): Added. |
| 6476 |
* src/class.c: Changed <method> slot name: method-leaf -> leaf? |
| 6477 |
* src/libobj.scm: Dropped %method-code, for we already have |
| 6478 |
method-code in libproc.scm. |
| 6479 |
|
| 6480 |
2017-04-22 Shiro Kawai <[email protected]> |
| 6481 |
|
| 6482 |
* src/class.c (method_initialize): Set LEAF flag if the method doesn't |
| 6483 |
use next-method arg in its body. |
| 6484 |
* src/vmcall.c: Skip creating next-method instance when the method |
| 6485 |
is leaf. About 40% speed up on empty method call. |
| 6486 |
|
| 6487 |
2017-04-20 Shiro Kawai <[email protected]> |
| 6488 |
|
| 6489 |
* src/compile-5.scm (pass5/lambda): Save list of unused arguments |
| 6490 |
in 'unused-args pair attributes of (car signature-info). |
| 6491 |
Useful for optimization. |
| 6492 |
|
| 6493 |
2017-04-18 shiro <[email protected]> |
| 6494 |
|
| 6495 |
* src/gauche/vm.h: Add SCM_COMPILE_NOINLINE_SETTERS flag |
| 6496 |
* src/main.c: Add -fno-inline-setters option |
| 6497 |
* src/compile-1.scm: Prohibit setter inlining when |
| 6498 |
SCM_COMPILE_NOINLINE_SETTERS flag is set. |
| 6499 |
|
| 6500 |
2017-04-17 Shiro Kawai <[email protected]> |
| 6501 |
|
| 6502 |
* src/libobj.scm: Make most predefined methods `locked'. |
| 6503 |
|
| 6504 |
2017-04-16 Shiro Kawai <[email protected]> |
| 6505 |
|
| 6506 |
* src/compile-1.scm (pass1): Another setter optimization - if |
| 6507 |
X has inlinable binding, (setter X) is locked and has inlinable |
| 6508 |
binding in toplevel, we replace (setter X) with the $gref to |
| 6509 |
the setter. |
| 6510 |
|
| 6511 |
gosh> (disasm (^[p v] (set! (car p) v))) |
| 6512 |
CLOSURE #<closure (#f p v)> |
| 6513 |
=== main_code (name=#f, code=0x28e3540, size=5, const=1 stack=5): |
| 6514 |
signatureInfo: ((#f p v)) |
| 6515 |
0 LREF1-PUSH ; p |
| 6516 |
1 LREF0-PUSH ; v |
| 6517 |
2 GREF-TAIL-CALL(2) #<identifier scheme#set-car!.2936540>; ((setter car) p v) |
| 6518 |
4 RET |
| 6519 |
|
| 6520 |
2017-04-15 Shiro Kawai <[email protected]> |
| 6521 |
|
| 6522 |
* lib/gauche/cgen/stub.scm (<cproc>): Keep subr's binding info |
| 6523 |
(its name and defined module name) in the pair attributes of |
| 6524 |
subr's info. This will allow precompiler to emit a reference |
| 6525 |
to #<subr> by using $GREF. |
| 6526 |
|
| 6527 |
* src/compile-1.scm (set!): Enable inlining setter. In the syntax |
| 6528 |
(set! (op arg ...) expr), we check 1. if OP has inlinable binding, |
| 6529 |
2. if OP has locked setter, and 3. if the setter is inlinable. |
| 6530 |
When those conditions met, we can inline the setter. Example: |
| 6531 |
|
| 6532 |
gosh> (disasm (^[] (set! (vector-ref v 2) 'a))) |
| 6533 |
CLOSURE #<closure (#f)> |
| 6534 |
=== main_code (name=#f, code=0x1557540, size=6, const=2 stack=1): |
| 6535 |
signatureInfo: ((#f)) |
| 6536 |
0 GREF-PUSH #<identifier user#v.15b3600>; v |
| 6537 |
2 CONST a |
| 6538 |
4 VEC-SETI(2) ; ((setter vector-ref) v 2 (quote a)) |
| 6539 |
5 RET |
| 6540 |
|
| 6541 |
2017-04-14 Shiro Kawai <[email protected]> |
| 6542 |
|
| 6543 |
* src/libalpha.scm (getter-with-setter): Lock the setter; now an error |
| 6544 |
is thrown when you attempt to alter setter of a proc if it's locked, |
| 6545 |
as specified in srfi-17. |
| 6546 |
* src/libproc.scm (procedure-locked-setter): Added. |
| 6547 |
|
| 6548 |
2017-04-09 Shiro Kawai <[email protected]> |
| 6549 |
|
| 6550 |
* lib/gauche/cgen/precomp.scm: Add --single-interface option to |
| 6551 |
precomp to generate one *.sci file from multiple source files. |
| 6552 |
|
| 6553 |
2017-04-04 Shiro Kawai <[email protected]> |
| 6554 |
|
| 6555 |
* lib/gauche/interactive/info.scm (info-search): Added to search |
| 6556 |
info entries by regexp. |
| 6557 |
* lib/gauche/interactive/toplevel.scm (info): Allow regexp as the |
| 6558 |
argument to invoke info-search. |
| 6559 |
|
| 6560 |
2017-04-03 Shiro Kawai <[email protected]> |
| 6561 |
|
| 6562 |
* lib/gauche/interactive/info.scm (get-info): Avoid showing multiple |
| 6563 |
entries when they are merely the variations of API, listed using |
| 6564 |
@defunx (e.g. see the entry of 'format'). |
| 6565 |
|
| 6566 |
* libsrc/gauche/sequence.scm (group-contiguous-sequence): Added. |
| 6567 |
|
| 6568 |
2017-04-02 Shiro Kawai <[email protected]> |
| 6569 |
|
| 6570 |
* doc/*.texi: Add module name in front of the description when it's |
| 6571 |
relevant. Since the info command of REPL now only shows the |
| 6572 |
entry (as opposed to the entire page), it is hard to know which |
| 6573 |
module to import without having the module name in each entry. |
| 6574 |
|
| 6575 |
2017-04-01 Shiro Kawai <[email protected]> |
| 6576 |
|
| 6577 |
* lib/gauche/interactive/info.scm (get-info-paths): Insert doc/ of |
| 6578 |
source tree first for info search directory when gosh is invoked |
| 6579 |
with -ftest. |
| 6580 |
|
| 6581 |
2017-03-31 Shiro Kawai <[email protected]> |
| 6582 |
|
| 6583 |
* src/main.c: Define feature identifier gauche.in-place if -ftest |
| 6584 |
option is given (we avoid gauche.test, for it looks too similar to |
| 6585 |
the module gauche.test; also, 'in-place' is more specific on |
| 6586 |
what it represents. We should probably rather rename the command-line |
| 6587 |
option as -fin-place.) |
| 6588 |
|
| 6589 |
* lib/gauche/common-macros.scm (assume): Added srfi-145 assume. |
| 6590 |
|
| 6591 |
2017-03-30 Shiro Kawai <[email protected]> |
| 6592 |
|
| 6593 |
* src/libchar.scm (char-set-immutable?): Added Scheme API for |
| 6594 |
SCM_CHAR_SET_IMMUTABLE_P. |
| 6595 |
|
| 6596 |
2017-03-24 Shiro Kawai <[email protected]> |
| 6597 |
|
| 6598 |
* lib/gauche/condutil.scm: Use quasirename in the macro transformer, |
| 6599 |
to ensure keywords are handled hygienically. |
| 6600 |
|
| 6601 |
* src/libobj.scm: Make expansion of define-class, define-generic and |
| 6602 |
define-method hygiene. It's a temporary measure---after releasing |
| 6603 |
0.9.6, we'll rewrite it with er-macro-transformer (hopefully). |
| 6604 |
|
| 6605 |
2017-03-17 Shiro Kawai <[email protected]> |
| 6606 |
|
| 6607 |
* lib/gauche/interactive/toplevel.scm: Added reload and load toplevel |
| 6608 |
commands. |
| 6609 |
|
| 6610 |
2017-03-16 Shiro Kawai <[email protected]> |
| 6611 |
|
| 6612 |
* lib/gauche/interactive/toplevel.scm: Expand hygienically by closing |
| 6613 |
rename procedure for the handlers. Now toplevel commands works |
| 6614 |
regardless of which module you're in. |
| 6615 |
|
| 6616 |
2017-03-13 Shiro Kawai <[email protected]> |
| 6617 |
|
| 6618 |
* lib/srfi-141.scm: Add srfi-141. |
| 6619 |
|
| 6620 |
2017-03-12 Shiro Kawai <[email protected]> |
| 6621 |
|
| 6622 |
* src/signal.c: Provide Scm_SigFillSetMostly() to fill |
| 6623 |
sigset_t with "reasonably-handlable" signals. By default, libgauche |
| 6624 |
handles no signals; an application (including gosh) will set up |
| 6625 |
sigmask. However, an application needed to exclude system-reserved |
| 6626 |
signals, which was tedious. Now it can simply use this API. |
| 6627 |
* src/main.c (sig_setup): Revised using Scm_SigFillSetMostly(). |
| 6628 |
|
| 6629 |
2017-03-07 Shiro Kawai <[email protected]> |
| 6630 |
|
| 6631 |
* ext/threads/threads.scm (atomic, atomic-update!): Allow more than |
| 6632 |
one timeout values, so that the caller can match return arity |
| 6633 |
in case of timeout. |
| 6634 |
|
| 6635 |
2017-02-26 Shiro Kawai <[email protected]> |
| 6636 |
|
| 6637 |
* src/signal.c: Added SIGTHR default handler (OpenBSD, FreeBSD). |
| 6638 |
|
| 6639 |
2017-02-25 Shiro Kawai <[email protected]> |
| 6640 |
|
| 6641 |
* lib/text/console.scm: Split most of APIs into text.console.generic, |
| 6642 |
so that they won't be loaded unnecessarily if the runtime detects |
| 6643 |
no controllable consoles. |
| 6644 |
|
| 6645 |
2017-02-18 Shiro Kawai <[email protected]> |
| 6646 |
|
| 6647 |
* src/gauche/number.h (Scm_ClampMode): Made it common utility; now |
| 6648 |
used in both libvec.scm and ext/uvector/. |
| 6649 |
|
| 6650 |
2017-02-14 Shiro Kawai <[email protected]> |
| 6651 |
|
| 6652 |
* src/vector.c (Scm_UVectorSet): |
| 6653 |
src/libvec.c (s8vector-ref, s8vector-set!, etc): |
| 6654 |
src/compile.scm: |
| 6655 |
ext/uvector/*: Moved uniform vector referencer and modifiers |
| 6656 |
to the core, so that the compiler can generate VM insn for |
| 6657 |
the referencer. We used to use compiler macros to convert |
| 6658 |
referencer to %uvector-ref then the compiler inlined it to |
| 6659 |
VM insn, but that scheme limits the opportunity of optimization; |
| 6660 |
the compiler macro cannot be applied to the pass3/late-inline pass. |
| 6661 |
It's better to keep stuff that expands VM insns within the core. |
| 6662 |
|
| 6663 |
2017-02-10 Shiro Kawai <[email protected]> |
| 6664 |
|
| 6665 |
* doc/makedoc.scm: Check makeinfo version for html/htmls targets; |
| 6666 |
they require newer version of makeinfo. It's perplexing for |
| 6667 |
the users when they get error from older makeinfo. |
| 6668 |
|
| 6669 |
2017-02-07 Shiro Kawai <[email protected]> |
| 6670 |
|
| 6671 |
* src/libeval.scm (call-macro-expander, %source-info): Save source |
| 6672 |
information of the macro input in 'original pair-attr instead of |
| 6673 |
'macro-input; the compiler-transformation and other introspection |
| 6674 |
utilities use 'original so let's be consistent. |
| 6675 |
For example, with this change, 'describe' can show source location |
| 6676 |
of the closure created by macro expanded code: |
| 6677 |
|
| 6678 |
gosh> (define (foo x) |
| 6679 |
(^y (+ x y))) |
| 6680 |
foo |
| 6681 |
gosh> ,d (foo 3) |
| 6682 |
#<closure ((foo foo) y)> is an instance of class <procedure> |
| 6683 |
Defined at "(standard input)":2 |
| 6684 |
... |
| 6685 |
|
| 6686 |
2017-02-06 Shiro Kawai <[email protected]> |
| 6687 |
|
| 6688 |
* src/compile.scm: Replaced procedural inliner calling convention |
| 6689 |
(prev: Sexpr, Cenv -> IForm, now: Src, IForm -> IForm). This allows |
| 6690 |
pass3/late-inline to call procedural inliner as well, opening |
| 6691 |
more opportunities for optimization. Example: |
| 6692 |
|
| 6693 |
(define-inline (foo ref) (^x (ref x 0))) |
| 6694 |
(disasm (foo vector-ref)) |
| 6695 |
CLOSURE #<closure (foo x)> |
| 6696 |
=== main_code (name=foo, code=0x2300fa0, size=3, const=0 stack=0): |
| 6697 |
signatureInfo: ((foo x)) |
| 6698 |
0 LREF0 ; x |
| 6699 |
1 VEC-REFI(0) ; (ref x 0) |
| 6700 |
2 RET |
| 6701 |
|
| 6702 |
The vector-ref call wasn't inlined before. |
| 6703 |
|
| 6704 |
2017-02-04 Shiro Kawai <[email protected]> |
| 6705 |
|
| 6706 |
* src/proc.c (Scm_CopyProcedure), src/libproc.scm (%procedure-copy): |
| 6707 |
Added in order to avoid bookkeeping operation would modify |
| 6708 |
existing procedure instances. This should only be used by |
| 6709 |
internal procedures that needs to mutate procedure instance, |
| 6710 |
such as %with-inline-transformer. |
| 6711 |
|
| 6712 |
* ext/uvector/uvector.scm: Explicitly list exported symbols. |
| 6713 |
Now that we have some internal symbols (macros, %s8vector-ref, etc), |
| 6714 |
it's not appropriate to use (export-all). |
| 6715 |
NB: This makes gauche.colleciton/sequnece symbols not transitively |
| 6716 |
exported from gauche.uvector. If a module using only gauche.uvector |
| 6717 |
and refer to gauche.collection/sequence generic functions, it must |
| 6718 |
use gauche.collection/sequence explicitly. |
| 6719 |
|
| 6720 |
* ext/uvector/uvector.scm: Rewrite TAGvector-ref inlining with |
| 6721 |
define-inline/syntax. |
| 6722 |
|
| 6723 |
* lib/gauche/cgen/precomp.scm: Allow define-inline/syntax to be |
| 6724 |
precompiled. (Currently only supports er-macro-transformer). |
| 6725 |
* src/libeval.scm (macro-name): Added accessor. |
| 6726 |
|
| 6727 |
2017-02-03 Shiro Kawai <[email protected]> |
| 6728 |
|
| 6729 |
* src/compile.scm (define-inline/syntax): This may be the answer of |
| 6730 |
compiler macro in Gauche. We'll experiment more. |
| 6731 |
|
| 6732 |
2017-02-01 Shiro Kawai <[email protected]> |
| 6733 |
|
| 6734 |
* src/symbol.c (Scm_ExtractKeywords): Added. |
| 6735 |
|
| 6736 |
2017-01-23 Shiro Kawai <[email protected]> |
| 6737 |
|
| 6738 |
* libsrc/gauche/sequence.scm (delete-neighbor-dups) |
| 6739 |
(delete-neighbor-dups!, delete-neighbor-dups-squeeze!): Added. |
| 6740 |
|
| 6741 |
2017-01-22 Shiro Kawai <[email protected]> |
| 6742 |
|
| 6743 |
* ext/charconv/convaux.scm (ces-convert-to, ces-convert): Support |
| 6744 |
using u8vector for mutibyte sequences. |
| 6745 |
|
| 6746 |
2017-01-21 Shiro Kawai <[email protected]> |
| 6747 |
|
| 6748 |
* libsrc/gauche/dictionary.scm: Moved here to precompile. |
| 6749 |
|
| 6750 |
* lib/gauche/interactive.scm: Experimentally put pretty-printer. |
| 6751 |
Need better way to switch, though. |
| 6752 |
|
| 6753 |
2017-01-20 Shiro Kawai <[email protected]> |
| 6754 |
|
| 6755 |
* lib/gauche/writer.h (Scm_WriteControls): Add printWidth field. |
| 6756 |
|
| 6757 |
2017-01-17 Shiro Kawai <[email protected]> |
| 6758 |
|
| 6759 |
* lib/slib.scm, configure.ac, src/libmisc.scm: Instead of generating |
| 6760 |
slib.scm at configure time, we embed SLIB_DIR as a constant |
| 6761 |
(in gauche.internal module; see src/libmisc.scm) and let slib.scm |
| 6762 |
refer to it. One less irregularity in build process. |
| 6763 |
|
| 6764 |
* lib/srfi-96.scm: Added (just extends slib). |
| 6765 |
* lib/srfi-129.scm: Added. |
| 6766 |
* lib/srfi-74.scm: Added. |
| 6767 |
|
| 6768 |
2017-01-16 Shiro Kawai <[email protected]> |
| 6769 |
|
| 6770 |
* ext/binary (get-uint, get-sint, put-uint!, put-sint!): Added. |
| 6771 |
We had read-uint/write-uint etc but these were missing. |
| 6772 |
|
| 6773 |
* ext/uvector (TAGvector=?, TAGvector-compare): Added for support |
| 6774 |
of srfi-66. |
| 6775 |
|
| 6776 |
* src/char.c (Scm_MakeImmutableCharSet): Added. This is to be called |
| 6777 |
from generated code. |
| 6778 |
(SCM_CHAR_SET_LARGE_P, SCM_CHAR_SET_IMMUTABLE_P): Change name for |
| 6779 |
the consistency. |
| 6780 |
|
| 6781 |
2017-01-14 Shiro Kawai <[email protected]> |
| 6782 |
|
| 6783 |
* libsrc/file/util.scm (string->file etc.): Added the opposites of |
| 6784 |
file->string etc. Clojure's spit and slurp are roughly equivalent |
| 6785 |
to string->file and file->string. |
| 6786 |
|
| 6787 |
2017-01-12 Shiro Kawai <[email protected]> |
| 6788 |
|
| 6789 |
* lib/rfc/http.scm: Add option to use stunnel for https connection |
| 6790 |
in addition to rfc.tls. It is useful when the remote site |
| 6791 |
uses crypto that axTLS doesn't support yet. (Ideally we should |
| 6792 |
automatically fall back, but for now the caller should specify |
| 6793 |
which infrastructure to use.) |
| 6794 |
|
| 6795 |
* libsrc/file/util.scm (find-file-in-paths): Add extensions keyword |
| 6796 |
argument, suggested by Hamayama. |
| 6797 |
|
| 6798 |
2017-01-10 Shiro Kawai <[email protected]> |
| 6799 |
|
| 6800 |
* lib/gauche/process.scm (do-pipeline, run-pipeline): Introduced |
| 6801 |
run-pipeline, which returns a process object of the tail of |
| 6802 |
the pipeline. We keep other processes in the pipeline in |
| 6803 |
'upstreams slot of the returned process, so that process-wait |
| 6804 |
can wait for all processes. This is more convenient than handling |
| 6805 |
list of processes by the caller, as in the case of |
| 6806 |
run-process-pipeline, which we deprecate now. |
| 6807 |
|
| 6808 |
2017-01-09 Shiro Kawai <[email protected]> |
| 6809 |
|
| 6810 |
* src/read.c (read_charset): Make literal charsets immutable. |
| 6811 |
Codes that have modified literal charsets would break. Although |
| 6812 |
it has never been documented (since we didn't have immutable |
| 6813 |
charset), it must've been implicitly assumed that literals can't |
| 6814 |
be changed. Think this as a bug fix (which catches errors that |
| 6815 |
have been passed.) |
| 6816 |
* src/regexp.c (rc_charset): Make charsets in regexp immutable. |
| 6817 |
|
| 6818 |
2017-01-08 Shiro Kawai <[email protected]> |
| 6819 |
|
| 6820 |
* lib/gauche/time.h: Added missing exports for time-result-real etc. |
| 6821 |
|
| 6822 |
2017-01-06 Shiro Kawai <[email protected]> |
| 6823 |
|
| 6824 |
* src/char.c, src/libchar.scm (char-set-freeze, char-set-freeze!): |
| 6825 |
First step of supporting "frozen", or immutable, char-set, which |
| 6826 |
binary searches flat vector instead of treemap. Needs more tests... |
| 6827 |
|
| 6828 |
2017-01-05 Shiro Kawai <[email protected]> |
| 6829 |
|
| 6830 |
* ext/tls: Updated to axTLS 2.1.2 |
| 6831 |
https://github.com/shirok/Gauche/pull/271 |
| 6832 |
|
| 6833 |
2017-01-02 Shiro Kawai <[email protected]> |
| 6834 |
|
| 6835 |
* ext/uvector/uvector.scm (uvector-binary-search): Add optional |
| 6836 |
rounding argument for floor/ceiling search. |
| 6837 |
|
| 6838 |
2016-12-26 Shiro Kawai <[email protected]> |
| 6839 |
|
| 6840 |
* src/load.c (Scm_DynLoad), src/libeval.scm (%get-initfn-name): |
| 6841 |
Fix deriving of initfn name---the '.' char should be searched |
| 6842 |
from right. Also overhauled various parts to use ScmString |
| 6843 |
whenever possible, for the simplicity. |
| 6844 |
|
| 6845 |
2016-12-24 Shiro Kawai <[email protected]> |
| 6846 |
|
| 6847 |
* src/gauche/port.h: Add SCM_PORT_OUTPUT_TRANSIENT flag. |
| 6848 |
Transient output port is to put data temporarily to file during |
| 6849 |
lifetime of the process, so we don't bother to flush it upon |
| 6850 |
process exit. |
| 6851 |
|
| 6852 |
2016-12-23 Shiro Kawai <[email protected]> |
| 6853 |
|
| 6854 |
* ext/tls: Updated to axTLS 2.1.1 |
| 6855 |
https://github.com/shirok/Gauche/pull/265 |
| 6856 |
|
| 6857 |
* src/prof.c, src/gauche/prof.h, src/gauche/vm.h: Add sampling profiler |
| 6858 |
support on Windows, by Saito Atsushi and Hamayama. |
| 6859 |
NB: This only works on the thread the profiler is attached. The |
| 6860 |
behavior of samiling profiler on MT app is still ambiguous and we |
| 6861 |
might change it (e.g. '-ptime' option may want to profile all the |
| 6862 |
threads, etc.) So don't rely on the current behavior. |
| 6863 |
|
| 6864 |
2016-12-18 Shiro Kawai <[email protected]> |
| 6865 |
|
| 6866 |
* src/compile.scm (er-macro-transformer): Fix er-macro issue that |
| 6867 |
doesn't keep defining environment |
| 6868 |
(https://github.com/shirok/Gauche/issues/250). |
| 6869 |
This fix also addresses the issue of precompiling er-macro in |
| 6870 |
better ways than 0.9.5---the precompilable toplevel er-macro |
| 6871 |
now expands into a reference of %make-er-transformer/toplevel, |
| 6872 |
with all the arguments that are serializable. We don't need to |
| 6873 |
call %make-toplevel-cenv. |
| 6874 |
|
| 6875 |
* ext/tls: Updated to axTLS 2.1.0 |
| 6876 |
https://github.com/shirok/Gauche/pull/261 |
| 6877 |
|
| 6878 |
2016-12-17 Shiro Kawai <[email protected]> |
| 6879 |
|
| 6880 |
* lib/gauche/cgen/precomp.scm: Improved literal module handling. |
| 6881 |
|
| 6882 |
2016-12-16 Shiro Kawai <[email protected]> |
| 6883 |
|
| 6884 |
* src/compile.scm (primitive-macro-transformer): Drop primitive macro |
| 6885 |
transformer. In order to use passed envirnoment we need to access |
| 6886 |
compiler internals anyway, so it won't be a good abstraction to |
| 6887 |
expose to the users; and er-transformer should be good for the |
| 6888 |
bottom layer for general use. |
| 6889 |
|
| 6890 |
* configure.ac: 0.9.6_pre1. We're changing output of macro expansion, |
| 6891 |
so it's better not to confuse with 0.9.5 release version. |
| 6892 |
|
| 6893 |
2016-12-12 Shiro Kawai <[email protected]> |
| 6894 |
|
| 6895 |
* lib/slib.scm.in: Updated for slib3b5. Also emit comprehensive |
| 6896 |
error message in case we can't find slib installation. |
| 6897 |
|
| 6898 |
2016-12-10 Shiro Kawai <[email protected]> |
| 6899 |
|
| 6900 |
* src/module.c (search_binding): Fixed a bug in case ancestor module |
| 6901 |
has export renaming. |
| 6902 |
https://github.com/shirok/Gauche/issues/255 |
| 6903 |
|
| 6904 |
2016-12-09 Shiro Kawai <[email protected]> |
| 6905 |
|
| 6906 |
* lib/gauche/common-macros.scm (unwind-protect): Do not run cleanup |
| 6907 |
thunk if raised exception is continuable. |
| 6908 |
|
| 6909 |
2016-12-07 Shiro Kawai <[email protected]> |
| 6910 |
|
| 6911 |
* lib/rfc/http.scm: Make sure secure connection cleanup is run |
| 6912 |
in any stage of communication fails. |
| 6913 |
|
| 6914 |
* ext/tls/axTLS/crypto/crypto_misc.c: The RNG state is kept in |
| 6915 |
static variable and was not thread-safe. Wrap arount shared state |
| 6916 |
with Gauche's mutex layer. |
| 6917 |
* ext/tls/axtls.diff: Updated against axTLS 2.0.1 |
| 6918 |
|
| 6919 |
2016-12-05 Shiro Kawai <[email protected]> |
| 6920 |
|
| 6921 |
* lib/gauche/interpolate.scm: Changed expansion of string |
| 6922 |
interpolation. We gave up hygiene in the expanded form---it |
| 6923 |
causes a form merely 'read' to contain identifiers and will cause |
| 6924 |
unexpected problems when it is written out. It won't be reasonable |
| 6925 |
to ask gauche namespace being visibile when string interpolation |
| 6926 |
syntax is used. |
| 6927 |
In order not to tie the expanded form too tightly, though, we |
| 6928 |
introduce intermediate macro 'string-interpolate*'. The #"..." |
| 6929 |
syntax expands into the macro call. The actual expansion form |
| 6930 |
can be changed later. |
| 6931 |
* src/preload.scm: Preload gauche.interpolate---we need the new |
| 6932 |
string-interpolate* macro while compiling core Scheme files |
| 6933 |
using 0.9.5 compiler. |
| 6934 |
|
| 6935 |
2016-12-03 Shiro Kawai <[email protected]> |
| 6936 |
|
| 6937 |
* src/libvec.scm: Add binary search of flat numeric vector |
| 6938 |
* ext/gauche/uvector.scm (uvector-binary-search): Expose the above |
| 6939 |
functionarity to Scheme. |
| 6940 |
|
| 6941 |
2016-12-02 Shiro Kawai <[email protected]> |
| 6942 |
|
| 6943 |
* lib/gauche/common-macros.scm (unwind-protect): Check if the control |
| 6944 |
tries to enter the body again after the cleanup is done, and if so, |
| 6945 |
raises an error. |
| 6946 |
|
| 6947 |
* lib/gauche/test.scm (test-error): Add a feature to check the message |
| 6948 |
of the thrown error. |
| 6949 |
|
| 6950 |
2016-11-29 Shiro Kawai <[email protected]> |
| 6951 |
|
| 6952 |
* lib/gauche/hashutil.scm (hash-table-find): Added. |
| 6953 |
* lib/srfi-113.scm: Rewrite early break pattern with hash-table-find |
| 6954 |
to avoid using call/cc. This improves, for example, performance |
| 6955 |
of set-disjoint? 1.5x-2.0x. |
| 6956 |
Also fix the reference implementation bug of set|bag-map |
| 6957 |
https://github.com/scheme-requests-for-implementation/srfi-113/pull/9 |
| 6958 |
|
| 6959 |
2016-11-21 Shiro Kawai <[email protected]> |
| 6960 |
|
| 6961 |
* lib/srfi-127.scm: Added srfi-127 support. |
| 6962 |
|
| 6963 |
2016-11-20 Shiro Kawai <[email protected]> |
| 6964 |
|
| 6965 |
* various files: Purge Scm[U]Int32. We are now in C99 and we can |
| 6966 |
unconditionally use stdint.h. |
| 6967 |
|
| 6968 |
2016-11-19 Shiro Kawai <[email protected]> |
| 6969 |
|
| 6970 |
* lib/gauche/cgen/precomp.scm (without-precompiling): Instead of |
| 6971 |
emitting to *.sci, we can embed the forms as literals in the *.c |
| 6972 |
file, to be evaluated at load time. |
| 6973 |
|
| 6974 |
2016-11-18 Shiro Kawai <[email protected]> |
| 6975 |
|
| 6976 |
* libsrc/gauche/parameter.scm (parameterize): Fix a bug on handling |
| 6977 |
value expressions restarted by call/cc. |
| 6978 |
|
| 6979 |
* lib/gauche/cgen/precomp.scm (write-ext-module): Duct-tape fix of |
| 6980 |
avoiding emitting identifiers into *.sci files---the change of |
| 6981 |
making string interpolation hygiene can cause such situation. |
| 6982 |
See the comment for the planned proper fix. |
| 6983 |
|
| 6984 |
2016-11-17 Shiro Kawai <[email protected]> |
| 6985 |
|
| 6986 |
* lib/text/template.scm: Experimentally added. This library exposes |
| 6987 |
string interpolation facility for runtime-provided strings as opposed |
| 6988 |
to literals. Kind of a hack but might be useful. |
| 6989 |
|
| 6990 |
* src/compile.scm (iform->sexpr): Handle $IT node within $IF. Right |
| 6991 |
after pass1, $IT must only appear directly in either then or else |
| 6992 |
branch of $IF node. |
| 6993 |
|
| 6994 |
* lib/gauche/interpolate.scm: Make the expansion of string-interpolate |
| 6995 |
hygienic. |
| 6996 |
|
| 6997 |
2016-11-15 Shiro Kawai <[email protected]> |
| 6998 |
|
| 6999 |
* ext/gauche/unicode.scm, src/gen-unicode.scm (char-east-asian-width): |
| 7000 |
Add utility to get Unicode EastAsianWidth property of a character/ |
| 7001 |
codepoint. |
| 7002 |
|
| 7003 |
2016-11-14 Shiro Kawai <[email protected]> |
| 7004 |
|
| 7005 |
* lib/text/unicode/ucd.scm, src/unicode-data.scm: Handle EastAsianWidth |
| 7006 |
|
| 7007 |
2016-11-01 Shiro Kawai <[email protected]> |
| 7008 |
|
| 7009 |
* ext/peg ($fmap, $<<): Removed those APIs; they're the same as $lift. |
| 7010 |
|
| 7011 |
2016-10-27 Shiro Kawai <[email protected]> |
| 7012 |
|
| 7013 |
* lib/gauche/common-macros.scm, src/libomega.scm (er-macro-transformer): |
| 7014 |
Moved definition from autoloaded macro to built-in. |
| 7015 |
|
| 7016 |
2016-10-20 Shiro Kawai <[email protected]> |
| 7017 |
|
| 7018 |
* src/gauche/char_utf_8.h (Scm__LookupCharCategory): Fix off-by-one |
| 7019 |
error (by OOHASHI Daichi) |
| 7020 |
https://github.com/shirok/Gauche/pull/245 |
| 7021 |
|
| 7022 |
2016-10-17 Shiro Kawai <[email protected]> |
| 7023 |
|
| 7024 |
* src/main.c (execute_script), src/libeval.scm (run-main): |
| 7025 |
We should use Scm_Apply, instead of Scm_ApplyRec, to call 'main' |
| 7026 |
procedure, since Scm_ApplyRec should only be called when VM is |
| 7027 |
running. It caused failure like this: |
| 7028 |
https://github.com/shirok/Gauche/issues/244 |
| 7029 |
However, directly calling 'main' with Scm_Apply loses stack |
| 7030 |
trace, so we introduced a wrapper procedure gauche.internal#run-main |
| 7031 |
to capture and report error. |
| 7032 |
* src/core.c (Scm_SimpleMain): Changed as well. |
| 7033 |
|
| 7034 |
2016-10-16 Shiro Kawai <[email protected]> |
| 7035 |
|
| 7036 |
* doc/man.cgi: Added the cgi script to redirect manual page reference |
| 7037 |
used in practical-scheme.net. Sort of an example. |
| 7038 |
|
| 7039 |
2016-10-14 Shiro Kawai <[email protected]> |
| 7040 |
|
| 7041 |
* lib/gauche/process.scm: Add do-process and do-process-pipeline. |
| 7042 |
The names are provisional, so keep them experimental for now. |
| 7043 |
|
| 7044 |
* doc/Makefile.in: Switched to use makeinfo/texi2any to generate |
| 7045 |
html files (https://github.com/shirok/Gauche/pull/241). |
| 7046 |
|
| 7047 |
2016-10-08 Shiro Kawai <[email protected]> |
| 7048 |
|
| 7049 |
* doc/HOWTO-precompile.txt: A memo for the precompilation feature; |
| 7050 |
not an official support, but a good start point for those who |
| 7051 |
want to try it. |
| 7052 |
|
| 7053 |
* Release 0.9.5 |
| 7054 |
|
| 7055 |
2016-10-02 Shiro Kawai <[email protected]> |
| 7056 |
|
| 7057 |
* src/system.c (Scm_ClockGetTimeMonotonic,Scm_ClockGetResMonotonic): |
| 7058 |
Add workaround of XCode8 issue that it pretends clock_gettime |
| 7059 |
and clock_getres available but it's not true until OSX 10.12. |
| 7060 |
The workaround code directly calls mach APIs. |
| 7061 |
|
| 7062 |
* src/system.c (Scm_WinGetPipeName), |
| 7063 |
src/libsys.scm (sys-win-pipe-name): Windows-specific API to obtain |
| 7064 |
pipe name. |
| 7065 |
* src/libsys.scm (%sys-mintty?): Determine if gosh's input is |
| 7066 |
connected to mintty on msys. |
| 7067 |
|
| 7068 |
* src/main.c (enter_repl, has_terminal): On Windows, Use %sys-mintty? |
| 7069 |
so that we get REPL on MSYS shell. |
| 7070 |
|
| 7071 |
2016-10-01 Shiro Kawai <[email protected]> |
| 7072 |
|
| 7073 |
* src/Makefile.in, lib/Makefile.in: Ensure removing *.sci and *.dll |
| 7074 |
with 'make clean'---they're supposed to be cleaned by xlink script |
| 7075 |
but when it fails remaining *.sci and *.dll may interfere the |
| 7076 |
build process. |
| 7077 |
|
| 7078 |
2016-09-28 Shiro Kawai <[email protected]> |
| 7079 |
|
| 7080 |
* lib/gauche/interactive/toplevel.scm: Add ,sh toplevel command. |
| 7081 |
Change define-toplevel-command so that each command can choose |
| 7082 |
how the arguments are parsed. |
| 7083 |
|
| 7084 |
2016-09-25 Shiro Kawai <[email protected]> |
| 7085 |
|
| 7086 |
* ext/uvector/array.scm: Add u8array, s8array, ..., f64array |
| 7087 |
constructors, for the consistency. |
| 7088 |
|
| 7089 |
2016-09-24 Shiro Kawai <[email protected]> |
| 7090 |
|
| 7091 |
* libsrc/gauche/generator.scm (ginterval): Added experimentally. |
| 7092 |
The name is still provisional---it may be called gflip-flop. |
| 7093 |
I used 'interval' now because it takes data between the one |
| 7094 |
that satisfies the start predicate and the one that satisfies |
| 7095 |
the end predicate. But it may be confusing that the interval |
| 7096 |
is about sequence, not about the value range. |
| 7097 |
|
| 7098 |
2016-09-21 Shiro Kawai <[email protected]> |
| 7099 |
|
| 7100 |
* lib/check-script: Added. |
| 7101 |
|
| 7102 |
2016-09-19 Shiro Kawai <[email protected]> |
| 7103 |
|
| 7104 |
* lib/gauche/package.scm (find-gauche-package-description): Fix |
| 7105 |
an issue on Windows. |
| 7106 |
http://chaton.practical-scheme.net/gauche/a/2016/09/17#entry-57dc9a84-c61da |
| 7107 |
|
| 7108 |
2016-09-11 Shiro Kawai <[email protected]> |
| 7109 |
|
| 7110 |
* lib/gauche/base.scm (gauche.base): Extend gauche.keyword as well, |
| 7111 |
so that R7RS code that does (import (gauche base)) can call |
| 7112 |
Gauche procedures with keyword arguments just like Gauche code. |
| 7113 |
|
| 7114 |
2016-09-06 Shiro Kawai <[email protected]> |
| 7115 |
|
| 7116 |
* libsrc/srfi-133.scm (vector-cumulate): Switched argument order, |
| 7117 |
according to the errata. |
| 7118 |
|
| 7119 |
2016-08-31 Shiro Kawai <[email protected]> |
| 7120 |
|
| 7121 |
* src/libeval.scm (find-load-file), |
| 7122 |
src/compile.scm (pass1/open-include-file): Treat include paths |
| 7123 |
beginning with "./" and "../" as relative pathname to the |
| 7124 |
includer file. The original behavior is consistent with 'load', |
| 7125 |
but it doesn't make much sense for 'include', which is compile-time |
| 7126 |
operation, unlike 'load' being run-time operation. |
| 7127 |
This is INCOMPATIBLE CHANGE as the previous behavior was documented, |
| 7128 |
but I hope it won't affect existing code. |
| 7129 |
|
| 7130 |
2016-08-28 Shiro Kawai <[email protected]> |
| 7131 |
|
| 7132 |
* lib/gauche/macroutil.scm (quasirename): Handle unquote-splicing. |
| 7133 |
|
| 7134 |
2016-08-24 Shiro Kawai <[email protected]> |
| 7135 |
|
| 7136 |
* lib/srfi-113.scm: Fix collection framework implementation. Bags |
| 7137 |
must honor item count. |
| 7138 |
|
| 7139 |
2016-08-23 Shiro Kawai <[email protected]> |
| 7140 |
|
| 7141 |
* lib/srfi-113.scm: Fix single-argument case in set-union etc. |
| 7142 |
|
| 7143 |
2016-08-19 Shiro Kawai <[email protected]> |
| 7144 |
|
| 7145 |
* ext/tls: Updated to axTLS-2.0.0 |
| 7146 |
|
| 7147 |
2016-08-18 Shiro Kawai <[email protected]> |
| 7148 |
|
| 7149 |
* src/compile.scm (pass1/extended-lambda): Compare extended |
| 7150 |
lambda-list keywords hygienically. If GAUCHE_KEYWORD_IS_SYMBOL, |
| 7151 |
keywords inserted by macros are wrapped by identifiers and |
| 7152 |
we should compare it just like symbols inserted by macros. |
| 7153 |
|
| 7154 |
* src/hash.c (Scm_Hash, Scm_PortableHash): Take care of the effect |
| 7155 |
of keyword-symbol integration. If a keyword is a symbol, its name |
| 7156 |
includes prefix ':', while if they're disjoint, keyword's name |
| 7157 |
doesn't include ':'. For portable hash, we include ':' in the |
| 7158 |
calculation. For legacy hash, we don't. |
| 7159 |
|
| 7160 |
2016-08-15 Shiro Kawai <[email protected]> |
| 7161 |
|
| 7162 |
* ext/uvector/uvector.scm (port->uvector): Added. |
| 7163 |
|
| 7164 |
2016-08-14 Shiro Kawai <[email protected]> |
| 7165 |
|
| 7166 |
* gc/libatomic_ops/configure.ac (AM_INIT_AUTOMAKE): |
| 7167 |
Add no-dependencies option to avoid complication in distclean. |
| 7168 |
Here's the story: Automake adds 'include' command in |
| 7169 |
gc/libatomic_ops/src/Makefile to incorporate dependencies in |
| 7170 |
.deps/*.Plo which are generated during running configure. |
| 7171 |
On 'make distclean', the .deps directories are removed, but |
| 7172 |
both gc/ and libatomic_ops/ tries to do so; if we run distclean |
| 7173 |
in gc/ then in libatomic_ops/, the latter fails since Makefile |
| 7174 |
cannot include .deps/*.Plo. If we run distclean in libatomic_ops/ |
| 7175 |
first then gc/, the latter fails since somewhere in |
| 7176 |
automake-generated rules needs to refer to libatomic_ops/src/.deps. |
| 7177 |
If we only run distclean in gc/, it succeeds, but leaves Makefiles |
| 7178 |
in libatomic_ops/ unerased. |
| 7179 |
(Note: If you have system libatomic_ops, gc uses that and you |
| 7180 |
won't see this problem.) |
| 7181 |
It's too much trouble to fight with automake; turning off the |
| 7182 |
dependency tracking avoids the trouble altogether. |
| 7183 |
|
| 7184 |
2016-08-11 Shiro Kawai <[email protected]> |
| 7185 |
|
| 7186 |
* gc/: Updated to bdwgc 7.6.0 by qykth-git. |
| 7187 |
https://github.com/shirok/Gauche/pull/224 |
| 7188 |
|
| 7189 |
2016-08-05 Shiro Kawai <[email protected]> |
| 7190 |
|
| 7191 |
* test/process.scm: In pipeline tests, emulate cat and grep commands |
| 7192 |
so that the tests work on MinGW. |
| 7193 |
|
| 7194 |
* src/system.c (win_prepare_handles): Ensure close handles that should, |
| 7195 |
and not to close ones that shouldn't. |
| 7196 |
|
| 7197 |
* src/port.c (file_closer): Check the return value of close(), and |
| 7198 |
raise <system-error> if failed. It may be annoying if you want |
| 7199 |
to call close-port "just to be safe" on potentially broken port, |
| 7200 |
but checking the error here would catch a bug that would cause |
| 7201 |
difficult-to-diagnose bug later. |
| 7202 |
|
| 7203 |
2016-08-04 Shiro Kawai <[email protected]> |
| 7204 |
|
| 7205 |
* src/class.c, src/proc.c: EXPERIMENTAL: Use 'locked' flag of |
| 7206 |
<method> for "method-locked". Locked method prohibits redefining |
| 7207 |
the methods with the same signature. Intended to use methods |
| 7208 |
important for correct behavior of the language runtime. |
| 7209 |
* src/compile.scm, src/libobj.scm (define-method): Allow method |
| 7210 |
qualifiers; currently only ':locked' is recognized. |
| 7211 |
|
| 7212 |
2016-08-02 shiro <[email protected]> |
| 7213 |
|
| 7214 |
* src/libcmp.scm, src/libomega.scm, lib/gauche/computil.scm: |
| 7215 |
Changed default-comparator extension mechanism. Instead of |
| 7216 |
dispatching _before_ falling back to system default, we just |
| 7217 |
use system default stuff (equal?, compare, default-hash) and |
| 7218 |
dispatch to custom comparators via fallback methods |
| 7219 |
(object-equal?, object-compare and object-hash). This way |
| 7220 |
we won't sacrifice performance of default-comparator for builtin |
| 7221 |
types. Caveat: (1) This mechanism relies on we catch the base |
| 7222 |
case of object-equal? etc.; it breaks if anybody redefines |
| 7223 |
(object-equal? <top> <top>), for example. (2) You can't use |
| 7224 |
_both_ Gauche's way (defining (object-compare <mytype> <mytype>) |
| 7225 |
and srfi-128 way (registering a comparator for <mytype>); you have |
| 7226 |
to choose one. |
| 7227 |
|
| 7228 |
2016-08-01 Shiro Kawai <[email protected]> |
| 7229 |
|
| 7230 |
* ext/tls/axTLS: Update to axTLS-1.5.4. |
| 7231 |
|
| 7232 |
2016-07-30 Shiro Kawai <[email protected]> |
| 7233 |
|
| 7234 |
* tools/gc-configure.gnu-gauche.in: Add --disable-gcj-support; |
| 7235 |
GC tests fail without it on msys2+mingw-w64. |
| 7236 |
|
| 7237 |
* src/class.c (Scm_GenericObjectEqualP, Scm_GenericObjectCompare): |
| 7238 |
Use fallback routine of those gfs to handle the default case, |
| 7239 |
instead of defining (<top> <top>) method. It's cleaner, and we |
| 7240 |
need to define (<top> <top>) method to handle |
| 7241 |
comparator-register-default! later. |
| 7242 |
|
| 7243 |
2016-07-29 Shiro Kawai <[email protected]> |
| 7244 |
|
| 7245 |
* src/compile.scm: Allow internal define-inline; it's the same as |
| 7246 |
internal define. Since the compiler can figure out inlinable |
| 7247 |
internal defininitions the programmer doesn't need to use |
| 7248 |
internal define-inline, but it can appear as the result of |
| 7249 |
macro expansion. In fact, this fixes the bug that caused |
| 7250 |
internal define-record-type being a compile error. |
| 7251 |
|
| 7252 |
2016-07-23 shiro <[email protected]> |
| 7253 |
|
| 7254 |
* lib/util/unification.scm: Added. |
| 7255 |
|
| 7256 |
2016-07-22 shiro <[email protected]> |
| 7257 |
|
| 7258 |
* lib/gauche/computil.scm (comparator-register-default!): Implement |
| 7259 |
srfi-128 mechanism of extending default comparator. |
| 7260 |
|
| 7261 |
2016-07-20 shiro <[email protected]> |
| 7262 |
|
| 7263 |
* src/libcmp.scm, lib/srfi-114.scm (make-car-comparator) |
| 7264 |
(make-cdr-comparator): Moved these to srfi-114. |
| 7265 |
|
| 7266 |
2016-07-19 shiro <[email protected]> |
| 7267 |
|
| 7268 |
* src/libcmp.scm, lib/srfi-114.scm (comparator-equal?): Move |
| 7269 |
this to srfi-114, for =? covers its usage. |
| 7270 |
|
| 7271 |
2016-07-17 shiro <[email protected]> |
| 7272 |
|
| 7273 |
* src/libcmp.scm, lib/srfi-114.scm (comparator-comparison-procedure?) |
| 7274 |
(comparator-hash-function?, comparator-type-test-procedure): |
| 7275 |
Move some srfi-114-specific procedures from builtin to srfi-114. |
| 7276 |
Code that relies on them being builtin must be changed to use |
| 7277 |
srfi-128 procedures. Various internal code has been fixed to |
| 7278 |
use srfi-128 ones. |
| 7279 |
|
| 7280 |
2016-07-10 Shiro Kawai <[email protected]> |
| 7281 |
|
| 7282 |
* src/gauche/priv/dws_adapter.h: We need to stick 32bit siphash |
| 7283 |
for the portable hash regardless of the platforms, though we |
| 7284 |
do want 64bit siphash for the default hash on 64bit platform. |
| 7285 |
To workaround name conflicts, we applied some ducttaping so |
| 7286 |
we can have consistent internal interface. See the comment |
| 7287 |
in the file for the details. |
| 7288 |
|
| 7289 |
2016-07-05 Shiro Kawai <[email protected]> |
| 7290 |
|
| 7291 |
* src/hash.c, src/libdict.scm, src/libomega.scm: |
| 7292 |
We make Scm_Hash() and 'hash' deprecated, and will |
| 7293 |
keep it only for the backward compatibility. Add 'portable-hash' |
| 7294 |
for replacement, which takes explicit salt. Also provide |
| 7295 |
'default-hash', ala srfi-128, which honors hash-salt and is |
| 7296 |
used for equal hashtable. |
| 7297 |
The object-hash method now takes two arguments, an object to |
| 7298 |
hash and the hash function to be recursively called when necessary. |
| 7299 |
To avoid breaking the existing code of object-hash that takes |
| 7300 |
one argument and recursively calls 'hash' procedure, we tweaked |
| 7301 |
'hash' so that it dispatches to the appropriate hash function |
| 7302 |
if it's called recursively. |
| 7303 |
|
| 7304 |
2016-07-04 Shiro Kawai <[email protected]> |
| 7305 |
|
| 7306 |
* src/hash.c (Scm_HashString), src/dwsiphash.[ch], src/dws32hash.[ch]: |
| 7307 |
Replaced default string hash function with siphash, and using |
| 7308 |
per-processs random salt to prevent hash collision attack. |
| 7309 |
|
| 7310 |
2016-07-03 Shiro Kawai <[email protected]> |
| 7311 |
|
| 7312 |
* src/hash.c (legacy_flonum_hash): Legacy hash fn for flonums had |
| 7313 |
stepped on the undefined behavior. To keep portability and |
| 7314 |
compatibility, we try to emulate existing behavior. Note that |
| 7315 |
there are already discrepancies between platforms; we can't achieve |
| 7316 |
perfect backward compatibility. But after this fix we'll at least |
| 7317 |
eliminate platform dependency. |
| 7318 |
|
| 7319 |
2016-07-02 Shiro Kawai <[email protected]> |
| 7320 |
|
| 7321 |
* lib/data/ideque.scm (make-ideque): Changed API to be consistent |
| 7322 |
with other container datatypes. |
| 7323 |
|
| 7324 |
2016-07-01 Shiro Kawai <[email protected]> |
| 7325 |
|
| 7326 |
* lib/srfi-134.scm: Finalized, so we document data.ideque and |
| 7327 |
make srfi-134 alias of it. |
| 7328 |
|
| 7329 |
2016-06-27 Shiro Kawai <[email protected]> |
| 7330 |
|
| 7331 |
* lib/gauche/process.scm (run-process-pipeline): Add an intermediate |
| 7332 |
convenience API to run pipelined commands. |
| 7333 |
|
| 7334 |
2016-06-26 Shiro Kawai <[email protected]> |
| 7335 |
|
| 7336 |
* gc/m4/*, gc/libatomic_ops/m4/*: Check-in libtool-related m4 files, |
| 7337 |
which can be automatically generated by autoreconf, but we avoid |
| 7338 |
relying on it in case the platform doesn't have matching autoconf |
| 7339 |
macro libraries (specifically, OSX doesn't have libtool-related m4 |
| 7340 |
macros with the default installation). |
| 7341 |
|
| 7342 |
2016-06-25 Shiro Kawai <[email protected]> |
| 7343 |
|
| 7344 |
* src/compile.scm (select-module, export, export-all, import) |
| 7345 |
(extend, require): Evaluates to zero values instead of #<undef>. |
| 7346 |
Better for REPL (less cluttering, no messing history). |
| 7347 |
This is technically an incompatible change, but we assume nobody |
| 7348 |
has ever used the return value of those forms. |
| 7349 |
|
| 7350 |
2016-06-24 Shiro Kawai <[email protected]> |
| 7351 |
|
| 7352 |
* src/hash.c (Scm_Hash): Make sure portable hash value is masked |
| 7353 |
by HASHMASK. Shouldn't affect existing code as far as they're |
| 7354 |
using lower <=32 bits, but the whole point of portable hash value |
| 7355 |
is that it's portable, so it's better to ensure that. |
| 7356 |
(legacy_number_hash): Fixed a bug that caused to produce different |
| 7357 |
bignum hash value between 32bit long and 64bit long platforms. |
| 7358 |
(This changes the portable hash value of bignums on 64bit platforms; |
| 7359 |
crossing fingers that won't break things) |
| 7360 |
|
| 7361 |
2016-06-21 Shiro Kawai <[email protected]> |
| 7362 |
|
| 7363 |
* lib/gauche/vm/debugger.scm: Add thread vmid to '#?=' output |
| 7364 |
so that output from different threads can be distinguished |
| 7365 |
easily. The id is omitted for primordial thread. |
| 7366 |
|
| 7367 |
* gc/*: Bumped up to gc-7.4.4. |
| 7368 |
See https://github.com/shirok/Gauche/pull/210 |
| 7369 |
|
| 7370 |
2016-06-17 Shiro Kawai <[email protected]> |
| 7371 |
|
| 7372 |
* lib/gauche/mop/bound-slot.scm: Experimentally added. |
| 7373 |
|
| 7374 |
2016-06-16 Shiro Kawai <[email protected]> |
| 7375 |
|
| 7376 |
* ext/uvector/uvector.scm (s8vector->string, u8vector->string): |
| 7377 |
Add 'terminator' optional argument, which recognizes terminating |
| 7378 |
character as the end of string. Convenient to extract |
| 7379 |
NUL-terminated string from fixed size buffer, for example. |
| 7380 |
|
| 7381 |
2016-06-14 Shiro Kawai <[email protected]> |
| 7382 |
|
| 7383 |
* src/hash.c (Scm_EqvHash): Improve hash value of flonums. |
| 7384 |
(Scm_Hash): Decouple from Scm_EqvHash to use original code for |
| 7385 |
number hash, in order to maintain backward compatibility. |
| 7386 |
* src/libdict.scm (portable-hash): Added - better name to indicate |
| 7387 |
portable hash value. |
| 7388 |
|
| 7389 |
2016-06-13 Shiro Kawai <[email protected]> |
| 7390 |
|
| 7391 |
* src/liblazy.scm (lrange): Fix handling zero and negative steps. |
| 7392 |
|
| 7393 |
* src/hash.c (Scm_HashSaltRef, Scm_HashSaltSet), |
| 7394 |
src/libdict.scm (hash-salt): Built-in support of hash salt (not yet |
| 7395 |
used, but this is the starting point.) |
| 7396 |
|
| 7397 |
2016-05-27 Shiro Kawai <[email protected]> |
| 7398 |
|
| 7399 |
* src/libio.scm, lib/gauche/interactive.scm: |
| 7400 |
Drop read-consuming-trailing-whitespaces, |
| 7401 |
for it turned out it can't be used meaningfully. For toplevel |
| 7402 |
commands we have to call read-line after the first word, |
| 7403 |
so the first word reader must not consume trailing newline |
| 7404 |
immediately. We create consume-trailing-whitespaces instead. |
| 7405 |
|
| 7406 |
* src/read.c: Fix erroneous read behavior such as |
| 7407 |
(read-from-string "#:") => #:|| and |
| 7408 |
(read-from-string "#: foo") => #:| foo|. We now reject if '#!' |
| 7409 |
and '#:' aren't immediately followed by a valid symbol. |
| 7410 |
|
| 7411 |
2016-05-26 Shiro Kawai <[email protected]> |
| 7412 |
|
| 7413 |
* src/libio.scm (read-consuming-trailing-whitespaces): Useful |
| 7414 |
extension of 'read' for REPL. |
| 7415 |
* lib/gauche/interactive.scm, |
| 7416 |
lib/gauche/interactive/editable-reader.scm: Dropped |
| 7417 |
%skip-trailing-ws and use r-c-t-w above, for the previous code |
| 7418 |
won't work when we're not reading from the current input port. |
| 7419 |
|
| 7420 |
2016-05-25 Shiro Kawai <[email protected]> |
| 7421 |
|
| 7422 |
* src/number.c (read_number): EXPERIMENTAL: Recognize 'pi' suffix |
| 7423 |
in polar complex notation, e.g. 2@1pi => -2.0. |
| 7424 |
|
| 7425 |
2016-05-24 Shiro Kawai <[email protected]> |
| 7426 |
|
| 7427 |
* src/gauche/system.h (ScmStat): Switch definition of struct stat |
| 7428 |
on GAUCHE_WINDOWS. |
| 7429 |
* src/gauche/win-compat.h (stat): Use _wstat64() for stat(), to |
| 7430 |
handle filenames with multibyte characters. |
| 7431 |
|
| 7432 |
2016-05-21 Shiro Kawai <[email protected]> |
| 7433 |
|
| 7434 |
* src/main.c (enter_repl): Better error reporting for an error |
| 7435 |
thrown during loading gauche.interactive. It helps |
| 7436 |
troubleshooting bugs in gauche.interactive and/or .gaucherc. |
| 7437 |
|
| 7438 |
2016-05-20 Shiro Kawai <[email protected]> |
| 7439 |
|
| 7440 |
* lib/gauche/hashutil.scm, lib/gauche/computil.scm, |
| 7441 |
src/autoloads.scm: |
| 7442 |
Added srfi-128 APIs |
| 7443 |
|
| 7444 |
2016-05-16 Shiro Kawai <[email protected]> |
| 7445 |
|
| 7446 |
* lib/gauche/hashutil.scm, src/autoloads.scm: |
| 7447 |
Added srfi-128 type-specific hash functions. |
| 7448 |
|
| 7449 |
2016-05-11 Shiro Kawai <[email protected]> |
| 7450 |
|
| 7451 |
* lib/gauche/interactive.scm, |
| 7452 |
lib/gauche/interactive/editable-reader.scm: EXPERIMENTAL: Enable |
| 7453 |
line-editing input when the environment variable GAUCHE_READ_EDIT |
| 7454 |
is set and the terminal is known to be capable of editing. |
| 7455 |
If you see a prompt "gosh$ ", read-edit is enabled. |
| 7456 |
Note: The editing capability depends on text.line-edit, and we |
| 7457 |
still have a few unresolved issues---the display breaks when |
| 7458 |
multiline input goes beyond the screen height, and multibyte |
| 7459 |
characters aren't handled correctly, to name a few. This mode |
| 7460 |
is to ease debugging of the feature and not for general use yet. |
| 7461 |
|
| 7462 |
2016-05-08 Shiro Kawai <[email protected]> |
| 7463 |
|
| 7464 |
* src/portapi.c (Scm_PortSeek): Take ungotten char / scratch buffer |
| 7465 |
into account of port offset. Based on the patch from Koguro. |
| 7466 |
|
| 7467 |
2016-05-05 Shiro Kawia <[email protected]> |
| 7468 |
|
| 7469 |
* src/gauche/priv/codeP.h: Make C API of code buliding stuff |
| 7470 |
private, and also changed the signature of |
| 7471 |
Scm_MakeCompiledCodeBuilder (crossing fingers). These C API |
| 7472 |
should only be called from code.c and libcode.scm; other internal |
| 7473 |
parts should depend on Scheme API. |
| 7474 |
* src/compile.scm (pass5/lambda), |
| 7475 |
src/libcode.scm (compiled-code-attach-source-info!): |
| 7476 |
Fill signature-info by the signature with extended pair, having |
| 7477 |
source code location info. With this, the source code location |
| 7478 |
info is carried over to (~ <closure>'info) by Scm_MakeClosure. |
| 7479 |
|
| 7480 |
2016-05-03 Shiro Kawai <[email protected]> |
| 7481 |
|
| 7482 |
* src/gauche/code.h, src/libcode.scm: Rename 'info' and 'arg-info' |
| 7483 |
slots of <compiled-code> to 'debug-info' and 'signature-info', |
| 7484 |
respectively, to clarify the roles of those slots. (mere 'info' |
| 7485 |
doesn't mean much!) Technically this is C source-level |
| 7486 |
incompatible change (code that refers to those slots must be |
| 7487 |
changed) but we hope third party code won't touch such internal |
| 7488 |
info (crossing fingers). |
| 7489 |
The Scheme slot names are also renamed, but we leave old names as |
| 7490 |
aliases, in order to allow precompiler work with 0.9.4. We'll |
| 7491 |
drop the old names sometime after releaseing 0.9.5. |
| 7492 |
|
| 7493 |
2016-05-02 Shiro Kawai <[email protected]> |
| 7494 |
|
| 7495 |
* src/gauche/code.h, src/code.c: Change the info kept in |
| 7496 |
ScmCompiledCode->argInfo; see the comment of code.h for the details. |
| 7497 |
(1) We include the procedure name in the <signature> part. We've |
| 7498 |
calculated it every time in Scm_MakeClosure before, which is a |
| 7499 |
waste. |
| 7500 |
(2) Allow to hold more information than arguments in argInfo; a |
| 7501 |
plan is to keep unused args so that it could be used for further |
| 7502 |
optimization, but that part hasn't been written. |
| 7503 |
|
| 7504 |
2016-04-26 Shiro Kawai <[email protected]> |
| 7505 |
|
| 7506 |
* libsrc/gauche/parameter.scm (parameterize): Further cleanup. |
| 7507 |
Avoid nested dynamic-wind. Removed auxiliary macros. |
| 7508 |
|
| 7509 |
2016-04-23 Shiro Kawai <[email protected]> |
| 7510 |
|
| 7511 |
* lib/srfi-113.scm (sob-hash): Fix - hash function must not rely |
| 7512 |
on the visiting order of hash-table-for-each. |
| 7513 |
|
| 7514 |
* libsrc/gauche/parameter.scm (%parameterize-1): Fix a bug that |
| 7515 |
appears when the converter isn't idempotent. |
| 7516 |
|
| 7517 |
2016-04-22 Shiro Kawai <[email protected]> |
| 7518 |
|
| 7519 |
* src/vm.c, src/gauche/vm.h: Add vmid slot to Scm_VM for numeric id |
| 7520 |
of each VM. It is intended to ease debugging multithreaded |
| 7521 |
programs (e.g. attach numeric id for messages). It's not to |
| 7522 |
be used as a handle for a thread. |
| 7523 |
|
| 7524 |
2016-04-20 Shiro Kawai <[email protected]> |
| 7525 |
|
| 7526 |
* lib/gauche/configure.scm (cf-init): Check dependent module version |
| 7527 |
requirements, if given in package.scm. |
| 7528 |
|
| 7529 |
2016-04-19 Shiro Kawai <[email protected]> |
| 7530 |
|
| 7531 |
* lib/gauche/version.scm (valid-version-spec?, version-satisfy?): |
| 7532 |
Added. |
| 7533 |
|
| 7534 |
2016-04-18 Shiro Kawai <[email protected]> |
| 7535 |
|
| 7536 |
* lib/rfc/uri.scm (uri-decompose-authority): Handle IPv6 address |
| 7537 |
as host part, e.g. "[::1]:8080". |
| 7538 |
|
| 7539 |
* lib/gauche/package.scm: Enhanced <gauche-package-description> to |
| 7540 |
keep metainformaton provided by the package author. The package |
| 7541 |
auther can put package.scm in the top dir, which provides metainfo; |
| 7542 |
cf-init can now read package.scm (package name and version can be |
| 7543 |
taken from it) and cf-make-gpd emits gpd file that combines |
| 7544 |
package.scm and build-time info. |
| 7545 |
* lib/gauche/configure.scm (cf-init, cf-make-pkg): Adapted the flow |
| 7546 |
using package.scm. |
| 7547 |
* ext/template.package.scm: Template package.scm |
| 7548 |
* examples/spigot: Adopt package.scm |
| 7549 |
* src/gauche-package.in: 'gauche-package generate' copies package.scm |
| 7550 |
template. |
| 7551 |
|
| 7552 |
2016-04-17 Shiro Kawai <[email protected]> |
| 7553 |
|
| 7554 |
* ext/text/unicode.scm -> ext/gauche/unicode.scm: Changed text.unicode |
| 7555 |
to gauche.unicode, for r7rs string case folding depends on it. |
| 7556 |
R7rs-compatible srfis that deal with string case folding also |
| 7557 |
require r7rs string-ci behavior. |
| 7558 |
|
| 7559 |
2016-04-11 Shiro Kawai <[email protected]> |
| 7560 |
|
| 7561 |
* lib/gauche/cgen/precomp.scm, lib/gauche/cgen/stub.scm: Save |
| 7562 |
source info of precompiled SUBRs and closures. They can be |
| 7563 |
useful during development. |
| 7564 |
|
| 7565 |
* src/libcode.c (compiled-code-definition): Added. This will be |
| 7566 |
the basis of source-code (gauche/procedure.scm) and |
| 7567 |
<cgen-scheme-code> literal (gauche/cgen/precomp.scm). Since |
| 7568 |
0.9.5 must be compiled by 0.9.4, we'll defer changing `source-code' |
| 7569 |
etc until after 0.9.5 release. |
| 7570 |
* lib/gauche/cgen/literal.scm: Add support of serializing |
| 7571 |
extended pair. NB: We don't automatically serialize extended-pair, |
| 7572 |
for pair attributes may contain unnecessary info. Instead, |
| 7573 |
a special proxy object is provided that would be serialized as |
| 7574 |
an extended pair. |
| 7575 |
|
| 7576 |
2016-04-10 Shiro Kawai <[email protected]> |
| 7577 |
|
| 7578 |
* src/list.c (Scm_MakeExtendedPair): Added. |
| 7579 |
|
| 7580 |
2016-04-09 Shiro Kawai <[email protected]> |
| 7581 |
|
| 7582 |
* examples/spigot, examples/mqueue-cpp: Switched to use |
| 7583 |
gauche.configure instead of autoconf. |
| 7584 |
|
| 7585 |
* lib/gauche/configure.scm: Add framework to run compiler tests. |
| 7586 |
New apis: cf-arg-var, cf-check-tool, cf-prog-cxx, cf-lang, |
| 7587 |
cf-lang-program, cf-lang-io-program, cf-lang-call, |
| 7588 |
cf-try-compile, cf-try-compile-and-link. |
| 7589 |
|
| 7590 |
* lib/gauche/process.scm (shell-tokenize-string): Added. |
| 7591 |
|
| 7592 |
2016-04-08 Shiro Kawai <[email protected]> |
| 7593 |
|
| 7594 |
* lib/gauche/process.scm (shell-escape-string): Add optional flavor |
| 7595 |
argument to allow cross-platform processing. |
| 7596 |
|
| 7597 |
* src/libsys.scm (%sys-escape-windows-command-line): Fixed to follow |
| 7598 |
msvc runtime behavior more closely. |
| 7599 |
|
| 7600 |
2016-04-06 Shiro Kawai <[email protected]> |
| 7601 |
|
| 7602 |
* lib/gauche/mop/singleton.scm: Made it thread-safe. |
| 7603 |
|
| 7604 |
2016-04-04 Shiro Kawai <[email protected]> |
| 7605 |
|
| 7606 |
* lib/gauche/interactive/toplevel.scm: Allow abbreviation of |
| 7607 |
toplevel commands. Based on a patch from Hamayama. |
| 7608 |
|
| 7609 |
2016-04-02 Shiro Kawai <[email protected]> |
| 7610 |
|
| 7611 |
* lib/util/levenshtein.scm: Added. |
| 7612 |
|
| 7613 |
2016-03-28 Shiro Kawai <[email protected]> |
| 7614 |
|
| 7615 |
* lib/gauche/interpolate.scm (%string-interpolate): Slight |
| 7616 |
optimization to avoid unnecessary string-append. |
| 7617 |
|
| 7618 |
* lib/gauche/cgen/cise.scm (result): Allow more than three values. |
| 7619 |
Patch from pclouds. |
| 7620 |
|
| 7621 |
2016-03-26 Shiro Kawai <[email protected]> |
| 7622 |
|
| 7623 |
* ext/srfi/srfi-133.scm -> libsrc/srfi-133.scm: moved |
| 7624 |
* ext/srfi/srfi-43.scm: Rewrote on top of srfi-133. |
| 7625 |
|
| 7626 |
2016-03-25 Shiro Kawai <[email protected]> |
| 7627 |
|
| 7628 |
* lib/gauche/interactive/info.scm: Include module and class names |
| 7629 |
for the lookup entry. Make the initial table set-up thread safe. |
| 7630 |
|
| 7631 |
2016-03-24 Shiro Kawai <[email protected]> |
| 7632 |
|
| 7633 |
* ext/data/queue.scm (mtqueue-num-waiting-readers): Added. |
| 7634 |
|
| 7635 |
2016-03-23 Shiro Kawai <[email protected]> |
| 7636 |
|
| 7637 |
* src/load.c (Scm_Require): 'require' now loads a file into |
| 7638 |
a sealed module #<module gauche.require-base>. This guarantees |
| 7639 |
the forms like define-module or define-library to be visible |
| 7640 |
from the loaded file, and also catches when the loaded file |
| 7641 |
inadvertently inserts toplevel bindings without specifying |
| 7642 |
a module. |
| 7643 |
Note: This change may triggers an error in existing code. Such |
| 7644 |
code has just "happened to work"; they should be fixed. |
| 7645 |
|
| 7646 |
* src/compile.scm (pass4): Use local environment instead of inserting |
| 7647 |
new global identifiers for lifted lambdas. Inserting new global ids |
| 7648 |
has an issue of where module the global binding should be inserted. |
| 7649 |
|
| 7650 |
2016-03-22 Shiro Kawai <[email protected]> |
| 7651 |
|
| 7652 |
* ext/srfi/srfi-133.scm: Added srfi-133 support. The common part |
| 7653 |
of srfi-133 and r7rs is now fully covered by built-in. |
| 7654 |
|
| 7655 |
2016-03-20 Shiro Kawai <[email protected]> |
| 7656 |
|
| 7657 |
* src/comple.scm (when, unless): Require at least one expr in the |
| 7658 |
body. Allowing empty when/unless is only marginally useful (maybe |
| 7659 |
some macros can be written more concisely) but it might be better |
| 7660 |
to be strict to catch errors. |
| 7661 |
|
| 7662 |
2016-03-18 Shiro Kawai <[email protected]> |
| 7663 |
|
| 7664 |
* src/module.c, src/libmod.scm (%seal-module!): Add the 'sealed' flag |
| 7665 |
in ScmModule. Sealed modules won't allow to create or modify |
| 7666 |
its bindings, nor to newly import modules. |
| 7667 |
|
| 7668 |
2016-03-17 Shiro Kawai <[email protected]> |
| 7669 |
|
| 7670 |
* src/libcmp.scm, src/compare.c: Integrating srfi-128. |
| 7671 |
INCOMPATIBLE-CHANGE: Built-in make-comparator is now compatible to |
| 7672 |
srfi-128. Srfi-114 compatible constructor is renamed to |
| 7673 |
make-comparator/compare. |
| 7674 |
It is no longer safe to directly refer to comparator->compareFn |
| 7675 |
and comparator->hashFn in C code; they may be filled lazily. |
| 7676 |
You should call Scm_ComparatorComparisonProcedure() and |
| 7677 |
Scm_ComparatorHashFunction() respectively. |
| 7678 |
* various files: Changes according to above; mostly just replacing |
| 7679 |
make-comparator to make-comparator/compare. Later we may refine |
| 7680 |
the code so that we can use make-comparator whenever it's more |
| 7681 |
efficient. |
| 7682 |
|
| 7683 |
2016-03-16 Shiro Kawai <[email protected]> |
| 7684 |
|
| 7685 |
* lib/gauche/process.scm: Reject if the same symbol is used more |
| 7686 |
than once as the pipe name in redirects. |
| 7687 |
https://github.com/shirok/Gauche/issues/182 |
| 7688 |
|
| 7689 |
2016-03-12 Shiro Kawai <[email protected]> |
| 7690 |
|
| 7691 |
* lib/text/console.scm (%read-char/timeout): Support mintty/MSYS. |
| 7692 |
(getch): clear the input buffer before finishing. |
| 7693 |
(query-cursor-position): Queue any ESC sequence to input buffer |
| 7694 |
when it is not a cursor position report. |
| 7695 |
(ensure-bottom-room): Rename from last-scroll to indicate |
| 7696 |
what it does, and export this. |
| 7697 |
* lib/text/console/windows.scm (%getch-sub): Handle surrogate pairs. |
| 7698 |
(get-raw-chars): Added. |
| 7699 |
(clear-screen, clear-to-eos): Clear to the end of buffer instead |
| 7700 |
of just on-screen area. Because of IME, it's difficult to properly |
| 7701 |
determine on-screen area size. |
| 7702 |
(ensure-bottom-room): Rename from last-scroll, and add workaround |
| 7703 |
of full-width case. |
| 7704 |
|
| 7705 |
2016-03-11 Shiro Kawai <[email protected]> |
| 7706 |
|
| 7707 |
* ext/tls/*: Add basic server-side certificate support. Patch |
| 7708 |
from pclouds. See https://github.com/shirok/Gauche/pull/180 |
| 7709 |
|
| 7710 |
2016-03-10 Shiro Kawai <[email protected]> |
| 7711 |
|
| 7712 |
* ext/termios/termios.scm: Support mintty on MSYS - the communication |
| 7713 |
between mingw process and mintty isn't direct (it goes through |
| 7714 |
MSYS runtime) so we need to rely on external stty command. |
| 7715 |
See the comment in msys-get-stty. Originally done by |
| 7716 |
Hamayama ( https://github.com/shirok/Gauche/pull/173 ), and |
| 7717 |
we incorporated with some style adjustements. |
| 7718 |
* lib/text/console.scm: has-windows-console? is moved to |
| 7719 |
gauche.termios. |
| 7720 |
|
| 7721 |
2016-03-07 Shiro Kawai <[email protected]> |
| 7722 |
|
| 7723 |
* src/portapi.c (getc_scratch): Fix: peek-byte could break the |
| 7724 |
following read-char when input contains invalid byte sequence. |
| 7725 |
|
| 7726 |
2016-03-06 Shiro Kawai <[email protected]> |
| 7727 |
|
| 7728 |
* lib/gauche/cgen/stub.scm: Generate stub record in 'decl' part |
| 7729 |
instead of after the function body, so that the cproc body |
| 7730 |
can refer to the decl body. |
| 7731 |
|
| 7732 |
2016-03-05 Shiro Kawai <[email protected]> |
| 7733 |
|
| 7734 |
* ext/bcrypt: Update bcrypt implementation to crypt_blowfish 1.3, |
| 7735 |
and changed the default from 2a to 2b. |
| 7736 |
See https://github.com/shirok/Gauche/pull/175 and |
| 7737 |
https://github.com/shirok/Gauche/pull/176. |
| 7738 |
|
| 7739 |
2016-02-27 Shiro Kawai <[email protected]> |
| 7740 |
|
| 7741 |
* lib/gauche/cgen/stub.scm (.funcall/rec, .funcall/cps): Allow to |
| 7742 |
specify the module from which the procedure is looked for. |
| 7743 |
|
| 7744 |
2016-02-26 Shiro Kawai <[email protected]> |
| 7745 |
|
| 7746 |
* lib/gauche/cgen/stub.scm: Add .funcall/rec and .funcall/cps to |
| 7747 |
call Scheme function from cproc body easily. |
| 7748 |
|
| 7749 |
2016-02-24 Shiro Kawai <[email protected]> |
| 7750 |
|
| 7751 |
* lib/gauche/cgen/stub.scm: Add .cproc cise macro, which retrieves |
| 7752 |
ScmObj of c-defined procedure in the same cgen unit. |
| 7753 |
|
| 7754 |
2016-02-13 Shiro Kawai <[email protected]> |
| 7755 |
|
| 7756 |
* lib/srfi-131.scm: Added. |
| 7757 |
|
| 7758 |
2016-02-12 Shiro Kawai <[email protected]> |
| 7759 |
|
| 7760 |
* examples/get-raw-chars.scm: Added. Useful to check what kind of |
| 7761 |
key sequence is sent by the terminal. |
| 7762 |
* lib/text/console.scm (get-raw-chars): Added. |
| 7763 |
|
| 7764 |
2016-02-07 Shiro Kawai <[email protected]> |
| 7765 |
|
| 7766 |
* lib/gauche/cgen/unit.scm (cgen-emit-h): Always generate .h file |
| 7767 |
even h-file slot of the unit is #f. |
| 7768 |
|
| 7769 |
2016-02-06 Shiro Kawai <[email protected]> |
| 7770 |
|
| 7771 |
* libsrc/file/util.scm (copy-file) : Added support of :if-exists :append. |
| 7772 |
|
| 7773 |
2016-02-04 Shiro Kawai <[email protected]> |
| 7774 |
|
| 7775 |
* lib/gauche/test.scm (test-script): Added test-script to test script |
| 7776 |
files quasi-statically. |
| 7777 |
|
| 7778 |
2016-01-31 Shiro Kawai <[email protected]> |
| 7779 |
|
| 7780 |
* lib/gauche/macroutil.scm (quasirename): Renamed from with-renaming |
| 7781 |
to (1) indicate it is a macro and (2) can be used like quasiquote. |
| 7782 |
|
| 7783 |
2016-01-28 Shiro Kawai <[email protected]> |
| 7784 |
|
| 7785 |
* lib/rfc/http.scm (start-socket-connection): properly handle |
| 7786 |
ipv6-style server address spec, e.g. "[::1]:8888". |
| 7787 |
|
| 7788 |
2016-01-23 Shiro Kawai <[email protected]> |
| 7789 |
|
| 7790 |
* src/gauche/class.h, src/class.c: Add Scm_Allocate() API. |
| 7791 |
|
| 7792 |
2016-01-22 Shiro Kawai <[email protected]> |
| 7793 |
|
| 7794 |
* src/gauche/class.h, src/class.c: API clean up on allocation |
| 7795 |
protocol. Dropped Scm_ObjectAllocate, for it is trivial and |
| 7796 |
it's rather confusing to have. Renamed SCM_ALLOCATE and |
| 7797 |
Scm_AllocateInstance for SCM_NEW_INSTANCE and Scm_NewInstance, |
| 7798 |
to indicate they're lowest level of API (akin to SCM_NEW family) |
| 7799 |
that handles very raw allocation (with minimal initialization). |
| 7800 |
We also call SCM_SET_CLASS in Scm_NewInstance, for they should |
| 7801 |
always go together anyway. The old API is kept during 0.9.x |
| 7802 |
series but will be removed on 1.0. See the comment in |
| 7803 |
class.h for the details. |
| 7804 |
|
| 7805 |
2016-01-21 Shiro Kawai <[email protected]> |
| 7806 |
|
| 7807 |
* lib/compat/chibi-test.scm: Handle 'include' form inside |
| 7808 |
chibi-test specially, so that we can say |
| 7809 |
(chibi-test (include "test-file-written-for-chibi.scm")). |
| 7810 |
|
| 7811 |
2016-01-11 Shiro Kawai <[email protected]> |
| 7812 |
|
| 7813 |
* src/unicode-data.scm: Updated to Unicode 8.0.0 |
| 7814 |
|
| 7815 |
2016-01-10 Shiro Kawai <[email protected]> |
| 7816 |
|
| 7817 |
* lib/text/unicode/ucd.scm, src/gen-unicode.scm: Changed the build |
| 7818 |
flow so that, instead of pre-generating char_attr.c etc., we |
| 7819 |
keep unicode-data.scm in the source tree, which is generated |
| 7820 |
from Unicode character database files; char_attr.c is generated |
| 7821 |
during build (from source tree). |
| 7822 |
* src/unicode-data.scm: Added. Pre-converted data from Unicode |
| 7823 |
character database. |
| 7824 |
* src/char_attr.c, ext/text/unicode_attr.h: Removed from the source |
| 7825 |
tree; they are regenerated during clean build. |
| 7826 |
|
| 7827 |
2016-01-09 Shiro Kawai <[email protected]> |
| 7828 |
|
| 7829 |
* lib/gauche/cgen/precomp.scm (declare): Moved handling code from |
| 7830 |
compile-toplevel-form to *special-handlers*, so that macro-generated |
| 7831 |
declare form can be recognized. |
| 7832 |
* src/compile-0.scm (define-simple-struct): Keep generated macros |
| 7833 |
in the compiled binary. Other compiler-related tools may want to |
| 7834 |
use them. |
| 7835 |
|
| 7836 |
2015-12-25 Shiro Kawai <[email protected]> |
| 7837 |
|
| 7838 |
* src/port.c (Scm_{Get|Set}PortReaderLexicalMode): Save port-local |
| 7839 |
reader lexical mode in port attr. Directives such as #!r7rs |
| 7840 |
should only affect port-local mode, not the global parameter. |
| 7841 |
* src/read.c: Changed references to Scm_ReaderLexicalMode() to |
| 7842 |
Scm_GetPortReaderLexicalMode(). |
| 7843 |
|
| 7844 |
2015-12-24 Shiro Kawai <[email protected]> |
| 7845 |
|
| 7846 |
* src/system.c, src/libsys.scm (sys-mkdtemp): Added mkdtemp support. |
| 7847 |
Patch from enami. |
| 7848 |
|
| 7849 |
2015-12-22 Shiro Kawai <[email protected]> |
| 7850 |
|
| 7851 |
* configure.ac: AC_PREREQ(2.69) -> AC_PREREQ(2.68), since mingw32 |
| 7852 |
still uses 2.68. There seems not much disruptive changes |
| 7853 |
between them (notable exception is CONFIG_SHELL, but we don't |
| 7854 |
require it in general); so this appears to be a reasonable |
| 7855 |
workarond. Once mingw32 adopts autoconf 2.69 we can switch back. |
| 7856 |
|
| 7857 |
2015-12-19 Shiro Kawai <[email protected]> |
| 7858 |
|
| 7859 |
* ext/text/unicode.scm: Update grapheme-break / word-break |
| 7860 |
states to support additional break properties added in |
| 7861 |
Unicode 6.1.0 and after. |
| 7862 |
|
| 7863 |
2015-12-18 Shiro Kawai <[email protected]> |
| 7864 |
|
| 7865 |
* src/gen-unicode.scm, lib/text/unicode/ucd.scm: Move |
| 7866 |
general UCD-related code to a separate module. |
| 7867 |
|
| 7868 |
2015-12-13 Shiro Kawai <[email protected]> |
| 7869 |
|
| 7870 |
* ext/vport/vport.scm: Added input generator ports. |
| 7871 |
|
| 7872 |
2015-12-12 Shiro Kawai <[email protected]> |
| 7873 |
|
| 7874 |
* libsrc/gauche/parameter.scm (parameterize): Fix a bug that failed |
| 7875 |
to restore parameter values when aother parameter in the same |
| 7876 |
parameterize throws an error from the filter proc. |
| 7877 |
See the added test in ext/gauche/test-parameter.scm. |
| 7878 |
NB: This fix is very inefficient when there are lots of |
| 7879 |
parameters bound by a parameterize. The better way is to split |
| 7880 |
parameter object's operation of appling filter proc and setting |
| 7881 |
new value. That would require changing the protocol of |
| 7882 |
non-<parameter> parameter-like thingies (a procedure that takes |
| 7883 |
zero or one arguments), though. |
| 7884 |
|
| 7885 |
2015-12-09 Shiro Kawai <[email protected]> |
| 7886 |
|
| 7887 |
* libsrc/srfi-13.scm (xsubstring): Fixed a bug when from is negative. |
| 7888 |
|
| 7889 |
2015-12-08 Shiro Kawai <[email protected]> |
| 7890 |
|
| 7891 |
* src/port.c (Scm__SetupPortsForWindows): Set up trapper ports |
| 7892 |
for all standard ports; so that gosh-noconsole script can |
| 7893 |
do input from allocted console as well. |
| 7894 |
|
| 7895 |
2015-12-03 Shiro Kawai <[email protected]> |
| 7896 |
|
| 7897 |
* lib/data/immutable-deque.scm: Added. |
| 7898 |
|
| 7899 |
2015-11-28 Shiro Kawai <[email protected]> |
| 7900 |
|
| 7901 |
* lib/gauche/cgen/cise.scm: Catch invalid syntax even under |
| 7902 |
keyword-symbol integration. |
| 7903 |
|
| 7904 |
2015-11-26 Shiro Kawai <[email protected]> |
| 7905 |
|
| 7906 |
* lib/dict/immutable-map.scm: Renamed from ftree-map.scm. |
| 7907 |
|
| 7908 |
2015-11-21 Shiro Kawai <[email protected]> |
| 7909 |
|
| 7910 |
* src/number.c (read_real): Fix the case of reading zero with big |
| 7911 |
exponent, e.g. 0e325. Also make sure to return negative zero |
| 7912 |
for something as -1e-10000. |
| 7913 |
|
| 7914 |
2015-11-20 Shiro Kawai <[email protected]> |
| 7915 |
|
| 7916 |
* src/load.c: Replaced dso_list for dso_table. |
| 7917 |
|
| 7918 |
2015-11-18 Shiro Kawai <[email protected]> |
| 7919 |
|
| 7920 |
* lib/lang/asm/x86_64.scm: Renamed from x86.scm |
| 7921 |
|
| 7922 |
2015-11-16 Shiro Kawai <[email protected]> |
| 7923 |
|
| 7924 |
* src/liblist.scm (length<=?): Fix bug when x is empty list. |
| 7925 |
Also added all variations of comparison family: length=?, |
| 7926 |
length<?, length>? and length>=?. |
| 7927 |
|
| 7928 |
2015-11-15 Shiro Kawai <[email protected]> |
| 7929 |
|
| 7930 |
* lib/lang/asm/x86.scm: Salvaged from experiment_jit branch. Nothing |
| 7931 |
serious yet, but may be useful to play around machine instructions. |
| 7932 |
|
| 7933 |
2015-11-13 Shiro Kawai <[email protected]> |
| 7934 |
|
| 7935 |
* src/libsym.scm (identifier->symbol): Call Scm_UnwrapIdentifier to |
| 7936 |
make sure it returns the symbol. Note that identifier-name can |
| 7937 |
still return an identifier, for it just unwraps outermost identifier. |
| 7938 |
(symbol-append): Fix for the case args have a nested identifier. |
| 7939 |
|
| 7940 |
2015-11-09 Shiro Kawai <[email protected]> |
| 7941 |
|
| 7942 |
* libsrc/gauche/generator.scm: Added the rest of srfi-121. Now |
| 7943 |
it's a superset of srfi-121. (NB: Since srfi-121 hasn't been |
| 7944 |
finalized, we may change this according to how the srfi goes.) |
| 7945 |
|
| 7946 |
2015-11-06 Shiro Kawai <[email protected]> |
| 7947 |
|
| 7948 |
* src/libmisc.scm (debug-label): Added. Useful to print out |
| 7949 |
anonymous objects. |
| 7950 |
|
| 7951 |
2015-11-03 Shiro Kawai <[email protected]> |
| 7952 |
|
| 7953 |
* src/libnum.scm (%log): Explicitly handle the cases when input |
| 7954 |
is infinity. |
| 7955 |
|
| 7956 |
2015-10-28 Shiro Kawai <[email protected]> |
| 7957 |
|
| 7958 |
* libsrc/gauche/generator.scm (gtake, gtake*): INCOMPATIBLE CHANGE: |
| 7959 |
Changed optional argument spec of gtake - now it's in sync with |
| 7960 |
oncoming srfi-121. For the existing code, we provide gtake*. |
| 7961 |
The name is better to indicate the consistency with take*. |
| 7962 |
(gremove, gdelete, gdelete-neighbor-dups): Added for srfi-121. |
| 7963 |
|
| 7964 |
2015-10-26 Shiro Kawai <[email protected]> |
| 7965 |
|
| 7966 |
* src/module.c (Scm_MakeBinding): Only auto-export interned symbols |
| 7967 |
when module has exportAll flag set. The compiler may insert |
| 7968 |
toplevel bindings as the result of lambda lifting, but they should |
| 7969 |
not be exported. They have uninterned symbols as name, so they'll |
| 7970 |
never match, anyway (unless you programatically extract the |
| 7971 |
uninterned symbols). |
| 7972 |
|
| 7973 |
2015-10-25 Shiro Kawai <[email protected]> |
| 7974 |
|
| 7975 |
* libsrc/gauche/generator.scm (uvector->generator): Added. |
| 7976 |
|
| 7977 |
* ext/uvector/uvector.scm (uvector-ref, uvector-set!): Added generic |
| 7978 |
accessor and mutator for the convenience. |
| 7979 |
|
| 7980 |
* src/libvec.scm (%uvector-ref): We unboxed k twice, breaking the |
| 7981 |
whole procedure. It never surfaced, because the way we used |
| 7982 |
%uvector-ref has always been expanded into UVEC-REF instruction |
| 7983 |
by the compiler so the procedure has never been called. |
| 7984 |
|
| 7985 |
* lib/data/ftree-map.scm: Added. |
| 7986 |
|
| 7987 |
2015-10-24 Shiro Kawai <[email protected]> |
| 7988 |
|
| 7989 |
* lib/www/css.scm (parse-css, parse-css-file): INCOMPATIBLE CHANGE: |
| 7990 |
Changed the name from css-parse-file for the consistency. |
| 7991 |
Also, use `:or'instead of `or' in SxCSS, for the bare symbol |
| 7992 |
could be ambiguous when we have an element named `or'. |
| 7993 |
|
| 7994 |
2015-10-23 Shiro Kawai <[email protected]> |
| 7995 |
|
| 7996 |
* lib/gauche/vm/profiler.scm (with-profiler): Added. |
| 7997 |
|
| 7998 |
2015-10-21 Shiro Kawai <[email protected]> |
| 7999 |
|
| 8000 |
* src/compile.scm (er-renamer): Allow ER's rename procedure |
| 8001 |
to take lists and vectors; all variables inside it will be |
| 8002 |
renamed. |
| 8003 |
|
| 8004 |
2015-10-17 Shiro Kawai <[email protected]> |
| 8005 |
|
| 8006 |
* src/macro.c (match_identifier): Further fix to make sure using |
| 8007 |
free-identifier=? to compare literals. See the added test in |
| 8008 |
test/macro.scm. This fix is grossly inefficient and should be |
| 8009 |
optimized soon. |
| 8010 |
* src/compile.scm (env-lookup-int): Further fix on macro-defining |
| 8011 |
macros. See the added test in test/macro.scm. |
| 8012 |
|
| 8013 |
2015-10-16 Shiro Kawai <[email protected]> |
| 8014 |
|
| 8015 |
* src/compile.scm (env-lookup-int), src/compaux.c (Scm_CopyIdentifier): |
| 8016 |
One step toward fixing macro-defining-macros. Now identifier can |
| 8017 |
be wrapped with multiple layers, e.g. identifier->name may be |
| 8018 |
another identifier. |
| 8019 |
NB: We may still have places where identifier->name is assumed to |
| 8020 |
be symbol; we need to fix as we find them. |
| 8021 |
|
| 8022 |
2015-10-15 Shiro Kawai <[email protected]> |
| 8023 |
|
| 8024 |
* src/load.c (Scm__InitLoad): Give *.sld higher precedence to |
| 8025 |
*.sci and *.scm, for it seems the consensus among r7rs. |
| 8026 |
NB: This could pose a problem that if we already have Gauche-optimized |
| 8027 |
library then the user installs r7rs library, the former may be |
| 8028 |
ignored. In that case, however, we might ask r7rs one to include |
| 8029 |
cond-expand to load Gauche-specific one. |
| 8030 |
|
| 8031 |
2015-10-14 Shiro Kawai <[email protected]> |
| 8032 |
|
| 8033 |
* src/vm.c (Scm__VMInsnOffsets): Make the offset of insn handlers |
| 8034 |
available without conditional compilation, for easier micro |
| 8035 |
profiling. |
| 8036 |
|
| 8037 |
2015-10-10 Shiro Kawai <[email protected]> |
| 8038 |
|
| 8039 |
* lib/text/line-edit.scm: Added. |
| 8040 |
* examples/line-editor.scm: Sample & test for text.line-edit |
| 8041 |
|
| 8042 |
2015-10-02 Shiro Kawai <[email protected]> |
| 8043 |
|
| 8044 |
* src/vm.c (user_eval_inner): Use Scm_Exit instead of exit() to ensure |
| 8045 |
flushing output buffers. This code path is executed only when |
| 8046 |
the C program calls Scm_EvalRec/ApplyRec directly without |
| 8047 |
outer Scm_Eval/Apply. |
| 8048 |
(Scm_VMDefaultExceptionHandler): vm->cstack shouldn't be NULL |
| 8049 |
when this is called, so we use SCM_ASSERT instead of check and exit. |
| 8050 |
|
| 8051 |
2015-10-01 Shiro Kawai <[email protected]> |
| 8052 |
|
| 8053 |
* src/error.c (Scm_ShowStackTrace): Moved to Scheme. |
| 8054 |
* src/libeval.scm (%vm-show-stack-trace): Reimplement stack trace |
| 8055 |
printing in Scheme (the actual work is done in %show-stack-trace). |
| 8056 |
Addition: If the expression is the result of macro expansion, show |
| 8057 |
the original source form as well, with its source location. |
| 8058 |
|
| 8059 |
* src/libeval.scm (%source-info): Common internal API to extract |
| 8060 |
source info. |
| 8061 |
* lib/gauche/vm/debugger.scm (debug-source-info): Rewrote to use |
| 8062 |
%source-info. |
| 8063 |
* src/libomega.scm (report-mixin-condition): Ditto. |
| 8064 |
|
| 8065 |
2015-09-30 Shiro Kawai <[email protected]> |
| 8066 |
|
| 8067 |
* src/libeval.scm (call-macro-expander): EXPERIMENTAL: Add original |
| 8068 |
source before macro expansion to the pair attribute of the expanded |
| 8069 |
form. Could be used for better error reporting. |
| 8070 |
|
| 8071 |
2015-09-26 Shiro Kawai <[email protected]> |
| 8072 |
|
| 8073 |
* src/compile.scm (builtin-inliner): Fixed a bug that builtin |
| 8074 |
inliners inserted global identifiers unhygienically. It caused |
| 8075 |
a problem when (1) a macro expands into a procedure call X with |
| 8076 |
builtin inliner (2) the arguments are such that no optimization |
| 8077 |
can be done, and (3) macro use scope has different global binding |
| 8078 |
of the X. See the added test in test/module.scm for the concrete |
| 8079 |
case. |
| 8080 |
The case we inserted global identifiers was when we couldn't do |
| 8081 |
do any optimization, so we can just return #<undef> to make |
| 8082 |
pass1/expand-inliner give up the optimization. |
| 8083 |
|
| 8084 |
2015-09-23 Shiro Kawai <[email protected]> |
| 8085 |
|
| 8086 |
* lib/data/ring-buffer.scm: Added. |
| 8087 |
|
| 8088 |
2015-09-22 Shiro Kawai <[email protected]> |
| 8089 |
|
| 8090 |
* lib/text/console.scm (getch): Support special keys by parsing |
| 8091 |
vt100 input escape sequences. |
| 8092 |
|
| 8093 |
* ext/data/queue.scm (queue-internal-list): This name is better. |
| 8094 |
|
| 8095 |
* ext/termios/termios.scm (with-terminal-mode): Turn off port buffering |
| 8096 |
if raw or rare mode is specified. |
| 8097 |
|
| 8098 |
2015-09-21 Shiro Kawai <[email protected]> |
| 8099 |
|
| 8100 |
* ext/data/queue.scm (queue->internal-list): Add this one, |
| 8101 |
corresponding to srfi-117's list-queue-list. |
| 8102 |
|
| 8103 |
* lib/data/trie.scm (trie-exists?): Fix a bug that it returned #t |
| 8104 |
even if the given key doesn't exist, but merely a prefix of |
| 8105 |
other keys. |
| 8106 |
(trie-partial-key?): Added to check if the given seq is a prefix |
| 8107 |
of existing keys. |
| 8108 |
(make-trie): New optional argument, tab-empty?. |
| 8109 |
|
| 8110 |
2015-09-14 Shiro Kawai <[email protected]> |
| 8111 |
|
| 8112 |
* lib/srfi-112.scm: Added. |
| 8113 |
|
| 8114 |
2015-09-10 Shiro Kawai <[email protected]> |
| 8115 |
|
| 8116 |
* src/compile.scm (iform->sexpr): Use identifier's name instead of |
| 8117 |
just stringify the identifier to reconstruct lvar name, for |
| 8118 |
better-looking output. Patch from wasao: |
| 8119 |
https://github.com/shirok/Gauche/pull/90 |
| 8120 |
|
| 8121 |
2015-09-09 Shiro Kawai <[email protected]> |
| 8122 |
|
| 8123 |
* lib/srfi-117.scm: Added support of srfi-117. |
| 8124 |
|
| 8125 |
* lib/compat/chibi-test.scm: Added to adopt srfi test suite easily. |
| 8126 |
|
| 8127 |
2015-09-06 Shiro Kawai <[email protected]> |
| 8128 |
|
| 8129 |
* lib/text/info.scm: Modified to parse '(line DDD)' part of the menu |
| 8130 |
entries, so that we can jump to the entry inside a page. |
| 8131 |
(info-extract-definition): New API to extract definition inside |
| 8132 |
a node. |
| 8133 |
* lib/gauche/interactive/info.scm (info): Changed to show only the |
| 8134 |
entry looked for. |
| 8135 |
(info-page): This one shows entire info node, as the old info command |
| 8136 |
did. |
| 8137 |
|
| 8138 |
2015-09-04 Shiro Kawai <[email protected]> |
| 8139 |
|
| 8140 |
* doc/HOWTO-mingw.txt: Renamed from mingw-memo.txt |
| 8141 |
|
| 8142 |
2015-08-31 Shiro Kawai <[email protected]> |
| 8143 |
|
| 8144 |
* ext/tls: Upgraded to axTLS-1.5.3. |
| 8145 |
|
| 8146 |
2015-08-23 Shiro Kawai <[email protected]> |
| 8147 |
|
| 8148 |
* lib/text/csv.scm (make-csv-writer): Add special-char-set argument |
| 8149 |
to allow to include wider range of characters to cause the field |
| 8150 |
quoted. |
| 8151 |
|
| 8152 |
2015-08-22 Shiro Kawai <[email protected]> |
| 8153 |
|
| 8154 |
* src/libio.scm (write, write-shared, display): Allow flexible order |
| 8155 |
of port and write-controls arguments. |
| 8156 |
* src/libfmt.scm (format): Allow write-controls to be passed as the |
| 8157 |
argument. (format [port/control1] [port/control2] fmtstr arg...). |
| 8158 |
|
| 8159 |
2015-08-21 Shiro Kawai <[email protected]> |
| 8160 |
|
| 8161 |
* src/write.c (Scm_WriteWithControls): Added. In retrospect, this |
| 8162 |
should be named as Scm_Write(), for it's more generic. |
| 8163 |
* src/libio.scm (write, write-shared, display): Accept another optional |
| 8164 |
argument for <write-controls>. |
| 8165 |
|
| 8166 |
2015-08-18 Shiro Kawai <[email protected]> |
| 8167 |
|
| 8168 |
* src/libio.scm (ScmWriteControls): Made it ScmObj. We'll |
| 8169 |
eventually drop global (dynamic) write control variables, so |
| 8170 |
the tests are commented out. |
| 8171 |
|
| 8172 |
2015-08-15 Shiro Kawai <[email protected]> |
| 8173 |
|
| 8174 |
* src/gauche.h, src/gauche/writer.h: Renamed WriteParameter to |
| 8175 |
WriteControls, to avoid confusion with srfi-39 parameters. |
| 8176 |
|
| 8177 |
2015-08-07 Shiro Kawai <[email protected]> |
| 8178 |
|
| 8179 |
* src/compile.scm (macroexpand-all, iform->sexpr): Experimentally added. |
| 8180 |
See the comment for the current limitations. |
| 8181 |
|
| 8182 |
2015-08-05 Shiro Kawai <[email protected]> |
| 8183 |
|
| 8184 |
* src/gauche.h: Add a new flag SCM_CLASS_AGGREGATE to ScmClass, |
| 8185 |
indicating it represents aggregate type. A new macro |
| 8186 |
SCM_DEFINE_BUILITIN_CLASS_FLAGS for declaring a class with extra |
| 8187 |
flags. |
| 8188 |
* src/vector.c: Make vectors and uniform vectros SCM_CLASS_AGGREGATE. |
| 8189 |
* src/write.c (write_rec): Recognize SCM_CLASS_AGGERGATE flag for |
| 8190 |
print-level check. |
| 8191 |
* src/gauche/vm.h, src/vm.c (Scm_VMWriteParameter): Accessor. |
| 8192 |
|
| 8193 |
2015-08-03 Shiro Kawai <[email protected]> |
| 8194 |
|
| 8195 |
* src/libio.scm (print-length, print-level, print-base, print-radix): |
| 8196 |
Added. |
| 8197 |
|
| 8198 |
2015-08-01 Shiro Kawai <[email protected]> |
| 8199 |
|
| 8200 |
* src/gauche/writer.h: Introduced ScmWriteParameter to keep various |
| 8201 |
write customization parameters - *print-level* etc. in CL. |
| 8202 |
* src/gauche/vm.h, src/vm.c: Keep the current ScmWriteParameter |
| 8203 |
in VM. |
| 8204 |
* src/write.c: Refer to vm->writeParameters. |
| 8205 |
|
| 8206 |
2015-07-30 Shiro Kawai <[email protected]> |
| 8207 |
|
| 8208 |
* lib/srfi-118.scm, src/srfis.scm: Added srfi-118. |
| 8209 |
|
| 8210 |
2015-07-29 Shiro Kawai <[email protected]> |
| 8211 |
|
| 8212 |
* src/read.c (read_num_prefixed): Recognize CL-ish #<radix>r syntax. |
| 8213 |
|
| 8214 |
2015-07-26 Shiro Kawai <[email protected]> |
| 8215 |
|
| 8216 |
* src/portapi.c (seek_istr, Scm_PortSeek): Clear scrcnt when seek |
| 8217 |
happens. Patch from tomonacchi. |
| 8218 |
|
| 8219 |
2015-07-23 Shiro Kawai <[email protected]> |
| 8220 |
|
| 8221 |
* src/libnum.scm, src/number.c, src/bignum.c: Various fixes from |
| 8222 |
Takeshi Abe: Fix 'exact' for integer around SCM_SMALL_INT_MAX and |
| 8223 |
LONG_MAX; RnRS conformance on (negative? +nan.0), (expt 0 z), |
| 8224 |
(magnitude exact-number). |
| 8225 |
|
| 8226 |
2015-07-19 Shiro Kawai <[email protected]> |
| 8227 |
|
| 8228 |
* lib/data/random.scm (samples$): Added. |
| 8229 |
|
| 8230 |
2015-07-18 Shiro Kawai <[email protected]> |
| 8231 |
|
| 8232 |
* lib/gauche/cgen/stub.scm: Avoid generated code from being warned |
| 8233 |
for unused variables or unused labels. |
| 8234 |
|
| 8235 |
2015-07-17 Shiro Kawai <[email protected]> |
| 8236 |
|
| 8237 |
* src/port.c (Scm_OpenFilePort): Fix an issue that port-tell doesn't |
| 8238 |
return the size of the file write after opening it in append mode. |
| 8239 |
|
| 8240 |
2015-07-14 Shiro Kawai <[email protected]> |
| 8241 |
|
| 8242 |
* lib/gauche/interactive.scm (%reader): In REPL, read ahead trailing |
| 8243 |
whitespace characters including the first newline after an sexpr; |
| 8244 |
It's been a source of confusion that typing (read-char) or (read-line) |
| 8245 |
on REPL read the trailing newline. |
| 8246 |
|
| 8247 |
2015-07-13 Shiro Kawai <[email protected]> |
| 8248 |
|
| 8249 |
* lib/gauche/cgen/cise.scm (funcall): Add to allow the case |
| 8250 |
when calling a function computed at runtime. |
| 8251 |
|
| 8252 |
2015-07-10 Shiro Kawai <[email protected]> |
| 8253 |
|
| 8254 |
* lib/gauche/lazy.scm: Add lappend-map |
| 8255 |
* libsrc/gauche/generator.scm: Add gflatten |
| 8256 |
|
| 8257 |
2015-07-05 Shiro Kawai <[email protected]> |
| 8258 |
|
| 8259 |
* lib/text/csv.scm: Add make-csv-header-parser, make-csv-record-parser, |
| 8260 |
csv-rows->tuples. NB: We removed <csv> definition, for it was |
| 8261 |
never used. |
| 8262 |
|
| 8263 |
2015-07-02 Shiro Kawai <[email protected]> |
| 8264 |
|
| 8265 |
* ext/tls: Inhibit building & running ssltest when --disable-threads, |
| 8266 |
since the test program requires thread support. Ideally, even |
| 8267 |
we say --disable-threads, the test program should be able to |
| 8268 |
use threads as long as the system has it; but that requires more |
| 8269 |
trick in build process, so this is a temporary remedy. |
| 8270 |
|
| 8271 |
2015-06-30 Shiro Kawai <[email protected]> |
| 8272 |
|
| 8273 |
* lib/gauche/interactive/toplevel.scm: Start adding Scheme48-style |
| 8274 |
REPL toplevel commands. Will play with this for a while to see |
| 8275 |
how it works. |
| 8276 |
|
| 8277 |
2015-06-27 Shiro Kawai <[email protected]> |
| 8278 |
|
| 8279 |
* src/write.c, src/libio.scm, src/gauche/port.h: |
| 8280 |
Step 2 of improving writer. Rename port->recursiveContext |
| 8281 |
to port->writeState. |
| 8282 |
|
| 8283 |
2015-06-26 Shiro Kawai <[email protected]> |
| 8284 |
|
| 8285 |
* src/write.c, src/libio.scm, src/gauche/priv/writerP.h: |
| 8286 |
Step 1 of improving writer. Made recursive context into an |
| 8287 |
instance of <write-state>. |
| 8288 |
|
| 8289 |
2015-06-25 Shiro Kawai <[email protected]> |
| 8290 |
|
| 8291 |
* lib/text/console.scm: Add call-with-console to abstract console |
| 8292 |
mode handling |
| 8293 |
* doc/modutil.texi: Document text.console. |
| 8294 |
|
| 8295 |
2015-06-20 Shiro Kawai <[email protected]> |
| 8296 |
|
| 8297 |
* src/regexp.c: Add RE_ANYR, RE_MATCH1R and RE_MATCHR to support |
| 8298 |
the patterns like #/.+/ efficiently. We should be able to |
| 8299 |
avoid backtrakcking for all rep-while case, but if the repeated |
| 8300 |
element has structure, we'll need another instruction ("if the |
| 8301 |
next immediate element fails, reset input and continue") that |
| 8302 |
requires some modification in VM (we have to save the input pos |
| 8303 |
without consuming stack), so we'll put it off for future. |
| 8304 |
|
| 8305 |
2015-06-19 Shiro Kawai <[email protected]> |
| 8306 |
|
| 8307 |
* lib/gauche/computil.scm (make-tuple-comparator): Added. |
| 8308 |
|
| 8309 |
2015-06-09 Shiro Kawai <[email protected]> |
| 8310 |
|
| 8311 |
* src/libnum.scm (fixnum-width): Fix - been misunderstood r6rs spec. |
| 8312 |
|
| 8313 |
2015-05-29 Shiro Kawai <[email protected]> |
| 8314 |
|
| 8315 |
* lib/data/cache.scm: Added. |
| 8316 |
|
| 8317 |
2015-05-21 Shiro Kawai <[email protected]> |
| 8318 |
|
| 8319 |
* src/libsys.scm (sys-setgroups): Added. |
| 8320 |
|
| 8321 |
2015-05-20 Shiro Kawai <[email protected]> |
| 8322 |
|
| 8323 |
* src/compile.scm: Save closure arginfo to ScmCompiledCode. |
| 8324 |
Taking procedure-info of the closure now returns not only |
| 8325 |
the procedure name, but procedure name + formals. |
| 8326 |
|
| 8327 |
2015-05-17 Shiro Kawai <[email protected]> |
| 8328 |
|
| 8329 |
* src/system.c (nanosleep), src/gauche/system.h (struct timespec): |
| 8330 |
Workaround for the mingw timespec incompatibility. |
| 8331 |
|
| 8332 |
2015-05-14 Shiro Kawai <[email protected]> |
| 8333 |
|
| 8334 |
* src/load.c (Scm_LoadFromCString): Added. |
| 8335 |
|
| 8336 |
2015-05-12 Shiro Kawai <[email protected]> |
| 8337 |
|
| 8338 |
* gc/darwin_stop_world.c: Backported iOS 8 support from bdwgc |
| 8339 |
upstream. |
| 8340 |
* configure.ac, gc/configure.ac: The above change requires to link |
| 8341 |
CoreFoundation on darwin. (The upstream bdwgc doesn't have |
| 8342 |
this modification, so there may be another way; if we figure it |
| 8343 |
out, we might revert this change.) |
| 8344 |
|
| 8345 |
2015-05-10 Shiro Kawai <[email protected]> |
| 8346 |
|
| 8347 |
* lib/gauche/cgen/unit.scm (gauche.cgen.unit): Renamed and moved |
| 8348 |
c-safe-string-literal to here as cgen-safe-string, for the |
| 8349 |
consistency. |
| 8350 |
|
| 8351 |
2015-05-08 Shiro Kawai <[email protected]> |
| 8352 |
|
| 8353 |
* lib/gauche/cgen/literal.scm (<cgen-scheme-integer>): Fix |
| 8354 |
cross-compiling issue - we may generate code for 32bit architecure |
| 8355 |
using 64bit gosh. |
| 8356 |
|
| 8357 |
2015-05-01 Shiro Kawai <[email protected]> |
| 8358 |
|
| 8359 |
* src/gauche.h (SCM_NORETURN): Allow using |
| 8360 |
__attribute__((__noreturn__)) in gcc. |
| 8361 |
|
| 8362 |
* lib/gauche/cgen/cise.scm (define-cfn): Allow :inline qualifier. |
| 8363 |
|
| 8364 |
2015-04-25 Shiro Kawai <[email protected]> |
| 8365 |
|
| 8366 |
* lib/gauche/interactive/ed.scm (ed): Add 'ed' in REPL. |
| 8367 |
|
| 8368 |
2015-04-24 Shiro Kawai <[email protected]> |
| 8369 |
|
| 8370 |
* src/libeval.scm (%exit): Allow arbitrary Scheme objects for |
| 8371 |
the argument, to conform r7rs. |
| 8372 |
|
| 8373 |
2015-04-21 Shiro Kawai <[email protected]> |
| 8374 |
|
| 8375 |
* lib/gauche/vm/profiler.scm (profiler-show-load-stats): Fix a bug |
| 8376 |
that didn't exclude time for subloads. Patch from Duy Nguyen. |
| 8377 |
|
| 8378 |
2015-04-20 Shiro Kawai <[email protected]> |
| 8379 |
|
| 8380 |
* lib/gauche/interactive.scm (describe): Show the source location |
| 8381 |
for a procedure, if available. |
| 8382 |
|
| 8383 |
2015-04-13 Shiro Kawai <[email protected]> |
| 8384 |
|
| 8385 |
* lib/rfc/mime.scm -> libsrc/rfc/mime.scm, |
| 8386 |
ext/rfc: Precompile rfc.mime. |
| 8387 |
|
| 8388 |
2015-04-12 Shiro Kawai <[email protected]> |
| 8389 |
|
| 8390 |
* lib/rfc/json.scm: Updated to follow rfc7159 (allow any value |
| 8391 |
on the toplevel of json). |
| 8392 |
|
| 8393 |
2015-04-10 Shiro Kawai <[email protected]> |
| 8394 |
|
| 8395 |
* src/genconfig.in: Allow multiple arguments to gauche-config |
| 8396 |
for the convenience. |
| 8397 |
|
| 8398 |
2015-04-09 Shiro Kawai <[email protected]> |
| 8399 |
|
| 8400 |
* lib/gauche/record.scm -> libsrc/gauche/record.scm, |
| 8401 |
ext/gauche/Makefile.in: Precompile gauche.record |
| 8402 |
|
| 8403 |
* src/libsym.scm (identifier-append): Added (experimental) |
| 8404 |
|
| 8405 |
2015-04-08 Shiro Kawai <[email protected]> |
| 8406 |
|
| 8407 |
* lib/srfi-78.scm: Added. |
| 8408 |
|
| 8409 |
2015-04-04 Shiro Kawai <[email protected]> |
| 8410 |
|
| 8411 |
* src/libsym.scm (symbol-append): Added. |
| 8412 |
|
| 8413 |
2015-03-31 Shiro Kawai <[email protected]> |
| 8414 |
|
| 8415 |
* libsrc/gauche/sequence.scm (common-prefix, common-prefix-to): Added. |
| 8416 |
|
| 8417 |
2015-03-30 Shiro Kawai <[email protected]> |
| 8418 |
|
| 8419 |
* src/compile.scm (er-comparer): Check if args are variable; without |
| 8420 |
this check, compiler barfs with assertion failure if the user passes |
| 8421 |
non-variable arg to 'compare' proc of er-transformer. |
| 8422 |
|
| 8423 |
2015-03-28 Shiro Kawai <[email protected]> |
| 8424 |
|
| 8425 |
* src/compile.scm (pass5/emit-local-env-jump), |
| 8426 |
src/vminsn.scm (LOCAL-ENV-SHIFT, BOX), |
| 8427 |
src/vm.c (local_env_shift): Improvement of the last commit - instead |
| 8428 |
of changing BOX behavior to add another 'mode', we split |
| 8429 |
LOCAL-ENV-JUMP insn to LOCAL-ENV-SHIFT + JUMP, and insert boxing |
| 8430 |
operatins inbetween when necessary. If there's no mutable variable |
| 8431 |
in the frame, we use LOCAL-ENV-JUMP as before. |
| 8432 |
|
| 8433 |
2015-03-27 Shiro Kawai <[email protected]> |
| 8434 |
|
| 8435 |
* src/compile.scm (pass5/prepare-args, pass5/box-mutable-lvars): |
| 8436 |
Fix incorrect insertion of BOX instruction. The mutable variable |
| 8437 |
in local environment must be BOXed after all the values in the |
| 8438 |
env are evaluated, otherwise the result would be incorrect if |
| 8439 |
a continuation is captured in one of the init expression of |
| 8440 |
the variable and restarted. See the added test in test/dynwind.scm |
| 8441 |
to reproduce the issue. Thansk to @gengar68 for finding the bug. |
| 8442 |
* src/vminsn.scm (BOX): We enhanced BOX insn with negative parameter; |
| 8443 |
we need to support both cases of the env frame is already created |
| 8444 |
and is yet to be created. |
| 8445 |
|
| 8446 |
2015-03-21 Shiro Kawai <[email protected]> |
| 8447 |
|
| 8448 |
* src/gauche-package.in, ext/template.DIST: Retire DIST script; |
| 8449 |
we no longer need autoconf (DIST gen), and DIST tgz is handled |
| 8450 |
by 'gauche-package make-tarball'. |
| 8451 |
|
| 8452 |
2015-03-20 Shiro Kawai <[email protected]> |
| 8453 |
|
| 8454 |
* lib/gauche/package/util.scm (find-package-name-and-version): Added. |
| 8455 |
* lib/gauche/package/build.scm, src/gauche-package.in: |
| 8456 |
Added "make-tarball" command; this will replace "DIST tgz". |
| 8457 |
|
| 8458 |
2015-03-19 Shiro Kawai <[email protected]> |
| 8459 |
|
| 8460 |
* lib/util/dominator.scm: Added. (NB: If we have enough graph-related |
| 8461 |
libraries, we may want to have util.graph.* subcategory). |
| 8462 |
|
| 8463 |
2015-03-14 Shiro Kawai <[email protected]> |
| 8464 |
|
| 8465 |
* lib/rfc/http.scm (http-status-code->description): Added. |
| 8466 |
|
| 8467 |
2015-03-09 Shiro Kawai <[email protected]> |
| 8468 |
|
| 8469 |
* ext/tls/tls.scm (make-tls): Expose flags and num-sessions argument |
| 8470 |
of ssl_ctx_new to Scheme. Useful for debugging by giving |
| 8471 |
SSL_DISPLAY_BYTES and/or SSL_DISPLAY_STATES, for example. |
| 8472 |
|
| 8473 |
* lib/rfc/uri.scm (uri-ref): added. |
| 8474 |
|
| 8475 |
2015-03-07 Shiro Kawai <[email protected]> |
| 8476 |
|
| 8477 |
* gc/libatomic_ops/src/atomic_ops/sysdeps/gcc/mips.h: |
| 8478 |
mips64el support. Patch from James Cogwill. |
| 8479 |
|
| 8480 |
* src/gauche/priv/portP.h: Fix race condition in PORT_UNLOCK |
| 8481 |
by adding a memory barrier. Patch from James Cogwill. |
| 8482 |
|
| 8483 |
2015-03-06 Shiro Kawai <[email protected]> |
| 8484 |
|
| 8485 |
* ext/sparse/sparse.scm: Add sparse matrix. |
| 8486 |
|
| 8487 |
2015-03-04 Shiro Kawai <[email protected]> |
| 8488 |
|
| 8489 |
* ext/sparse/spvec.c: Add default value to sparse vectors. |
| 8490 |
|
| 8491 |
2015-02-24 Shiro Kawai <[email protected]> |
| 8492 |
|
| 8493 |
* lib/gauche/cgen/cise.scm: Renamed cgen-context to cgen-ambient, |
| 8494 |
for the term 'context' is also used in the local C context |
| 8495 |
(toplevel, stmt, expr) and confusing. |
| 8496 |
|
| 8497 |
2015-02-22 Shiro Kawai <[email protected]> |
| 8498 |
|
| 8499 |
* lib/gauche/cgen/stub.scm: During expanding stub procedures |
| 8500 |
(define-cproc etc) we set up a custom cise context to override |
| 8501 |
"return" macro; so that we can say (return something) safely |
| 8502 |
in the stub procedures, instead of (result something), which |
| 8503 |
is somewhat awkward. The difference from C return is that |
| 8504 |
it can handle multiple return values. |
| 8505 |
Note that this 'return' macro really behaves like return---it |
| 8506 |
skips the rest of the procedure, unlike the 'result' macro that |
| 8507 |
merely assigns SCM_RESUT values. The code that relies the |
| 8508 |
'result' macro to continue execution (which is a bad habit) |
| 8509 |
can't just replace 'result' to 'return'. |
| 8510 |
|
| 8511 |
2015-02-11 Shiro Kawai <[email protected]> |
| 8512 |
|
| 8513 |
* ext/net/netaux.scm (make-server-sockets): Handle the case when |
| 8514 |
port is 0. Also avoid using cond-expand, for this file can be |
| 8515 |
precompiled on different platform than the target. |
| 8516 |
|
| 8517 |
2015-02-10 Shiro Kawai <[email protected]> |
| 8518 |
|
| 8519 |
* ext/net/netaux.scm (make-server-socket): Allow passing multiple |
| 8520 |
ports and let the function choose an available one. |
| 8521 |
|
| 8522 |
2015-02-03 Shiro Kawai <[email protected]> |
| 8523 |
|
| 8524 |
* lib/gauche/common-macros.scm (and-let1): Allow multiple exprs |
| 8525 |
in body. Added doc (so it's official). |
| 8526 |
|
| 8527 |
2015-02-01 Shiro Kawai <[email protected]> |
| 8528 |
|
| 8529 |
* lib/gauche/common-macros.scm (and-let1): Added experimentally. |
| 8530 |
I feel that I wrote single-binding and-let* enough times. |
| 8531 |
|
| 8532 |
2015-01-31 Shiro Kawai <[email protected]> |
| 8533 |
|
| 8534 |
* ext/vport/vport.scm (open-input-char-list, open-input-byte-list): |
| 8535 |
Added list ports. |
| 8536 |
* src/liblazy.scm (port->char-lseq, port->byte-lseq, port->string-lseq) |
| 8537 |
(port->sexp-lseq): Added for the convenience. |
| 8538 |
|
| 8539 |
2015-01-30 Shiro Kawai <[email protected]> |
| 8540 |
|
| 8541 |
* src/prof.c (Scm_ProfilerStart): Use Scm_TmpDir to get temporary |
| 8542 |
directory, instead of hardcoding "/tmp". |
| 8543 |
|
| 8544 |
2015-01-29 Shiro Kawai <[email protected]> |
| 8545 |
|
| 8546 |
* src/portapi.c (Scm_UngottenChars, Scm_UngottenBytes): API |
| 8547 |
to retrieve bufferd chars/bytes. Note that the current getc-ungetc |
| 8548 |
API may be changed in future, so don't rely on these too much. |
| 8549 |
(The semantics of "ungetting" isn't well defined, especially when |
| 8550 |
binary i/o and character i/o are mixed.) |
| 8551 |
* src/libio.scm (%port-ungotten-chars, %port-ungotten-bytes): |
| 8552 |
Exposing above in gauche.internal module. |
| 8553 |
|
| 8554 |
2015-01-24 Shiro Kawai <[email protected]> |
| 8555 |
|
| 8556 |
* lib/text/gap-buffer (text.gap-buffer): Added experimentally. |
| 8557 |
|
| 8558 |
2015-01-17 Shiro Kawai <[email protected]> |
| 8559 |
|
| 8560 |
* src/number.c (Scm_GetIntegerUMod): Added - a convenience routine to |
| 8561 |
extract lower u_long bits from an exact integer. |
| 8562 |
|
| 8563 |
2015-01-15 Shiro Kawai <[email protected]> |
| 8564 |
|
| 8565 |
* lib/srfi-69.scm, src/srfis.scm, test/srfi.scm, doc/modsrfi.texi: |
| 8566 |
Added srfi-69 support. |
| 8567 |
|
| 8568 |
2015-01-14 Shiro Kawai <[email protected]> |
| 8569 |
|
| 8570 |
* lib/gauche/record.scm: Fix a bug when there's one argument |
| 8571 |
given to the custom constructor. |
| 8572 |
|
| 8573 |
* src/libvec.scm (%uvector-ref), src/vector.c (Scm_VMUVectorRef): |
| 8574 |
Fixed a bug that leaked #<unbound>. Patch from wasao. |
| 8575 |
|
| 8576 |
2015-01-09 Shiro Kawai <[email protected]> |
| 8577 |
|
| 8578 |
* src/compare.c (comparator_compare): Make equal? to compare |
| 8579 |
comparator's elements. |
| 8580 |
|
| 8581 |
2015-01-08 Shiro Kawai <[email protected]> |
| 8582 |
|
| 8583 |
* lib/srfi-113.scm: Added srfi-113. |
| 8584 |
|
| 8585 |
2015-01-07 Shiro Kawai <[email protected]> |
| 8586 |
|
| 8587 |
* src/error.c (Scm_ReportError), src/libexc.scm (report-error): |
| 8588 |
Added optional sink argument to specify where the message go. |
| 8589 |
We want to change C API Scm_ReportError accordingly; to keep |
| 8590 |
0.9 ABI compatibility, there's some transient code in place. |
| 8591 |
|
| 8592 |
2015-01-06 Shiro Kawai <[email protected]> |
| 8593 |
|
| 8594 |
* src/compare.c (Scm_Compare): Handle comparison of different |
| 8595 |
type of objects even if their types are not the one mentioned |
| 8596 |
in srfi-114. |
| 8597 |
|
| 8598 |
2015-01-02 Shiro Kawai <[email protected]> |
| 8599 |
|
| 8600 |
* doc/corelib.texi (report-error): Documented. |
| 8601 |
|
| 8602 |
2014-12-31 Shiro Kawai <[email protected]> |
| 8603 |
|
| 8604 |
* ext/threads/threads.c (make-thread): Set custom-error-reporter |
| 8605 |
of newly created thread to suppress the default error message; |
| 8606 |
the unhandled error (which causes error message by default) |
| 8607 |
should be handled by the caller of thread-join!. If one wants |
| 8608 |
to report an error within the thread, use guard and report-error. |
| 8609 |
|
| 8610 |
* src/libeval.scm (%vm-custom-error-reporter-set!): Renamed from |
| 8611 |
vm-set-custom-error-reporter, and moved to gauche.internal module. |
| 8612 |
This is something you don't need to touch daily, so no reason to |
| 8613 |
expose it by default. |
| 8614 |
|
| 8615 |
* src/vm.c (Scm_VMDefaultExceptionHandler), |
| 8616 |
src/error.c (Scm_ReportError): Instead of calling |
| 8617 |
vm->customErrorHandler in Scm_ReportError, we lifted the check |
| 8618 |
to Scm_VMDefaultExceptionHandler; if vm->customErrorHandler is |
| 8619 |
set, it is called directly, and Scm_ReportError always print |
| 8620 |
the default message and stack trace. This seems the sane way |
| 8621 |
to do it - we don't remember why we chose to dispatch inside |
| 8622 |
Scm_ReportError initially. |
| 8623 |
|
| 8624 |
* ext/threads/threads.c (Scm_MakeThread): Do not alter |
| 8625 |
customErrorReporter in the new thread. Instead, we just drop |
| 8626 |
call of Scm_ReportError in thread_entry. If the programmer |
| 8627 |
needs the thread to report error, she can call report-error |
| 8628 |
within guard clauses. |
| 8629 |
|
| 8630 |
2014-12-30 Shiro Kawai <[email protected]> |
| 8631 |
|
| 8632 |
* src/gauche/vm.h: INCOMPATIBLE CHANGE: Renamed |
| 8633 |
ScmVM.defaultEscapeHandler for customErrorReporter. The name was |
| 8634 |
misleading as if it would handle escaping situation caused by |
| 8635 |
exceptions; in fact, we have totally separate mechanism to handle |
| 8636 |
exceptions, and the said slot is merely called by Scm_ReportError, |
| 8637 |
which is the default action when the exception isn't handled at |
| 8638 |
all. |
| 8639 |
ABI compatibility is kept, but any extension code that refers to |
| 8640 |
this slot would break. Since this is undocumented niche feature, |
| 8641 |
we hope this won't affect much. |
| 8642 |
* src/libeval.scm: vm-set-default-exception-handler becomes |
| 8643 |
vm-set-custom-error-reporter, as well. |
| 8644 |
|
| 8645 |
2014-12-27 Shiro Kawai <[email protected]> |
| 8646 |
|
| 8647 |
* lib/Makefile.in: Don't forget to install srfi-18.scm |
| 8648 |
* ext/threads/threads.scm: Re-export current-thread |
| 8649 |
|
| 8650 |
2014-12-23 Shiro Kawai <[email protected]> |
| 8651 |
|
| 8652 |
* src/module.c: Introduced gauche.keyword module to allow R7RS |
| 8653 |
modules to use keyword default bindings. See the comment. |
| 8654 |
|
| 8655 |
2014-12-21 Shiro Kawai <[email protected]> |
| 8656 |
|
| 8657 |
* src/load.c: Support '.sld' suffix by default. |
| 8658 |
|
| 8659 |
2014-12-18 Shiro Kawai <[email protected]> |
| 8660 |
|
| 8661 |
* configure.ac, ext/*/*.ac, src/Makefile/in, src/genconfig.in: |
| 8662 |
Add --static-libs option to gauche-config, which lists all |
| 8663 |
libraries needed for statically linked binary. |
| 8664 |
|
| 8665 |
2014-12-17 Shiro Kawai <[email protected]> |
| 8666 |
|
| 8667 |
* lib/gauche/macroutil.scm (with-renaming): Experimentally added |
| 8668 |
a utility to construct the result form within er macro transformer. |
| 8669 |
NB: The old undocumented macros defined in macroutil.scm are removed, |
| 8670 |
for they aren't used much after all. |
| 8671 |
|
| 8672 |
2014-12-14 Shiro Kawai <[email protected]> |
| 8673 |
|
| 8674 |
* lib/gauche/cgen/unit.scm (cgen-safe-name{-friendly}): Allow ':' |
| 8675 |
to be in C name, so that we can call C++ namespace-qualified |
| 8676 |
functions. |
| 8677 |
|
| 8678 |
2014-12-13 Shiro Kawai <[email protected]> |
| 8679 |
|
| 8680 |
* lib/data/heap.scm (binary-heap-swap-{min|max}!): Added. |
| 8681 |
|
| 8682 |
2014-12-12 Shiro Kawai <[email protected]> |
| 8683 |
|
| 8684 |
* lib/gauche/configure.scm (parse-command-line-arguments): |
| 8685 |
Made ./configure -V|version option output the package name and |
| 8686 |
the package version in the same format as autoconf-generated |
| 8687 |
configure scripts. |
| 8688 |
|
| 8689 |
2014-12-09 Shiro Kawai <[email protected]> |
| 8690 |
|
| 8691 |
* libsrc/gauche/sequence.scm (break-list-by-sequence) |
| 8692 |
(break-list-by-sequence!): Added. |
| 8693 |
|
| 8694 |
2014-12-07 Shiro Kawai <[email protected]> |
| 8695 |
|
| 8696 |
* ext/sparse/sparse.scm: Added missing generic ref and |
| 8697 |
call-with-iterator methods. |
| 8698 |
|
| 8699 |
* libsrc/util/match.scm (in): Fixed a bug that emits incorrect |
| 8700 |
matching code. See addition in ext/util/test.scm for the |
| 8701 |
specific pattern to exhibit this bug. |
| 8702 |
|
| 8703 |
2014-12-06 Shiro Kawai <[email protected]> |
| 8704 |
|
| 8705 |
* lib/gauche/dictionary.scm (dict-clear!): Added missing export. |
| 8706 |
|
| 8707 |
2014-12-05 Shiro Kawai <[email protected]> |
| 8708 |
|
| 8709 |
* libsrc/gauche/sequence.scm (sequence-contains): Renamed for clarity. |
| 8710 |
(sequence->kmp-stepper): Expose KMP search element. |
| 8711 |
|
| 8712 |
2014-12-01 Shiro Kawai <[email protected]> |
| 8713 |
|
| 8714 |
* src/gauche/vm.c (ScmIdentifier): |
| 8715 |
* src/compaux.scm (Scm_MakeIdentifier, Scm_OutermostIdentifier) |
| 8716 |
(Scm_UnwrapIdentifier, Scm_IdentifierGlobalBinding): |
| 8717 |
Allow nested identifier, that is, identifier to wrap another |
| 8718 |
identifier. Will be needed to support nested hygienic macros. |
| 8719 |
This changes the signature of Scm_MakeIdentifier, so |
| 8720 |
various files are touched to accomodate it. |
| 8721 |
|
| 8722 |
2014-11-30 Shiro Kawai <[email protected]> |
| 8723 |
|
| 8724 |
* libsrc/gauche/sequence.scm (sequence-scan): Added. |
| 8725 |
|
| 8726 |
2014-11-29 Shiro Kawai <[email protected]> |
| 8727 |
|
| 8728 |
* lib/data/trie.scm (trie-longest-match): Added. |
| 8729 |
|
| 8730 |
2014-11-26 Shiro Kawai <[email protected]> |
| 8731 |
|
| 8732 |
* src/libcode.scm (compiled-code-push-info!): Added. |
| 8733 |
* src/compile.scm (pass5/lambda): Add 'definition debug info |
| 8734 |
to the compiled code created by $LAMBDA node. |
| 8735 |
(pass1/define): Attach original source code info to |
| 8736 |
the transformed lambda form. |
| 8737 |
* lib/gauche/procedure.scm (source-code, source-location): Added. |
| 8738 |
|
| 8739 |
2014-11-25 Shiro Kawai <[email protected]> |
| 8740 |
|
| 8741 |
* src/error.c (Scm_Warn), src/libmisc.scm (warn): Allow suppressing |
| 8742 |
warning by environment variable GAUCHE_SUPPRESS_WARNING. |
| 8743 |
|
| 8744 |
2014-11-18 Shiro Kawai <[email protected]> |
| 8745 |
|
| 8746 |
* gc/pthread_support.c (start_mark_threads): Experimantally added |
| 8747 |
code to set up signal masks for parallel marker threads. Eventually |
| 8748 |
this should be more generalized API and submitted to upstream, |
| 8749 |
but for the time being, let's see if this solves the "lost signal" |
| 8750 |
problem (the issue that delivered signal is discarded when it's |
| 8751 |
delivered to one of the marker threads instead of Gauche threads.) |
| 8752 |
|
| 8753 |
2014-11-12 Shiro Kawai <[email protected]> |
| 8754 |
|
| 8755 |
* src/gauche/port.h (SCM_PORT_CASE_FOLDING): Renamed the macro name |
| 8756 |
from SCM_PORT_CASE_FOLD, which is the same name for the flag name |
| 8757 |
and could be confusing. |
| 8758 |
|
| 8759 |
2014-11-11 Shiro Kawai <[email protected]> |
| 8760 |
|
| 8761 |
* src/main.c: Enable -fcase-fold in REPL mode, too (we only had it |
| 8762 |
work on scripts). |
| 8763 |
* src/port.c (Scm_GetPortCaseFolding, Scm_SetPortCaseFolding): APIs |
| 8764 |
to get/set port's case folding mode. |
| 8765 |
|
| 8766 |
2014-11-10 Shiro Kawai <[email protected]> |
| 8767 |
|
| 8768 |
* lib/r7rs.scm (r7rs-import): Warn when a programmer say |
| 8769 |
(import (gauche)) in r7rs program. It's probably the first |
| 8770 |
attempt for her to use Gauche's builtin bindings in r7rs programs, |
| 8771 |
and it's better to guide her to (import (gauche base)). |
| 8772 |
|
| 8773 |
* src/srfis.scm: For built-in srfi modules, make public symbols |
| 8774 |
exported so that r7rs programs can see them with (import (srfi N)). |
| 8775 |
From Gauche programs, those symbols are visible by default since |
| 8776 |
the module inherits the gauche module, so we haven't been careful |
| 8777 |
about exports. However, with r7rs programs we need to set them up |
| 8778 |
correctly. |
| 8779 |
|
| 8780 |
2014-11-08 Shiro Kawai <[email protected]> |
| 8781 |
|
| 8782 |
* ext/tls: Upgraded to axTLS-1.5.0. |
| 8783 |
|
| 8784 |
2014-11-07 Shiro Kawai <[email protected]> |
| 8785 |
|
| 8786 |
* src/gauche/char_utf_8.h (Scm__CharIsExtraWhiteSpace): Do not treat |
| 8787 |
U+180e as a whitespace char. It was changed from Zs to Cf in |
| 8788 |
Unicode 6.3.0. (NB: We also need update char_attr.[ch] for |
| 8789 |
char-general-category to reflect the change.) |
| 8790 |
|
| 8791 |
2014-11-05 Shiro Kawai <[email protected]> |
| 8792 |
|
| 8793 |
* lib/gauche/test.scm (test*): Rewrote using er-macro so that |
| 8794 |
importing only 'test*' but not 'test' will still work. |
| 8795 |
|
| 8796 |
* src/compile.scm (pass1/define): Rename toplevel identifier inserted |
| 8797 |
by a macro, to keep hygiene. RnRS does not specify this behavior |
| 8798 |
and implementations make different choices, but it seems that this |
| 8799 |
is the most straightforward way for Gauche to do the right thing. |
| 8800 |
Note that the code relying the (officially undefined) behavior, |
| 8801 |
that macro-injected toplevel binding appear in the macro calling |
| 8802 |
module, will break with this change. |
| 8803 |
|
| 8804 |
2014-11-04 Shiro Kawai <[email protected]> |
| 8805 |
|
| 8806 |
* lib/gauche/test.scm (test-none-of): Added. |
| 8807 |
|
| 8808 |
2014-11-02 Shiro Kawai <[email protected]> |
| 8809 |
|
| 8810 |
* src/compile.scm (%make-er-transormer), |
| 8811 |
lib/gauche/common-macros.scm (er-macro-transformer): Added to |
| 8812 |
give a shot. |
| 8813 |
* src/libmod.scm (global-identifier=?, free-identifier=?): Moved |
| 8814 |
from compile.scm |
| 8815 |
|
| 8816 |
2014-10-30 Shiro Kawai <[email protected]> |
| 8817 |
|
| 8818 |
* src/number.c (Scm_MinMax): Return NaN if any of the arguments is NaN. |
| 8819 |
|
| 8820 |
2014-10-28 Shiro Kawai <[email protected]> |
| 8821 |
|
| 8822 |
* lib/gauche/numerical.scm (encode-float): Added. |
| 8823 |
|
| 8824 |
2014-10-27 Shiro Kawai <[email protected]> |
| 8825 |
|
| 8826 |
* lib/gauche/lazy.scm: Added linterweave. |
| 8827 |
|
| 8828 |
2014-10-25 Shiro Kawai <[email protected]> |
| 8829 |
|
| 8830 |
* src/port.c: Experimentally allow access port information as |
| 8831 |
slots. |
| 8832 |
|
| 8833 |
2014-10-23 Shiro Kawai <[email protected]> |
| 8834 |
|
| 8835 |
* src/libdict.scm (combine-hash-value): Expose internal COMBINE |
| 8836 |
to be used from other places. Not sure yet if this is general |
| 8837 |
enough, so for the time being this is EXPERIMENTAL. |
| 8838 |
|
| 8839 |
2014-10-22 Shiro Kawai <[email protected]> |
| 8840 |
|
| 8841 |
* lib/data/trie.scm: Renamed util.trie -> data.trie. |
| 8842 |
|
| 8843 |
2014-10-21 Shiro Kawai <[email protected]> |
| 8844 |
|
| 8845 |
* lib/data/heap.scm: Added find/remove!/delete! operations. |
| 8846 |
|
| 8847 |
2014-10-20 Shiro Kawai <[email protected]> |
| 8848 |
|
| 8849 |
* lib/data/heap.scm: Using backing storage vector from element 0, |
| 8850 |
by offsetting the index. It is simpler in terms of API, and |
| 8851 |
in the long run it will win. |
| 8852 |
|
| 8853 |
2014-10-19 Shiro Kawai <[email protected]> |
| 8854 |
|
| 8855 |
* lib/gauche/sortutil.scm (sorted?): Fixed a bug - the condition of |
| 8856 |
(sorted? (... x y ...)) should be (not (less? y x)) for every |
| 8857 |
consecutive pairs, instead of (less? x y). For example, |
| 8858 |
(sorted? '(1 1) <) should be #t. |
| 8859 |
* lib/gauche/sortutil.scm, lib/gauche/generic-sortutil.scm: |
| 8860 |
Accept comparators as well as less-than procedure. |
| 8861 |
|
| 8862 |
2014-10-18 Shiro Kawai <[email protected]> |
| 8863 |
|
| 8864 |
* lib/gauche/vecutil.scm (vector-tabluate): Made it restart-safe. |
| 8865 |
(reverse-list->vector): Implement in core instead of srfi-43. |
| 8866 |
* test/vector.scm: Added. |
| 8867 |
|
| 8868 |
2014-10-17 Shiro Kawai <[email protected]> |
| 8869 |
|
| 8870 |
* lib/gauche/computil.scm: Changed make-field-comparator to |
| 8871 |
make-key-comparator, for the consistency. |
| 8872 |
|
| 8873 |
2014-10-16 Shiro Kawai <[email protected]> |
| 8874 |
|
| 8875 |
* lib/gauche/computil.scm: Added make-reverse-comparator, |
| 8876 |
make-field-comparator, make-car-comparator and make-cdr-comparator. |
| 8877 |
|
| 8878 |
2014-10-13 Shiro Kawai <[email protected]> |
| 8879 |
|
| 8880 |
* lib/data/heap.scm: EXPERIMENTAL: Added binary min-max heap. |
| 8881 |
|
| 8882 |
2014-10-11 Shiro Kawai <[email protected]> |
| 8883 |
|
| 8884 |
* ext/sparse/*: Renamed util.sparse -> data.sparse. |
| 8885 |
|
| 8886 |
2014-10-10 Shiro Kawai <[email protected]> |
| 8887 |
|
| 8888 |
* src/libcmp.scm: Add srfi-114 primitive applicators as SUBR, |
| 8889 |
for the performance. |
| 8890 |
* lib/gauche/cgen/cise.scm: Make logand, logior and logxor n-ary. |
| 8891 |
|
| 8892 |
2014-10-09 Shiro Kawai <[email protected]> |
| 8893 |
|
| 8894 |
* ext/sparse/sparse.scm: Allow make-sparse-table to take comparator. |
| 8895 |
Add sparse-table-comparator and sparse-vector-comparator to |
| 8896 |
conform new dictionary protocol. |
| 8897 |
|
| 8898 |
2014-10-08 Shiro Kawai <[email protected]> |
| 8899 |
|
| 8900 |
* lib/gauche/dictionary.scm (dict-comparator): A new dictionary |
| 8901 |
protocol API to retrieve a comparator. It is useful to implement |
| 8902 |
generic meta-operations on dictionaries. |
| 8903 |
|
| 8904 |
2014-10-07 Shiro Kawai <[email protected]> |
| 8905 |
|
| 8906 |
* src/libdict.scm (%make-tree-map), |
| 8907 |
lib/gauche/treeutil.scm (make-tree-map): Save a comparator |
| 8908 |
instead of closure in core->data field. |
| 8909 |
* src/libdict.scm (tree-map-comparator): Added to retrieve |
| 8910 |
the comparator. |
| 8911 |
|
| 8912 |
2014-10-06 Shiro Kawai <[email protected]> |
| 8913 |
|
| 8914 |
* lib/gauche/treeutil.scm (make-tree-map): Allow to take a |
| 8915 |
comparator. |
| 8916 |
|
| 8917 |
2014-10-05 Shiro Kawai <[email protected]> |
| 8918 |
|
| 8919 |
* src/hash.c, src/libdict.scm: Support general hash table |
| 8920 |
using comparators. |
| 8921 |
|
| 8922 |
2014-10-04 Shiro Kawai <[email protected]> |
| 8923 |
|
| 8924 |
* src/libproc.scm (applicable?): Moved from lib/gauche/procedure.scm. |
| 8925 |
Needed in core in order to construct built-in comparators. |
| 8926 |
|
| 8927 |
* src/libalpha.scm (case-lambda-info): Encapsulate interpretation |
| 8928 |
of case-lambda dispatch vector in this procedure, so that other |
| 8929 |
parts won't depend on the structure of the dispatch vector. |
| 8930 |
* lib/gauche/procedure.scm (disasm): Changed accordingly. |
| 8931 |
|
| 8932 |
2014-10-03 Shiro Kawai <[email protected]> |
| 8933 |
|
| 8934 |
* src/libsys.scm (sys-sleep, sys-nanosleep): Changed to retry |
| 8935 |
sleep/nanosleep by default if it is interrupted by as signal. |
| 8936 |
They can be interrupted very often, for GC may use signals |
| 8937 |
to synchronize threads. We assume it's very unlikely that |
| 8938 |
there are programs that relies on the previous behavior, |
| 8939 |
but if you do need those procedures to return by signals, |
| 8940 |
give #t to the optional argument. |
| 8941 |
|
| 8942 |
2014-10-02 Shiro Kawai <[email protected]> |
| 8943 |
|
| 8944 |
* src/cross-compile-ios.scm: A script to compile Gauche as an iOS |
| 8945 |
framework. This is kind of old---tested on 2013/07 with iOS6 |
| 8946 |
and haven't updated since then. Just put it in repo for |
| 8947 |
a reference. |
| 8948 |
|
| 8949 |
2014-10-01 Shiro Kawai <[email protected]> |
| 8950 |
|
| 8951 |
* lib/gauche/computil.scm : Added. Provides some basic comparators. |
| 8952 |
* src/autoload.scm: Autolaod computil.scm |
| 8953 |
|
| 8954 |
2014-09-29 Shiro Kawai <[email protected]> |
| 8955 |
|
| 8956 |
* src/compare.c (Scm_Compare): Handle complex number ordering. |
| 8957 |
|
| 8958 |
2014-09-28 Shiro Kawai <[email protected]> |
| 8959 |
|
| 8960 |
* src/compare.c (Scm_Compare): Implement ordering of different types, |
| 8961 |
according to srfi-114. |
| 8962 |
|
| 8963 |
2014-09-27 Shiro Kawai <[email protected]> |
| 8964 |
|
| 8965 |
* src/compile.scm (define-syntax): Fix the case when toplevel |
| 8966 |
macro is inserted by another hygienic macro. We may need to |
| 8967 |
revisit interpretation of toplevel identifier renaming; see |
| 8968 |
the comment in pass1/define. |
| 8969 |
|
| 8970 |
2014-09-26 Shiro Kawai <[email protected]> |
| 8971 |
|
| 8972 |
* src/compare.c (Scm_Compare), src/vector.c, src/symbol.c: Enhanced |
| 8973 |
domain of Scm_Compare to support srfi-114. Now booleans, lists, |
| 8974 |
symbols, vectors and uvectors can be compared each other. |
| 8975 |
* src/libcmp.scm (comparator-*): Added some srfi-114 comparator API. |
| 8976 |
|
| 8977 |
2014-09-25 Shiro Kawai <[email protected]> |
| 8978 |
|
| 8979 |
* src/libvec.scm: Added uvector? |
| 8980 |
|
| 8981 |
2014-09-24 Shiro Kawai <[email protected]> |
| 8982 |
|
| 8983 |
* ext/util/queue.scm, ext/data/queue.scm: util.queue -> data.queue. |
| 8984 |
|
| 8985 |
2014-09-23 Shiro Kawai <[email protected]> |
| 8986 |
|
| 8987 |
* ext/math/mt-lib.stub: Merged to mt-random.scm |
| 8988 |
|
| 8989 |
2014-09-22 Shiro Kawai <[email protected]> |
| 8990 |
|
| 8991 |
* ext/gauche/fcntlib.stub: Merged to fcntl.scm |
| 8992 |
|
| 8993 |
2014-09-21 Shiro Kawai <[email protected]> |
| 8994 |
|
| 8995 |
* ext/zlib/zliblib.stub: Merged to zlib.scm |
| 8996 |
|
| 8997 |
2014-09-20 Shiro Kawai <[email protected]> |
| 8998 |
|
| 8999 |
* lib/gauche/cgen/precomp.scm (without-precompiling): Added a special |
| 9000 |
directive to put the forms into *.sci file, without precompiling them. |
| 9001 |
If we want to cond-expand at load time, we can't precompile it. |
| 9002 |
|
| 9003 |
* ext/termios/termiolib.stub: Merged to termios.scm |
| 9004 |
* ext/binary/binarylib.stub: Merged to io.scm |
| 9005 |
|
| 9006 |
2014-09-19 Shiro Kawai <[email protected]> |
| 9007 |
|
| 9008 |
* examples/snake.scm: Added a sample of text.console. |
| 9009 |
|
| 9010 |
2014-09-18 Shiro Kawai <[email protected]> |
| 9011 |
|
| 9012 |
* lib/text/console.scm: Added. Still unofficial & experimental. |
| 9013 |
|
| 9014 |
2014-09-16 Shiro Kawai <[email protected]> |
| 9015 |
|
| 9016 |
* ext/termios/termios.scm (with-terminal-mode): Experimentally added. |
| 9017 |
|
| 9018 |
2014-09-15 Shiro Kawai <[email protected]> |
| 9019 |
|
| 9020 |
* lib/gauche/interactive.scm (describe): Improve output of |
| 9021 |
(describe <generic>). |
| 9022 |
|
| 9023 |
2014-09-13 Shiro Kawai <[email protected]> |
| 9024 |
|
| 9025 |
* src/gauche.h (SCM_FOREIGN_POINTER_REF): Calls Scm_ForeignPointerRef. |
| 9026 |
* src/class.c (Scm_ForeignPointerRef, Scm_ForeignPointerInvalidP) |
| 9027 |
(Scm_ForeignPointerInvalidate): Added. When the object pointed |
| 9028 |
by a foreign pointer became obsoleted (e.g. freed), you can mark |
| 9029 |
the foreign pointer "invalid", so that the subsequent dereference |
| 9030 |
of the pointer raises an error. |
| 9031 |
* src/libmisc.scm (foreign-pointer-invalid?, foreign-pointer-invalidate!): |
| 9032 |
Scheme interface for the above. |
| 9033 |
|
| 9034 |
* ext/windows/console.stub (sys-set-screen-buffer-size): Fixed a bug. |
| 9035 |
|
| 9036 |
* ext/vport/vport.scm (open-output-uvector): |
| 9037 |
Allow option to make the output buffer extendable. |
| 9038 |
(get-output-uvector): Added to enable retrieving the accumulated |
| 9039 |
result, needed when the buffer is extendable. |
| 9040 |
* lib/r7rs.scm (open-output-bytevector, get-output-bytevector): |
| 9041 |
Rewritten using above. |
| 9042 |
|
| 9043 |
2014-09-12 Shiro Kawai <[email protected]> |
| 9044 |
|
| 9045 |
* lib/gauche/cgen/stub.scm (define-cptr): Fix a bug that passes |
| 9046 |
unboxer and boxer names in reverse (thanks to KOGURO Naoki). |
| 9047 |
|
| 9048 |
* ext/uvector/uvector.scm (uvector-class-element-size) |
| 9049 |
(uvector-copy): Added. |
| 9050 |
|
| 9051 |
2014-09-11 Shiro Kawai <[email protected]> |
| 9052 |
|
| 9053 |
* ext/uvector/uvector.scm (make-uvector): Added generic uvector |
| 9054 |
constructor. |
| 9055 |
|
| 9056 |
* ext/template.configure: FIX: Added missing default_prefix setup. |
| 9057 |
|
| 9058 |
* src/error.c (Scm_Raise), src/libexc.scm (raise), |
| 9059 |
src/vm.c (Scm_VMThrowException): The last fix of r7rs#raise |
| 9060 |
wasn't enough, for it invoked the second error with the same |
| 9061 |
exception handler as the first raise. |
| 9062 |
|
| 9063 |
2014-09-10 Shiro Kawai <[email protected]> |
| 9064 |
|
| 9065 |
* lib/r7rs.scm (raise): Adjust r7rs#raise to be compatible with r7rs, |
| 9066 |
instead of using gauche#raise (srfi-19 compatible). |
| 9067 |
|
| 9068 |
2014-09-09 Shiro Kawai <[email protected]> |
| 9069 |
|
| 9070 |
* lib/gauche/vecutil.scm (vector-for-each, vector-for-each-with-index): |
| 9071 |
Fix bugs when more than one vectors are given. |
| 9072 |
|
| 9073 |
* lib/gauche/common-macros.scm (dotimes): Return #<undef> unless |
| 9074 |
the result clause is provided. It doesn't really matter, but better |
| 9075 |
to make it explicit that the return value is undefined. |
| 9076 |
|
| 9077 |
2014-09-07 Shiro Kawai <[email protected]> |
| 9078 |
|
| 9079 |
* src/module.c (Scm_ImportModule): Fix a bug in dupe elimination |
| 9080 |
of imported modules. We should allow modules that have the same |
| 9081 |
origin, for they may have different qualifications; in such a case, |
| 9082 |
eliminating one will change the semantics. |
| 9083 |
|
| 9084 |
2014-09-06 Shiro Kawai <[email protected]> |
| 9085 |
|
| 9086 |
* lib/Makefile.in: Don't forget to install gauche/base.scm. |
| 9087 |
|
| 9088 |
* ext/util/queue.scm (dequeue-int): Clear the slots of dequeued |
| 9089 |
pair, to ensure weak-GC safety. |
| 9090 |
* lib/text/html-lite.scm: Support HTML5 elements and doctype |
| 9091 |
(patch from Takashi Fujita). |
| 9092 |
|
| 9093 |
2014-09-04 Shiro Kawai <[email protected]> |
| 9094 |
|
| 9095 |
* src/number.c (Scm_StringToNumber): Allow '_' to be inserted between |
| 9096 |
digits when a number is explicitly prefixed. This is for the |
| 9097 |
readability, e.g. #b1101_1000_0001_1101 etc. We don't allow |
| 9098 |
unprefixed numbers, though, for the possible incompatibility |
| 9099 |
(e.g. 3_2 may be interpreted as a symbol.) |
| 9100 |
|
| 9101 |
2014-09-03 Shiro Kawai <[email protected]> |
| 9102 |
|
| 9103 |
* lib/gauche/interactive.scm (describe): When object is char or integer, |
| 9104 |
print alternative representation / useful info if relevant. |
| 9105 |
|
| 9106 |
2014-08-28 Shiro Kawai <[email protected]> |
| 9107 |
|
| 9108 |
* lib/gauche/cgen/precomp.scm (handle-define-syntax): Allow |
| 9109 |
Scheme-defined low-level macro transformer to be compiled |
| 9110 |
into *.c file, instead of emitting it to *.sci file. |
| 9111 |
|
| 9112 |
* src/libmod.scm (%insert-syntax-binding): Added. Currently our |
| 9113 |
runtime don't distinguish toplevel value binding and syntax binding, |
| 9114 |
so %insert-binding can do both, but in future we may treat syntactic |
| 9115 |
binidng specially. |
| 9116 |
* src/compile.scm: Changed accordingly. |
| 9117 |
|
| 9118 |
2014-08-24 Shiro Kawai <[email protected]> |
| 9119 |
|
| 9120 |
* src/gauche/macro.h -> src/gauche/priv/macroP.h: Moved macro |
| 9121 |
implementation details to private header. ScmSyntax and |
| 9122 |
ScmMacro should be treated as opaque objects. Various files |
| 9123 |
adjusted. |
| 9124 |
* src/macro.c (Scm_MakeMacro): Changed ScmMacro structure and |
| 9125 |
the signature of Scm_MakeMacro. Now ScmMacro is simply a wrapper |
| 9126 |
of macro transformer (Sexpr, Env -> Sexpr), with an optional |
| 9127 |
name. Technically this is an incompatible change, but we |
| 9128 |
expect nobody was directly using this interface. |
| 9129 |
We also change the way the macro expander is called; we pass |
| 9130 |
CENV, instead of a list frames, to the expander procedure. |
| 9131 |
This was never specified explicitly, and actually we had it wrong--- |
| 9132 |
tye synrule expander expected frames, and the primitive expander |
| 9133 |
expected cenv. It happened to work because we hadn't used env |
| 9134 |
argument of primitive-expander yet. |
| 9135 |
* src/libeval.scm (macro-transformer): Added. |
| 9136 |
(call-macro-expander): Pass CENV to the third arg. |
| 9137 |
|
| 9138 |
2014-08-23 Shiro Kawai <[email protected]> |
| 9139 |
|
| 9140 |
* src/macro.c (Scm_VMMacroExpand): Obsoleted. Implement it in |
| 9141 |
compile.c (%internal-macro-expand). |
| 9142 |
* src/libeval.scm (macroexpand, macroexpand-1): Changed accordingly. |
| 9143 |
|
| 9144 |
2014-08-21 Shiro Kawai <[email protected]> |
| 9145 |
|
| 9146 |
* src/error.c (Scm_PrintDefaultErrorHeading), |
| 9147 |
src/libexc.scm (print-default-error-heading): Implement this in |
| 9148 |
Scheme for the better maintainability. |
| 9149 |
* src/libomega.scm (report-mixin-condition): Generalized handling |
| 9150 |
mixin conditions. |
| 9151 |
Note: The above two changes may be a dangerous move, which |
| 9152 |
can make it difficult to diagnose when we mess up then runtime |
| 9153 |
in a way that error reporting can't be carried out. Especially, |
| 9154 |
now we rely on working method dispatch to display mixin condition |
| 9155 |
messages. If this becomes an issue, we may replace the mixin |
| 9156 |
condition mechanism to more primitive ones, like manual dispatch. |
| 9157 |
* src/libexc.scm (<compile-error-mixin>), |
| 9158 |
src/compile.scm (compile): Handle compile error using mixin |
| 9159 |
condition. |
| 9160 |
|
| 9161 |
2014-08-20 Shiro Kawai <[email protected]> |
| 9162 |
|
| 9163 |
* lib/gauche/exception.h, src/error.c (<load-condition-mixin>): |
| 9164 |
Added a mixin condition type to attach load context to |
| 9165 |
errors occurred during loading. |
| 9166 |
(Scm_PrintDefaultErrorHeading): Add load context information |
| 9167 |
when available. |
| 9168 |
(Scm_ExtractSimpleCondition): Added. |
| 9169 |
* src/libeval.scm (load-from-port): Intercept a thrown condition to |
| 9170 |
attach <load-condition-mixin>. |
| 9171 |
|
| 9172 |
* lib/gauche/test.scm (<test-error>, test-check): Checks the |
| 9173 |
result condition considering compound conditions. In order to |
| 9174 |
use condition-has-type?, now <test-error> instance holds |
| 9175 |
the actual condition object. |
| 9176 |
* lib/gauche/condutil.scm, src/libomega.scm: Moved |
| 9177 |
definition of (slot-missing <condition-meta> <compound-condition> |
| 9178 |
<top>) from the former to the latter; Slots of compound conditions |
| 9179 |
may be referred without condutil being autoloaded. |
| 9180 |
|
| 9181 |
2014-08-19 Shiro Kawai <[email protected]> |
| 9182 |
|
| 9183 |
* lib/binary/pack.scm (make-packer): Made cached? argument :optional |
| 9184 |
for the consistency with the doc. |
| 9185 |
|
| 9186 |
2014-08-18 Shiro Kawai <[email protected]> |
| 9187 |
|
| 9188 |
* src/compile.scm (primitive-macro-transformer): Added experimentally; |
| 9189 |
the plan is to build all other macro system on top of this. See |
| 9190 |
if it's feasible. |
| 9191 |
(cenv-lookup-variable, cenv-lookup-syntax, env-lookup): Split |
| 9192 |
cenv-lookup into these APIs; mainly to avoid construction of |
| 9193 |
temporary cenv when we already have module and frames separately. |
| 9194 |
* src/libmod.scm (id->bound-gloc): Moved from compile.scm. |
| 9195 |
* src/macro.c (Scm_MakeMacroTransformer): Changed signature of |
| 9196 |
the transformer - now it takes form and macro-use environment. |
| 9197 |
|
| 9198 |
2014-08-16 Shiro Kawai <[email protected]> |
| 9199 |
|
| 9200 |
* src/compile.scm (ensure-identifier): Properly capture the environment |
| 9201 |
into the created identifier. |
| 9202 |
(%bind-inline-er-transformer): Fix incorrect initialization of |
| 9203 |
cenv. |
| 9204 |
(%attach-inline-er-transformer): Make compare closure work. |
| 9205 |
(free-identifier=?): Added. |
| 9206 |
|
| 9207 |
2014-08-14 Shiro Kawai <[email protected]> |
| 9208 |
|
| 9209 |
* src/system.c (Scm_AvailableProcessors), |
| 9210 |
src/syslib.scm (sys-available-processors): Added to query # of |
| 9211 |
available processors. |
| 9212 |
|
| 9213 |
2014-08-13 Shiro Kawai <[email protected]> |
| 9214 |
|
| 9215 |
* lib/gauche/vm/debugger.scm (debug-funcall), src/read.c (#?,): |
| 9216 |
Experimentally added a new debug form, #?,(proc arg ...). Unlike |
| 9217 |
debug-print (#?=), this displays the value of arg .... |
| 9218 |
|
| 9219 |
2014-08-11 Shiro Kawai <[email protected]> |
| 9220 |
|
| 9221 |
* src/load.c, src/libeval.scm (load-from-port): Rewrote load-from-port |
| 9222 |
in Scheme. Scm_VMLoadFromPort is no longer used. An internal |
| 9223 |
procedure Scm__RecordLoadStart is also obsoleted. |
| 9224 |
Also dropped LOAD_MAIN_SCRIPT flag. This flag is introduced on |
| 9225 |
2011-01-02, but has never been used, and never been officially |
| 9226 |
announced. |
| 9227 |
|
| 9228 |
2014-08-10 Shiro Kawai <[email protected]> |
| 9229 |
|
| 9230 |
* src/gauche.h etc.: Removed pre-0.9 compatibility macro definitions. |
| 9231 |
It's been almost 5 years since 0.9 release and it's about time. |
| 9232 |
The compatibility routines (*Compat()) are kept in *.c file so |
| 9233 |
that the old compiled binaries keep working until 1.0 release. |
| 9234 |
However, newly compiled binaries should adopt 0.9 API. |
| 9235 |
|
| 9236 |
* libsrc/util/match.c: Fixed a bug that doesn't handle match |
| 9237 |
expressions generated by hygienic macros. The `quote' in |
| 9238 |
patterns may become an identifier in the macro output. |
| 9239 |
|
| 9240 |
2014-08-09 Shiro Kawai <[email protected]> |
| 9241 |
|
| 9242 |
* src/symbol.c: Enabled support of symbol-keyword unification, |
| 9243 |
though it's off by default for the backward compatibility. |
| 9244 |
Setting environment variable GAUCHE_KEYWORD_IS_SYMBOL turns on |
| 9245 |
the feature. At some point in future we flip the default, |
| 9246 |
so the feature will be on by default, and setting enviornment |
| 9247 |
variable GAUCHE_KEYWORD_DISJOINT turns off. |
| 9248 |
|
| 9249 |
2014-08-07 Shiro Kawai <[email protected]> |
| 9250 |
|
| 9251 |
* src/write.c (Scm_Write): Avoid using srfi-38 notation if |
| 9252 |
(display <string>) is called within write-shared. It doesn't |
| 9253 |
contribute readability at all (since you can't know what the |
| 9254 |
label refers), and sometimes interferes with user-defined |
| 9255 |
object writer. |
| 9256 |
|
| 9257 |
2014-08-04 Shiro Kawai <[email protected]> |
| 9258 |
|
| 9259 |
* ext/termios/termiolib.stub (sys-termios-copy): Added. |
| 9260 |
|
| 9261 |
2014-08-02 Shiro Kawai <[email protected]> |
| 9262 |
|
| 9263 |
* ext/uvector/*, src/vector.c: Restructured the sources. |
| 9264 |
Now we name the resulting DSO as gauche--uvector.so, consistent |
| 9265 |
to other extension modules. IMPORTANT: This means we no longer |
| 9266 |
allow other extension modules to link with -lgauche-uvector. |
| 9267 |
We used to need it for extension modules to access uvector features, |
| 9268 |
but now the basic uvector support is in the core and we no longer |
| 9269 |
need it. Besides, building one SO for both dlopen and -l linking |
| 9270 |
doesn't work on OSX. Some legacy extension modules may still |
| 9271 |
referring -lgauche-uvector; they should be updated. |
| 9272 |
Since gauche--uvector.so is now purely accessed through Scheme, |
| 9273 |
it doesn't make sense to provide full line of C API; so some of |
| 9274 |
them are folded into define-cproc. |
| 9275 |
The uvector reader is moved to src/vector.c as well, so that |
| 9276 |
reading uvector literals won't cause autoloading gauche.uvector. |
| 9277 |
|
| 9278 |
2014-07-31 Shiro Kawai <[email protected]> |
| 9279 |
|
| 9280 |
* ext/uvector/uvlib.stub.tmpl (string->[us]32vector!): Added. |
| 9281 |
|
| 9282 |
* src/load.c, src/gauche/load.h: Turn dlobj record to ScmObj. This |
| 9283 |
is for better introspection, and for preparation of exposing dlopen |
| 9284 |
to Scheme. |
| 9285 |
|
| 9286 |
2014-07-29 Shiro Kawai <[email protected]> |
| 9287 |
|
| 9288 |
* src/srfis.scm: Consolidate info of supporting srfis in one file, |
| 9289 |
to generate files that need to reflect the info. |
| 9290 |
* ext/srfi/generate-srfi.scm: Superseded by src/srfis.scm |
| 9291 |
|
| 9292 |
2014-07-28 Shiro Kawai <[email protected]> |
| 9293 |
|
| 9294 |
* src/libmisc.scm (box etc.): srfi-111 support. This is merely to |
| 9295 |
expose internal box object to the Scheme world. We still use |
| 9296 |
srfi-111 namespace, though. |
| 9297 |
* src/box.c (box_compare): compare contents. |
| 9298 |
|
| 9299 |
2014-07-27 Shiro Kawai <[email protected]> |
| 9300 |
|
| 9301 |
* src/libomega.scm, src/load.c: Mark all built-in modules as provided, |
| 9302 |
so that (use <built-in-module>) won't complain. This used to be |
| 9303 |
done in load.c, but we kept the module list separately which had |
| 9304 |
gone out-of-sync. |
| 9305 |
|
| 9306 |
2014-07-24 Shiro Kawai <[email protected]> |
| 9307 |
|
| 9308 |
* lib/gauche/configure.scm (parse-command-line-arguments): Fix |
| 9309 |
handling --enable-*, --disable-*, --with-* and --without-* options. |
| 9310 |
|
| 9311 |
2014-07-23 Shiro Kawai <[email protected]> |
| 9312 |
|
| 9313 |
* lib/gauche/base.scm: Split gauche.base form r7rs.scm, for it may |
| 9314 |
be used from Gauche code by (use gauche.base); see the document |
| 9315 |
for the use case. |
| 9316 |
|
| 9317 |
2014-07-22 Shiro Kawai <[email protected]> |
| 9318 |
|
| 9319 |
* src/module.c (search_binding): Fixed a bug - when a module exports |
| 9320 |
an inherited binding with renaming, it wasn't searched properly. |
| 9321 |
Another bug fix - if phantom binding is exported with renaming, |
| 9322 |
and then renamed on import, this bug sufraces. |
| 9323 |
|
| 9324 |
2014-07-20 Shiro Kawai <[email protected]> |
| 9325 |
|
| 9326 |
* lib/gauche/configure (cf-make-gpd): A cf api to generate gpd file. |
| 9327 |
(cf-echo): Fix a bug that drops last two arg if the output is not |
| 9328 |
redirected (thanks to KOGURO Naoki). Also made it appear in |
| 9329 |
config.log. |
| 9330 |
* ext/template.configure: Added call to cf-make-gpd. |
| 9331 |
|
| 9332 |
* ext/template.Makefile.in (maintainer-clean), |
| 9333 |
src/gauche-package.in (generate): Do not delete |
| 9334 |
configure in maintainer-clean if we create skeletons to use |
| 9335 |
gauche.configure. |
| 9336 |
|
| 9337 |
2014-07-19 Shiro Kawai <[email protected]> |
| 9338 |
|
| 9339 |
* release 0.9.4 |
| 9340 |
|
| 9341 |
* lib/gauche/configure.scm (check-for-program): Fixed a bug that refer |
| 9342 |
to the variable 'paths' that's being defined, i.e. |
| 9343 |
(define paths (... paths ...)). |
| 9344 |
|
| 9345 |
2014-07-18 Shiro Kawai <[email protected]> |
| 9346 |
|
| 9347 |
* src/libio.scm, lib/r7rs.scm (read-string): Support R7RS-compatible |
| 9348 |
read-string in the core. |
| 9349 |
* ext/text/parse.scm (read-string): Redefined on top of built-in |
| 9350 |
read-string. |
| 9351 |
|
| 9352 |
2014-07-16 Shiro Kawai <[email protected]> |
| 9353 |
|
| 9354 |
* src/macro.c (compile_rules): Allow syntax-rules to have no rules, |
| 9355 |
as the spec permits. |
| 9356 |
|
| 9357 |
* lib/scheme/*.scm: Placed dummy modules to use R7RS stdlibs |
| 9358 |
from Gauche |
| 9359 |
|
| 9360 |
2014-07-14 Shiro Kawai <[email protected]> |
| 9361 |
|
| 9362 |
* lib/r7rs.scm, src/libvec.scm: Moved vector->string and string->vector |
| 9363 |
from r7rs to core, for less confusion. |
| 9364 |
|
| 9365 |
2014-06-25 Shiro Kawai <[email protected]> |
| 9366 |
|
| 9367 |
* src/read.c (read_internal): In strict-r7 reader mode, read :foo |
| 9368 |
as a symbol. This would be unnecessary once we make keywords |
| 9369 |
a subtype of symbols, but for now, it would help using third-party |
| 9370 |
r7rs libraries. |
| 9371 |
|
| 9372 |
2014-06-22 Shiro Kawai <[email protected]> |
| 9373 |
|
| 9374 |
* ext/windows/console.stub (sys-fill-console-output-attribute) |
| 9375 |
(sys-fill-console-ouptut-character, sys-flush-console-input-buffer): |
| 9376 |
Added. |
| 9377 |
(<win:input-record>): Made key.virtural-key-code return |
| 9378 |
VirtualKeyCode, and let key.virtual-scan-code return |
| 9379 |
VirtualScanCode. |
| 9380 |
(sys-read-console-input): Fix. |
| 9381 |
Patch from https://github.com/Hamayama. |
| 9382 |
|
| 9383 |
2014-06-21 Shiro Kawai <[email protected]> |
| 9384 |
|
| 9385 |
* src/read.c: Split reader-lexical-mode from <read-context> and made |
| 9386 |
it an individual parameter. The mode can be changed during Scm_Read() |
| 9387 |
if we encoundter #!r7rs etc., so it doesn't work to carry the info |
| 9388 |
inside read-context. |
| 9389 |
* src/load.c, src/libio.scm: Changed accordingly. |
| 9390 |
|
| 9391 |
2014-06-20 Shiro Kawai <[email protected]> |
| 9392 |
|
| 9393 |
* lib/srfi-42.scm: Incorporated bug fixes in srfi-42 reference |
| 9394 |
implementation. |
| 9395 |
|
| 9396 |
2014-06-18 Shiro Kawai <[email protected]> |
| 9397 |
|
| 9398 |
* gc/*: Updated to gc-7.4.2 (libatomic_ops stays 7.4.2) |
| 9399 |
|
| 9400 |
2014-06-05 Shiro Kawai <[email protected]> |
| 9401 |
|
| 9402 |
* src/number.c (Scm_GetDouble): exact->inexact conversion didn't |
| 9403 |
work in denormalized range. |
| 9404 |
(Scm_EncodeFlonum): Added as an inverse of Scm_DecodeFlonum; |
| 9405 |
not made public in the header yet. |
| 9406 |
|
| 9407 |
2014-05-25 Shiro Kawai <[email protected]> |
| 9408 |
|
| 9409 |
* configure.ac: Add -static-libgcc flag when building DLLs on MinGW, |
| 9410 |
in ordre to avoid dependency on libgcc_s_dw2-1.dll. |
| 9411 |
|
| 9412 |
2014-05-21 Shiro Kawai <[email protected]> |
| 9413 |
|
| 9414 |
* gc/*: Updated to gc-7.4.0 and libatomic_ops-7.4.2 |
| 9415 |
|
| 9416 |
2014-05-16 Shiro Kawai <[email protected]> |
| 9417 |
|
| 9418 |
* src/gauche.h, src/string.c (SCM_STRDUP, SCM_STRDUP_PARTIAL): Added |
| 9419 |
these, for I felt I wrote SCM_MALLOC+memcpy too many times. |
| 9420 |
* src/dl_win.c, src/port.c, src/system.c: Changed accordingly. |
| 9421 |
|
| 9422 |
2014-05-15 Shiro Kawai <[email protected]> |
| 9423 |
|
| 9424 |
* src/system.c (Scm_GetEnv): Provide a wrapper so that we can mutex |
| 9425 |
getenv/putenv properly. |
| 9426 |
|
| 9427 |
2014-05-09 Shiro Kawai <[email protected]> |
| 9428 |
|
| 9429 |
* src/win-compat.c (mbs2wcs, wcs2mbs): Allow libgauche version of |
| 9430 |
those functions to choose allocator; we need to malloc (instead |
| 9431 |
of GC_alloc) if we pass the resulting string to OS. |
| 9432 |
|
| 9433 |
2014-05-07 Shiro Kawai <[email protected]> |
| 9434 |
|
| 9435 |
* src/main.c (main): Changed handling of command-line args on Windows |
| 9436 |
so that it can get wide characters properly. Based on a patch |
| 9437 |
from SAITO Atsushi. |
| 9438 |
|
| 9439 |
2014-05-05 Shiro Kawai <[email protected]> |
| 9440 |
|
| 9441 |
* ext/text/unicode.scm (%foldcase): Fixed string-foldcase behavior. |
| 9442 |
See the discussion in R7RS mailing list: |
| 9443 |
http://lists.scheme-reports.org/pipermail/scheme-reports/2014-May/004055.html |
| 9444 |
* test/r7rs-tests.scm: The test for string-foldcase was incorrect. |
| 9445 |
Fixed along above. |
| 9446 |
|
| 9447 |
2014-05-01 Shiro Kawai <[email protected]> |
| 9448 |
|
| 9449 |
* ext/uvector/uvlib.stub.tmpl (u8vector->string, s8vector->string): |
| 9450 |
Avoid copying the content when the source vector is immutable and |
| 9451 |
certain conditions are met. See the comment in bytevector->string |
| 9452 |
for the details. |
| 9453 |
|
| 9454 |
2014-04-29 Shiro Kawai <[email protected]> |
| 9455 |
|
| 9456 |
* ext/uvector/uvlib.stub.tmpl (string->u8vector, string->s8vector): |
| 9457 |
Added optional immutable? flag; if #t, the result vector becomes |
| 9458 |
immutable, and we avoid copying the string body. |
| 9459 |
|
| 9460 |
2014-04-28 Shiro Kawai <[email protected]> |
| 9461 |
|
| 9462 |
* lib/gauche/common-macros.scm (unwind-protect): Fixed the bug that |
| 9463 |
cleanup clause wasn't called when applications exit within the body. |
| 9464 |
|
| 9465 |
2014-04-27 Shiro Kawai <[email protected]> |
| 9466 |
|
| 9467 |
* src/libio.scm (close-port, call-with-port): Support these r7rs procs |
| 9468 |
natively. They're useful. (Actually, we didn't have call-with-port |
| 9469 |
even in r7rs module; it was an oversight.) |
| 9470 |
|
| 9471 |
2014-04-17 Shiro Kawai <[email protected]> |
| 9472 |
|
| 9473 |
* lib/rfc/json.scm (%unicode, print-string): Properly support |
| 9474 |
unicode surrogate pairs. |
| 9475 |
|
| 9476 |
2014-04-12 Shiro Kawai <[email protected]> |
| 9477 |
|
| 9478 |
* src/write.c (Scm_Write): Fixed a race condition that, while |
| 9479 |
one thread was in circular-safe writing mode, another thread's |
| 9480 |
call to Scm_Write mistook that it was within recursive Scm_Write |
| 9481 |
call. |
| 9482 |
|
| 9483 |
2014-04-09 Shiro Kawai <[email protected]> |
| 9484 |
|
| 9485 |
* configure.ac: Add -DUNICODE when compiling MinGW with utf-8 encoding. |
| 9486 |
src/genconfig.in, src/gauche/win-compat.h, src/port.c, src/system.c, |
| 9487 |
src/win-compat.c: Fixes to enable mbs2wcs/wcs2mbs stuff and *W |
| 9488 |
windows API to deal with unicode pathnames. Based on a patch |
| 9489 |
by SAITO Atsushi. |
| 9490 |
|
| 9491 |
2014-04-05 Shiro Kawai <[email protected]> |
| 9492 |
|
| 9493 |
* src/compare.c, src/gauche/compare.h, src/libcmp.scm: Start |
| 9494 |
adding comparator (srfi-114) experimentally. |
| 9495 |
|
| 9496 |
2014-04-04 Shiro Kawai <[email protected]> |
| 9497 |
|
| 9498 |
* src/libbool.scm (eq-compare): Added. |
| 9499 |
|
| 9500 |
2014-03-20 Shiro Kawai <[email protected]> |
| 9501 |
|
| 9502 |
* lib/www/css.scm: Added. Still experimental. |
| 9503 |
|
| 9504 |
2014-03-06 Shiro Kawai <[email protected]> |
| 9505 |
|
| 9506 |
* ext/tls/tls.c, ext/tls/tls.scm (tls-destroy): Added explicit |
| 9507 |
destruction of TLS context. An axtls context grabs an fd for |
| 9508 |
/dev/urandom, and sometimes GC isn't triggered often enough |
| 9509 |
before unfinalized contexts use up all fds. |
| 9510 |
* lib/rfc/http.scm (shutdown-secure-agent): Destroy TLS context. |
| 9511 |
|
| 9512 |
2014-03-01 Shiro Kawai <[email protected]> |
| 9513 |
|
| 9514 |
* src/system.c (Scm_ClockGetTimeMonotonic, Scm_ClockGetResMonotonic), |
| 9515 |
src/libsys.scm (sys-clock-gettime-monotonic, sys-clock-getres-monotonic): |
| 9516 |
Added monotonic time clock to be used for TAI time. If the system |
| 9517 |
doesn't provide clock_gettime()/clock_getres(), these API return |
| 9518 |
special values, so that the caller can make up whatever fallback |
| 9519 |
values suitable for their needs; the gist is that it's often easier |
| 9520 |
to implement fallback in Scheme. |
| 9521 |
|
| 9522 |
2014-02-27 Shiro Kawai <[email protected]> |
| 9523 |
|
| 9524 |
* src/libfmt.scm (with-format-params): Fixed a bug in 'v' formatter |
| 9525 |
parameter handling; we shouldn't set! to the variable for the |
| 9526 |
parameter, since a formatter can be called multiple times and |
| 9527 |
every time we should fetch from the arglist. |
| 9528 |
|
| 9529 |
2014-02-22 Shiro Kawai <[email protected]> |
| 9530 |
|
| 9531 |
* lib/r7rs.scm (gauche.base): Added gauche.base module to allow |
| 9532 |
R7RS programs to access Gauche's builtin bindings by |
| 9533 |
(import (gauche base)). See the comment for the reason we don't |
| 9534 |
simply export bindings from the gauche module. |
| 9535 |
|
| 9536 |
2014-02-20 Shiro Kawai <[email protected]> |
| 9537 |
|
| 9538 |
* src/libeval.scm (%repl-print): Changed to use write (r7rs write, |
| 9539 |
which doesn't show shared structure but does show cycles) in the |
| 9540 |
default REPL. Showing shared structure by default has been a source |
| 9541 |
of confision for newcomers; now we can avoid that, yet we can |
| 9542 |
retain circular-safety. |
| 9543 |
|
| 9544 |
2014-02-13 Shiro Kawai <[email protected]> |
| 9545 |
|
| 9546 |
* ext/peg/peg.scm: Consolidated $<< and $fmap and renamed to $lift. |
| 9547 |
Allow $->rope, $->string, $->symbol to take multiple parsers. |
| 9548 |
* lib/rfc/json.scm: Changed accordingly. |
| 9549 |
|
| 9550 |
2014-02-11 Shiro Kawai <[email protected]> |
| 9551 |
|
| 9552 |
* src/gauche-package.in: Switched using Gauche-based configure |
| 9553 |
script by default in 'gauche-package generate', |
| 9554 |
unless --autoconf option is given. |
| 9555 |
|
| 9556 |
* lib/gauche/configure.scm: Added cf-arg-with, cf-arg-enable, and |
| 9557 |
cf-help-string. Put more stuff in usage. |
| 9558 |
|
| 9559 |
* src/libmisc.scm (warn), src/error.c (Scm_FWarn): Rewrote 'warn' |
| 9560 |
in Scheme, avoiding calling obsoleted Scm_Format. Also obsoleted |
| 9561 |
Scm_FWarn. |
| 9562 |
|
| 9563 |
2014-02-10 Shiro Kawai <[email protected]> |
| 9564 |
|
| 9565 |
* src/libmod.scm (import): Added user#import that dispatches either |
| 9566 |
gauche#import or r7rs#import, to support r7rs script natively. |
| 9567 |
|
| 9568 |
2014-02-07 Shiro Kawai <[email protected]> |
| 9569 |
|
| 9570 |
* src/number.c (Scm_NumCmp): Fixed Scm_NumCmp when comparing a flonum |
| 9571 |
and an exact bignum or ratnum. In that case we need to convert |
| 9572 |
the flonum to exact (as opposed to converting exact one to inexact), |
| 9573 |
for the latter would break transitivity of '='. |
| 9574 |
|
| 9575 |
2014-02-06 Shiro Kawai <[email protected]> |
| 9576 |
|
| 9577 |
* src/core.c (init_cond_features): Added r7rs feature identifier. |
| 9578 |
|
| 9579 |
* src/write.c, src/libio.scm: Changed the default behavior of |
| 9580 |
'Scm_Write' and 'write' alinged to r7rs, that is, it detects |
| 9581 |
circular structures and use datum labels. 'Display' also does |
| 9582 |
2-pass circular detection. The original 'write' behavior |
| 9583 |
is realized by 'write-simple'. SRFI-38 behavior is still |
| 9584 |
realized by write/ss and write*, which are merely alises of |
| 9585 |
r7rs 'write-shared'. |
| 9586 |
|
| 9587 |
The 'mode' of Scm_Write and ScmWriteContext is slightly modified |
| 9588 |
to adopt this change; now, SCM_WRITE_WRITE works as the updated |
| 9589 |
'write' (circular-safe), and SCM_WRITE_SHARED works as 'write-shared'. |
| 9590 |
To get 'write-simple' behavior you have to specify SCM_WRITE_SIMPLE. |
| 9591 |
|
| 9592 |
To distinguish circular-only and shared mode, we have to |
| 9593 |
add that info to the port flags as well, for the write context |
| 9594 |
info isn't passed to the user-defined write-object. SCM_PORT_WRITESS |
| 9595 |
flag is used for the purpose (the meaning of flag has been |
| 9596 |
changed). |
| 9597 |
|
| 9598 |
2014-02-05 Shiro Kawai <[email protected]> |
| 9599 |
|
| 9600 |
* src/read.c (char_word_constituent): Refined checking symbol |
| 9601 |
constituent characters beyond ASCII range, following R6RS. |
| 9602 |
For example, \u3000 followed by 'a' used to be a part of |
| 9603 |
symbol, but now it correctly delimits a symbol 'a'. |
| 9604 |
|
| 9605 |
2014-02-04 Shiro Kawai <[email protected]> |
| 9606 |
|
| 9607 |
* src/write.c, src/libfmt.scm (format): Rewrote format in Scheme. |
| 9608 |
NB: We might reconsider the semantics of format/ss; the output |
| 9609 |
of format is usually unreadable by 'read', so using srfi-38 |
| 9610 |
notation isn't really a point. The point of format/ss is to |
| 9611 |
guarantee that it returns even if the arg has circular structure. |
| 9612 |
|
| 9613 |
2014-02-02 Shiro Kawai <[email protected]> |
| 9614 |
|
| 9615 |
* src/port.c, src/libio.scm (with-port-locking): Moved the definition |
| 9616 |
from C to Scheme. |
| 9617 |
|
| 9618 |
* src/write.c, src/port.c, src/portapi.c, src/read.c: Another step |
| 9619 |
to improve the writer. Now we don't create a dummy 'walker' port, |
| 9620 |
for merely marking the port->flags suffice. Also placed a cleanup |
| 9621 |
procedure to remove transient stuff from the port. |
| 9622 |
|
| 9623 |
2014-02-01 Shiro Kawai <[email protected]> |
| 9624 |
|
| 9625 |
* src/boolean.c (Scm_EqualP), src/libbool.scm (%interleave-equal?): |
| 9626 |
Made equal? to handle cyclic structures, as specified in R[67]RS. |
| 9627 |
For the time being, we don't consider cycles involving user-defined |
| 9628 |
objects and object-equal? method. |
| 9629 |
|
| 9630 |
* src/vminsn.scm (LREF-UNBOX): Added. |
| 9631 |
|
| 9632 |
2014-01-31 Shiro Kawai <[email protected]> |
| 9633 |
|
| 9634 |
* src/code.c, src/vminsn.scm, src/geninsn, lib/gauche/vm/insn-core.scm: |
| 9635 |
The instruction combiner now allows preceding specialized LREFs |
| 9636 |
such as LREF0 or LREF21 to be combined into generic LREF-STNG(n,m) |
| 9637 |
(instead of having LREF0-STNG, LREF21-STNG, etc. separately). |
| 9638 |
Such combined insn is indicated by :fold-lref flag. |
| 9639 |
|
| 9640 |
2014-01-30 Shiro Kawai <[email protected]> |
| 9641 |
|
| 9642 |
* src/vm.c, src/vminsn.scm (UNBOX), src/compile.scm: Finishing explicit |
| 9643 |
boxing/unboxing. NB: Although this fix makes the compile emit |
| 9644 |
necessary BOX/UNBOX instructions for set!-table lvars, we do not |
| 9645 |
drop implicit unboxing feature yet, since 0.9.4 compiler and runtime |
| 9646 |
are compiled by 0.9.3.3 compiler that doesn't emit UNBOX insns. |
| 9647 |
See the comment about auto-unboxing in vm.c; we'll remove |
| 9648 |
auto-unboxing stuff once we release 0.9.4. |
| 9649 |
* test-0.9.4.sh: A temporary shell script to test BOX/UNBOX stuff. |
| 9650 |
Ordinary test run doesn't test this, since 0.9.4 build still use |
| 9651 |
implicit unboxing. This shell script build 0.9.4, then build it |
| 9652 |
again _using_0.9.4_compiler_, so that we can test BOX/UNBOX thingy. |
| 9653 |
We'll remove this script once we release 0.9.4. |
| 9654 |
|
| 9655 |
2014-01-28 Shiro Kawai <[email protected]> |
| 9656 |
|
| 9657 |
* src/vminsn.scm (BOX): Changed to be used to box procedure parameters. |
| 9658 |
(ENV-SET): New instruction to initialize env slot (used with |
| 9659 |
LOCAL-ENV-CLOSURES). We used to use LSET, but we'll box all |
| 9660 |
set!-able lvars and LSET will do set-box! instead of directly setting |
| 9661 |
env slot. |
| 9662 |
* src/compile.scm: Changed to emit ENV-SET and new BOX insn. |
| 9663 |
|
| 9664 |
* src/geninsn, lib/gauche/vm/insn-core.scm: Allow insn definitions |
| 9665 |
to have alternative num-params, so that we can build Gauche |
| 9666 |
using the previous version of Gauche even if we change the |
| 9667 |
num-params of insns. |
| 9668 |
|
| 9669 |
2014-01-27 Shiro Kawai <[email protected]> |
| 9670 |
|
| 9671 |
* lib/www/cgi.scm (read-complete-block): Fixed a bug in the case |
| 9672 |
when content-length is zero. |
| 9673 |
|
| 9674 |
2014-01-19 Shiro Kawai <[email protected]> |
| 9675 |
|
| 9676 |
* src/gauche/vm.h (ScmContFrame): Added a slot to save current PC. |
| 9677 |
This isn't needed for execution, but useful to get a sensible |
| 9678 |
stack trace. |
| 9679 |
In a sense, this info records "who created this continuation?". |
| 9680 |
A concern is the impact on the performance, for we have one extra word |
| 9681 |
to push for each continuation. Let's see how it goes. |
| 9682 |
|
| 9683 |
2014-01-12 Shiro Kawai <[email protected]> |
| 9684 |
|
| 9685 |
* src/write.c: Rewriting to clean up the control flow regarding recursive |
| 9686 |
situation. The recursive context should be solely held in the port, |
| 9687 |
not in the write context. The slot name of the port is renamed |
| 9688 |
from 'data' to 'recursiveContext' to indicate the role. |
| 9689 |
Obsoleted Scm_WriteCircular, for it can be handled by either |
| 9690 |
Scm_Write or Scm_WriteLimited. |
| 9691 |
|
| 9692 |
2014-01-07 Shiro Kawai <[email protected]> |
| 9693 |
|
| 9694 |
* src/compile.scm: Bind auxiliary syntactic keywords to a dummy |
| 9695 |
expander; it'd be easier to work with modules if we have toplevel |
| 9696 |
bindins instead of leaving them undefined. |
| 9697 |
|
| 9698 |
2013-12-30 Shiro Kawai <[email protected]> |
| 9699 |
|
| 9700 |
* lib/gauche/test.scm (closure-grefs): Include PUSH-GREF-CALL |
| 9701 |
and PUSH-GREF-TAIL-CALL insns to check arity mismatch. |
| 9702 |
|
| 9703 |
2013-12-24 Shiro Kawai <[email protected]> |
| 9704 |
|
| 9705 |
* src/compile.scm (import): Show a descriptive error message when |
| 9706 |
Gauche's import is called as if R7RS import. |
| 9707 |
|
| 9708 |
2013-12-22 Shiro Kawai <[email protected]> |
| 9709 |
|
| 9710 |
* src/genconfig.in: Add site-specific directories to --incdirs and |
| 9711 |
--archdirs options. Some extention libraries (e.g. Gauche-gl) |
| 9712 |
installs header files and DSOs there, and libraries depending |
| 9713 |
on them need to see them at compile time. |
| 9714 |
|
| 9715 |
2013-12-20 Shiro Kawai <[email protected]> |
| 9716 |
|
| 9717 |
* lib/gauche/dictionary.scm (make-bimap, bimap-put!): Allow bimap |
| 9718 |
to have the default on-conflict setting. |
| 9719 |
|
| 9720 |
2013-12-19 Shiro Kawai <[email protected]> |
| 9721 |
|
| 9722 |
* lib/srfi-106.scm (*ai-v4mapped*): Workaround for the platforms |
| 9723 |
where AI_V4MAPPED may not be defined even if ipv6 is provided. |
| 9724 |
|
| 9725 |
2013-12-13 Shiro Kawai <[email protected]> |
| 9726 |
|
| 9727 |
* src/libnum.scm (sqrt): Improved performance. We did extra sqrt |
| 9728 |
calculation when the arg was exact but not a square of exact number. |
| 9729 |
|
| 9730 |
2013-11-27 Shiro Kawai <[email protected]> |
| 9731 |
|
| 9732 |
* lib/www/cgi.scm (cgi-get-query): Fixed a bug that caused the |
| 9733 |
procedure not to retrieve the entire POST request body, if |
| 9734 |
the input port wasn't fully buffered. |
| 9735 |
|
| 9736 |
2013-11-26 Shiro Kawai <[email protected]> |
| 9737 |
|
| 9738 |
* libsrc/srfi-13.scm (string-filter, string-delete): We noticed that |
| 9739 |
we got the argument order of these wrong for long time. The order |
| 9740 |
is corrected, but to support code written for the old order, we |
| 9741 |
permit the caller to use the old API as well. |
| 9742 |
|
| 9743 |
2013-11-24 Shiro Kawai <[email protected]> |
| 9744 |
|
| 9745 |
* libsrc/text/tr.scm (build-char-array): Fixed a bug that prevented |
| 9746 |
having '\' in spec. |
| 9747 |
|
| 9748 |
2013-11-22 Shiro Kawai <[email protected]> |
| 9749 |
|
| 9750 |
* src/read.c, src/libstr.scm, lib/gauche/interpolate.scm: |
| 9751 |
Enabled the new string interpolation syntax #"... ~expr ...". |
| 9752 |
Still needs appropriate check according to the reader mode. |
| 9753 |
|
| 9754 |
2013-11-19 Shiro Kawai <[email protected]> |
| 9755 |
|
| 9756 |
* src/libdict.scm (make-hash-table): Experimentally added |
| 9757 |
optional 'init-size' argument. We might change the API later, |
| 9758 |
so this is unofficial. |
| 9759 |
|
| 9760 |
2013-11-13 Shiro Kawai <[email protected]> |
| 9761 |
|
| 9762 |
* ext/text/unicode.scm (%foldcase): Fixed handling of final sigma--- |
| 9763 |
we need the same treatment as string-downcase. |
| 9764 |
|
| 9765 |
2013-11-12 Shiro Kawai <[email protected]> |
| 9766 |
|
| 9767 |
* test/r7rs.scm, test/r7rs-test.scm: Added r7rs test taken from Chibi. |
| 9768 |
Run r7rs.scm, which is a Gauche wrapper to execute r7rs-test.scm. |
| 9769 |
Not yet added to TESTS, for we have a few missing features. |
| 9770 |
|
| 9771 |
2013-11-10 Shiro Kawai <[email protected]> |
| 9772 |
|
| 9773 |
* src/regexp.c (rex_rec): Fixed submatch capture failure. Patch |
| 9774 |
from leque. |
| 9775 |
|
| 9776 |
2013-11-08 Shiro Kawai <[email protected]> |
| 9777 |
|
| 9778 |
* src/port.c, src/portapi.c (Scm_PortAttrGet etc.): Port attributes. |
| 9779 |
This is to generalize accessing various information on ports, |
| 9780 |
and eventually allow ports to abstract broader external |
| 9781 |
resources (e.g. accessing httpd via ports). |
| 9782 |
|
| 9783 |
2013-11-07 Shiro Kawai <[email protected]> |
| 9784 |
|
| 9785 |
* src/char.c (Scm_DigitToInt, Scm_IntToDigit): More generalized |
| 9786 |
treatment of non-ASCII digit characters. THIS CHANGE BREAKS ABI |
| 9787 |
COMPATIBILITY. We think it's better to make it clean, hoping |
| 9788 |
no external modules rely on this API. |
| 9789 |
* src/libchar.scm (digit->integer, integer->digit): Extended |
| 9790 |
accordingly. In Scheme level it's backward compatibile. |
| 9791 |
|
| 9792 |
2013-11-02 Shiro Kawai <[email protected]> |
| 9793 |
|
| 9794 |
* src/gauche/priv/portP.h: Splitted internal stuff from port.h. |
| 9795 |
|
| 9796 |
2013-10-31 Shiro Kawai <[email protected]> |
| 9797 |
|
| 9798 |
* lib/data/random.scm (sequences-of): Added. |
| 9799 |
|
| 9800 |
2013-10-28 Shiro Kawai <[email protected]> |
| 9801 |
|
| 9802 |
* src/write.c, src/class.c, src/gauche/priv/writerP.h: |
| 9803 |
Made ScmWriteContext a Scheme object. Another step towards |
| 9804 |
rewriting 'write' subsystem. |
| 9805 |
|
| 9806 |
2013-10-26 Shiro Kawai <[email protected]> |
| 9807 |
|
| 9808 |
* src/write.c (write_walk), src/libio.scm (%write-walk-rec): A |
| 9809 |
step towards rewriting 'write' subsystem - rewrote the walk pass |
| 9810 |
in Scheme. |
| 9811 |
|
| 9812 |
2013-10-25 Shiro Kawai <[email protected]> |
| 9813 |
|
| 9814 |
* src/gauche/system.h, src/signal.c: Changed handling of SIGPIPE. |
| 9815 |
If Gauche is asked to take care of SIGPIPE, we do nothing for |
| 9816 |
it by default. The program can handle the situation by |
| 9817 |
capturing EPIPE <system-error> anyway. |
| 9818 |
* src/gauche/port.h, src/libio.scm, src/port.c, src/portapi.c: |
| 9819 |
Added an internal flag that can terminate the process if |
| 9820 |
writing raised EPIPE. By default, only stdout and stderr have the |
| 9821 |
flag set. This makes casual tools that write to stdout to be piped |
| 9822 |
together behave the similar way as other Unix commands, while |
| 9823 |
other use of pipes (e.g. sockets) won't cause annoying termination |
| 9824 |
via SIGPIPE. |
| 9825 |
NB: We still need an API to change this flag. |
| 9826 |
NB: Code that has been accessed ScmBufferedPort.mode needs to be |
| 9827 |
changed to use the new API Scm_GetPortBufferingMode etc. |
| 9828 |
(Scm_KeywordToBufferingMode, Scm_GetPortBufferingModeAsKeyword): |
| 9829 |
More descriptive API name than Scm_BufferingMode and |
| 9830 |
Scm_GetBufferingMode. The latter will be removed after 1.0 release. |
| 9831 |
|
| 9832 |
2013-10-20 Shiro Kawai <[email protected]> |
| 9833 |
|
| 9834 |
* src/regexp.c (rc1_parse, rc3_rec): Fixed a bug handling |
| 9835 |
(?(condition)yes-pattern). It should take into account of |
| 9836 |
empty no-pattern, e.g. (?(condition)yes-pattern|), which makes |
| 9837 |
the pattern always match if condition doesn't hold. |
| 9838 |
Patch from leque. |
| 9839 |
* lib/gauche/regexp.scm (regexp-unparse): Ditto. |
| 9840 |
|
| 9841 |
2013-10-13 Shiro Kawai <[email protected]> |
| 9842 |
|
| 9843 |
* lib/text/diff.scm (diff): Bug fix: 'Equal' keyword argument was |
| 9844 |
ignored. Patch from Rui Ueyama. |
| 9845 |
|
| 9846 |
2013-10-12 Shiro Kawai <[email protected]> |
| 9847 |
|
| 9848 |
* src/number.c (Scm_PrintNumber, Scm_PrintDouble): Changed to return |
| 9849 |
# of characters written. |
| 9850 |
* src/write.c (write_char): Use numeric notation for unprintable |
| 9851 |
characters. NB: Currently, we print with internal encoding, |
| 9852 |
which is incompatible to R7RS if Gauche is compiled with euc-jp |
| 9853 |
or sjis. We eventually need some writer-mode switch. |
| 9854 |
|
| 9855 |
2013-10-10 Shiro Kawai <[email protected]> |
| 9856 |
|
| 9857 |
* src/read.c, src/gauche/reader.h, src/gauche/priv/readerP.h: |
| 9858 |
Moved ScmReadContext implementation delcs into a private header. |
| 9859 |
Added public API to modify reader lexical compatibility mode. |
| 9860 |
Use parameter to keep the default read context. |
| 9861 |
Integrate WARN_LEGACY flag to read context instead of vm runtime flag. |
| 9862 |
* src/libio.scm: Added parameter-like procedure read-lexical-mode |
| 9863 |
and supported #!gauche-legacy and #!r7rs switch. |
| 9864 |
|
| 9865 |
2013-10-09 Shiro Kawai <[email protected]> |
| 9866 |
|
| 9867 |
* lib/gauche/priv/*.h: Moved some private header files into separate |
| 9868 |
directory. builtin-syms.h is now private---the index changes between |
| 9869 |
versions, so external binaries shouldn't rely on that. |
| 9870 |
We'll go through other header files and split private parts into |
| 9871 |
priv/*P.h. |
| 9872 |
|
| 9873 |
2013-10-06 Shiro Kawai <[email protected]> |
| 9874 |
|
| 9875 |
* lib/gauche/sortutil.scm, lib/gauche/generic-sortutil.scm: |
| 9876 |
Adapted to SRFI-95, and also handles generic <sequence>. |
| 9877 |
|
| 9878 |
2013-10-04 Shiro Kawai <[email protected]> |
| 9879 |
|
| 9880 |
* lib/gauche/configure.scm: Added support for directory stuff |
| 9881 |
(srcdir etc.), and added tests. |
| 9882 |
|
| 9883 |
2013-09-28 Shiro Kawai <[email protected]> |
| 9884 |
|
| 9885 |
* src/read.c: Issue warning when we see legacy \xNN hex-digit escape, |
| 9886 |
if SCM_READER_WARN_LEGACY runtime flag is set. We'll also use |
| 9887 |
this flag for some other planned syntax changes (e.g. string |
| 9888 |
interpolation syntax). |
| 9889 |
* src/main.c: Added -fwarn-legacy-syntax option that turns on the |
| 9890 |
SCM_READER_WARN_LEGACY flag. For the time being we treat it |
| 9891 |
unofficial, let's see how useful it is. |
| 9892 |
|
| 9893 |
2013-09-25 Shiro Kawai <[email protected]> |
| 9894 |
|
| 9895 |
* src/module.c (search_binding): Fixed a bug in transitive export; the |
| 9896 |
bug prevented the 'only' modifier work on transitively exported |
| 9897 |
symbols. |
| 9898 |
|
| 9899 |
* src/compile.scm (pass1/body-rec): Support internal syntax definitions. |
| 9900 |
|
| 9901 |
2013-09-24 Shiro Kawai <[email protected]> |
| 9902 |
|
| 9903 |
* src/gauche/exception.h, src/error.c: Changed the role of 'message' |
| 9904 |
slot in ScmMessageCondition, to enable R7RS error-object-message |
| 9905 |
and error-object-irritants with keeping ABI compatibility. |
| 9906 |
Scheme-level interface is compatibile, but C code accessing |
| 9907 |
message field directly would get something a bit different from |
| 9908 |
what it got in previous versions. Those code should use |
| 9909 |
Scm_ConditionMessage() API instead of direct field access. |
| 9910 |
|
| 9911 |
2013-09-23 Shiro Kawai <[email protected]> |
| 9912 |
|
| 9913 |
* src/libsys.scm (sys-errno->symbol, sys-symbol->errno): Mapping |
| 9914 |
between integer error numbers and their symbolic names. |
| 9915 |
|
| 9916 |
2013-09-22 Shiro Kawai <[email protected]> |
| 9917 |
|
| 9918 |
* src/read.c (Scm_ReadXdigitsFromString, Scm_ReadXdigitsFromPort): |
| 9919 |
Rewritten to handle \x, \u and \U hex-digit escapes consistently, |
| 9920 |
with the support of bothnew R7RS-style syntax and legacy syntax. |
| 9921 |
They used to be in char.c, but moved to read.c. The API has been |
| 9922 |
changed (INCOMPATIBLE CHANGE). |
| 9923 |
|
| 9924 |
2013-09-18 Shiro Kawai <[email protected]> |
| 9925 |
|
| 9926 |
* src/read.c (read_string), src/string.c (string_putc): Switched to |
| 9927 |
R7RS compatible hex-escape syntax (\xNNN;). Reading the legacy |
| 9928 |
syntax (without ';' terminator) is supported by default, as far as |
| 9929 |
the input can't be interpreted as R7RS syntax. |
| 9930 |
For output, currently we only support R7RS style. Might add |
| 9931 |
compatibility mode if needed. |
| 9932 |
|
| 9933 |
* src/string.c (Scm_DStringPeek): Added. Useful to avoid allocation |
| 9934 |
when we use dstr just as a temporary variable-sized buffer. |
| 9935 |
|
| 9936 |
2013-09-17 Shiro Kawai <[email protected]> |
| 9937 |
|
| 9938 |
* src/gen-unicode.scm: Added code generator for unicode numeric value |
| 9939 |
attribute. |
| 9940 |
* src/char_attr.c: Regenerated. |
| 9941 |
* src/char.c (Scm_DigitToInt): Handles all Nd characters. |
| 9942 |
|
| 9943 |
2013-09-16 Shiro Kawai <[email protected]> |
| 9944 |
|
| 9945 |
* lib/gauche/dictionary.scm (dict->alist): Provide fallback methods |
| 9946 |
using dict-fold. |
| 9947 |
(<stacked-map>): Added stacked map experimentally. |
| 9948 |
|
| 9949 |
2013-09-12 Shiro Kawai <[email protected]> |
| 9950 |
|
| 9951 |
* lib/gauche/numerical.scm (real->rational): Fixed a bug in refine/c |
| 9952 |
that doesn't find simplest rational when two continued fraction has |
| 9953 |
(x0 ... xn xn+1 ...) and (y0 ... yn), where xi = yi (0 <= i <= n-1) |
| 9954 |
and |xn - yn| > 1. Original code just picked the shorter series, |
| 9955 |
but picking min(xn + 1, yn) makes the result simpler. |
| 9956 |
|
| 9957 |
2013-09-11 Shiro Kawai <[email protected]> |
| 9958 |
|
| 9959 |
* src/libstr.scm (string=? etc): Support more than two arguments. |
| 9960 |
* ext/text/unicode.scm (string-ci=? etc): Provide R7RS compatible |
| 9961 |
full-string case folded comparison. |
| 9962 |
* lib/r7rs.scm (string-ci=? etc): Use text.unicode version instead of |
| 9963 |
built-in version. |
| 9964 |
|
| 9965 |
2013-09-10 Shiro Kawai <[email protected]> |
| 9966 |
|
| 9967 |
* lib/gauche/defvalues.scm (define-values): Support <formals> in |
| 9968 |
the variable list position, as specified in r7rs. Also make it |
| 9969 |
possible to use define-values mixed in internal defines. |
| 9970 |
|
| 9971 |
* src/macro.c (match_synrule): Supports trailing items after ellipsis, |
| 9972 |
according to r7rs (e.g. (a b ... c) etc.) |
| 9973 |
|
| 9974 |
2013-09-08 Shiro Kawai <[email protected]> |
| 9975 |
|
| 9976 |
* lib/rfc/http.scm (http-request): Fixed broken behavior of redirect |
| 9977 |
handling. The body of 3xx request shouldn't be retrieved with |
| 9978 |
caller-supplied receiver. |
| 9979 |
|
| 9980 |
2013-09-02 Shiro Kawai <[email protected]> |
| 9981 |
|
| 9982 |
* src/macro.c (Scm_CompileSyntaxRules), |
| 9983 |
src/compile.scm (pass1/syntax-rules): Support alternative ellipsis |
| 9984 |
as in R7RS. |
| 9985 |
|
| 9986 |
2013-09-01 Shiro Kawai <[email protected]> |
| 9987 |
|
| 9988 |
* src/compile.scm (define-builtin-inliner-/, pass2/const-numop1) |
| 9989 |
(pass2/const-numop2): Avoid constant-folding for exact div-by-zero |
| 9990 |
case. We should leave it to be handled at runtime. |
| 9991 |
|
| 9992 |
2013-08-26 Shiro Kawai <[email protected]> |
| 9993 |
|
| 9994 |
* lib/www/cgi.scm (cgi-parse-parameters): Fixed a bug when multiple |
| 9995 |
values with the same parameter name are passed via |
| 9996 |
multipart/form-data. |
| 9997 |
|
| 9998 |
* lib/rfc/uri.scm (uri-compose-data, uri-decompose-data): Added |
| 9999 |
'data:' uri scheme support. |
| 10000 |
|
| 10001 |
2013-08-22 Shiro Kawai <[email protected]> |
| 10002 |
|
| 10003 |
* lib/rfc/uri.scm (uri-encode): Use uppercase for percent-encoding |
| 10004 |
of special chars, as recommended in RFC3986. |
| 10005 |
|
| 10006 |
2013-08-20 Shiro Kawai <[email protected]> |
| 10007 |
|
| 10008 |
* lib/srfi-106.scm, doc/modsrfi.texi: Changed according to final |
| 10009 |
spec, and documented. |
| 10010 |
|
| 10011 |
2013-08-19 Shiro Kawai <[email protected]> |
| 10012 |
|
| 10013 |
* lib/data/random.scm: Fixed some bugs. |
| 10014 |
* doc/modutil.texi: Document data.random. Now it's official. |
| 10015 |
|
| 10016 |
2013-08-16 Shiro Kawai <[email protected]> |
| 10017 |
|
| 10018 |
* src/vm.c, src/vminsn.c: Some runtime optimizations to improve |
| 10019 |
tight-loop routines (sequence of vm instruction loops that doesn't |
| 10020 |
call extra functions much). We reduced the check of attentionRequest, |
| 10021 |
and detect value-yielding insn followed by PUSH. See the comment |
| 10022 |
near NEXT_PUSHCHECK in vm.c for the details. |
| 10023 |
|
| 10024 |
2013-08-14 Shiro Kawai <[email protected]> |
| 10025 |
|
| 10026 |
* src/libnum.scm (expt): Try to return an exact result when the power |
| 10027 |
is exact rational and result can be exact. |
| 10028 |
E.g. (expt 8/125 2/3) => 4/25. |
| 10029 |
|
| 10030 |
2013-08-13 Shiro Kawai <[email protected]> |
| 10031 |
|
| 10032 |
* lib/gauche/configure.scm: Added. Not completed yet. |
| 10033 |
|
| 10034 |
2013-08-11 Shiro Kawai <[email protected]> |
| 10035 |
|
| 10036 |
* ext/uvector/uvutil.scm (u8vector-append etc): Added. |
| 10037 |
|
| 10038 |
2013-08-10 Shiro Kawai <[email protected]> |
| 10039 |
|
| 10040 |
* src/module.c (Scm_FindBinding): Support transitive export, i.e. |
| 10041 |
allow exporting symbols that are imported or inherited, without |
| 10042 |
explicitly defining it in the module. |
| 10043 |
* libsrc/srfi-1.scm, libsrc/srfi-13.scm, lib/srfi-14.scm, lib/srfi-60.scm |
| 10044 |
Changed accordingly. |
| 10045 |
|
| 10046 |
2013-08-08 Shiro Kawai <[email protected]> |
| 10047 |
|
| 10048 |
* lib/file/filter.scm (file-filter): Fixed a bug that the outputfile |
| 10049 |
is not created when :temporary-file #t :leave-unchanged #t. |
| 10050 |
|
| 10051 |
* libsrc/text/tr.scm (complement-char-array): Fixed a bug that |
| 10052 |
made complement yield incorrect set when from-str isn't in |
| 10053 |
increasing order of character codes. |
| 10054 |
|
| 10055 |
2013-08-05 Shiro Kawai <[email protected]> |
| 10056 |
|
| 10057 |
* lib/gauche/libutil.scm (library-has-module?): Quick fix to recognize |
| 10058 |
R7RS define-library form as well. The 'library' clause of cond-expand |
| 10059 |
relies on this procedure (via library-exists?) so it's critical to |
| 10060 |
handle R7RS here. |
| 10061 |
|
| 10062 |
2013-08-03 Shiro Kawai <[email protected]> |
| 10063 |
|
| 10064 |
* src/module.c, src/libmod.scm: Updated the list of builtin modules. |
| 10065 |
* ext/srfi/generate-srfi.scm: Autogenerate srfi/N.scm for supported |
| 10066 |
srfi-N to make (import (srfi N)) work in r7rs mode. |
| 10067 |
|
| 10068 |
2013-08-02 Shiro Kawai <[email protected]> |
| 10069 |
|
| 10070 |
* lib/srfi-106.scm: Added. Since srfi-106 is still a draft, the API |
| 10071 |
may be changed according to its final version. |
| 10072 |
|
| 10073 |
2013-08-01 Shiro Kawai <[email protected]> |
| 10074 |
|
| 10075 |
* src/core.c: Defined some feature identifiers specified in R7RS |
| 10076 |
Appendix B. (Not exhaustive yet). |
| 10077 |
|
| 10078 |
2013-07-30 Shiro Kawai <[email protected]> |
| 10079 |
|
| 10080 |
* src/main.c, lib/r7rs.scm: In R7RS toplevel mode, set the default |
| 10081 |
environment to #<module r7rs.user> instead of #<module user>. |
| 10082 |
Keeping #<module user> able to operate in Gauche mode is convenient |
| 10083 |
to evaluate .gaucherc in #<module user> regardless of whether Gauche |
| 10084 |
is invoked in -r7 or not. |
| 10085 |
We also define a variable *r7rs-mode* in #<module user> if invoked |
| 10086 |
with -r7, so that gauche.interactive can do extra set up if necessary. |
| 10087 |
* lib/gauche/interactive.scm: Modified accordingly. |
| 10088 |
|
| 10089 |
2013-07-28 Shiro Kawai <[email protected]> |
| 10090 |
|
| 10091 |
* src/vm.c (throw_continuation): Fixed a bug that failed to save |
| 10092 |
living continuations on stack when a ghost continuation is invoked, |
| 10093 |
which caused the conitnuation frames to be clobbered. |
| 10094 |
See the comment for the details. |
| 10095 |
|
| 10096 |
2013-07-26 Shiro Kawai <[email protected]> |
| 10097 |
|
| 10098 |
* src/number.c (Scm_SinPi, Scm_CosPi, Scm_TanPi): EXPERIMENTAL: |
| 10099 |
Added sinpi(x) = sin(x*pi) etc. to allow avoiding errors in |
| 10100 |
certain cases. From Scheme they're %sinpi etc. Not yet documented. |
| 10101 |
See if they're worth having. |
| 10102 |
* src/number.c (scm_expt): Use Scm_SinPi etc. so that |
| 10103 |
(expt <negative-integer> n+1/2) can return pure imaginary number. |
| 10104 |
|
| 10105 |
2013-07-18 Shiro Kawai <[email protected]> |
| 10106 |
|
| 10107 |
* lib/rfc/base64.scm (base64-decode, base64-encode): Support url-safe |
| 10108 |
keyword argument to encode/decode url-safe version of characters. |
| 10109 |
Patch from Rui Ueyama. |
| 10110 |
|
| 10111 |
2013-07-14 Shiro Kawai <[email protected]> |
| 10112 |
|
| 10113 |
* src/read.c: Support R7RS-style inline hex escape in symbol literals. |
| 10114 |
* src/char.c: Changed Scm_ReadXdigitsFromPort to recognize delimiter |
| 10115 |
of inline-hex escape. NB: Technically this changes ABI, but |
| 10116 |
the function isn't intended for public use and I doubt it's |
| 10117 |
used by extension packages. |
| 10118 |
|
| 10119 |
2013-07-06 Shiro Kawai <[email protected]> |
| 10120 |
|
| 10121 |
* src/gauche-init.scm: Retire gauche-init.scm. We can already |
| 10122 |
precompile Scheme initialization routine, so we no longer need to |
| 10123 |
keep it. And it is inconvenient for embedding use. |
| 10124 |
Various files are modified to remove reference to gauche-init.scm. |
| 10125 |
|
| 10126 |
* src/genconfig.in, src/paths.c, src/Makefile.in: No longer generate |
| 10127 |
gauche/arch.h; having architecture-dependent header file is just |
| 10128 |
an annoyance. Besides we don't really need to make the info in the |
| 10129 |
header file since those info can be retrieved through API at |
| 10130 |
runtime. This change removes preprocessor symbols GAUCHE_ARCH, |
| 10131 |
GAUCHE_LIB_DIR, GAUCHE_ARCH_DIR, GAUCHE_SITE_LIB_DIR and |
| 10132 |
GAUCHE_SITE_ARCH_DIR. |
| 10133 |
|
| 10134 |
2013-07-05 Shiro Kawai <[email protected]> |
| 10135 |
|
| 10136 |
* ext/tls: Updated to axTLS 1.4.9 |
| 10137 |
|
| 10138 |
2013-07-04 Shiro Kawai <[email protected]> |
| 10139 |
|
| 10140 |
* src/compile.scm: Support letrec*. |
| 10141 |
|
| 10142 |
2013-07-03 Shiro Kawai <[email protected]> |
| 10143 |
|
| 10144 |
* lib/gauche/common-macros.scm (dotimes, dolist): Support omission |
| 10145 |
of 'variable'. |
| 10146 |
|
| 10147 |
2013-07-02 Shiro Kawai <[email protected]> |
| 10148 |
|
| 10149 |
* src/libnum.scm (%log): Handle input even if it can't fit in |
| 10150 |
IEEE double e.g. (log (expt 2 2048)) => 616.5094311198334 |
| 10151 |
|
| 10152 |
2013-06-30 Shiro Kawai <[email protected]> |
| 10153 |
|
| 10154 |
* lib/gauche/cgen/stub.scm (define-cptr): Experimentally added |
| 10155 |
stub form to declare a foreign pointer class using ScmForeignPointer. |
| 10156 |
|
| 10157 |
2013-06-28 Shiro Kawai <[email protected]> |
| 10158 |
|
| 10159 |
* lib/gauche/vecutil.scm: Added. Supports R7RS vector-map and |
| 10160 |
vector-for-each. Also includes vector-tabulate. |
| 10161 |
* src/autoloads.scm: Autoload gauche.vecutil. |
| 10162 |
* lib/r7rs.scm: Changed accordingly. |
| 10163 |
|
| 10164 |
* ext/srfi/srfi-43.scm: Define vector-map etc. as an alias of |
| 10165 |
vector-map-with-index etc. |
| 10166 |
|
| 10167 |
2013-06-26 Shiro Kawai <[email protected]> |
| 10168 |
|
| 10169 |
* ext/text/unicode.scm (utf8->string, string->utf8): Added these |
| 10170 |
r7rs procedures here. |
| 10171 |
* lib/r7rs.scm: Use above procedures. |
| 10172 |
|
| 10173 |
2013-06-25 Shiro Kawai <[email protected]> |
| 10174 |
|
| 10175 |
* ext/dbm/dbm.ac: Added --with-dbm=DBM,... configure option, to |
| 10176 |
exclude some dbm libraries that would be compiled by default. |
| 10177 |
|
| 10178 |
2013-06-22 Shiro Kawai <[email protected]> |
| 10179 |
|
| 10180 |
* src/compile.scm (pass2/intermediate-lref-removal): Fixed a bug |
| 10181 |
that does incorrect transformation under existence of side-effects. |
| 10182 |
|
| 10183 |
2013-06-19 Shiro Kawai <[email protected]> |
| 10184 |
|
| 10185 |
* lib/srfi-0.scm (cond-expand): Support R7RS 'library' feature test. |
| 10186 |
* lib/r7rs.scm, lib/gauche/libutil.scm: Moded library-name->module-name |
| 10187 |
from r7rs to gauche.libutil, for it is needed by srfi-0. |
| 10188 |
|
| 10189 |
2013-06-15 Shiro Kawai <[email protected]> |
| 10190 |
|
| 10191 |
* src/compile.scm (pass1/open-include-file): Searches also |
| 10192 |
*load-path* for specified file. We now use find-load-file, |
| 10193 |
so the load-path-hook stuff can also work. |
| 10194 |
|
| 10195 |
* src/liblist.scm, libsrc/srfi-1.scm (concatenate, concatenate!, |
| 10196 |
append-reverse, append-reverse!, append-map, append-map!): |
| 10197 |
Further migration of srfi-1 procedures into core. |
| 10198 |
* lib/gauche/parseopt.scm: Removed dependency on srfi-1. |
| 10199 |
|
| 10200 |
2013-06-14 Shiro Kawai <[email protected]> |
| 10201 |
|
| 10202 |
* src/liblist.scm, libsrc/srfi-1.scm (count, reduce, reduce-right, |
| 10203 |
partition): Move from srfi-1.scm to liblist.scm, so that |
| 10204 |
gauche.procedure won't depend on srfi-1. |
| 10205 |
* lib/gauche/procedure.scm: Removed dependency on srfi-1. |
| 10206 |
|
| 10207 |
2013-06-12 Shiro Kawai <[email protected]> |
| 10208 |
|
| 10209 |
* src/compile.scm, src/libobj.scm, src/autoloads.scm, |
| 10210 |
lib/gauche/procedure.scm, lib/gauche/experimental/app.scm, |
| 10211 |
lib/gauche/cgen/precomp.scm: Flushed suspended changes and temporary |
| 10212 |
kludges to build 0.9.3 gauche by pre-0.9.2 gauche. |
| 10213 |
|
| 10214 |
2013-06-10 Shiro Kawai <[email protected]> |
| 10215 |
|
| 10216 |
* src/code.scm, src/libcode.scm (compiled-code-copy!): Added. |
| 10217 |
* lib/gauche/cgen/precomp.scm, lib/gauche/cgen/optimizer.scm: |
| 10218 |
Experimentally added extra optimization at precompile time |
| 10219 |
(it's off by default now). |
| 10220 |
|
| 10221 |
2013-06-09 Shiro Kawai <[email protected]> |
| 10222 |
|
| 10223 |
* lib/gauche/vm/insn-core.scm (vm-insn-size): Added. |
| 10224 |
|
| 10225 |
* ext/util/queue.scm (%mtqueue-overflow?): Bug fix from @tabe via |
| 10226 |
pullreq. It didn't return boolean value properly. |
| 10227 |
|
| 10228 |
2013-06-07 Shiro Kawai <[email protected]> |
| 10229 |
|
| 10230 |
* src/libcode.scm, src/compile.scm: Splitted VM code generation API |
| 10231 |
into gauche.vm.code module. |
| 10232 |
|
| 10233 |
* lib/gauche/cgen/precomp.scm (compile-toplevel-form): Execute export |
| 10234 |
operation during initialization when the compilation does not |
| 10235 |
produce *.sci file. |
| 10236 |
|
| 10237 |
2013-06-05 Shiro Kawai <[email protected]> |
| 10238 |
|
| 10239 |
* src/compile.scm (pass5/if-final): Micro-optimization to eliminate |
| 10240 |
one JUMP instruction in certain cases. |
| 10241 |
|
| 10242 |
* src/libio.scm (eof-object): Mark it :constant, so that the calls |
| 10243 |
would be inlined. |
| 10244 |
|
| 10245 |
2013-06-01 Shiro Kawai <[email protected]> |
| 10246 |
|
| 10247 |
* src/regexp.c (rc1_parse): Fixed a bug in backreference to the nested |
| 10248 |
group case (see the added tests for the details). |
| 10249 |
|
| 10250 |
2013-05-31 Shiro Kawai <[email protected]> |
| 10251 |
|
| 10252 |
* ext/Makefile.in: Reordered SUBDIRS: uvector must be built before |
| 10253 |
threads, since gauche.records used by threads now depends on uvector. |
| 10254 |
|
| 10255 |
* Makefile.in, ext/Makefile.in: Exits abnormally if any of submake |
| 10256 |
inside for loop fails. |
| 10257 |
|
| 10258 |
* lib/text/csv.scm (make-csv-reader): Rewrote in straightforward way. |
| 10259 |
It turned out the naive "read one char at a time, accumulate into a |
| 10260 |
list, and list->string to make a field" approach is 5x faster than |
| 10261 |
the previous string-scanning code. Also the port argument for |
| 10262 |
the returned reader is now optional. |
| 10263 |
|
| 10264 |
2013-05-30 Shiro Kawai <[email protected]> |
| 10265 |
|
| 10266 |
* lib/gauche/cgen/precomp.scm (compile-toplevel-form): Avoid emitting |
| 10267 |
the toplevel pattern CLOSURE - DEFINE - RET generated by toplevel |
| 10268 |
definitions. Instead we call Scm_MakeBind at initialization. |
| 10269 |
This reduces code vector size slightly. |
| 10270 |
|
| 10271 |
2013-05-25 Shiro Kawai <[email protected]> |
| 10272 |
|
| 10273 |
* various files: Removed unnecessary "use"-dependencies, and put |
| 10274 |
less-frequently used features into autoloads, in order to speed |
| 10275 |
up initial startup, especially for www.cgi. |
| 10276 |
libsrc/gauche/parameter.scm - autoload hook features |
| 10277 |
lib/rfc/mime.scm - splitted parts that needs gauche.vport |
| 10278 |
lib/gauche/portutil.scm, src/libio.scm - move port-tell and |
| 10279 |
port-position-prefix from portutil to libio. |
| 10280 |
|
| 10281 |
2013-05-24 Shiro Kawai <[email protected]> |
| 10282 |
|
| 10283 |
* lib/gauche/logical.scm (copy-bit-field): Fixed the argument order |
| 10284 |
to comply SRFI-60. THIS IS AN INCOMPATIBLE CHANGE. A note is |
| 10285 |
added to the manual entry about it. |
| 10286 |
|
| 10287 |
2013-05-22 Shiro Kawai <[email protected]> |
| 10288 |
|
| 10289 |
* src/libeval.scm (find-load-file): Experimentally allow to trigger |
| 10290 |
load hooks by "" in the PATHs list. Convenient to be used when |
| 10291 |
Scheme sources are embedded in the executing binary. |
| 10292 |
|
| 10293 |
2013-05-21 Shiro Kawai <[email protected]> |
| 10294 |
|
| 10295 |
* lib/gauche/cgen/literal.scm (c-safe-string-literal): replace '?' |
| 10296 |
in the string as well. A cheap workaround to avoid putting trigraph |
| 10297 |
in C string literal inadvertently. |
| 10298 |
|
| 10299 |
2013-05-20 Shiro Kawai <[email protected]> |
| 10300 |
|
| 10301 |
* lib/gauche/record.scm: Export <pseudo-record>. |
| 10302 |
|
| 10303 |
2013-05-18 Shiro Kawai <[email protected]> |
| 10304 |
|
| 10305 |
* lib/gauche/interactive.scm: Let #<module gauche> export history |
| 10306 |
variable, so that it can be imported to the r7rs REPL for the |
| 10307 |
convenience. |
| 10308 |
|
| 10309 |
2013-05-17 Shiro Kawai <[email protected]> |
| 10310 |
|
| 10311 |
* lib/gauche/record.scm: Support pseudo records for <list> and |
| 10312 |
uniform vectors. Support rtd-predicate for pseudo records. |
| 10313 |
|
| 10314 |
2013-05-16 Shiro Kawai <[email protected]> |
| 10315 |
|
| 10316 |
* src/load.c (Scm_RegisterPrelinked, Scm_DynLoad): Experimentally |
| 10317 |
added support for statically linking extensions. |
| 10318 |
* src/Makefile.in, ext/*/Makefile.in, src/gen-staticinit.scm: |
| 10319 |
Changes to support creating static linking version of libgauche. |
| 10320 |
|
| 10321 |
2013-05-15 Shiro Kawai <[email protected]> |
| 10322 |
|
| 10323 |
* lib/gauche/procedure.scm (generator-find): Added. |
| 10324 |
* lib/gauche/generator.scm (gbuffer-filter): Added. |
| 10325 |
|
| 10326 |
* lib/rfc/http.scm (%http-request-adaptor): If the caller gives :sink |
| 10327 |
or :flusher, we mandate both should be given. Giving just either |
| 10328 |
one should be rare case (and it's not likely to be working in the |
| 10329 |
current version---suppose you pass a file port to sink but not |
| 10330 |
giving flusher; then the current code raises an error, since the |
| 10331 |
adaptor provides the default flusher that calls get-output-string |
| 10332 |
on the sink.) It is better to mandate both, so that we can catch |
| 10333 |
caller's misspelling of :sink or :flusher. |
| 10334 |
|
| 10335 |
2013-05-11 Shiro Kawai <[email protected]> |
| 10336 |
|
| 10337 |
* ext/net/net.c: Plugged resource (fd) leak on Windows. We need to |
| 10338 |
close fds opened by _open_osfhandle, but the trick is that we only |
| 10339 |
can do it at the time when the socket is closed. |
| 10340 |
|
| 10341 |
* src/number.c (Scm_FloatSign, print_double, scm_div): Basic support |
| 10342 |
for negative inexact zero. We actually have the representation of |
| 10343 |
-0.0 internally, but didn't have printer honor it. Most calculations |
| 10344 |
just works because libc does the job. However, we need to |
| 10345 |
distinguish positive-zero imaginary part and negative-zero imaginary |
| 10346 |
part, which requires some surgery since we implicitly coerce complex |
| 10347 |
numbers with zero imaginary part to real numbers. |
| 10348 |
* src/libnum.scm (%log): Likewise. (log 0.0) ==> -inf.0 but |
| 10349 |
(log -0.0) ==> -inf.0+3.141592653589793i. |
| 10350 |
|
| 10351 |
2013-05-10 Shiro Kawai <[email protected]> |
| 10352 |
|
| 10353 |
* lib/gauche/interactive.scm: Imports R7RS-small standard libraries |
| 10354 |
when gosh is invoked in interactive r7rs mode, so that they are |
| 10355 |
available in REPL. |
| 10356 |
|
| 10357 |
2013-05-06 Shiro Kawai <[email protected]> |
| 10358 |
|
| 10359 |
* src/read.c (read_sharp_word): Support #true and #false. This |
| 10360 |
also changes how the #-word is delimited: #t and #f used to delimit |
| 10361 |
themselves (except #f8, #f16 and #f32), but now we read a word |
| 10362 |
then match the token. So, #f.1 used to be read as #f and 0.1, |
| 10363 |
but now it raises an error saying "invalid #-token: #f.1". |
| 10364 |
I don't think this causes a problem in existing code, but there |
| 10365 |
may be a datafile that relies on the old behavor; we'll watch. |
| 10366 |
Note that this isn't fully R7RS compatible yet. The way R7RS |
| 10367 |
delimits tokens is different (e.g. we read "#false#false" as two |
| 10368 |
boolean falses, but iiuc, R7RS reader should read it as one token |
| 10369 |
and raise an error of invalid token.) |
| 10370 |
This also changes how the tokens with hash signs are read; |
| 10371 |
".#" used to be read as a symbol, but now it is an error. |
| 10372 |
See the comment in 'Symbols and Numbers' section of the code. |
| 10373 |
Again, I doubt it causes any problem in existing code; and I worry |
| 10374 |
less about datafiles, since when such weird symbols are written, |
| 10375 |
it is |-escaped, so it can read back with the current reader. |
| 10376 |
|
| 10377 |
2013-05-05 Shiro Kawai <[email protected]> |
| 10378 |
|
| 10379 |
* src/libsym.scm (symbol=?): Added for R7RS. |
| 10380 |
* src/libbool.scm (boolean=?): Added for R7RS. |
| 10381 |
|
| 10382 |
* src/liblist.scm (list-set!): Make it built-in. |
| 10383 |
|
| 10384 |
* libsrc/file/util.scm (delete-file, remove-file): Added for R7RS |
| 10385 |
compatibility. |
| 10386 |
* lib/r7rs.scm (delete-file): Changed accordingly. |
| 10387 |
|
| 10388 |
2013-05-04 Shiro Kawai <[email protected]> |
| 10389 |
|
| 10390 |
* src/gauche/writer.h: Splitted writer related decls. |
| 10391 |
|
| 10392 |
* src/main.c (main): Experimentally support -r7 option to start up |
| 10393 |
gosh with R7RS environment as default. Currently this is mainly |
| 10394 |
for the convenience of developing R7RS compatibility code. |
| 10395 |
|
| 10396 |
* lib/gauche/numerical.scm (floor/ etc.): Added R7RS integer division |
| 10397 |
operators. |
| 10398 |
(square): ditto. |
| 10399 |
* autoloads.scm: Changed accordingly. |
| 10400 |
|
| 10401 |
* lib/r7rs.scm (define-library): Support R7RS define-library. |
| 10402 |
* autoloads.scm (define-library): Autoload define-library so that |
| 10403 |
Gauche native code can use R7RS library seamlessly. |
| 10404 |
|
| 10405 |
2013-05-03 Shiro Kawai <[email protected]> |
| 10406 |
|
| 10407 |
* src/libmod.scm, src/module.c (module-name->path, path->module-name): |
| 10408 |
Moved definition of these two from C to Scheme, and supports |
| 10409 |
module name components to have dot in it. It won't so much useful |
| 10410 |
from Gauche, but R7RS library name may have (foo.bar baz) and |
| 10411 |
we need to map it to Gauche's module name. |
| 10412 |
|
| 10413 |
* lib/r7rs.scm, lib/scheme/base.scm: Start adding R7RS compatibility |
| 10414 |
stuff. |
| 10415 |
|
| 10416 |
* src/load.c (Scm_Require): Make sure we set the current module |
| 10417 |
to #<module gauche> when actually loading the file. This was |
| 10418 |
never explicitly stated, but we always assumed so. It doesn't |
| 10419 |
make sense to use caller's current module, since the caller |
| 10420 |
doesn't know if the file will actually be loaded or not, so |
| 10421 |
there's no guarantee that the current module is in effect. |
| 10422 |
This change might cause an incompatibility in the code that |
| 10423 |
took advantage of the old require behavior, but I doubt such |
| 10424 |
code exists. |
| 10425 |
(Scm_ResolveAutoload): The exception of above 'require' spec |
| 10426 |
is autoloading; we do need to load the file into a specific |
| 10427 |
module. |
| 10428 |
|
| 10429 |
2013-05-01 Shiro Kawai <[email protected]> |
| 10430 |
|
| 10431 |
* src/libsys.scm: Feature identifiers gauche.sys.setenv, |
| 10432 |
gauche.sys.unsetenv, gauche.sys.clearenv, gauche.sys.sigwait, |
| 10433 |
and gauche.sysgetloadavg weren't defined properly. |
| 10434 |
|
| 10435 |
2013-04-28 Shiro Kawai <[email protected]> |
| 10436 |
|
| 10437 |
* src/liblist.scm (take-right*): When the list is long and k is |
| 10438 |
small, try not to keep entire list on memory - would help when |
| 10439 |
taking the last k elements of a lazy sequence. Not an ideal |
| 10440 |
solution, but would work for the time being. |
| 10441 |
|
| 10442 |
2013-04-27 Shiro Kawai <[email protected]> |
| 10443 |
|
| 10444 |
* src/liblist.scm (length<=?): Added. |
| 10445 |
|
| 10446 |
2013-04-25 Shiro Kawai <[email protected]> |
| 10447 |
|
| 10448 |
* src/module.c (Scm_ExportSymbols): Fixed a bug that searched |
| 10449 |
external table with internal name (patch from enami). |
| 10450 |
Also added a check to see if 'export' overrides the previous exports. |
| 10451 |
|
| 10452 |
2013-04-24 Shiro Kawai <[email protected]> |
| 10453 |
|
| 10454 |
* ext/sparse/sparse.scm: Added generalized setter to |
| 10455 |
sparse-table-ref and sparse-vector-ref. |
| 10456 |
|
| 10457 |
2013-04-23 Shiro Kawai <[email protected]> |
| 10458 |
|
| 10459 |
* src/gauche/module.h (ScmModule), src/gauche/gloc.h (ScmGloc), |
| 10460 |
src/module.c, src/gloc.c: Changed the way exported bindings |
| 10461 |
are handled. Instead of having a flag in GLOC, we now have |
| 10462 |
to hashtables in ScmModule, one for internal (all) bindings and |
| 10463 |
another for exported bindings. This allows us to implement |
| 10464 |
export-time renaming easily. |
| 10465 |
This changes the struct layout of ScmModule and ScmGloc, and |
| 10466 |
IT MIGHT BREAK ABI COMPATIBILITY, although both of those structs |
| 10467 |
are always allocated at runtime and accessed via API from |
| 10468 |
outside of libgauche, I expect it won't affect much. |
| 10469 |
The 'exported' list in ScmModule is dropped; if you want a |
| 10470 |
list of exported symbols, call Scm_ModuleExports() to calculate |
| 10471 |
the list. |
| 10472 |
NB: Scm_ExportSymbols no longer returns a list of exported symbols. |
| 10473 |
* src/module.c (Scm_ExportSymbols): Allow export-time renaming, |
| 10474 |
as specified in R[67]RS. |
| 10475 |
|
| 10476 |
2013-04-21 Shiro Kawai <[email protected]> |
| 10477 |
|
| 10478 |
* src/compile.scm: Added include-ci support, and allows multiple |
| 10479 |
files with include/include-ci, as R7RS. |
| 10480 |
* doc/coresyn.texi: Added docs for include and include-ci. |
| 10481 |
|
| 10482 |
2013-04-19 Shiro Kawai <[email protected]> |
| 10483 |
|
| 10484 |
* src/libobj.scm (object-apply): Made char-set applicable. |
| 10485 |
|
| 10486 |
2013-04-18 Shiro Kawai <[email protected]> |
| 10487 |
|
| 10488 |
* lib/dbm.scm (call-with-iterator, coerce-to): Added missing |
| 10489 |
collection framework support to dbm. |
| 10490 |
|
| 10491 |
2013-04-17 Shiro Kawai <[email protected]> |
| 10492 |
|
| 10493 |
* src/libeval.scm (command-line): Added R7RS-ish command-line access |
| 10494 |
procedure. This is better than old *program-name*/*argv* variables. |
| 10495 |
* src/core.c (Scm_InitCommandLine): A convenience C API to initialize |
| 10496 |
command-line, *program-name* and *argv* from C code. |
| 10497 |
* src/main.c: Changed to use Scm_InitCommandLine. |
| 10498 |
* lib/gauche/logger.scm: Changed accordingly. |
| 10499 |
|
| 10500 |
2013-04-16 Shiro Kawai <[email protected]> |
| 10501 |
|
| 10502 |
* src/regexp.c (regexp-compile): Fixed a bug that failed to handle |
| 10503 |
named subgroups and unordered group counts in the input AST. |
| 10504 |
The named subgroups are handled in parser, so the rxs created by |
| 10505 |
regexp-compile from AST didn't have the info. Now rc_setup_context |
| 10506 |
is fixed to deal with named subgroups. There was another bug |
| 10507 |
in rc_setup_context that made group ordering not to work. |
| 10508 |
|
| 10509 |
2013-04-15 Shiro Kawai <[email protected]> |
| 10510 |
|
| 10511 |
* lib/control/thread-pool.scm (terminate-all!): Fixed a timing hazard |
| 10512 |
that could cause terminate-all! to throw a 'queue full' exception. |
| 10513 |
* test/control.scm: Adjusted pool termination test for robustness. |
| 10514 |
|
| 10515 |
* lib/gauche/dictionary.scm: Revised. Provided fallback methods |
| 10516 |
for optional interface. A new macro define-dict-interface is |
| 10517 |
provided to define dictionary API concisely. |
| 10518 |
* lib/dbm.scm, ext/sparse/sparse.scm: Use define-dict-interface |
| 10519 |
to define dict interfaces. |
| 10520 |
* lib/util/trie.scm: Added dictionary interface to <trie>. |
| 10521 |
|
| 10522 |
2013-04-12 Shiro Kawai <[email protected]> |
| 10523 |
|
| 10524 |
* src/*, lib/gauche/cgen/type.scm (ScmSmallInt): Bulk fix to avoid |
| 10525 |
integer overflow in indexes that accepts <fixnum>. We used to |
| 10526 |
map <fixnum> to int, but that could cause overflow on 64bit |
| 10527 |
architecture. We changed the mapping to ScmSmallInt, and changed |
| 10528 |
vector and string APIs to use it instead of int for indexes. |
| 10529 |
(NB: We still have 2G limit on string size & length for ABI |
| 10530 |
compatibility. Check codes are inserted to detect out-of-range |
| 10531 |
case. See src/string.c for the details.) |
| 10532 |
POSSIBLY INCOMPATIBLE CHANGE: We also enhanched |
| 10533 |
Scm_GetInteger()-family API to cover 8-,16-,32-bit integers, and |
| 10534 |
made it throws an error when the input is out-of-range. The old |
| 10535 |
Scm_GetInteger[U][64]() API clamped the out-of-range arg. We think |
| 10536 |
clamping is unsafe and shouldn't be the default behavior. This |
| 10537 |
can break code that relies on the clamping behavior. |
| 10538 |
|
| 10539 |
2013-04-09 Shiro Kawai <[email protected]> |
| 10540 |
|
| 10541 |
* ext/dbm/gdbm.scm (gdbm-strerror): Avoid using 'errno' as a variable, |
| 10542 |
for it may be a macro. |
| 10543 |
* src/write.c (Scm_Vprintf): Handle 'l' modifier properly when we use |
| 10544 |
va_arg. |
| 10545 |
* lib/gauche/cgen/type.scm: <fixnum> needs to be mapped to C long, |
| 10546 |
not int. It's surprising that we've been missed this for long time. |
| 10547 |
* src/number.c (Scm_Ash): Changed the second arg to long from int, |
| 10548 |
for this can be called via exact_expt and the second arg can be |
| 10549 |
outside of the range of int. To prevent a silly bug gobbles huge |
| 10550 |
amount of memory, set a limit in the positive shift amount. |
| 10551 |
|
| 10552 |
2013-03-30 Shiro Kawai <[email protected]> |
| 10553 |
|
| 10554 |
* src/vm.c (throw_cont_body): Fixed bug that failed to set vm->numVals |
| 10555 |
when the continuation gets 0 args. |
| 10556 |
|
| 10557 |
2013-03-19 Shiro Kawai <[email protected]> |
| 10558 |
|
| 10559 |
* ext/binary/io.scm (write-ber-integer): Fixed a bug that ignores the |
| 10560 |
port argument. Patch from Nozomi Isozaki. |
| 10561 |
* src/libnum.scm (%exact-integer-sqrt): Fixed the range to be used |
| 10562 |
FP sqrt. If input is >= 2^52, the result of FP sqrt can be rounded. |
| 10563 |
|
| 10564 |
2013-03-14 Shiro Kawai <[email protected]> |
| 10565 |
|
| 10566 |
* lib/gauche/test/generative.scm: Initial check in. API is still |
| 10567 |
fluid. |
| 10568 |
|
| 10569 |
2013-03-12 Shiro Kawai <[email protected]> |
| 10570 |
|
| 10571 |
* data/random.scm: Added initial version. |
| 10572 |
|
| 10573 |
2013-03-11 Shiro Kawai <[email protected]> |
| 10574 |
|
| 10575 |
* configure.ac, lib/gauche/config.h.in: Added check for lgamma and |
| 10576 |
tgamma. |
| 10577 |
* src/libnum.scm, lib/gauche/numerical.scm, src/autoloads.scm |
| 10578 |
(gamma, lgamma): Added. We use system's tgamma and lgamma |
| 10579 |
if available, and alternative approximation if not. |
| 10580 |
* test/number.scm: Tests for alternative gamma function implementation; |
| 10581 |
this is commented out by default, for it requires system's |
| 10582 |
tgamma and lgamma. |
| 10583 |
* src/libsys.scm: Moved math.h functions (fmod, frexp, ldexp, log10) |
| 10584 |
to libnum.scm. |
| 10585 |
|
| 10586 |
2013-02-19 Shiro Kawai <[email protected]> |
| 10587 |
|
| 10588 |
* lib/math/prime.scm (mc-find-divisor-1): Fixed a bug that made |
| 10589 |
the algorithm loop unnecessarily long. |
| 10590 |
(mc-factorize): Removed :num-tries arg, since now mc-find-divisor-1 |
| 10591 |
can take much longer for inputs that's hard to factorize, so limiting |
| 10592 |
execution time by :num-tries doesn't have much use except preventing |
| 10593 |
infinite loop in case the input has a large prime factor. |
| 10594 |
Practical applications would need some timeout mechanism anyway so |
| 10595 |
it wouldn't be a show-stopper. We'll address the infinite loop issue |
| 10596 |
by implementing deterministic primality test in future. |
| 10597 |
|
| 10598 |
2013-02-16 Shiro Kawai <[email protected]> |
| 10599 |
|
| 10600 |
* src/autoloads.scm (sinh, cosh, tanh, asinh, acosh, atanh): No longer |
| 10601 |
needed since they have been moved to libnum.scm. |
| 10602 |
|
| 10603 |
2013-02-14 Shiro Kawai <[email protected]> |
| 10604 |
|
| 10605 |
* src/number.c, src/gauche/number.h (Scm_PrintNumber): New API for more |
| 10606 |
general handling of number to external representation conversion. |
| 10607 |
(Scm_NumberToString): Rewritten to use Scm_PrintNumber internally. |
| 10608 |
The last argument is changed from 'int use_upper' to |
| 10609 |
'ScmNumberFormat*'. It is an incompatible change, but we hope almost |
| 10610 |
all calls of this function had specified 0 or FALSE in the last arg |
| 10611 |
and expect it to work (if not, recompilation would take care of it.) |
| 10612 |
(Scm_StringToNumber): The last arg is changed for 'int strict' to |
| 10613 |
'u_long flags'. Again, this is an incompatible change, but we no |
| 10614 |
longer use this arg at this moment (the semantics of 'strict' wasn't |
| 10615 |
well defined, and deemed unnecessary---for real strict check we need |
| 10616 |
different semantics.) Thus existing code should work. |
| 10617 |
Note that existing cgen-generated code may contain a call with |
| 10618 |
the third arg to be TRUE. |
| 10619 |
* src/libnum.scm, src/read.c, src/regexp.c, src/write.c, |
| 10620 |
lib/gauche/cgen/literal.scm: Changed accordingly. |
| 10621 |
|
| 10622 |
2013-02-06 Shiro Kawai <[email protected]> |
| 10623 |
|
| 10624 |
* lib/gauche/lazy.scm (lconcatenate): Added. |
| 10625 |
|
| 10626 |
2013-02-05 Shiro Kawai <[email protected]> |
| 10627 |
|
| 10628 |
* lib/gauche/regexp.scm (rxmatch-substrings, rxmatch-positions): Added. |
| 10629 |
* src/librx.scm (rxmatch-named-groups): Added for completeness. |
| 10630 |
* src/autoloads.scm, test/regexp.scm: Changed accordingly. |
| 10631 |
|
| 10632 |
2013-01-28 Shiro Kawai <[email protected]> |
| 10633 |
|
| 10634 |
* src/string.c (Scm_GetStringConst), |
| 10635 |
lib/gauche/cgen/type.scm (<const-cstring>): Instead of having |
| 10636 |
a special 'safe' version that checks NUL character, we made the |
| 10637 |
default GetStringConst safe. It doesn't make much sense anyway |
| 10638 |
to have two versions, for there's no way to use beyond NUL byte |
| 10639 |
of a C string returned by Scm_GetStringConst---you need a string |
| 10640 |
length separately, and Scm_GetStringContent is for that purpose. |
| 10641 |
|
| 10642 |
2013-01-24 Shiro Kawai <[email protected]> |
| 10643 |
|
| 10644 |
* src/string.c (Scm_StringSplitByCharWithLimit), |
| 10645 |
lib/gauche/stringutil.scm (string-split): Supported optional limit |
| 10646 |
argument, based on Bizenn's patch. |
| 10647 |
|
| 10648 |
2013-01-23 Shiro Kawai <[email protected]> |
| 10649 |
|
| 10650 |
* src/string.c (string_scan, string_scan_reverse): Use optimized |
| 10651 |
scan for utf-8 multibyte-multibyte case and when the searched |
| 10652 |
string is a single byte. The effect is significant. |
| 10653 |
|
| 10654 |
2013-01-21 Shiro Kawai <[email protected]> |
| 10655 |
|
| 10656 |
* src/libnum.scm (twos-exponent, twos-exponent-factor): Renamed |
| 10657 |
power-of-two? to twos-exponent, for now we returns more meaningful |
| 10658 |
result than just a booelan. The previous twos-exponent is renamed |
| 10659 |
to twos-exponent-factor. |
| 10660 |
|
| 10661 |
2013-01-16 Shiro Kawai <[email protected]> |
| 10662 |
|
| 10663 |
* src/compile.scm (pass1): Made the compiler reject too may literal |
| 10664 |
arguments that wouldn't fit in VM stack, instead of SEGVing at |
| 10665 |
runtime. |
| 10666 |
|
| 10667 |
2013-01-14 Shiro Kawai <[email protected]> |
| 10668 |
|
| 10669 |
* src/bignum.c (Scm_BignumRemSI): Avoid unnecessary allocation of |
| 10670 |
bignums when calculating modulo/remainder of a bignum by a fixnum. |
| 10671 |
This makes (modulo <bignum> <fixnum>) about 3x faster, though |
| 10672 |
the practical observable effects is much smaller unless the |
| 10673 |
program specifically calls the specific combination. |
| 10674 |
|
| 10675 |
2013-01-09 Shiro Kawai <[email protected]> |
| 10676 |
|
| 10677 |
* src/compile.scm (pass5/prepare-args): Fixed incorrect stack |
| 10678 |
estimation that caused stack overrun. |
| 10679 |
|
| 10680 |
* src/lazy.c (Scm_Force): Fixed leak that prevented tail-recursive |
| 10681 |
lazy loop consumes unbounded memory (regression introduced |
| 10682 |
between 0.9.2 and 0.9.3.) |
| 10683 |
|
| 10684 |
2013-01-06 Shiro Kawai <[email protected]> |
| 10685 |
|
| 10686 |
* lib/util/digest.scm, lib/rfc/hmac.scm, ext/digest/sha.scm: |
| 10687 |
Let digest algorithm metacless have the default block size |
| 10688 |
to be used in HMAC. HMAC needs to know it to do appropriate |
| 10689 |
preprocessing of the key. In old days block size is fixed |
| 10690 |
to 64 bytes, but now sha384/512 insists 128 bytes. |
| 10691 |
|
| 10692 |
* src/compile.scm (case): Fixed empty items in a case clause. |
| 10693 |
Patch from leque. |
| 10694 |
|
| 10695 |
2013-01-05 Shiro Kawai <[email protected]> |
| 10696 |
|
| 10697 |
* lib/math/prime.scm: Added jacobi, totient and bpsw-prime?. |
| 10698 |
(mc-factorize): Improved using bpsw-prime? to bail out with |
| 10699 |
large primes. |
| 10700 |
(naive-factorize): Made memoization thread-safe. |
| 10701 |
|
| 10702 |
* src/libnum.scm (twos-exponent, power-of-two?): Added. These are |
| 10703 |
trivial to write in Scheme, but usually they are wanted in optimized |
| 10704 |
code, and I've seen it enough to include a native, fast version. |
| 10705 |
|
| 10706 |
2013-01-04 Shiro Kawai <[email protected]> |
| 10707 |
|
| 10708 |
* lib/math/prime.scm: Exposed small-prime?. |
| 10709 |
|
| 10710 |
2013-01-03 Shiro Kawai <[email protected]> |
| 10711 |
|
| 10712 |
* lib/gauche/cgen/cise.scm (.type): Added (.type typename) to embed |
| 10713 |
type names in some context; e.g. the argument of sizeof. |
| 10714 |
* ext/uvector/uvlib.stub.tmpl (TAGvector-multi-copy!): Added. |
| 10715 |
* lib/math/prime.scm: Fix reset-primes (do not return |
| 10716 |
the value of *primes*; othewise running (reset-primes) on REPL |
| 10717 |
would cause a trouble), small-integer-prime? (need to handle 2 |
| 10718 |
and 3 specifically. Also make it return #f for large numbers). |
| 10719 |
Added factorization procedures, naive-factorize and mc-factorize. |
| 10720 |
|
| 10721 |
2013-01-02 Shiro Kawai <[email protected]> |
| 10722 |
|
| 10723 |
* src/libnum.scm (exact-integer?): Added. |
| 10724 |
* lib/gauche/numerical.scm (expt-mod): Added. |
| 10725 |
|
| 10726 |
2012-12-23 Shiro Kawai <[email protected]> |
| 10727 |
|
| 10728 |
* src/vminsn.scm (GSET): Missing FLONUM_ENSURE_MEM caused flonum |
| 10729 |
assigned to a global variable to be overwritten. |
| 10730 |
|
| 10731 |
2012-11-20 Shiro Kawai <[email protected]> |
| 10732 |
|
| 10733 |
* lib/gauche/process.scm (%prepare-remote): Fixed regexp to recognize |
| 10734 |
hostname (thanks to BIZENN). |
| 10735 |
|
| 10736 |
2012-11-19 Shiro Kawai <[email protected]> |
| 10737 |
|
| 10738 |
* src/signal.c (Scm_SigCheck), |
| 10739 |
ext/threads/threads.c (wait_for_termination): Fixed timing hazard |
| 10740 |
when a thread is killed via pthread_kill(). The hazard was visible |
| 10741 |
on cygwin. |
| 10742 |
|
| 10743 |
2012-11-18 Shiro Kawai <[email protected]> |
| 10744 |
|
| 10745 |
* src/class.c (Scm_MakeForeignPointer): Make the identity hashtable |
| 10746 |
lookup thread-safe. Added Scm_MakeForeignPointerWithAttr (see |
| 10747 |
the comment; the attributes should be used mostly in read-only |
| 10748 |
manner. |
| 10749 |
(Scm_ForeignPointerAttrSet): Made it thread-safe. Not tuned for |
| 10750 |
performance, but modifying attrs are not encouraged anyway. |
| 10751 |
* src/libmisc.scm (foreign-pointer-attribute-set!): Rename it with |
| 10752 |
bang for the consistency. Keep old name (no bang) for the backward |
| 10753 |
compatibility. |
| 10754 |
* src/test-extra.c, src/libextra.scm, test/capi.scm: Added |
| 10755 |
to test stuff that aren't exposed to Scheme by default. |
| 10756 |
|
| 10757 |
2012-11-01 Shiro Kawai <[email protected]> |
| 10758 |
|
| 10759 |
* lib/file/filter.scm (file-filter): Added :leave-unchanged option, |
| 10760 |
allow #t to :temporary-file option. |
| 10761 |
(file-filter-fold, file-filter-map, file-filter-for-each): Added. |
| 10762 |
|
| 10763 |
2012-10-29 Shiro Kawai <[email protected]> |
| 10764 |
|
| 10765 |
* src/read.c (read_reference): Reject indeterminate read reference, |
| 10766 |
e.g. #0=#0#. |
| 10767 |
|
| 10768 |
* src/write.c (write_walk, write_ss_rec): Avoid recursion, for it |
| 10769 |
may bust the C stack when dealing with deeply nested structures. |
| 10770 |
|
| 10771 |
2012-10-25 Shiro Kawai <[email protected]> |
| 10772 |
|
| 10773 |
* ext/peg/peg.scm (peg-run-parser): Let it return the "rest of the |
| 10774 |
input" as the second value for the generality. This is an |
| 10775 |
incompatible change. |
| 10776 |
* lib/rfc/json.scm (parse-json*): Added. |
| 10777 |
|
| 10778 |
2012-10-24 Shiro Kawai <[email protected]> |
| 10779 |
|
| 10780 |
* ext/peg/peg.scm ($fmap): Experimentally added functor interface. |
| 10781 |
($do [x parser1] [y parser2] ($return (f x y))) can be writtern |
| 10782 |
as ($fmap f parser1 parser2). See how it works. |
| 10783 |
* lib/rfc/json.scm (json-array-handler, json-object-handler) |
| 10784 |
(json-special-handler): Make json array|object -> Scheme |
| 10785 |
mapping customizable. |
| 10786 |
(construct-json): Generalized array and object handling: Now |
| 10787 |
any <dictionary> instance is mapped to json object (and its keys |
| 10788 |
can be anything, converted by x->string), and any <sequence> |
| 10789 |
except strings and lists is mapped to json array. |
| 10790 |
Above two enhancements are inspired by Teppei Hamada's |
| 10791 |
Gauche-text-json package (http://teppey.github.com/Gauche-text-json/). |
| 10792 |
|
| 10793 |
2012-10-22 Shiro Kawai <[email protected]> |
| 10794 |
|
| 10795 |
* libsrc/util/match.scm (gendefine): Fixed match-define expansion |
| 10796 |
(patch from rallentando). |
| 10797 |
|
| 10798 |
* src/gauche/float.h (SCM_FP_ENSURE_DOUBLE_PRECISION_BEGIN), |
| 10799 |
(SCM_FP_ENSURE_DOUBLE_PRECISION_END): A compatibility layer |
| 10800 |
to tweak FPU control register. |
| 10801 |
* src/number.c (Scm_GetDouble): Make sure ratnum -> flonum |
| 10802 |
routine uses IEEE double, not x87 extended double |
| 10803 |
(so far, on MinGW and Linux.) |
| 10804 |
|
| 10805 |
2012-10-17 Shiro Kawai <[email protected]> |
| 10806 |
|
| 10807 |
* src/string.c (Scm_GetStringConstSafe), |
| 10808 |
lib/gauche/cgen/type.c (<const-cstring-safe>): Converting Scheme |
| 10809 |
string to C string with extra check of NUL character. This should |
| 10810 |
be used to obtain strings to be passed to system procedures |
| 10811 |
(e.g. pathnames for file operations) to avoid security risk. |
| 10812 |
* src/libio.scm (%open-input-file, %open-output-file), |
| 10813 |
src/libsys.scm (sys-remove, sys-rename, sys-system, sys-setenv, |
| 10814 |
sys-unsetenv, sys-stat, sys-lstat, sys-mkfifo, file-exists?, |
| 10815 |
file-is-regular?, file-is-directory?, sys-utime, sys-access, |
| 10816 |
sys-chdir, sys-chmod, sys-chown, sys-lchown, sys-link, sys-mkdir, |
| 10817 |
sys-rmdir, sys-unlink, sys-truncate, sys-symlink, sys-readlink): |
| 10818 |
Use <const-cstring-safe>. |
| 10819 |
|
| 10820 |
2012-10-07 Shiro Kawai <[email protected]> |
| 10821 |
|
| 10822 |
* src/number.c: Raises an error for division by exact zero, instead |
| 10823 |
of coercing it to inexact; R5RS allows implicit coercing, but R6RS |
| 10824 |
explicitly requires raising error. Patch from leque. |
| 10825 |
Also making 1/0 an error, while we still allow #i1/0 => +inf.0. |
| 10826 |
(scm_div): Also fixed (/ <compnum> <zero>) cases. Patch from leque. |
| 10827 |
|
| 10828 |
2012-09-30 Shiro Kawai <[email protected]> |
| 10829 |
|
| 10830 |
* lib/gauche/cgen/literal.scm: Temporarily replaced refereces of expt |
| 10831 |
for %expt, otherwise compiling HEAD with 0.9.3.3 could trigger |
| 10832 |
autoload of expt, while it is no longer in gauche/numerical.scm |
| 10833 |
in the current source tree. We can revert it after 0.9.4 release. |
| 10834 |
|
| 10835 |
* src/number.c (Scm_Exact), lib/gauche/numerical.scm (real->rational): |
| 10836 |
Let 'exact' return the simplest rational within the precision of |
| 10837 |
the flonum, instead of the dumb rationalization. E.g. |
| 10838 |
(exact (/ 3.0)) => 1/3 instead of 6004799503160661/18014398509481984. |
| 10839 |
The calculation is implemented in real->rational, and Scm_Exact |
| 10840 |
calls it when needed. |
| 10841 |
* src/libnum.scm, lib/gauche/numerical.scm: Moved R5RS procedures |
| 10842 |
from the latter to the former. |
| 10843 |
* src/autoloads.scm: Changed accordingly. |
| 10844 |
|
| 10845 |
2012-09-29 Shiro Kawai <[email protected]> |
| 10846 |
|
| 10847 |
* lib/gauche/cgen/literal.scm (define-cgen-literal): Fixed complex |
| 10848 |
literal generation when real-part and/or imag-part contains |
| 10849 |
NaN or infinities. |
| 10850 |
|
| 10851 |
2012-09-28 Shiro Kawai <[email protected]> |
| 10852 |
|
| 10853 |
* lib/gauche/numerical.scm (rationalize, real->rational): Factored |
| 10854 |
out more general rationalization algorithm as real->rational, |
| 10855 |
and implemented rationalize on top of it. Also fixed the case |
| 10856 |
when e >= 1 in rationalize. |
| 10857 |
|
| 10858 |
2012-09-24 Shiro Kawai <[email protected]> |
| 10859 |
|
| 10860 |
* lib/gauche/numerical.scm (rationalize, continued-fraction): Added. |
| 10861 |
|
| 10862 |
2012-09-07 Shiro Kawai <[email protected]> |
| 10863 |
|
| 10864 |
* src/gauche/treeutil.scm (make-tree-map): Allow a single 'compare' |
| 10865 |
procedure instead of '=' and '<'. |
| 10866 |
|
| 10867 |
2012-08-28 Shiro Kawai <[email protected]> |
| 10868 |
|
| 10869 |
* src/read.c, src/libio.scm, src/main.c, src/compile.scm, |
| 10870 |
src/gauche/vm.h: *HIGHLY EXPERIMENTAL*: Support srfi-105 draft |
| 10871 |
cexpr to try it out. This feature may be changed incompatibly |
| 10872 |
at any time, according to how the srfi will turn out. |
| 10873 |
|
| 10874 |
2012-08-04 Shiro Kawai <[email protected]> |
| 10875 |
|
| 10876 |
* lib/gauche/generator.scm (gmerge): Added. |
| 10877 |
|
| 10878 |
2012-07-25 Shiro Kawai <[email protected]> |
| 10879 |
|
| 10880 |
* lib/rfc/http.scm (receive-body-chunked): Rewrote to avoid using |
| 10881 |
shift/reset. The naive use of delimited continuation won't work |
| 10882 |
if the caller also tries to use delimited continuations. |
| 10883 |
|
| 10884 |
2012-07-21 Shiro Kawai <[email protected]> |
| 10885 |
|
| 10886 |
* src/vm.c (Scm_VMCallPC): Fixed a bug that a valid partial |
| 10887 |
continuation usage caused "attempt to return from ghost |
| 10888 |
continuation" error when the captured partial continuation |
| 10889 |
was empty. |
| 10890 |
|
| 10891 |
* src/number.c (Scm_IntegerP): Fixed (integer? +inf.0) => #t etc. |
| 10892 |
|
| 10893 |
2012-07-20 Shiro Kawai <[email protected]> |
| 10894 |
|
| 10895 |
* src/liblist.scm (iota): Reject if count is non-integer. And even |
| 10896 |
if count is inexact, we still return exact numbers if start and step |
| 10897 |
are exact. |
| 10898 |
* src/liblazy.scm (liota, lrange): Fix inexact/exact number handling |
| 10899 |
and the case when step isn't an integer. |
| 10900 |
* lib/gauche/generator.scm (giota, grange): Fix inexact/exact handling. |
| 10901 |
|
| 10902 |
2012-07-14 Shiro Kawai <[email protected]> |
| 10903 |
|
| 10904 |
* lib/gauche/generator.scm (gslices): Added. |
| 10905 |
(bits->generator, reverse-bits->generator): Fixed the semantics |
| 10906 |
of start and end arguments; the previous spec wasn't useful, for |
| 10907 |
we get used to count the bit numbers from LSB to MSB; it is much |
| 10908 |
more convenient to be able to say (bits->generator num 0 8) to |
| 10909 |
take always the least significant 8 bits. The direction of bits |
| 10910 |
is also reversed, to align to start/end; bits->generator takes |
| 10911 |
bits from LSB, while reverse-bits->generator takes from MSB. |
| 10912 |
|
| 10913 |
2012-07-11 Shiro Kawai <[email protected]> |
| 10914 |
|
| 10915 |
* lib/gauche/interactive.scm (read-eval-print-loop): Make extended |
| 10916 |
REPL feature available when gauche.interactive is loaded. |
| 10917 |
* src/main.c: Changed to call "visible" read-eval-print-loop. This |
| 10918 |
makes the extended REPL available by default, but uses the |
| 10919 |
gauche#read-eval-print-loop if gauche.interactive isn't loaded. |
| 10920 |
* src/repl.c: Scm_Repl is no longer used. Marked obsoleted. |
| 10921 |
|
| 10922 |
2012-07-10 Shiro Kawai <[email protected]> |
| 10923 |
|
| 10924 |
* src/repl.c, src/libeval.scm (read-eval-print-loop): Reimplemented |
| 10925 |
read-eval-print-loop in Scheme instead of C. C API Scm_Repl calls |
| 10926 |
Scheme version. Scm_VMRepl is obsoleted (it never was an official |
| 10927 |
API). |
| 10928 |
|
| 10929 |
2012-07-09 Shiro Kawai <[email protected]> |
| 10930 |
|
| 10931 |
* lib/gauche/interactive.scm (describe): When a symbol is described, |
| 10932 |
show the known bindings on the symbol for the convenience. |
| 10933 |
|
| 10934 |
2012-07-08 Shiro Kawai <[email protected]> |
| 10935 |
|
| 10936 |
* src/vm.c (get_debug_info), src/main.c (main): Fixed lost stack |
| 10937 |
trace. Patch from Vitaly Magerya. |
| 10938 |
|
| 10939 |
* src/char.c (<char-set>), libsrc/gauche/collection.scm: Let <char-set> |
| 10940 |
class inherit <collection> and implement collection framework. |
| 10941 |
* src/libchar.scm, lib/srfi-14/query.scm (char-set-size): Moved |
| 10942 |
char-set-size to builtin. |
| 10943 |
|
| 10944 |
2012-07-07 Shiro Kawai <[email protected]> |
| 10945 |
|
| 10946 |
* ext/srfi/srfi-19.scm (tm:leap-second-table): Reflected the leap |
| 10947 |
second in 2012-07-01. |
| 10948 |
|
| 10949 |
2012-07-06 Shiro Kawai <[email protected]> |
| 10950 |
|
| 10951 |
* lib/srfi-14.scm (char-set-hash): The hash value wasn't distributed |
| 10952 |
enough. NB: This changes the hash value. Watch out if it causes |
| 10953 |
any inter-version compatibility issues. |
| 10954 |
|
| 10955 |
2012-07-02 Shiro Kawai <[email protected]> |
| 10956 |
|
| 10957 |
* src/libeval.scm (find-load-file): Allow non-regular file (e.g. |
| 10958 |
device files and pipes) to be loaded. It can be used as a dummy |
| 10959 |
script for one-liner: 'gosh -E... /dev/null "$@"', for example. |
| 10960 |
|
| 10961 |
2012-06-27 Shiro Kawai <[email protected]> |
| 10962 |
|
| 10963 |
* src/string.c (string_search_reverse): Fixed off-by-one bug. |
| 10964 |
|
| 10965 |
2012-06-26 Shiro Kawai <[email protected]> |
| 10966 |
|
| 10967 |
* lib/gauche/generator.scm (port->sexp-generator) |
| 10968 |
port->line-generator): Added for completeness. |
| 10969 |
|
| 10970 |
2012-06-21 Shiro Kawai <[email protected]> |
| 10971 |
|
| 10972 |
* lib/rfc/http.scm (http-basic-auth-handler): Added support |
| 10973 |
for basic authentication, using :auth-user and :auth-password |
| 10974 |
passed to http-requrest. The caller no longer need to create |
| 10975 |
authorization header by itself. Patch from Bizenn. |
| 10976 |
Whether the current architecture is enough to handle |
| 10977 |
other authentication schemes isn't clear yet (apparently |
| 10978 |
digest authentication requires a lot more complicated handling). |
| 10979 |
So we don't make the :auth-handler argument and |
| 10980 |
http-default-auth-handler official yet. |
| 10981 |
|
| 10982 |
2012-06-16 Shiro Kawai <[email protected]> |
| 10983 |
|
| 10984 |
* ext/sxml/adaptor.scm (parse-error): Fixed that 'msg' part |
| 10985 |
wasn't included in the error message. |
| 10986 |
|
| 10987 |
2012-06-06 Shiro Kawai <[email protected]> |
| 10988 |
|
| 10989 |
* ext/tls/axTLS: updated to axTLS 1.4.6. Also tweaked "client |
| 10990 |
renegotiation" test in ssltest.c, for it seems to depend on |
| 10991 |
openssl version/architecture difference. |
| 10992 |
|
| 10993 |
* src/gauche.h (SCM_MAKE_CHAR): When extended character (e.g. |
| 10994 |
#\uffffff) was given in an 'int' variable, it became negative |
| 10995 |
by the shift op and was sign extended in 64bit architecture, |
| 10996 |
ending up an incorrect character representation. |
| 10997 |
|
| 10998 |
* src/char.c (charset_print_ch): Use unicode escape for all |
| 10999 |
control and mark characters. |
| 11000 |
* src/libobj.scm (write-object <regexp>): Use \U syntax for the |
| 11001 |
unicode chars beyond BMP. |
| 11002 |
|
| 11003 |
* src/regexp.c (Scm_RegComp): Avoid keeping the original pattern |
| 11004 |
string as the value of regexp->string. The regexp->string return |
| 11005 |
value is calculated from AST when it is used for the first time. |
| 11006 |
Rationale: There's a many-to-one mapping from input string to |
| 11007 |
the actual regexp. We use regexp->string value to make the |
| 11008 |
external representation of regexp, and we need proper escaping |
| 11009 |
for that. But escaping "non-canonical" input string gets pretty |
| 11010 |
cumbersome. For example, both "\\/" and "/" would be parsed as |
| 11011 |
(0 #f #\/), and when printed, both should be printed as #/\//. |
| 11012 |
It is easier to make regexp->string return "/" in both cases. |
| 11013 |
A side effect: #/abc/i is now printed as #/(?i:abc)/, reflecting |
| 11014 |
the internal AST representation. Let's see if this becomes |
| 11015 |
an issue. |
| 11016 |
* src/libobj.scm (write-object <regexp>): Rewritten to adapt |
| 11017 |
the above change, and also to use \uXXXX for non-printable |
| 11018 |
characters. |
| 11019 |
* lib/gauche/regexp.scm (regexp-unparse): Do not display extra |
| 11020 |
grouping (?:..) unless necessary in repetition, e.g. #/a?b/ |
| 11021 |
instead of #/(?:a)?b/. The extra grouping becomes annoying |
| 11022 |
because of the above change, although it isn't logicaly incorrect. |
| 11023 |
* src/char.c (charset_print_ch): Fixed a bug that didn't escape |
| 11024 |
'\' within charset. |
| 11025 |
|
| 11026 |
2012-06-04 Shiro Kawai <[email protected]> |
| 11027 |
|
| 11028 |
* lib/gauche/generator.scm (gconcatenate): Added. |
| 11029 |
|
| 11030 |
2012-06-02 Shiro Kawai <[email protected]> |
| 11031 |
|
| 11032 |
* src/Makefile.in: Avoid race between install-aux and relink in |
| 11033 |
make -j install. |
| 11034 |
|
| 11035 |
2012-05-31 Shiro Kawai <[email protected]> |
| 11036 |
|
| 11037 |
* ext/threads/thread.c (Scm_ThreadTerminate): Fixed SEGV bug when |
| 11038 |
thread-terminate! is called on a thread that's not running. |
| 11039 |
|
| 11040 |
2012-05-28 Shiro Kawai <[email protected]> |
| 11041 |
|
| 11042 |
* gc/dyn_load.c: Backport a patch for NetBSD 6. |
| 11043 |
|
| 11044 |
* release 0.9.3.3 |
| 11045 |
|
| 11046 |
2012-05-27 Shiro Kawai <[email protected]> |
| 11047 |
|
| 11048 |
* src/port.c (Scm__SetupPortsForWindows): Protect the original |
| 11049 |
scm_stdout and scm_stderr from being GC-ed, for not having fd 1 and 2 |
| 11050 |
open causes problems when spawning child processes and communicate |
| 11051 |
with them via pipes. Thanks to @natsutan for tracking the problem. |
| 11052 |
* src/main.c (init_console): make sure fd 0, 1, and 2 are redirected |
| 11053 |
to NUL in no console mode. |
| 11054 |
|
| 11055 |
* src/string.c (Scm_StringScanRight, Scm_StringScanCharRight), |
| 11056 |
src/libstr.scm (string-scan-right): Added. |
| 11057 |
|
| 11058 |
2012-05-26 Shiro Kawai <[email protected]> |
| 11059 |
|
| 11060 |
* gc/*: Bumped to bdwgc 7.2b. |
| 11061 |
|
| 11062 |
2012-05-25 Shiro Kawai <[email protected]> |
| 11063 |
|
| 11064 |
* src/liblist.scm (every): In multi-arg case, the return value |
| 11065 |
should have been the first non-false return value of PROC but |
| 11066 |
it was #t. Patch from leque. |
| 11067 |
* lib/util/stream.scm (stream-every): Similar fix as above for |
| 11068 |
the consistency. Patch from leque. |
| 11069 |
|
| 11070 |
* src/gauche/vm.h, src/signal.c (SCM_NSIG): On FreeBSD, NSIG doesn't |
| 11071 |
count RT signals, having caused signal.c overrun when setting |
| 11072 |
a handler for SIGRT* signals. Thanks to Vitaly Magerya for |
| 11073 |
tracking this down. |
| 11074 |
|
| 11075 |
2012-05-24 Shiro Kawai <[email protected]> |
| 11076 |
|
| 11077 |
* test/system.scm (normalize): Avoid using $HOME to calculate the |
| 11078 |
expected value of tilde-expansion, for $HOME may be altered |
| 11079 |
during testing. Use getpwuid instead. |
| 11080 |
|
| 11081 |
2012-05-12 Shiro Kawai <[email protected]> |
| 11082 |
|
| 11083 |
* src/Makefile.in: If install location was redirected by DESTDIR, |
| 11084 |
install-aux target in src/Makefile failed, since it tried to |
| 11085 |
use ./gosh which was already relinked to use libgauche.so under |
| 11086 |
$(libdir). Changed the order of install-aux and install-core |
| 11087 |
so that we'll first install headers and scripts, then relink and |
| 11088 |
install binaries. |
| 11089 |
|
| 11090 |
* lib/text/info.scm (read-info-file-split): Since we now have rfc.zlib, |
| 11091 |
use it instead of external gunzip process to read compressed |
| 11092 |
info files (bonus: it works on Windows/MinGW too). |
| 11093 |
|
| 11094 |
2012-05-11 Shiro Kawai <[email protected]> |
| 11095 |
|
| 11096 |
* release 0.9.3.2 : Follow-up release. |
| 11097 |
|
| 11098 |
* doc/extract: Fixed a bug that caused doc build fail if native |
| 11099 |
encoding isn't utf-8. The bug was introduced by out-of-tree |
| 11100 |
build modification. |
| 11101 |
|
| 11102 |
2012-05-10 Shiro Kawai <[email protected]> |
| 11103 |
|
| 11104 |
* src/libeval.scm (%vm-parameter-ref, %vm-parameter-set!): The |
| 11105 |
compatibility definition of these procedures was incorrect. |
| 11106 |
If files using parameterize and precompiled by 0.9.2 or before |
| 11107 |
are used in 0.9.3 an error will be signalled. Let's see how big |
| 11108 |
the problem will be and decide whether we'll make another follow-up |
| 11109 |
release or not. |
| 11110 |
|
| 11111 |
* lib/gauche/procedure.scm (generator-map): Fixed a bug that depended |
| 11112 |
on argument evaluation order. |
| 11113 |
|
| 11114 |
* release 0.9.3.1 : Special follow-up release for MinGW because |
| 11115 |
of the previous bug. |
| 11116 |
|
| 11117 |
* src/libsys.scm (check-trailing-separator): It raised an error |
| 11118 |
erroneously when "" is given. It prevented self-building |
| 11119 |
0.9.3 on Windows/MinGW. |
| 11120 |
|
| 11121 |
* lib/gauche/portutil.scm, lib/gauche/procedure.scm: Removed |
| 11122 |
duplicated definitions of port-fold etc. which was need to compile |
| 11123 |
0.9.3 by 0.9.2. The procedures are kept as aliases of |
| 11124 |
generator-fold etc. |
| 11125 |
* src/autoloads.scm: Autoload port-fold etc. from gauche.procedure |
| 11126 |
instead of gauche.portutil. |
| 11127 |
|
| 11128 |
2012-05-09 Shiro Kawai <[email protected]> |
| 11129 |
|
| 11130 |
* release 0.9.3 |
| 11131 |
|
| 11132 |
2012-05-08 Shiro Kawai <[email protected]> |
| 11133 |
|
| 11134 |
* src/parameter.c, src/gauche/parameter.h, src/libeval.scm, |
| 11135 |
libsrc/gauche/parameter.scm: Fixed semantics of parameters created |
| 11136 |
by other threads. Accessing parameters created by unrelated threads |
| 11137 |
used to be an error; now it works as if the parameter is defined |
| 11138 |
in every thread. This reduces the annoyance if parameter creation |
| 11139 |
timing is shifted by autoloads, for example. |
| 11140 |
The internal API is slightly changed. See the comment in |
| 11141 |
src/libeval.scm. |
| 11142 |
* src/load.c: Adapted to the above change. |
| 11143 |
|
| 11144 |
2012-05-07 Shiro Kawai <[email protected]> |
| 11145 |
|
| 11146 |
* winnt/*: Removed old MSVC project files and NSIS-related |
| 11147 |
sources. Using MinGW and WiX is now the official way to build |
| 11148 |
Windows native version. If anyone wants to support alternative |
| 11149 |
builds, she can always resurrect those files from the repository. |
| 11150 |
|
| 11151 |
* src/liblist.scm, libsrc/srfi-1.scm: Moved remove, remove! and |
| 11152 |
filter-map to the core. |
| 11153 |
|
| 11154 |
* gc/libatomic_ops: Backported d923334022938240c43c167d66549b1211aed2ba |
| 11155 |
of git://github.com/ivmai/libatomic_ops.git to avoid build errors |
| 11156 |
on certain Xcode version. |
| 11157 |
|
| 11158 |
2012-05-05 Shiro Kawai <[email protected]> |
| 11159 |
|
| 11160 |
* ext/tls/Makefile.in, ext/tls/system-fix.c, ext/tls/kick_openssl, |
| 11161 |
ext/tls/test.scm, ext/tls/axTLS/ssl/test/killopenssl.sh, |
| 11162 |
ext/tls/axTLS/ssl/test/ssltest.c: TLS test fixes |
| 11163 |
- Avoid using system(), for it doesn't go well with MT on some |
| 11164 |
OSes (e.g. OSX). This fix calls /bin/sh explicitly, which may |
| 11165 |
have its own problem, but let's see. |
| 11166 |
- Avoid using 'ps' to extract openssl servers to kill. Instead, |
| 11167 |
we intercept openssl invocations and record pids. This (1) avoids |
| 11168 |
complications of 'ps' difference between OSes, and (2) prevents |
| 11169 |
collateral damange when there are more than one test is going on. |
| 11170 |
Again, this fix is quite a kludge and may have other problems. |
| 11171 |
Note that we substitute strings "openssl " in the ssltest.c in |
| 11172 |
order to make this work, so be careful changing ssltest.c not to |
| 11173 |
include the code that can be affected by this substitution |
| 11174 |
inadvertently. |
| 11175 |
|
| 11176 |
2012-05-03 Shiro Kawai <[email protected]> |
| 11177 |
|
| 11178 |
* lib/srfi-27.scm: Fixed bugs in random-source-make-reals. |
| 11179 |
* ext/mt-random/test.scm: Added tests for srfi-27. |
| 11180 |
|
| 11181 |
2012-05-01 Shiro Kawai <[email protected]> |
| 11182 |
|
| 11183 |
* lib/gauche/generator (x->generator): The implementation for |
| 11184 |
the generic collection was incorrect. |
| 11185 |
|
| 11186 |
2012-04-20 Shiro Kawai <[email protected]> |
| 11187 |
|
| 11188 |
* lib/gauche/test.scm (test-end, test-summary-check): Extended |
| 11189 |
the module to enable exitting gosh with nonzero status so that |
| 11190 |
it can be detected by make and/or other build monitoring tools. |
| 11191 |
|
| 11192 |
2012-04-18 Shiro Kawai <[email protected]> |
| 11193 |
|
| 11194 |
* lib/gauche/test.scm (arity-invalid?): Exclude check on generics |
| 11195 |
with no methods. See the comment. |
| 11196 |
|
| 11197 |
2012-04-14 Shiro Kawai <[email protected]> |
| 11198 |
|
| 11199 |
* ext/tls/Makefile.in, ext/tls/tls.ac, ext/tls/tls.c, |
| 11200 |
ext/tls/gauche-tls.h: Enable compilation with --disable-tls. |
| 11201 |
* lib/rfc/http.scm: Fixed to raise a proper error when :secure |
| 11202 |
is given on a platform without tls support. |
| 11203 |
|
| 11204 |
2012-04-12 Shiro Kawai <[email protected]> |
| 11205 |
|
| 11206 |
* libsrc/util/match.scm (validate-pattern): Temporary fix for |
| 11207 |
interference with hygienic macro. |
| 11208 |
|
| 11209 |
* src/liblazy.scm (lcons*, llist*, liota): Added for completeness. |
| 11210 |
* doc/corelib.texi: Added lazy sequence examples. |
| 11211 |
|
| 11212 |
2012-04-11 Shiro Kawai <[email protected]> |
| 11213 |
|
| 11214 |
* src/vm.c (Scm__VMUnprotectStack), |
| 11215 |
src/lazy.c (Scm_ForceLazyPair): Fixed a bug that corrupts VM stack |
| 11216 |
when lazy-pair forcing occurs during a comined instruction such |
| 11217 |
as CAR-PUSH. The original code pushed an extra continuation frame |
| 11218 |
during forcing to protect the stack. If that happened, CAR-PUSH |
| 11219 |
pushes the result on top of the extra continuation. However, |
| 11220 |
the next instruction to be executed after this CAR-PUSH will be |
| 11221 |
RET, set by Scm__VMProtectStack, which discards the just pushed |
| 11222 |
value by CAR-PUSH. The fix correctly adjusts the VM stack |
| 11223 |
after forcing is done. |
| 11224 |
|
| 11225 |
* src/librx.scm (regexp-num-groups, regexp-named-groups): Added |
| 11226 |
accessors to these internal info. |
| 11227 |
* doc/corelib.texi: Made reference from regexp-replace-all to |
| 11228 |
lrxmatch and grxmatch. |
| 11229 |
|
| 11230 |
2012-04-03 Shiro Kawai <[email protected]> |
| 11231 |
|
| 11232 |
* src/libeval.scm (add-load-path): Enable adding load path |
| 11233 |
relative to the currently loaded file. Handy to distribute |
| 11234 |
scripts that can just copied by directories. |
| 11235 |
|
| 11236 |
2012-03-31 Shiro Kawai <[email protected]> |
| 11237 |
|
| 11238 |
* src/vm.c, src/gauche/vm.h: Changed continuation frame structure. |
| 11239 |
It turned out we don't need to save argp, so we have one word less |
| 11240 |
in each cont frame. Previously we marked C continuation frame |
| 11241 |
by argp=NULL; now it is marked by a special value in env. |
| 11242 |
The C continuation frame is also changed to have pushed data |
| 11243 |
before ScmContFrame, which is symmetric to ordinary continuation |
| 11244 |
frames. 6-8% performance improvement is observed in heavily |
| 11245 |
recursive micro benchmarks (e.g. fibonacci or ackerman). |
| 11246 |
|
| 11247 |
2012-03-30 Shiro Kawai <[email protected]> |
| 11248 |
|
| 11249 |
* src/char.c (Scm_CharSetCaseFold), src/regexp.c (match_ci): |
| 11250 |
Fixed case-folding match beyond ASCII range. Patch from |
| 11251 |
OOHASHI Daichi. |
| 11252 |
|
| 11253 |
2012-03-26 Shiro Kawai <[email protected]> |
| 11254 |
|
| 11255 |
* lib/rfc/http.scm (http-request, http-default-redirect-handler): |
| 11256 |
Fixed the behavior of redirection for 3xx responses, and made it |
| 11257 |
customizable. |
| 11258 |
|
| 11259 |
2012-03-21 Shiro Kawai <[email protected]> |
| 11260 |
|
| 11261 |
* lib/rfc/cookie.scm (parse-av-pairs): RFC2616 allows period |
| 11262 |
appear in cookie attr name. Fixed. (Patch from Kirill Zorin). |
| 11263 |
|
| 11264 |
* libsrc/gauche/parameter.scm (object-apply): Splitted methods for |
| 11265 |
getter and setter; it makes arity checking work better. |
| 11266 |
|
| 11267 |
* lib/gauche/test.scm (test-module): Added a feature to check arity |
| 11268 |
of global procedures, based on the patch by Masahiro Hayashi. |
| 11269 |
* lib/rfc/ip.scm, lib/binary/ftype.scm: Fixed bugs catched by the |
| 11270 |
above check. |
| 11271 |
|
| 11272 |
* src/class.c (<bottom>), src/libobj.scm (subtype?): Added the bottom |
| 11273 |
type <bottom>, and type relation predicate subtype?. <bottom> is |
| 11274 |
needed for applicable? to be useful. |
| 11275 |
* doc/corelib.texi, doc/object.texi: Reorganized a bit to have |
| 11276 |
brief introduction of type/class system on top of corelib.texi. |
| 11277 |
|
| 11278 |
2012-03-19 Shiro Kawai <[email protected]> |
| 11279 |
|
| 11280 |
* lib/gauche/generator.scm: Removed consume, for it is the same thing |
| 11281 |
as generator-for-each. |
| 11282 |
|
| 11283 |
* lib/gauche/procedure.scm (generator-fold, generator-fold-right, |
| 11284 |
generator-for-each, generator-map): Supersedes port-fold etc. |
| 11285 |
(To avoid build compilication, we still keep port-fold etc. |
| 11286 |
in portutil.scm until 0.9.3 release; see the comments in |
| 11287 |
portutil.scm.) |
| 11288 |
* src/autoloads.scm: Added autoloads for the above procedures. |
| 11289 |
* various files: Replaced port-for-each to generator-for-each etc. |
| 11290 |
|
| 11291 |
2012-03-17 Shiro Kawai <[email protected]> |
| 11292 |
|
| 11293 |
* lib/srfi-42.scm: Added :generator ec-qualifier. |
| 11294 |
|
| 11295 |
2012-03-16 Shiro Kawai <[email protected]> |
| 11296 |
|
| 11297 |
* lib/gauche/generator.scm (do-generator): Added. |
| 11298 |
|
| 11299 |
2012-03-14 Shiro Kawai <[email protected]> |
| 11300 |
|
| 11301 |
* src/liblist.scm (fold-left): Added according to R6RS, for the |
| 11302 |
completeness. |
| 11303 |
|
| 11304 |
2012-03-09 Shiro Kawai <[email protected]> |
| 11305 |
|
| 11306 |
* lib/gauche/portutil.scm (port-map, port-fold): Guarantee to call |
| 11307 |
fn before retrieving the next item by the reader; it just makes |
| 11308 |
more sense. |
| 11309 |
|
| 11310 |
2012-02-26 Shiro Kawai <[email protected]> |
| 11311 |
|
| 11312 |
* lib/rfc/http.scm (send-headers): Try to send headers in one chunk, |
| 11313 |
for some http servers prefer headers coming in a single packet. |
| 11314 |
|
| 11315 |
* src/compile.scm (quasiquote): Fixed a broken hygienity bug in |
| 11316 |
unquote-splicing handling used within hygiene macros. |
| 11317 |
|
| 11318 |
* src/vminsn.scm (NUMIDIV2), src/libnum.scm (/.), |
| 11319 |
src/number.c (scm_div): There was an overflow issue in NUMIDIV2 and |
| 11320 |
/. when both the dividend and the divisor are too big to be coerced |
| 11321 |
to double, but the result can be representable in double. We |
| 11322 |
shouldn't coerce the arguments to inexact beforehand. To address |
| 11323 |
this, we delegate exact / exact -> inexact case into Scm_DivInexact |
| 11324 |
C routine. Now, Scm_DivInexact has been used for the backward |
| 11325 |
compatibiltiy of `inexact-/' (compat.norational) but its behavior |
| 11326 |
is different from `/.'. We changed Scm_DivInexact to match the |
| 11327 |
behavior of `/.', and added Scm_DivCompat to support `inexact-/'. |
| 11328 |
The compatibility behavior will be removed in 1.0. |
| 11329 |
|
| 11330 |
2012-02-22 Shiro Kawai <[email protected]> |
| 11331 |
|
| 11332 |
* ext/tls: Added TLS/SSL support module based on Cameron Rich's axTLS. |
| 11333 |
The binding is originally written by Kirill Zorin. If building |
| 11334 |
of axTLS fails, configure with --enable-tls=none to suppress |
| 11335 |
building it. |
| 11336 |
* lib/rfc/http.scm: Repleaced TLS/SSL support with ext/tls, from |
| 11337 |
the previous ad-hoc stunnel-based one. |
| 11338 |
|
| 11339 |
2012-02-21 Shiro Kawai <[email protected]> |
| 11340 |
|
| 11341 |
* ext/peg/peg.scm: Rewrote using lazy sequences instead of |
| 11342 |
specialized streams for input. Also simplified API (e.g. dropped |
| 11343 |
$do* and $do distinction, for they are more a performance hack |
| 11344 |
rather than a benefit for users.) This may degrade the performance. |
| 11345 |
We rely on future compiler improvements to address the performance |
| 11346 |
issue. Do not count on the current API; they're still subject to |
| 11347 |
change. |
| 11348 |
|
| 11349 |
2012-02-20 Shiro Kawai <[email protected]> |
| 11350 |
|
| 11351 |
* src/Makefile.in: Fixed install process to call makeverslink |
| 11352 |
before using gauche-install; the latter depends on the installed |
| 11353 |
libgauche.so to be properly symlinked. |
| 11354 |
|
| 11355 |
2012-02-19 Shiro Kawai <[email protected]> |
| 11356 |
|
| 11357 |
* lib/gauche/generator.scm (consume): Added. |
| 11358 |
|
| 11359 |
2012-02-18 Shiro Kawai <[email protected]> |
| 11360 |
|
| 11361 |
* src/liblist.scm (map, for-each), src/proc.c (Scm_Map, Scm_ForEach): |
| 11362 |
Define these in Scheme. The C API is obsoleted; they are just |
| 11363 |
calling Scheme version now, and will be gone in 1.0. |
| 11364 |
|
| 11365 |
2012-02-17 Shiro Kawai <[email protected]> |
| 11366 |
|
| 11367 |
* lib/gauche/generator.scm (glet*, glet1): Added convenience macros |
| 11368 |
that captures the monadic pattern frequently appear in generator |
| 11369 |
code. |
| 11370 |
|
| 11371 |
2012-02-14 Shiro Kawai <[email protected]> |
| 11372 |
|
| 11373 |
* src/load.c, src/libeval.scm (load, find-load-file): Moved Scm_VMLoad |
| 11374 |
and Scm_FindFile functions from C to Scheme. C API Scm_VMLoad() |
| 11375 |
remains for the backward compatibility. Scm_FindFile() is deleted, |
| 11376 |
for it was never made public. |
| 11377 |
(%add-load-path-hook!, %delete-load-path-hook!): *EXPERIMENTAL* |
| 11378 |
Added a mechanism to trigger a hook function when *load-path* includes |
| 11379 |
a regular file instead of a directory. The hook function allows |
| 11380 |
the application to load files from archive files (e.g. zip fie). |
| 11381 |
See libeval.scm for the details. |
| 11382 |
|
| 11383 |
2012-02-12 Shiro Kawai <[email protected]> |
| 11384 |
|
| 11385 |
* src/libsys.scm, lib/gauche/fileutil.scm (file-exists?), |
| 11386 |
(file-is-regular?, file-is-directory?): Moved these from fileutil |
| 11387 |
to libsys.scm because of the dependency. |
| 11388 |
* src/autoloads.scm: Changed accordingly. |
| 11389 |
|
| 11390 |
2012-02-11 Shiro Kawai <[email protected]> |
| 11391 |
|
| 11392 |
* src/gauche.h (SCM_BIND_PROC): Introduced a macro to capture the |
| 11393 |
common pattern in calling a Scheme procedure from C. The macro |
| 11394 |
can be used to ensure a C variable is initialized by the value |
| 11395 |
of the named Scheme variable (so it isn't restricted to 'PROC', |
| 11396 |
but in practice using it for something other than procedure doesn't |
| 11397 |
make much sense.) |
| 11398 |
* src/load.c, src/vm.c, src/system.c: Changed accordingly. |
| 11399 |
|
| 11400 |
2012-02-10 Shiro Kawai <[email protected]> |
| 11401 |
|
| 11402 |
* src/system.c (Scm__InternalCondWait): Fixed a hazard when timeout |
| 11403 |
occurs. Also fixed the handling of cond->mutex so that it is safe |
| 11404 |
to call CondSignal and CondBroadcast without holding the related |
| 11405 |
mutex (although it's not recommended). |
| 11406 |
|
| 11407 |
2012-02-07 Shiro Kawai <[email protected]> |
| 11408 |
|
| 11409 |
* ext/sxml/*: Fixed a problem that out-of-source-tree build generated |
| 11410 |
some Scheme files into srcdir instead of builddir. |
| 11411 |
|
| 11412 |
* src/compile.scm (pass1/open-include-file), |
| 11413 |
src/gauche/vm.h (SCM_COMPILE_INCLUDE_VERBOSE), |
| 11414 |
src/main.c (-finclude-verbose): Add a new compile-time flag to |
| 11415 |
report 'include' operation to stderr. It is separated from |
| 11416 |
-fload-verbose, since 'include' works in compile-time and |
| 11417 |
'load' works in runtime (although typically they are interleaved). |
| 11418 |
|
| 11419 |
* src/libio.scm (open-input-file): Allow ":encoding #t" to make |
| 11420 |
open-input-file wrap the iport with a coding-aware port. It's |
| 11421 |
convenient to process source files that may have coding comment. |
| 11422 |
|
| 11423 |
2012-02-06 Shiro Kawai <[email protected]> |
| 11424 |
|
| 11425 |
* src/vm.c (Scm_AttachVM, Scm_DetachVM): Protect active VMs explicitly |
| 11426 |
from GC. Thread-specific area may not be scanned by GC. |
| 11427 |
|
| 11428 |
2012-02-05 Shiro Kawai <[email protected]> |
| 11429 |
|
| 11430 |
* ext/net/net.c (Scm_MakeSocket): Fix Windows/MinGW problem that |
| 11431 |
sockets can't be used with threads. Thanks to SAITO Atsushi for |
| 11432 |
tracking this down. |
| 11433 |
|
| 11434 |
2012-02-03 Shiro Kawai <[email protected]> |
| 11435 |
|
| 11436 |
* src/liblist.scm (iota): Fixed a bug in the case of inexact |
| 11437 |
number sequence (thanks to Toshihiro Morisaki). |
| 11438 |
|
| 11439 |
2012-01-31 Shiro Kawai <[email protected]> |
| 11440 |
|
| 11441 |
* lib/gauche/lazy.scm: More lazy sequence utilities. |
| 11442 |
* doc/modgauche.texi: Documented gauche.lazy. |
| 11443 |
|
| 11444 |
2012-01-29 Shiro Kawai <[email protected]> |
| 11445 |
|
| 11446 |
* lib/util/stream.scm (stream-count): Bug fix (thanks to KOGURO Naoki). |
| 11447 |
|
| 11448 |
2012-01-27 Shiro Kawai <[email protected]> |
| 11449 |
|
| 11450 |
* Makefile.in, wirebuildlibs, configure.ac, gc/configure.ac, |
| 11451 |
*/Makefile.in, ext/xlink, */tset.scm, src/main.c: Re-enable |
| 11452 |
out-of-source-tree build. Just call top configure from |
| 11453 |
any directory and it should build and install with make & |
| 11454 |
make install. |
| 11455 |
|
| 11456 |
2012-01-25 Shiro Kawai <[email protected]> |
| 11457 |
|
| 11458 |
* src/class.c (Scm_MethodApplicableForClasses), |
| 11459 |
lib/gauche/procedure.scm (applicable?): Added applicable?. |
| 11460 |
* src/autoloads.scm, doc/corelib.texi, test/object.scm: Changed |
| 11461 |
accordingly. |
| 11462 |
|
| 11463 |
2012-01-23 Shiro Kawai <[email protected]> |
| 11464 |
|
| 11465 |
* src/gauche/pthread.h: Fix for cygwin pthread: Real-time signals |
| 11466 |
are not available on cygwin, so we use SIGPWR for inter-thread |
| 11467 |
communication. Nees to be documented. |
| 11468 |
|
| 11469 |
* src/Makefile.in: Exclude unnecessary object files in gc/ to be |
| 11470 |
linked to libgauche.so. |
| 11471 |
|
| 11472 |
* configure.ac, src/Makefile.in, src/gauche.h: The previous trick, |
| 11473 |
committed for Win32 thread support, to extract GC thread config |
| 11474 |
settings and adding it to gauche/config.h, doesn't work. The extra |
| 11475 |
code won't be executed by running ./config.status. So we changed |
| 11476 |
the strategy---at build time, we generate gauche/config_threads.h |
| 11477 |
from the GC's thread configuration. |
| 11478 |
|
| 11479 |
2012-01-21 Shiro Kawai <[email protected]> |
| 11480 |
|
| 11481 |
* src/port.c (Scm__SetupPortsForWindows): Made implicit |
| 11482 |
AllocConsole() thread-safe for gosh-noconsole. |
| 11483 |
* test/win-noconsole-threads.scm: Manual test for the above feature. |
| 11484 |
|
| 11485 |
* ext/threads/threads.scm (gauche-thread-type): Returns 'win32 |
| 11486 |
on Windows/MinGW threads support. |
| 11487 |
|
| 11488 |
2012-01-20 Shiro Kawai <[email protected]> |
| 11489 |
|
| 11490 |
* configure.ac, src/gauche/wthread.h, src/system.c, src/vm.c, |
| 11491 |
src/core.c, ext/threads/*, ext/util/queue.scm: Added support of |
| 11492 |
Windows thread on MinGW. Run ./configure --enable-threads=win32 |
| 11493 |
to enable the support. Unit tests pass, but needs more test |
| 11494 |
with actual applications. |
| 11495 |
|
| 11496 |
* src/load.c (Scm_Require): Fix a hazard in parallel require case; |
| 11497 |
the loop around condition variable wait wasn't actually looped |
| 11498 |
due to the bug. Thanks to Kirill Zorin for tracking this down. |
| 11499 |
|
| 11500 |
* src/core.c (finalizable): Fix to protect in the case that GC |
| 11501 |
is run before Gauche is fully bootstrapped. |
| 11502 |
|
| 11503 |
2012-01-18 Shiro Kawai <[email protected]> |
| 11504 |
|
| 11505 |
* doc/*: Documented basic lazy sequence operations. |
| 11506 |
* lib/gauche/lazy.scm (lappend): Added. Will add more lazy |
| 11507 |
sequence utilities. |
| 11508 |
|
| 11509 |
2012-01-08 Shiro Kawai <[email protected]> |
| 11510 |
|
| 11511 |
* lib/gauche/generator.scm (grxmatch, port->char-generator) |
| 11512 |
(port->byte-generator): Added stream regexp match generator |
| 11513 |
grxmatch, and a couple of convenience procedures to read |
| 11514 |
from an input port. |
| 11515 |
|
| 11516 |
2012-01-07 Shiro Kawai <[email protected]> |
| 11517 |
|
| 11518 |
* lib/gauche/generator.scm (gcons*, gappend): Changed gcons -> gcons*, |
| 11519 |
for it's more general. Modified gappend to delay autocoercing |
| 11520 |
the arguments, so that gappend can be used as a lightweight lazy |
| 11521 |
sequence concatenation. |
| 11522 |
|
| 11523 |
2012-01-06 Shiro Kawai <[email protected]> |
| 11524 |
|
| 11525 |
* src/class.c (method_more_specific): Don't panic if |
| 11526 |
method-more-specific? gets two methods that can't be ordered; |
| 11527 |
It may be just an erroneous MOP code. Now we throws an error |
| 11528 |
with descriptive messages. |
| 11529 |
|
| 11530 |
2012-01-03 Shiro Kawai <[email protected]> |
| 11531 |
|
| 11532 |
* lib/gauche/generator.scm: Allows generator operations to take |
| 11533 |
collections, which are implicitly coerced to generators, for |
| 11534 |
the convenience. |
| 11535 |
|
| 11536 |
2011-12-27 Shiro Kawai <[email protected]> |
| 11537 |
|
| 11538 |
* lib/util/list.scm, src/liblist.scm, src/libdict.scm, |
| 11539 |
lib/gauche/common-macros.scm, src/autoloads.scm: Obsoleted |
| 11540 |
util.list; entries are moved to liblist, libdict and common-macros. |
| 11541 |
The module is kept for the backward compatibility, but its officially |
| 11542 |
removed from the document. |
| 11543 |
|
| 11544 |
2011-12-26 Shiro Kawai <[email protected]> |
| 11545 |
|
| 11546 |
* src/gauche/wthread.h, src/gauche/vm.h, src/vm.c, src/signal.c, |
| 11547 |
ext/threads/mutex.c, ext/threads/threads.c, configure.ac: |
| 11548 |
Start adding Windows thread support on Gauche/MinGW, and improved |
| 11549 |
thread-terminate! semantics. On POSIX, if real-time signal is |
| 11550 |
available, we reserve one signal (GAUCHE_PTHREAD_SIGNAL) to notify |
| 11551 |
termination request. With the signal, the terminated thread can |
| 11552 |
shut itself down gracefully. We also use vm->stopRequest mechanism |
| 11553 |
to terminate the thread. |
| 11554 |
|
| 11555 |
2011-12-25 Shiro Kawai <[email protected]> |
| 11556 |
|
| 11557 |
* lib/gauche/cgen/cise.scm (.if): Make sure '#if' stars from the |
| 11558 |
fresh line. |
| 11559 |
* src/libsys.scm: The fd range check added recently was invalid on |
| 11560 |
Windows/MinGW (see the comment). Conditionalized. |
| 11561 |
|
| 11562 |
* gc/*: Updated to gc7.2-alpha6. |
| 11563 |
|
| 11564 |
* src/compile.scm (quasiquote): Fixed to recognize unquote and |
| 11565 |
unquote-splicing hygienically. |
| 11566 |
|
| 11567 |
* lib/control/job.scm: Added 'cancellable' job flavor, which may not |
| 11568 |
be waitable but job-mark-killed! can be used on. We need mutex |
| 11569 |
if we allow threads other than the job runner to change the job |
| 11570 |
status. See the comment for the details. |
| 11571 |
* lib/control/thread-pool.scm: Use cancellable jobs, for we might |
| 11572 |
want to kill them. |
| 11573 |
|
| 11574 |
* ext/threads/mutex.c, ext/threads/threads.scm: |
| 11575 |
(mutex-locker, mutex-unlocker): Added. |
| 11576 |
(with-locking-mutex): rewrite using above, and made it inline. |
| 11577 |
This change prevents with-locking-mutex from making closures |
| 11578 |
at runtime. |
| 11579 |
|
| 11580 |
2011-12-24 Shiro Kawai <[email protected]> |
| 11581 |
|
| 11582 |
* lib/gauche/generator.scm: Extended API |
| 11583 |
* doc/modgauche.texi: Documeted gauche.generator. |
| 11584 |
|
| 11585 |
2011-12-23 Shiro Kawai <[email protected]> |
| 11586 |
|
| 11587 |
* src/port.c (Scm_FdReady), |
| 11588 |
src/libsys.scm (sys-fdset-ref, sys-fdset-set!): Check if fd is |
| 11589 |
in the valid range. |
| 11590 |
|
| 11591 |
2011-12-22 Shiro Kawai <[email protected]> |
| 11592 |
|
| 11593 |
* src/string.c (Scm_MaybeSubstring): Allow #f as start or end arguments, |
| 11594 |
for the convenience. |
| 11595 |
|
| 11596 |
* src/liblist.scm, libsrc/srfi-1.scm, lib/util/list.scm: Moved |
| 11597 |
take-right, drop-right, take!, drop-right!, take*, drop*, |
| 11598 |
take-right*, drop-right* and split-at* to the core. |
| 11599 |
|
| 11600 |
2011-12-21 Shiro Kawai <[email protected]> |
| 11601 |
|
| 11602 |
* lib/gauche/generator.scm (generate): Added coroutine-based |
| 11603 |
generator. |
| 11604 |
* doc/modgauche.texi: Start adding generator documents. |
| 11605 |
|
| 11606 |
2011-12-20 Shiro Kawai <[email protected]> |
| 11607 |
|
| 11608 |
* src/main.c: Added '-m module' option to specify the module where |
| 11609 |
the 'main' procedure is looked for when a script is loaded. |
| 11610 |
* test/scripts.scm: Added a test for the above. Eventually we can |
| 11611 |
add more tests for command-line options of gosh. |
| 11612 |
|
| 11613 |
2011-12-18 Shiro Kawai <[email protected]> |
| 11614 |
|
| 11615 |
* src/string.c (Scm_StringBodyPosition): Deprecate Scm_StringPosition |
| 11616 |
since it is difficult to use in MT-safe way. Introduced safer |
| 11617 |
Scm_StringBodyPosition. |
| 11618 |
|
| 11619 |
2011-12-10 Shiro Kawai <[email protected]> |
| 11620 |
|
| 11621 |
* lib/control/job.scm (job-wait): fixed a bug that it looked result |
| 11622 |
where it should've looked status. |
| 11623 |
(job-run!, job-mark-killed!): Called condition-variable-broadcast! |
| 11624 |
with a wrong argument. Patch for this and above bugs are from ayatoy. |
| 11625 |
|
| 11626 |
2011-11-28 Shiro Kawai <[email protected]> |
| 11627 |
|
| 11628 |
* configure.ac, src/gauche/config.h.in (HAVE_CRT_EXTERNS_H), |
| 11629 |
src/system.c (Scm_Environ): Newer OSX doesn't allow to access |
| 11630 |
global environ variable directly; we should use _NSGetEnviron(). |
| 11631 |
|
| 11632 |
* lib/gauche/cgen/cise.scm: Added .undef macro |
| 11633 |
* src/libsys.scm: Fix for mingw. |
| 11634 |
|
| 11635 |
* configure.ac: Enable HAVE_SELECT on Windows/mingw, altohugh on it |
| 11636 |
select() can only be used on sockets. |
| 11637 |
* src/system.c, src/port.c: Changed accordingly. |
| 11638 |
|
| 11639 |
2011-11-26 Shiro Kawai <[email protected]> |
| 11640 |
|
| 11641 |
* src/*, ext/auxsys, lib/*, doc/*, libsrc/*: Code reorganization: |
| 11642 |
src/*.stub and src/*.scm files are merged, and then splitted |
| 11643 |
accodring to each function's feature instead of the module it |
| 11644 |
belongs. This keeps related code together and eases maintenance. |
| 11645 |
The new sources are named as src/lib*.scm. |
| 11646 |
By this change, we hide some internal routines into gauche.internal; |
| 11647 |
which we couldn't do before, since each *.stub file could be |
| 11648 |
associated to one module. Now we can switch the modules inside |
| 11649 |
precompiled scm files as we like. |
| 11650 |
We also merged ext/auxsys into core (mostly in libsys.scm), for |
| 11651 |
we no longer need them to be in an extension module. |
| 11652 |
We've already moved some list utilities from srfi-1 into core; |
| 11653 |
by this commit we do so more, and updated the document accordingly. |
| 11654 |
We also removed SCM_DEBUG_HELPER conditional; we've never had it |
| 11655 |
turned off, so we can just always keep those debug routines. NB: |
| 11656 |
Those debug dump routines (%*-dump) are now in gauche.internal |
| 11657 |
module. |
| 11658 |
* lib/gauche/cgen/precomp.scm: *Experimental*: Allow define-cproc |
| 11659 |
to appear as the toplevel form. It is easier to read than always |
| 11660 |
putting them in inline-stub. I might change my mind later, for |
| 11661 |
it may be confusing as well. |
| 11662 |
|
| 11663 |
2011-11-24 Shiro Kawai <[email protected]> |
| 11664 |
|
| 11665 |
* src/code.c (Scm_CompiledCodeDump): Fixed a bug that can cause |
| 11666 |
infinite loop when printing lifted procedures. |
| 11667 |
|
| 11668 |
* src/compile.scm (subst-lvars): The traversal of $LET didn't update |
| 11669 |
lvar-initval, causing the following passes to fail to do some |
| 11670 |
closure elimination. |
| 11671 |
(pass1/define-inline): Wrong check of `closed' value caused |
| 11672 |
all define-inline'd procedures to go through the slower pass. |
| 11673 |
The above to bugs prevented the procedures defined in define-inline |
| 11674 |
from being optimized enough. Notably, local tail-calls didn't |
| 11675 |
get optimized to loops. |
| 11676 |
|
| 11677 |
2011-11-20 Shiro Kawai <[email protected]> |
| 11678 |
|
| 11679 |
* src/genconfig (gauche-config): Emit usage message to stderr instead |
| 11680 |
of stdout. By this, feeding gauche-config output to sh wouldn't |
| 11681 |
confuse sh if you give incorrect option. |
| 11682 |
|
| 11683 |
* lib/gauche/cgen/stub.scm (<stub>): Fix the problem that cproc's |
| 11684 |
binding isn't inserted into the tmodule at the time of define-cproc, |
| 11685 |
but at the time of the final rendering. |
| 11686 |
* lib/gauche/cgen/precomp.scm: Fixed a similar bug. |
| 11687 |
|
| 11688 |
* src/scmlib.scm (generator->lseq): Renamed from lseq to make |
| 11689 |
it more descriptive, since it turned out this function wouldn't |
| 11690 |
be used frequent enough to demand a short name. |
| 11691 |
|
| 11692 |
2011-11-19 Shiro Kawai <[email protected]> |
| 11693 |
|
| 11694 |
* src/regexp.c (rc1_parse, rc3_rec): Fixed regexp parser and code |
| 11695 |
generateor to recognize BOL/EOL assertions within (?=...), |
| 11696 |
(?!...), (?<=...), (?<!...) and (?>...). For '^' and '$, we |
| 11697 |
should parse these constructs as if they are stand-alone, no |
| 11698 |
matter where they appear. That is, '^' appearing at the |
| 11699 |
beginning of these constructs are BOL assertions and '$' at |
| 11700 |
the end are EOL. This is consistent to Perl and Oniguruma. |
| 11701 |
NB: The code that counted on the previous (buggy) behavior |
| 11702 |
may break by this change. |
| 11703 |
|
| 11704 |
2011-11-11 Shiro Kawai <[email protected]> |
| 11705 |
|
| 11706 |
* lib/gauche/vm/debugger.scm, src/autoloads.scm: Export |
| 11707 |
debug-print-(pre|post) and set them to be autoloaded. These |
| 11708 |
symbols are inserted by debug-print macro. If such a source |
| 11709 |
is pre-compiled, gauche.vm.debugger won't be autoloaded at |
| 11710 |
execute time unless we make debuf-print-(pre|post) autoloaded too. |
| 11711 |
This is not an ideal solution, for those procs are internal. |
| 11712 |
|
| 11713 |
2011-11-06 Shiro Kawai <[email protected]> |
| 11714 |
|
| 11715 |
* lib/gauche/cgen/tmodule.scm (<tmodule>, all-tmodules): Use a |
| 11716 |
parameter instead of a class slot to record tmodules encountered |
| 11717 |
during precompilatoin. Class slots are global and fragile for |
| 11718 |
multiple invocation of cgen-precompile and/or MT. |
| 11719 |
(with-tmodule-recording): A macro to initialize the module list. |
| 11720 |
* lib/gauche/cgen/precomp.scm, lib/gauche/cgen/stub.scm: Changed |
| 11721 |
accordingly. |
| 11722 |
|
| 11723 |
2011-11-04 Shiro Kawai <[email protected]> |
| 11724 |
|
| 11725 |
* lib/gauche/common-macros.scm (values->list): Support a common |
| 11726 |
pattern. CL's multiple-value-list. |
| 11727 |
* src/autoloads.scm (values->list): changed accordingly. |
| 11728 |
|
| 11729 |
2011-10-29 Shiro Kawai <[email protected]> |
| 11730 |
|
| 11731 |
* src/lazy.c (Scm_ForceLazyPair): Fixed a bug that the second value |
| 11732 |
from the generator could have leaked out. |
| 11733 |
|
| 11734 |
2011-10-28 Shiro Kawai <[email protected]> |
| 11735 |
|
| 11736 |
* ext/util/queue.scm (make-mtqueue, enqueue/wait!, dequeue/wait!): |
| 11737 |
Added support of zero-length mt-queue. Zero-length queue cannot |
| 11738 |
hold any values, but can be used to synchronize producers |
| 11739 |
and consumers---a thread can directly hand a value to another |
| 11740 |
thread. THIS IS AN INCOMPATIBLE CHANGE: It used to be that |
| 11741 |
zero max-length meant to be unlimited length. Now you have to |
| 11742 |
give #f to max-length to make the mtqueue unlimited length. |
| 11743 |
* ext/threads/test.scm: Tests added for zero-length queue. |
| 11744 |
* lib/control/thread-pool.scm: Changed accordingly. |
| 11745 |
|
| 11746 |
* lib/rfc/http.scm (http-proxy): Added a parameter to specify the |
| 11747 |
default http proxy. |
| 11748 |
|
| 11749 |
* libsrc/file/util.scm (touch-file, touch-files): Extended to |
| 11750 |
take :time, :type and :create options; these are similar switches |
| 11751 |
the touch(1) command has. Also, touch-files hasn't been exported |
| 11752 |
although the manual has its entry. |
| 11753 |
* ext/file/test.scm: Added tests accordingly. |
| 11754 |
|
| 11755 |
2011-10-24 Shiro Kawai <[email protected]> |
| 11756 |
|
| 11757 |
* src/regexp.h (ScmRegexpRec), src/regexp.c (rc3, Scm_RegExec): |
| 11758 |
Improved unanchored regexp search by skipping the input. We |
| 11759 |
calculate a set of characters that can possibly match at the |
| 11760 |
beginning of the regex (lookahead set, or laset). When we |
| 11761 |
advance the input pointer, we check the character and if it |
| 11762 |
isn't in the laset we can skip matching from that position. |
| 11763 |
We also adopt a strategy that when /A+B/ fails to match, where |
| 11764 |
A is a char or charset, and A and B has distinct laset, |
| 11765 |
then we can skip the input as long as it matches A. These |
| 11766 |
strategy improves the performance greatly in commonly occurring |
| 11767 |
patterns, especially when the input is long. |
| 11768 |
* test/regexp.scm, src/extlib.stub: Added some tests. |
| 11769 |
|
| 11770 |
2011-10-17 Shiro Kawai <[email protected]> |
| 11771 |
|
| 11772 |
* src/scmlib.scm (make-case-lambda), |
| 11773 |
src/intlib.stub (make-case-lambda-dispatcher), |
| 11774 |
src/compile.scm (case-lambda): Changed case-lambda info vector |
| 11775 |
for better diagnostics; the first element now contains the |
| 11776 |
procedure name if available. |
| 11777 |
NB: Eventually we intend to change case-lambda to be a special |
| 11778 |
object instead of the current hack with subr. The current way |
| 11779 |
of using info slot is temporary. |
| 11780 |
* lib/gauche/procedure.scm (disasm): Adapted to the above change. |
| 11781 |
|
| 11782 |
2011-10-16 Shiro Kawai <[email protected]> |
| 11783 |
|
| 11784 |
* lib/gauche/regexp.scm (regexp-unparse): Handles '|' and control |
| 11785 |
characters properly. |
| 11786 |
|
| 11787 |
2011-10-15 Shiro Kawai <[email protected]> |
| 11788 |
|
| 11789 |
* src/regexp.c (rc3_rec): Fixed the bug that (regexp-compile '(alt)) |
| 11790 |
gets Bus Error. Now we allow empty altenation. Although such |
| 11791 |
AST never happens as a result of parsing string regexp, it may |
| 11792 |
be produced in programmatically generated AST. An empty alternation |
| 11793 |
always fails. |
| 11794 |
* lib/gauche/regexp.scm (regexp-unparse): When converting empty |
| 11795 |
alternation to a string, we use negative lookahead assertion (?!), |
| 11796 |
since such alternation can't be represented using '|' operator. |
| 11797 |
Also fixed a bug when converting empty assert/nassert nodes. |
| 11798 |
|
| 11799 |
2011-10-05 Shiro Kawai <[email protected]> |
| 11800 |
|
| 11801 |
* lib/rfc/json.scm (print-string): Fixed string writer bug that didn't |
| 11802 |
handle ASCII control characters and chars between [U+80,U+fff]. |
| 11803 |
|
| 11804 |
2011-09-30 Shiro Kawai <[email protected]> |
| 11805 |
|
| 11806 |
* src/lazy.c (Scm_ForceLazyPair): Added check of recursive forcing |
| 11807 |
to prevent self-deadlock. |
| 11808 |
|
| 11809 |
2011-09-28 Shiro Kawai <[email protected]> |
| 11810 |
|
| 11811 |
* lib/gauche/lazy.scm (lfilter): Added for the convenience. |
| 11812 |
|
| 11813 |
* lib/gauche/generator.scm (grange): Added grange for the convenience. |
| 11814 |
|
| 11815 |
2011-09-16 Shiro Kawai <[email protected]> |
| 11816 |
|
| 11817 |
* src/lazy.c (Scm_DecomposeLazyPair), src/extlib.stub (%lazy-snoc), |
| 11818 |
src/scmlib.scm (%lcons), lib/gauche/common-macros.scm (lcons): |
| 11819 |
Added support of lcons, a primitive to write corecursive code. |
| 11820 |
|
| 11821 |
2011-09-12 Shiro Kawai <[email protected]> |
| 11822 |
|
| 11823 |
* src/gauche.h (SCM_PAIRP), |
| 11824 |
src/lazy.c (Scm_PairP, Scm_ForceLazyPair, Scm_MakeLazyPair), |
| 11825 |
src/class.c (SCM_CLASS_OF), src/extlib.stub (%lazy-cons), |
| 11826 |
src/scmlib.scm (lseq, lrange), lib/gauche/lazy.scm: |
| 11827 |
Added lazy sequence support. |
| 11828 |
* lib/gauche/cgen/stub.scm, src/vm.c, src/gauche/vm.h, |
| 11829 |
src/vmcall.c, src/vminsn.scm: Modifications to make lazy sequences |
| 11830 |
forced safely. |
| 11831 |
* src/Makefile.in: Make sure *.stubs are reprocessed if gauche.cgen.stub |
| 11832 |
is updated. It is crucial for this commit, since the *.c files |
| 11833 |
generated by previous genstub aren't safe for lazy sequences. |
| 11834 |
* test/primsyn.scm: force/delay tests are moved to test/lazy.scm. |
| 11835 |
* test/lazy.scm, ext/gauche/test-lazy.scm: lazy evaluation tests. |
| 11836 |
* test/lazy-performance.scm: some code for benchmarking. |
| 11837 |
|
| 11838 |
* src/vm.c (user_eval_inner): We no longer save the signal mask and |
| 11839 |
restore it in case of the error. We don't see any reason to restore |
| 11840 |
the mask. From the commit logs, this mask manipulation was |
| 11841 |
originally kept in 2004-03-15 change; it says, without restoring |
| 11842 |
the mask, a hang occurred on cygwin. We can no longer reproduce |
| 11843 |
the hang, so we decided to drop this code. It has now become |
| 11844 |
a major slowdown factor. |
| 11845 |
|
| 11846 |
2011-08-25 Shiro Kawai <[email protected]> |
| 11847 |
|
| 11848 |
* src/system.c (Scm_GetTimeSpec): Fixed a bug that didn't handles |
| 11849 |
exact rationals properly (it was rounded down to the nearest |
| 11850 |
integer). |
| 11851 |
* ext/threads/test.scm: Improved thread-sleep! test. Thread-sleep! |
| 11852 |
was affected by the above bug. |
| 11853 |
|
| 11854 |
2011-08-23 Shiro Kawai <[email protected]> |
| 11855 |
|
| 11856 |
* src/compile.scm (pass2/shrink-let-frame): A small optimization |
| 11857 |
possibly replaces let to nested function call. |
| 11858 |
|
| 11859 |
2011-08-22 Shiro Kawai <[email protected]> |
| 11860 |
|
| 11861 |
* lib/gauche/common-macros.scm ($): Incorporated the chained apply |
| 11862 |
macro into the core. Note that the semantics is slightly changed; |
| 11863 |
we drop $* macro, and the $ and $* delimiters determines whether |
| 11864 |
apply to be used for the procedure *before* the delimiter. |
| 11865 |
* src/autoloads.scm: Changed accordingly. |
| 11866 |
* lib/gauche/experimental/app.scm: Now this is just a placeholder. |
| 11867 |
|
| 11868 |
2011-08-17 Shiro Kawai <[email protected]> |
| 11869 |
|
| 11870 |
* src/gauche-package.in ("list"): "gauche-package list" now displays |
| 11871 |
packages that are installed by other versions of Gauche, as far |
| 11872 |
as it is abi-compatible to the current gauche version. |
| 11873 |
|
| 11874 |
2011-08-11 Shiro Kawai <[email protected]> |
| 11875 |
|
| 11876 |
* src/promise.c: Renamed to lazy.c |
| 11877 |
* src/lazy.c (Scm_Force): Made force thread-safe. Now more than |
| 11878 |
one thread can call force simultaneously. |
| 11879 |
* ext/threads/test.scm: Added tests for thread-safe force. |
| 11880 |
|
| 11881 |
2011-08-10 Shiro Kawai <[email protected]> |
| 11882 |
|
| 11883 |
* src/compile.scm (lazy): Directly generates $ASM node, eliminating |
| 11884 |
the need of $PROMISE IFrom node. We have to keep $PROMISE node |
| 11885 |
throughout 0.9.x series for the compatibility of precompiled |
| 11886 |
files in earlier 0.9.x versions, but it will go away in 1.0. |
| 11887 |
|
| 11888 |
* lib/gauche/cgen/literal.scm (<cgen-scheme-symbol>): Handle |
| 11889 |
unintered symbols. |
| 11890 |
|
| 11891 |
* src/code.c (Scm_CompiledCodeDump): The disassembler now shows |
| 11892 |
the closures lifted to the toplevel procedures. |
| 11893 |
|
| 11894 |
2011-08-08 Shiro Kawai <[email protected]> |
| 11895 |
|
| 11896 |
* src/number.c (Scm_Quotient): Fixed a bug in the path of |
| 11897 |
inexact quotient calculation. The path is |
| 11898 |
used by div and mod, relvealing the bug. |
| 11899 |
|
| 11900 |
2011-08-05 Shiro Kawai <[email protected]> |
| 11901 |
|
| 11902 |
* release 0.9.2. |
| 11903 |
|
| 11904 |
2011-08-02 Shiro Kawai <[email protected]> |
| 11905 |
|
| 11906 |
* libsrc/srfi-1.scm: Export procedures that are defined in the gauche |
| 11907 |
core. They are not exported from the gauche module, but they should |
| 11908 |
be exported from srfi-1. |
| 11909 |
|
| 11910 |
* lib/rfc/uri.scm (uri-merge): Fix a bug when base-path is empty |
| 11911 |
and rel-path is relative. |
| 11912 |
|
| 11913 |
2011-08-01 Shiro Kawai <[email protected]> |
| 11914 |
|
| 11915 |
* configure.ac, src/gauche/arith_x86_64.h: Added inline assembly |
| 11916 |
of fullword numberic operations for x86_64. |
| 11917 |
* src/bignum.c: Some routines used incorrect type (long vs int) as |
| 11918 |
the argument for arith macros. On ILP32 machines it didn't matter, |
| 11919 |
but on LP64 it does. |
| 11920 |
|
| 11921 |
* src/number.c (scm_mul): The previous version of overflow detection |
| 11922 |
of multiplying two longs depended on C's undefined behavior. |
| 11923 |
clang-llvm does certain optimizations as if the calculation never |
| 11924 |
overflows, and that's valid, since once calculation overflows the |
| 11925 |
result can be anything. Fixed to use SMULOV macro in gauche/arith.h |
| 11926 |
which detects overflow reliably (but the portable fallback is |
| 11927 |
expensive). |
| 11928 |
|
| 11929 |
2011-07-31 Shiro Kawai <[email protected]> |
| 11930 |
|
| 11931 |
* test/multibyte.scm, test/char.scm: Splitted multibyte tests |
| 11932 |
and char-only tests. Character case mappings can be tested |
| 11933 |
separately, and we need more tests focused on characters anyway. |
| 11934 |
|
| 11935 |
* src/stdlib.stub (char-ci-cmp): Use foldcase to compare |
| 11936 |
case-insensitive character comparison, and support more than |
| 11937 |
2 arguments a la r6rs. |
| 11938 |
(char-cmp): support more than 2 args. |
| 11939 |
|
| 11940 |
2011-07-30 Shiro Kawai <[email protected]> |
| 11941 |
|
| 11942 |
* doc/modgauche.texi: Documented gauche.cgen; now the API for |
| 11943 |
cgen.unit, cgen.literal and cgen.type are official. |
| 11944 |
|
| 11945 |
* lib/gauche/cgen/unit.scm: Dropped :pre-decl and automatic insertion |
| 11946 |
of "#include <gauche.h>". If we let the module user to insert |
| 11947 |
"#include <gauche.h>", then we don't need pre-decl stuff and it's |
| 11948 |
conceptually simpler. |
| 11949 |
* lib/gauche/cgen/stub.scm, lib/gauche/cgen/precomp.scm, |
| 11950 |
src/autoloads.scm, src/builtin-syms.scm: Changed accordingly. |
| 11951 |
|
| 11952 |
* lib/gauche/type.scm: Some integer stub types used SCM_EXACTP for |
| 11953 |
checking exact integers; that's an old convention. After we have |
| 11954 |
ratnums, it must be checked with SCM_INTEGERP. Fixed. |
| 11955 |
|
| 11956 |
2011-07-27 Shiro Kawai <[email protected]> |
| 11957 |
|
| 11958 |
* lib/gauche/generator.scm: Added gauche.generator experimentally. |
| 11959 |
API may change later. |
| 11960 |
* ext/gauche/test-generator.scm: Tests for gauche.generator. |
| 11961 |
|
| 11962 |
* src/gauche/symbol.h (ScmSymbolRec), src/symbol.c (make_sym): Changed |
| 11963 |
'interned' field to 'flags' field for future extension. See the |
| 11964 |
comment in symbol.h about the binary compatibility. |
| 11965 |
* src/builtin-syms.scm: Changed accordingly. |
| 11966 |
|
| 11967 |
2011-07-26 Shiro Kawai <[email protected]> |
| 11968 |
|
| 11969 |
* lib/gauche/cgen.scm: Include gauche.cgen.cise too. |
| 11970 |
|
| 11971 |
* configure.ac (ipv6): Turn on --enable-ipv6 by default. To compile |
| 11972 |
on a platform that doesn't have getaddrinfo etc, say --disable-ipv6 |
| 11973 |
explicitly. |
| 11974 |
|
| 11975 |
2011-07-25 Shiro Kawai <[email protected]> |
| 11976 |
|
| 11977 |
* lib/gauche/cgen/precomp.scm, lib/gauche/cgen/stub.scm, |
| 11978 |
lib/gauche/cgen/tmodule.scm: Dropped the dependency on an implicitly |
| 11979 |
defined local variable 'mod' in the init function. In the precomp- |
| 11980 |
generated C source, a local variable ScmModule *mod used to be |
| 11981 |
defined to hold the module of the compiled source. It's ugly |
| 11982 |
to depend on such implicit names, and also it was awkward to |
| 11983 |
handle the situation when multiple modules are defined in the |
| 11984 |
precompiled source. Now, if you want to refer to the module |
| 11985 |
inside init functin, you can call Scm_CurrentModule(). |
| 11986 |
* ext/sparse/sparse.scm, ext/threads/threads.scm, ext/text/unicode.scm: |
| 11987 |
Changed accordingly. |
| 11988 |
|
| 11989 |
* configure.ac (multibyte): If --enable-multibyte is given without |
| 11990 |
ENCODING, assume utf-8 instead of euc-jp. |
| 11991 |
|
| 11992 |
* ext/net/addr.c: Allow comparing socket addresses based on the |
| 11993 |
content; that is, (equal? x y) => #t if x and y represents the |
| 11994 |
same address, even they are different instances. |
| 11995 |
|
| 11996 |
* configure.ac, ext/auxsys/auxsysconf.h.in: Check for clearenv() |
| 11997 |
* ext/auxsys/auxsyslib.stub, ext/auxsys/auxsys.scm (sys-clearenv): |
| 11998 |
Support clearenv(3). If we don't have it but have sys-unsetenv, |
| 11999 |
we define sys-clearenv using it. To check availability, use |
| 12000 |
(or gauche.sys.clearenv gauche.sys.unsetenv) in cond-expand. |
| 12001 |
(sys-setenv): Fixed a bug that you couldn't omit the overwrite |
| 12002 |
optional argument. |
| 12003 |
* src/autoloads.scm: Changed accordingly. |
| 12004 |
|
| 12005 |
* lib/rfc/cookie.scm (construct-cookie-string): Recognize :http-only |
| 12006 |
cookie attribute introduced in RFC6265. |
| 12007 |
|
| 12008 |
* src/write.c (format_proc): Allow ~* to position at the next to |
| 12009 |
the last argument. (patch from leque.) |
| 12010 |
|
| 12011 |
* gc/libatomic_ops-1.2/src/atomic_ops/sysdeps/gcc/x86_64.h, |
| 12012 |
gc/configure.ac, gc/Makefile.in, configure.ac: Fix for MacOSX Lion |
| 12013 |
(patch from KOGURO Naoki). |
| 12014 |
|
| 12015 |
2011-07-24 Shiro Kawai <[email protected]> |
| 12016 |
|
| 12017 |
* winnt/wix/* : Support Windows installer based on WiX. This will |
| 12018 |
replace NSIS-based installer. |
| 12019 |
* src/mingw-dist.sh: Changed to make wix installer instead of nsis |
| 12020 |
installer. |
| 12021 |
|
| 12022 |
2011-07-20 Shiro Kawai <[email protected]> |
| 12023 |
|
| 12024 |
* src/char.c, src/char_attr.c, src/gauche/char_attr.h: Added |
| 12025 |
character category and case mapping tables according to Unicode |
| 12026 |
character database. New/revised APIs: Scm_CharGeneralCategory, |
| 12027 |
Scm_CharAlphabeticP, Scm_CharUppercaseP, Scm_CharLowercaseP, |
| 12028 |
Scm_CharTitlecaseP, Scm_CharNumericP, Scm_CharUpcase, |
| 12029 |
Scm_CharDowncase, scm_CharTitlecase, Scm_CharFoldcase. |
| 12030 |
* src/gauche/char_utf_8.h, src/gauche/char_euc_jp.h, |
| 12031 |
src/gauche/char_sjis.h, src/gauche/char_none.h: Some new encoding- |
| 12032 |
specific routines to handle the above functionality. |
| 12033 |
* src/stdlib.stub: Changed char-alphabetic?, char-numeric?, |
| 12034 |
char-upper-case?, char-lower-case?, char-upcase and char-downcase |
| 12035 |
to use the new APIs. |
| 12036 |
* src/extlib.stub: Added char-title-case?, char-titlecase, |
| 12037 |
char-foldcase, char-general-category. |
| 12038 |
* src/gen-unicode.scm: A script to generate character attribute |
| 12039 |
tables from Unicode character database. The generated files are |
| 12040 |
checked in to repos, so developers don't need to run this script |
| 12041 |
regularly. Tables need to be regenerated only when Unicode is |
| 12042 |
updated. To run this script, go down to src/ and do 'make char-data' |
| 12043 |
and follow the instructions. |
| 12044 |
|
| 12045 |
* ext/text/unicode.scm, ext/text/unicode_attr.h: text.unicode |
| 12046 |
module provides unicode-defined operations, including unicode |
| 12047 |
encoding conversions, grapheme-cluster and word segmentation, |
| 12048 |
and string-upcase, string-downcase, string-titlecase and |
| 12049 |
string-foldcase. |
| 12050 |
|
| 12051 |
* doc/corelib.texi, doc/modsrfi.texi, doc/modutil.texi: Added |
| 12052 |
description of new case handling scheme, text.unicode module, |
| 12053 |
and relation to srfi-13 string-upcase etc. |
| 12054 |
|
| 12055 |
* test/chars-strings.scm: Renamed from test/mb-chars.scm and added |
| 12056 |
more tests. |
| 12057 |
|
| 12058 |
2011-07-13 Shiro Kawai <[email protected]> |
| 12059 |
|
| 12060 |
* src/compile.scm (pass4/scan): Fixed a bug that unnecessarily |
| 12061 |
marked dissolved lambda in pass4, confusing the later passes. |
| 12062 |
|
| 12063 |
2011-07-09 Shiro Kawai <[email protected]> |
| 12064 |
|
| 12065 |
* lib/gauche/procedure.scm, src/compile.scm, src/scmlib.scm: |
| 12066 |
Moved case-lambda handling into the core. This is the initial |
| 12067 |
step towards aggresive inlining of case-lambda. |
| 12068 |
* src/autoloads.scm: changed accordingly. |
| 12069 |
* lib/util/queue.scm: changed to use case-lambda; we couldn't use |
| 12070 |
it because of inter-module dependency. now case-lambda is in |
| 12071 |
core and we can use it here. |
| 12072 |
|
| 12073 |
2011-06-30 Shiro Kawai <[email protected]> |
| 12074 |
|
| 12075 |
* lib/rfc/json.scm (print-value, construct-json): Should handle with |
| 12076 |
empty list. Patch from leque. |
| 12077 |
|
| 12078 |
2011-06-27 Shiro Kawai <[email protected]> |
| 12079 |
|
| 12080 |
* lib/gauche/redefutil.scm, test/object.scm: Fixed change-class |
| 12081 |
on class metaobjects to work. |
| 12082 |
* src/class.c, src/gauche.h, src/objlib.scm: Added a mechanism to |
| 12083 |
'seal' the core slots of class metaobjects that are essential |
| 12084 |
for object system to work; for example, changing num-instance-slots |
| 12085 |
after some instances are created would cause disaster. Now these |
| 12086 |
core slots can only be set during class initialization. |
| 12087 |
|
| 12088 |
2011-06-11 Shiro Kawai <[email protected]> |
| 12089 |
|
| 12090 |
* src/port.c (coding_port_recognize_encoding): Fixed a bug in the |
| 12091 |
state machine of encoding magic comment; the lines weren't counted |
| 12092 |
correctly for \r-only or \r\c line endings. |
| 12093 |
|
| 12094 |
2011-06-10 Shiro Kawai <[email protected]> |
| 12095 |
|
| 12096 |
* src/extlib.stub (integer-length): Fixed a bug in the edge |
| 12097 |
case on the boundary of fixnum/bignum switch. |
| 12098 |
|
| 12099 |
2011-05-31 Shiro Kawai <[email protected]> |
| 12100 |
|
| 12101 |
* libsrc/file/util.scm (create-directory-tree): Fixed a bug |
| 12102 |
to treat content-less file spec. Thanks to teppey for the fix. |
| 12103 |
|
| 12104 |
2011-05-30 Shiro Kawai <[email protected]> |
| 12105 |
|
| 12106 |
* lib/control/thread-pool.scm (worker): Fixed a hazard that the |
| 12107 |
worker flagged it was done before queueing the result. |
| 12108 |
Thanks to enami for spotting this. |
| 12109 |
|
| 12110 |
* lib/rfc/json.scm (print-string): Fixed a bug that generates |
| 12111 |
incorrect json string if it contains double-quotes. |
| 12112 |
|
| 12113 |
2011-05-28 Shiro Kawai <[email protected]> |
| 12114 |
|
| 12115 |
* lib/srfi-60.scm: Added srfi-60 support. Most of APIs are just |
| 12116 |
aliases or re-exports of Gauche's builtin bitwise operators. |
| 12117 |
There are also several new APIs. |
| 12118 |
* doc/concepts.texi, doc/corelib.texi, doc/modsrfi.texi: Adjusted |
| 12119 |
accordingly. |
| 12120 |
* test/srfi.scm: Tests for srfi-60 additional procedures. |
| 12121 |
|
| 12122 |
2011-05-27 Shiro Kawai <[email protected]> |
| 12123 |
|
| 12124 |
* src/extlib.stub (logand, logior, logxor): Allows zero and one |
| 12125 |
argument a la SRFI-60. |
| 12126 |
(integer-length): Moved here, for we now have Scm_BitsHighest* |
| 12127 |
API and we can efficiently implement integer-length. |
| 12128 |
* src/autoload.scm, lib/gauche/logical.scm: Removed integer-length. |
| 12129 |
|
| 12130 |
* src/number.c (Scm_LogNot, Scm_LogAnd, Scm_LogIor, Scm_LogXor): |
| 12131 |
The argument check was incorrect (probably a leftover from |
| 12132 |
the time we didn't have rationals), allowing rational numbers |
| 12133 |
to passed to bignum routines, causing crash. |
| 12134 |
|
| 12135 |
2011-05-25 Shiro Kawai <[email protected]> |
| 12136 |
|
| 12137 |
* lib/gauche/common-macros.scm (ecase): Added CL's ecase. |
| 12138 |
* src/autoloads.scm: set ecase to be autoloaded. |
| 12139 |
|
| 12140 |
2011-05-18 Shiro Kawai <[email protected]> |
| 12141 |
|
| 12142 |
* lib/rfc/uri.scm (uri-parse): Added a procedure to resolve relative |
| 12143 |
URI. Originally written by teppey. |
| 12144 |
|
| 12145 |
2011-05-15 Shiro Kawai <[email protected]> |
| 12146 |
|
| 12147 |
* src/read.c (read_list_int): Fixed a bug regarding a dot followed |
| 12148 |
by non-space delimiting characters. |
| 12149 |
|
| 12150 |
2011-04-29 Shiro Kawai <[email protected]> |
| 12151 |
|
| 12152 |
* src/compile.scm (pass1/extended-lambda): Dropped the support of |
| 12153 |
obsoleted keyword argument spec (var keyword init), in favor of |
| 12154 |
formally supported ((keyword var) init). The former spec was never |
| 12155 |
supported officially, and the latter is supported officially since |
| 12156 |
0.9, so this change shouldn't affect the user code. |
| 12157 |
* lib/gauche/cgen/precomp.scm (cgen-precompile), |
| 12158 |
lib/rfc/http.scm (http-request): Changed accordingly. |
| 12159 |
|
| 12160 |
* src/list.c (Scm_Reverse, Scm_ReverseX), src/stdlib.stub (reverse), |
| 12161 |
src/extlib.stub (reverse!): Experimentally added 2-argument reverse. |
| 12162 |
The rationale: If we consider (reverse xs) == (fold cons '() xs), |
| 12163 |
then definining (reverse xs tail) == (fold cons tail xs) looks |
| 12164 |
a natural extension. |
| 12165 |
|
| 12166 |
* libsrc/srfi-1.scm (append-reverse, append-reverse!): These are |
| 12167 |
effectively the same as 2-arg reverse and reverse!, so define them |
| 12168 |
accordingly. |
| 12169 |
|
| 12170 |
* src/list.c (Scm_MonotonicMerge1), src/extlib.stub (monotonic-merge): |
| 12171 |
Cleaned up API of Scm_MonotonicMerge, and monotonic-merge (the Scheme |
| 12172 |
proc is undocumented; the C API is kept during 0.9.x for the ABI |
| 12173 |
compatibility.) |
| 12174 |
|
| 12175 |
* test/list.scm, test/TESTS: Added more tests to list.scm and included |
| 12176 |
it in the standard tests. |
| 12177 |
|
| 12178 |
* src/objlib.scm (%expand-define-method): Support extended argument |
| 12179 |
specifications (:optional etc.) in define-method. |
| 12180 |
|
| 12181 |
2011-04-28 Shiro Kawai <[email protected]> |
| 12182 |
|
| 12183 |
* src/scmlib.scm (map*): Added. |
| 12184 |
* test/procedure.scm: Added tests for map*. |
| 12185 |
|
| 12186 |
2011-04-22 Shiro Kawai <[email protected]> |
| 12187 |
|
| 12188 |
* src/string.c (substring): Fixed a bug that the range check |
| 12189 |
didn't take byterange into account. |
| 12190 |
|
| 12191 |
2011-04-21 Shiro Kawai <[email protected]> |
| 12192 |
|
| 12193 |
* libsrc/file/util.scm (with-lock-file): Fixed stealing logic. |
| 12194 |
|
| 12195 |
2011-04-19 Shiro Kawai <[email protected]> |
| 12196 |
|
| 12197 |
* libsrc/file/util.scm (with-lock-file): Added file-based |
| 12198 |
inter-process locking utility. |
| 12199 |
* ext/file/test.scm: Added test for with-lock-file. |
| 12200 |
|
| 12201 |
2011-04-10 Shiro Kawai <[email protected]> |
| 12202 |
|
| 12203 |
* src/compile.scm (quasiquote): Added support for zero or multi- |
| 12204 |
argument unquote/unquote-splicing. They are R6RS compatible. |
| 12205 |
|
| 12206 |
2011-03-30 Shiro Kawai <[email protected]> |
| 12207 |
|
| 12208 |
* src/compile.scm (pass3/optimize-call): Fixed a bug that may |
| 12209 |
introduce infinite loop in the compiler. |
| 12210 |
|
| 12211 |
2011-03-24 Shiro Kawai <[email protected]> |
| 12212 |
|
| 12213 |
* ext/threads/thread.scm (atom, atomic, atomic-update!, atom-ref): |
| 12214 |
Added atom, a convenience wrapper for thread-safety. |
| 12215 |
|
| 12216 |
2011-03-21 Shiro Kawai <[email protected]> |
| 12217 |
|
| 12218 |
* src/system.c (Scm_SysExec): Support SCM_EXEC_DETACHED flag to |
| 12219 |
detach the exec'ed process from the parent's process group. Useful |
| 12220 |
for starting a daemon process. |
| 12221 |
* src/syslib.stub (sys-exec, sys-fork-and-exec), |
| 12222 |
lib/gauche/process.scm (run-process): Support :detached keyword |
| 12223 |
argument. |
| 12224 |
* test/system.scm: Added tests for :detached #t. |
| 12225 |
|
| 12226 |
2011-03-15 Shiro Kawai <[email protected]> |
| 12227 |
|
| 12228 |
* libsrc/util/match.scm (gen): Reverting the change in 2010-05-29 to |
| 12229 |
avoid exponential growth of expansion time. It turned out that |
| 12230 |
the change can introduce exponential growth of compilation time |
| 12231 |
in certain patterns. (We still keep the change of 2011-03-06, |
| 12232 |
though). |
| 12233 |
|
| 12234 |
2011-03-14 Shiro Kawai <[email protected]> |
| 12235 |
|
| 12236 |
* lib/gauche/time.scm (time-this, time-these, time-these/report): |
| 12237 |
Dropped with-times introduced blow, and instead added comprehensive |
| 12238 |
benchmarking utilities inspired by Perl's Benchmark module. |
| 12239 |
|
| 12240 |
2011-03-13 Shiro Kawai <[email protected]> |
| 12241 |
|
| 12242 |
* src/compile.scm (pass1/define-inline-finish): Fixed a bug that |
| 12243 |
affects inline expansion during precompilation. See the comment |
| 12244 |
for the details. The code since commit d6f23ad1 (2011-03-05) |
| 12245 |
until this fix should not be used to compile Gauche itself, since |
| 12246 |
it yields a corrupt compiler. |
| 12247 |
|
| 12248 |
2011-03-12 Shiro Kawai <[email protected]> |
| 12249 |
|
| 12250 |
* lib/gauche/time.scm (with-times): Added a new procedure to treat |
| 12251 |
the result of 'time' macro programatically. |
| 12252 |
|
| 12253 |
2011-03-07 Shiro Kawai <[email protected]> |
| 12254 |
|
| 12255 |
* src/compile.scm (pass4/lift): Set lifted $lambda name |
| 12256 |
comprehensively as possible. Since lifted lambdas don't have a |
| 12257 |
link to parent code, the scheme of deriving hierarchical name |
| 12258 |
in Scm_CompiledCodeFullName doesn't work. Instead we give |
| 12259 |
the list (<toplevel-name> <name>) in each lifted $lambda node, |
| 12260 |
where <name> is the node's original name if any, or gensym'ed |
| 12261 |
name. |
| 12262 |
|
| 12263 |
* src/main.c (cleanup_main): Fixed -pload option; the original code |
| 12264 |
failed if gauche.vm.profile wasn't loaded. Since we autoload |
| 12265 |
profiler-show-load-stats, we can evaluate it in the gauche module |
| 12266 |
and we don't need FIND_MODULE(gauche.vm.profile). |
| 12267 |
|
| 12268 |
2011-03-06 Shiro Kawai <[email protected]> |
| 12269 |
|
| 12270 |
* libsrc/util/match.scm (inline-let, gen): Removed inline-let, since |
| 12271 |
it does the duplicate work with Gauche's compiler. Also made |
| 12272 |
length>= as a global definition instead of local, since Gauche can |
| 12273 |
inline it anyway. |
| 12274 |
|
| 12275 |
2011-03-05 Shiro Kawai <[email protected]> |
| 12276 |
|
| 12277 |
* lib/gauche/vm/profiler.scm (entry-name): Workaround a problem when |
| 12278 |
case-lambda generates an output that can't be read back. |
| 12279 |
|
| 12280 |
* src/gauche/vm.h, src/intlib.stub, src/main.c: Added a compiler flag |
| 12281 |
-fno-lambda-lifting-pass (SCM_COMPILE_NO_LIFTING) to turn off |
| 12282 |
pass4 for troubleshooting. Also renamed SCM_COMPILE_NO_PASS2OPT to |
| 12283 |
SCM_COMPILE_NO_POST_INLINE_OPT, for the pass numbers can be changed |
| 12284 |
(and indeed they were changed). |
| 12285 |
|
| 12286 |
* src/compile.scm (pass4): Revised pass4 to lift closures for |
| 12287 |
obvious cases (independent, and self-recursive calls). |
| 12288 |
We no longer have compile-toplevel-lambda, since a single toplevel |
| 12289 |
lambda can be compiled into multiple definitions because of lifted |
| 12290 |
lambdas. |
| 12291 |
* src/precomp.scm (handle-define-macro): Changed not to use |
| 12292 |
compile-toplevel-lambda. |
| 12293 |
|
| 12294 |
* lib/gauche/listener.scm (listener-read-handler): Fixed a bug |
| 12295 |
that referenced undefined variable. |
| 12296 |
* lib/gauche/cgen/stub.scm (process-body-spec): ditto. |
| 12297 |
* ext/dbm/gdbm.scm (dbm-open), ext/dbm/ndbm.scm (dbm-open), |
| 12298 |
ext/dbm/odbm.scm (dbm-open): ditto. |
| 12299 |
|
| 12300 |
* src/extlib.stub (method-code), lib/gauche/procedure.scm (disasm): |
| 12301 |
Support disassembling generic functions and methods. |
| 12302 |
|
| 12303 |
2011-02-28 Shiro Kawai <[email protected]> |
| 12304 |
|
| 12305 |
* Repository moved to git. |
| 12306 |
|
| 12307 |
* src/system.c (time_print): Fixed display when time-second is |
| 12308 |
negative. |
| 12309 |
|
| 12310 |
2011-02-27 Shiro Kawai <[email protected]> |
| 12311 |
|
| 12312 |
* src/string.c (Scm_StringCmp): It is supposed to return either |
| 12313 |
-1, 0 or 1 if we want to use the value for generic compare, |
| 12314 |
but it could return values as if only its sign matters. |
| 12315 |
|
| 12316 |
* src/gauche/number.h (Scm_VMExactToInexact): Fixed a bug introduced |
| 12317 |
on 2010-06-19 that breaks the binary compatibility from 0.9. |
| 12318 |
|
| 12319 |
2011-02-25 Shiro Kawai <[email protected]> |
| 12320 |
|
| 12321 |
* lib/gauche/package.scm (get-all-version-paths): Fixed a bug that |
| 12322 |
caused an error if *load-path* contains a nonexistent path. |
| 12323 |
|
| 12324 |
2011-02-24 Shiro Kawai <[email protected]> |
| 12325 |
|
| 12326 |
* ext/threads/threads.c (Scm_ThreadStop): Fixed a bug that prevented |
| 12327 |
timeout from working. |
| 12328 |
|
| 12329 |
2011-02-23 Shiro Kawai <[email protected]> |
| 12330 |
|
| 12331 |
* lib/gauche/test.scm (test-one-of, test-check): Added 'one-of' type |
| 12332 |
test result match. Also add optional arg to test-check so that one |
| 12333 |
can customize fallback comparison procedure. |
| 12334 |
* test/process.scm: Use test-one-of in checking exit status of "cat", |
| 12335 |
for it differs on Solaris. Also make sure we execute the same |
| 12336 |
commands of ls, cat and grep to compare the results, by finding |
| 12337 |
absolute paths for them. |
| 12338 |
|
| 12339 |
2011-02-22 Shiro Kawai <[email protected]> |
| 12340 |
|
| 12341 |
* configure.ac: Added special handling of CFLAGS on Solaris. See |
| 12342 |
http://practical-scheme.net/chaton/gauche/a/2011/02/22#entry-4d6439f9-a10fb |
| 12343 |
|
| 12344 |
2011-02-18 Shiro Kawai <[email protected]> |
| 12345 |
|
| 12346 |
* lib/gauche/interactive/info.scm, lib/text/info.scm: Support |
| 12347 |
bzip2-ed info files. |
| 12348 |
|
| 12349 |
2011-02-10 Shiro Kawai <[email protected]> |
| 12350 |
|
| 12351 |
* lib/util/combinations.scm (combinations): Substituted for an |
| 12352 |
optimized version written by Teranishi-san |
| 12353 |
( http://practical-scheme.net/wiliki/wiliki.cgi/teranishi ). |
| 12354 |
|
| 12355 |
* rfc/http.scm (with-connection, reset-http-connection): Added |
| 12356 |
tentative support of persistent connection. Currently it doesn't |
| 12357 |
handle the case when the server abandons the connection---we |
| 12358 |
should detect it and retry. Besides, the connection should be |
| 12359 |
reset if an error occurs during handling the communication. |
| 12360 |
Use with care, and do not assume this is the final behavior. |
| 12361 |
(receive-body): Changed the handling of the case when response size |
| 12362 |
is unknown. Now we pass the receive handler #f in that case. The |
| 12363 |
receive handler should read as much data as it want and need to call |
| 12364 |
the retriever thunk again. The predefined *-receivers are adjusted |
| 12365 |
accordingly. |
| 12366 |
|
| 12367 |
2011-02-05 Shiro Kawai <[email protected]> |
| 12368 |
|
| 12369 |
* lib/srfi-42.scm (%replace-keywords): Made it hygiene. The previous |
| 12370 |
versions failed when the inserted srfi-42-* symbols were not imported. |
| 12371 |
|
| 12372 |
2011-02-02 Shiro Kawai <[email protected]> |
| 12373 |
|
| 12374 |
* src/number.c (algorithmR): Correct error estimation at the |
| 12375 |
normalized/denormalized boundary. This avoids the infinite loop |
| 12376 |
while reading 2.2250738585072012e-308. |
| 12377 |
|
| 12378 |
2011-01-17 Shiro Kawai <[email protected]> |
| 12379 |
|
| 12380 |
* lib/binary/ftype.scm, ext/binary/io.scm, ext/binary/test.scm: |
| 12381 |
Splitted foreign type stuff into separate module. API naming is |
| 12382 |
still undecided. |
| 12383 |
|
| 12384 |
2011-01-12 Shiro Kawai <[email protected]> |
| 12385 |
|
| 12386 |
* libsrc/gauche/parameter.scm (%parameterize): Fixed another bug |
| 12387 |
that appear when the outer binding of a parameter object (not the |
| 12388 |
value of the parameter object) is altered during execution of |
| 12389 |
the body. |
| 12390 |
|
| 12391 |
* lib/gauche/portutil.scm (port->string, port->string-list): Fixes |
| 12392 |
a bug that these procs return prematurely if the input contains |
| 12393 |
an illegal octed sequence for the internal encoding. Now they |
| 12394 |
return incomplete string(s). |
| 12395 |
|
| 12396 |
* src/stdlib.stub (numcmp): Fixed a bug that handles more than four |
| 12397 |
arguments incorrectly. |
| 12398 |
|
| 12399 |
2011-01-09 Shiro Kawai <[email protected]> |
| 12400 |
|
| 12401 |
* src/system.c (Scm_NormalizePathname): Support '~' expansion on |
| 12402 |
Windows native platform. |
| 12403 |
* libsrc/file/util.scm (home-directory): Use the above feature to |
| 12404 |
obtain the home directory. |
| 12405 |
|
| 12406 |
2011-01-08 Shiro Kawai <[email protected]> |
| 12407 |
|
| 12408 |
* lib/rfc/json.scm (construct-json): Allow optional output port, |
| 12409 |
for the consistency. |
| 12410 |
|
| 12411 |
* lib/control/thread-pool.scm: (<thread-pool>): Added shut-down slot. |
| 12412 |
(<thread-pool-shut-down>): A new condition raised by add-job!. |
| 12413 |
(thread-pool-results, thread-pool-shut-down?): External API. |
| 12414 |
(add-job!): Raises <thread-pool-shut-down> if the pool is shut down. |
| 12415 |
(termiante-all): Added cancel-queued-jobs keyword argument. |
| 12416 |
marks executing jobs to be killed when terminating threads forcibly. |
| 12417 |
|
| 12418 |
2011-01-07 Shiro Kawai <[email protected]> |
| 12419 |
|
| 12420 |
* lib/control/thread-pool.scm (add-job!): Added timeout optional |
| 12421 |
argument, and made the default timeout behavior from returning |
| 12422 |
immediately to wait indefinitely. |
| 12423 |
(wait-all): Added timeout optional argument before check-interval |
| 12424 |
optional argument. |
| 12425 |
THESE ARE INCOMPATIBLE CHANGES. |
| 12426 |
|
| 12427 |
2011-01-06 Shiro Kawai <[email protected]> |
| 12428 |
|
| 12429 |
* lib/binary/pack.scm (make-number-pack-dispatcher): Fixed a bug |
| 12430 |
that used peek-char to see if input reached at end. As of 0.9.1, |
| 12431 |
the return value of peek-char is unspecified if the next input is |
| 12432 |
an invalid char, and the current impelemntation happened to |
| 12433 |
return #<eof> in such case. |
| 12434 |
|
| 12435 |
* libsrc/gauche/parameter.scm: Fixed a bug that the filter procedure |
| 12436 |
was called unintentionally when the old value was restored upon |
| 12437 |
exitting parameterize. |
| 12438 |
Also fixed another bug that appear when the parameterize body is |
| 12439 |
reentered. See the added test in ext/gauche/test-parameter.scm. |
| 12440 |
|
| 12441 |
2011-01-02 Shiro Kawai <[email protected]> |
| 12442 |
|
| 12443 |
* src/gauche/load.h, src/gauche/vm.h, src/load.c, src/vm.c: |
| 12444 |
Moved load-time dynamic environment stuff (load_history, load_next, |
| 12445 |
load_port out of ScmVM structure, and manage them by the parameter |
| 12446 |
slots. It is inconvenient to have these thread-specific dynamic |
| 12447 |
enviornment within ScmVM, since we can't change them freely because |
| 12448 |
of the binary compatibility. (We keep dummy slots in place of |
| 12449 |
these slots of ScmVM during 0.9.x series for binary compatibility, |
| 12450 |
though.) |
| 12451 |
New APIs in load.h: Scm_CurrentLoadHistory(), Scm_CurrentLoadNext(), |
| 12452 |
Scm_CurrentLoadPort(), to access these dynamic values. |
| 12453 |
Also start adding SCM_LOAD_MAIN_SCRIPT flag support (not functional |
| 12454 |
yet.) |
| 12455 |
* src/stdlib.stub (load), src/extlib.stub (load-from-port, |
| 12456 |
current-load-history, current-load-next, current-load-port): |
| 12457 |
Changed accordingly. A new keyword argument :main-script is |
| 12458 |
added to load and load-from-port to turn on SCM_LOAD_MAIN_SCRIPT |
| 12459 |
flag during loading. |
| 12460 |
|
| 12461 |
* src/module.c (Scm_FindBinding): Fixed a mpl search bug reported |
| 12462 |
by Ryo Akagi. This is a quick fix, and may have negative |
| 12463 |
impact on Scm_FindBinding performance. Need to come back later |
| 12464 |
to evaluate it. |
| 12465 |
* test/module.scm: Added regression tests for the above bug. |
| 12466 |
|
| 12467 |
2010-12-31 Shiro Kawai <[email protected]> |
| 12468 |
|
| 12469 |
* src/compile.scm (pass4): Some more preparation of lambda |
| 12470 |
lifting. The feature is not completed yet, so pass4 is basicaly |
| 12471 |
no-op for the time being. |
| 12472 |
|
| 12473 |
2010-12-24 Shiro Kawai <[email protected]> |
| 12474 |
|
| 12475 |
* ext/binary/io.scm, ext/binary/binarylib.scm: Experimentally |
| 12476 |
adding foreign struct infrastructure. API is still fluid, |
| 12477 |
so do not count on the current state. |
| 12478 |
|
| 12479 |
* lib/gauche/record.scm (compute-get-n-set): Fixed a bug that |
| 12480 |
the slot index was calculated incorrectly when inheritance was |
| 12481 |
used. It didn't affect if you only uses record accessors, but |
| 12482 |
it became visible when you tried to access the record with |
| 12483 |
slot-ref and slot-set!. See the added tests in |
| 12484 |
ext/gauche/test-record.scm. |
| 12485 |
|
| 12486 |
2010-12-23 Shiro Kawai <[email protected]> |
| 12487 |
|
| 12488 |
* ext/uvector/uvlib.stub.tmpl (uvector-copy!): Added generic copy |
| 12489 |
procedure. |
| 12490 |
|
| 12491 |
* configure.ac, src/gauche/config.h.in (HAVE_LONG_LONG): Added check |
| 12492 |
for long long. |
| 12493 |
|
| 12494 |
2010-12-22 Shiro Kawai <[email protected]> |
| 12495 |
|
| 12496 |
* src/vm.c (Scm_NewVM): Fixed not to copy vm->cstack from proto |
| 12497 |
vm; they may contain a bogus stack value from a different thread. |
| 12498 |
|
| 12499 |
2010-12-21 Shiro Kawai <[email protected]> |
| 12500 |
|
| 12501 |
* ext/util/queue.scm (list->queue): Fixed a bug that prevented |
| 12502 |
list->queue from working for any arguments. :rest arguments |
| 12503 |
shouldn't have default value, since its default value is () |
| 12504 |
by definition. (But it should be reported as syntax error.) |
| 12505 |
|
| 12506 |
2010-12-19 Shiro Kawai <[email protected]> |
| 12507 |
|
| 12508 |
* src/compile.scm: Renamed pass4 -> pass5, and created pass4 for |
| 12509 |
free variable scanning for lambda lifting. free-lvars procedure |
| 12510 |
is removed. (The transition isn't completed yet.) |
| 12511 |
* src/vminsn.scm (LOCAL-ENV-CLOSURES): Allow literal closure |
| 12512 |
to appear in the operand. |
| 12513 |
|
| 12514 |
2010-12-16 Shiro Kawai <[email protected]> |
| 12515 |
|
| 12516 |
* src/compile.scm (pass3/optimize-call): Fixed an optimizer bug |
| 12517 |
that caused reset-lvars to be called on the same set of lvars |
| 12518 |
more than once, screwing up lvar counts. See the added test |
| 12519 |
in test/primsyn.scm. |
| 12520 |
|
| 12521 |
2010-12-15 Shiro Kawai <[email protected]> |
| 12522 |
|
| 12523 |
* lib/gauche/cgen/precomp.scm: Allow toplevel closure to be a |
| 12524 |
compile-time literal. |
| 12525 |
|
| 12526 |
* src/vm.c (Scm_VMEval): Fixed a bug that made "eval"-ed expression |
| 12527 |
to be executed under the caller's local environment, instead of |
| 12528 |
toplevel environment. Compilation was done in toplevel env, so |
| 12529 |
it didn't affect meaning of the program; however, closures created |
| 12530 |
at runtime got unnecessary environment. |
| 12531 |
|
| 12532 |
* src/compile.scm: Renamed Pass 3 to Pass 4, and Pass 2p to Pass 3, |
| 12533 |
since Pass 2p was actually a separate pass. |
| 12534 |
|
| 12535 |
2010-12-14 Shiro Kawai <[email protected]> |
| 12536 |
|
| 12537 |
* src/gauche.h (ScmBox), src/vminsn.scm (BOX), src/box.c: Added 'box' |
| 12538 |
object for mutable local variable optimization. |
| 12539 |
* src/compile.scm, src/vminsn.scm: Changed pass3 to use boxes for |
| 12540 |
mutable local variables. |
| 12541 |
|
| 12542 |
* lib/gauche/regexp.scm (rxmatch-case): Allow (else => proc) form, |
| 12543 |
just like 'case'. |
| 12544 |
|
| 12545 |
2010-12-12 Shiro Kawai <[email protected]> |
| 12546 |
|
| 12547 |
* release 0.9.1 (repackaging): The gauche-config bug will be |
| 12548 |
huge annoyance, so we repackage 0.9.1. |
| 12549 |
|
| 12550 |
* src/genconfig.in: The directory structure change wasn't reflected |
| 12551 |
in gauche-config --pkg{inc|lib}dir. |
| 12552 |
|
| 12553 |
* DIST (doc): Needs some tweaking. Maybe texi2html has changed. |
| 12554 |
* doc/ja-init.pl: Turned off USE_UNICODE. Somehow the original |
| 12555 |
code started produce incorrect encoding in the titles only |
| 12556 |
I don't know if this is a correct fix, but it seems working. |
| 12557 |
|
| 12558 |
2010-12-11 Shiro Kawai <[email protected]> |
| 12559 |
|
| 12560 |
* release 0.9.1 |
| 12561 |
|
| 12562 |
2010-12-10 Shiro Kawai <[email protected]> |
| 12563 |
|
| 12564 |
* src/system.c (Scm_SysExec): Honor the directory argument on |
| 12565 |
Windows-native code path as well. |
| 12566 |
|
| 12567 |
* src/scmlib.scm: Modify *load-path* to include pre-0.9.1 |
| 12568 |
directory structure for the backward compatibility. |
| 12569 |
|
| 12570 |
* src/makeverslink.in: Create a symlinc from libgauche.so to |
| 12571 |
libgauche-0.9.so for the backward compatibility; extensions |
| 12572 |
compiled for 0.9 refers to libgauche.so, and they need to |
| 12573 |
be working after installation of 0.9.1. |
| 12574 |
|
| 12575 |
* configure.ac, */Makefile.in, src/genconfig.in: |
| 12576 |
Changed library installation directory from ${datadir}/gauche |
| 12577 |
to ${datadir}/gauche-${ABI_VERSION}. This is also for the |
| 12578 |
consistency with architecture-dependent libraries. |
| 12579 |
|
| 12580 |
* test/scripts.scm: Kludge to make gauche-package work during |
| 12581 |
tests without installed Gauche. |
| 12582 |
|
| 12583 |
2010-12-09 Shiro Kawai <[email protected]> |
| 12584 |
|
| 12585 |
* rfc/json.scm: Renamed API procedures for the consistency: |
| 12586 |
->json to construct-json (cf. rfc.cookie), the base |
| 12587 |
procedures now take a port, and *-string version takes |
| 12588 |
string. |
| 12589 |
|
| 12590 |
2010-12-08 Shiro Kawai <[email protected]> |
| 12591 |
|
| 12592 |
* src/vmcall.c: Detect the attempt to invoke a method directly |
| 12593 |
without using a generic function, and make it an error. |
| 12594 |
|
| 12595 |
2010-12-07 Shiro Kawai <[email protected]> |
| 12596 |
|
| 12597 |
* lib/Makefile.in: Install rfc.json. |
| 12598 |
|
| 12599 |
* ext/peg/*, ext/Makefile.in, configure.ac: Enabled parser.peg. |
| 12600 |
It is only to expose rfc.json officially. The API of parser.peg |
| 12601 |
is still unofficial, and it is very likely to be changed before |
| 12602 |
the final version. Do not directly use it. |
| 12603 |
|
| 12604 |
2010-12-04 Shiro Kawai <[email protected]> |
| 12605 |
|
| 12606 |
* test/scripts.scm, test/TEST, test/TEST2: More tests for utility |
| 12607 |
scripts. It uses extension modules, so moved to TEST2. |
| 12608 |
|
| 12609 |
* ext/template.configure.ac, ext/template.Makefile.in, |
| 12610 |
examples/mqueue-cpp/{Makefile.in,configure.ac}, |
| 12611 |
examples/spigot/{Makefile.in,configure.ac}: Take care of the |
| 12612 |
case when Gauche is installed under pathnames with spaces. |
| 12613 |
|
| 12614 |
2010-12-03 Shiro Kawai <[email protected]> |
| 12615 |
|
| 12616 |
* configure.ac, src/genconfig.in: Reverted -I and -L *not* to quote |
| 12617 |
the pathnames. Since quote processing is done before parameter |
| 12618 |
substitution, we cannot include quoted pathnames for the output |
| 12619 |
to be used in `command` and $parameter substitutions. In fact, |
| 12620 |
there's no way to have pathnames with whitespaces in it to be |
| 12621 |
used with `gauche-config -I` magic. Instead, --incdirs and |
| 12622 |
--archdirs options are added that returns (semi)colon-separated |
| 12623 |
list of directories to be used for -I and -L option. |
| 12624 |
`gauche-config -I` and `gauche-config -L` are kept for backward |
| 12625 |
compatibility. |
| 12626 |
* lib/gauche/package/compile.scm: Changed to use --incdirs and |
| 12627 |
--archdirs instead of -I and -L, so that it can handle pathnames |
| 12628 |
with spaces correctly. |
| 12629 |
|
| 12630 |
2010-12-01 Shiro Kawai <[email protected]> |
| 12631 |
|
| 12632 |
* libsrc/gauche/collection.scm (call-with-builder): Fixed <tree-map> |
| 12633 |
builder that barfed about :size keyword argument. |
| 12634 |
|
| 12635 |
2010-11-29 Shiro Kawai <[email protected]> |
| 12636 |
|
| 12637 |
* src/read.c (read_char): Fixed a bug that recognized character |
| 12638 |
names only when prefix matches, e.g. #\spa. It wasn't a design |
| 12639 |
to allow arbitrarily abbreviated names. |
| 12640 |
|
| 12641 |
2010-11-26 Shiro Kawai <[email protected]> |
| 12642 |
|
| 12643 |
* src/main.c: We don't need event_loop here; it is more natural for |
| 12644 |
Windows script to code event loop within it. |
| 12645 |
|
| 12646 |
2010-11-25 Shiro Kawai <[email protected]> |
| 12647 |
|
| 12648 |
* examples/windows/*: Start adding some crude examples for |
| 12649 |
windows-specific scripting. |
| 12650 |
|
| 12651 |
2010-11-24 Shiro Kawai <[email protected]> |
| 12652 |
|
| 12653 |
* ext/windows/*, ext/configure.in, configure.ac: Added os.windows |
| 12654 |
module to provide Windows specific procedures. Windows Console |
| 12655 |
functions previously defined in gauche.termios are also moved here. |
| 12656 |
* ext/termios/termiolib.stub, ext/termios/termios.scm: Moved |
| 12657 |
Windows Conosle functions to ext/windows/console.stub. |
| 12658 |
|
| 12659 |
2010-11-23 Shiro Kawai <[email protected]> |
| 12660 |
|
| 12661 |
* configure.ac, src/Makefile.in: Renamed windows no-console binary |
| 12662 |
to more descriptive gosh-noconsole.exe. This is something |
| 12663 |
users do not type manually, so long name is ok. |
| 12664 |
|
| 12665 |
* src/number.c (Scm_IsInf): Added extra volatile to suppress gcc |
| 12666 |
to be too clever; gcc-4.5.0 on MinGW seems to optimize away |
| 12667 |
the inifinity check without this. Won't affect to platforms |
| 12668 |
that provides isinf(). |
| 12669 |
|
| 12670 |
* src/port.c (Scm__SetupPortsForWindows): Added a hack for Windows |
| 12671 |
no-console application. If Scheme program attempts to write to |
| 12672 |
stdout or stderr, a new console is allocated and the output will |
| 12673 |
be redirected to it. API should be reconsidered to abstract away |
| 12674 |
platform-dependence. |
| 12675 |
* src/main.c (main): Refactored away some platform-specific stuff |
| 12676 |
from main(). |
| 12677 |
|
| 12678 |
* src/gauche/win-compat.h: Explicitly support Windows 2000 or later |
| 12679 |
by defining WINVER before including windows.h. |
| 12680 |
|
| 12681 |
* src/extlib.stub (standard-*-port), src/port.c (Scm_SetStd*): |
| 12682 |
Allow standard-input-port etc to be altered by the optional |
| 12683 |
argument. |
| 12684 |
|
| 12685 |
2010-11-22 Shiro Kawai <[email protected]> |
| 12686 |
|
| 12687 |
* src/genconfig.in: Quote pathnames in -I and -L option. They may |
| 12688 |
have spaces in them. Note: For other options that directly returns |
| 12689 |
pathnames, it's up to the caller to properly quote them, since |
| 12690 |
the tool doesn't know who is calling it. |
| 12691 |
|
| 12692 |
* winnt/nsis/setup.nsi.in: Adds $INSTDIR\bin to the PATH on |
| 12693 |
installation. |
| 12694 |
|
| 12695 |
* src/main.c (init_console): Adapted to windows non-console mode. |
| 12696 |
* src/winmain.c: A kludge to compile non-console binary for windows. |
| 12697 |
On windows, we create gosh.exe and gish.exe, where the former |
| 12698 |
is a console application and the latter is a non-console |
| 12699 |
application. |
| 12700 |
* configure.ac, src/Makefile.in: Changed accordingly. |
| 12701 |
* winnt/nsis/setup.nsi.in: Install gish.exe as well, and create |
| 12702 |
an association from .scm suffix to gish.exe---so that Scheme |
| 12703 |
script starts with non-console mode by double-clicking. |
| 12704 |
* winnt/nsis/Makefile, winnt/README.txt, DIST: Adapted for |
| 12705 |
MinGW+MSYS build. We no longer need cygwin. Also allow |
| 12706 |
Gauche-gl to be included in the installer. |
| 12707 |
|
| 12708 |
2010-11-21 Shiro Kawai <[email protected]> |
| 12709 |
|
| 12710 |
* src/paths.c (Scm_GetRuntimeDirectory), src/paths.h |
| 12711 |
src/core.c (Scm__RuntimeDirectory), src/gauche.h, |
| 12712 |
src/extlib.stub (%gauche-runtime-directory): A quick hack to |
| 12713 |
expose runtime directory on limited platforms. Needed to fix |
| 12714 |
gauche.config on windows. Not for general use. |
| 12715 |
* src/genconfig.in (gauche-config): The gauche-config procedure |
| 12716 |
in gauche.config to replace '@' prefix included in the return |
| 12717 |
value, on Windows. The return value now matches what you get |
| 12718 |
with the command-line version. |
| 12719 |
|
| 12720 |
* lib/gauche/package/util.scm (run): Fixed so that the build |
| 12721 |
commands can be run on Windows (MinGW+MSYS). Now gauche-package |
| 12722 |
works on it. |
| 12723 |
|
| 12724 |
2010-11-20 Shiro Kawai <[email protected]> |
| 12725 |
|
| 12726 |
* libsrc/file/util.scm (console-device): Added. |
| 12727 |
|
| 12728 |
* libsrc/gauche/parameter.scm (setter): Added generalized setter |
| 12729 |
for parameters; suggested by KOGURO, Naoki. |
| 12730 |
|
| 12731 |
* lib/gauche/process.scm (%setup-iomap): Use sys-tmpdir to decide |
| 12732 |
the location of temporary file when needed. |
| 12733 |
* libsrc/file/util.scm (temporary-directory): Also uses sys-tmpdir |
| 12734 |
as the default value. |
| 12735 |
|
| 12736 |
* src/system.c (Scm_TmpDir), src/syslib.stub (sys-tmpdir): Added |
| 12737 |
for the consistent treatment of temporary directories across |
| 12738 |
platforms. |
| 12739 |
|
| 12740 |
* src/system.c (Scm_Mkstemp): Fixed PRNG for tmp file name; the lower |
| 12741 |
bits has low entropy. |
| 12742 |
|
| 12743 |
* lib/rfc/http.scm (http-secure-connection-available?): Exported for |
| 12744 |
general use. |
| 12745 |
* doc/motutil.texi (rfc.http): Officially document :secure option. |
| 12746 |
|
| 12747 |
* ltmain.m4, gc/acinclude.m4, gc/aclocal.m4, gc/libtool.m4: Updated. |
| 12748 |
Note: now it requires autoconf-2.65 or later. |
| 12749 |
|
| 12750 |
2010-11-19 Shiro Kawai <[email protected]> |
| 12751 |
|
| 12752 |
* depcomp, compile, config.guess, config.sub, mkinstalldirs, |
| 12753 |
missing, install-sh, aclocal.m4: Updated to catch up to the |
| 12754 |
recent autotools. |
| 12755 |
|
| 12756 |
* src/compile.scm (pass2/check-constant-asm): Added constant folding |
| 12757 |
for $asm nodes with ASSQ, ASSV, VEC-REF, VEC-LEN and NEGATE insns. |
| 12758 |
If these weren't inlined to VM instructions, constant expression |
| 12759 |
using these would be precomputed because corresponding SUBRs are |
| 12760 |
constant function. However, inlining to VM instructions is done |
| 12761 |
at pass1, where constant folding with SUBRs are done in pass2, so |
| 12762 |
the compiler failed to fold constant expressions using these |
| 12763 |
functions. Eventually we want some means to integrate implementation |
| 12764 |
of SUBRs and optimization of corresponding $asm nodes. |
| 12765 |
|
| 12766 |
2010-11-12 Shiro Kawai <[email protected]> |
| 12767 |
|
| 12768 |
* lib/rfc/http.scm: Changed receiver and sender interface to make |
| 12769 |
them simpler and composable. For receiver we use partial |
| 12770 |
continuation to make it work like coroutine. The predefined |
| 12771 |
receivers and senders are updated. |
| 12772 |
|
| 12773 |
* lib/control/thread-pool.scm (terminate-all!): Make force-timeout |
| 12774 |
keyword arg. We might add more keyword args to tweak behavior |
| 12775 |
of termination. |
| 12776 |
|
| 12777 |
2010-11-11 Shiro Kawai <[email protected]> |
| 12778 |
|
| 12779 |
* lib/gauche/process.scm (run-process): Added support of '<<<', |
| 12780 |
'<&' and '>&' in :redirects argument. Allow uniform vector |
| 12781 |
for '<<' redirection. |
| 12782 |
|
| 12783 |
2010-10-15 Shiro Kawai <[email protected]> |
| 12784 |
|
| 12785 |
* ext/sxml/src/sxpath.scm (sxpath): Reflected sxpath bug fix on |
| 12786 |
namespace alist from upstream. Fix from teppey. |
| 12787 |
* ext/sxml/test.scm: A test added for the above fix. |
| 12788 |
|
| 12789 |
2010-10-06 Shiro Kawai <[email protected]> |
| 12790 |
|
| 12791 |
* lib/rfc/ftp.scm (<ftp-error>): Documented but not exported. |
| 12792 |
Fix from Masatake YAMATO. |
| 12793 |
|
| 12794 |
* ext/sxml/src/txpath.scm (sxml:parse-function-call): Fix txpath's |
| 12795 |
'contains' operator. The upstream fix http://ssax.cvs.sourceforge.net/viewvc/ssax/sxml-tools/txpath.scm?r1=1.6&r2=1.7 |
| 12796 |
Fix from teppey. |
| 12797 |
|
| 12798 |
2010-09-18 Shiro Kawai <[email protected]> |
| 12799 |
|
| 12800 |
* ext/srfi/srfi-19.scm (tm:leap-second-table): Updated to reflect |
| 12801 |
new leap seconds. |
| 12802 |
|
| 12803 |
2010-09-12 Shiro Kawai <[email protected]> |
| 12804 |
|
| 12805 |
* lib/dbm/dump, lib/dbm/restore: Added utility scripts. |
| 12806 |
* lib/dbm.scm (dbm-type->class): Added a utility procedure to load |
| 12807 |
and use specific dbm at run-time. |
| 12808 |
|
| 12809 |
2010-09-04 Shiro Kawai <[email protected]> |
| 12810 |
|
| 12811 |
* src/signal.c (Scm_SetSignalHandler): Represent the status of |
| 12812 |
signal handler that "Gauche does not handle the signal" by |
| 12813 |
#<undef>. It used to be #f, but it is also used to represent |
| 12814 |
SIG_DFL and caused an unwanted alteration of signal handlers |
| 12815 |
by with-signal-handler. The original fix is provided by |
| 12816 |
enami. |
| 12817 |
|
| 12818 |
* lib/rfc/http.scm: More rubust support of external stunnel handling |
| 12819 |
for https connection. |
| 12820 |
* lib/gauche/process.scm (run-process): Generalized I/O redirection |
| 12821 |
handling to allow more flexible redirection, closer to shell. |
| 12822 |
|
| 12823 |
2010-08-23 Shiro Kawai <[email protected]> |
| 12824 |
|
| 12825 |
* libsrc/file/util.scm (home-directory): Added support for Windows. |
| 12826 |
(null-device): Added. |
| 12827 |
|
| 12828 |
2010-08-04 Shiro Kawai <[email protected]> |
| 12829 |
|
| 12830 |
* lib/rfc/mime.scm (<mime-part>): Fixed typo (Patch from |
| 12831 |
Hayashi Masahiro). |
| 12832 |
* lib/rfc/http.scm (http-compose-form-data): Respect content-transfer- |
| 12833 |
encoding keyword argument. (Patch from Hayashi Masahiro). |
| 12834 |
|
| 12835 |
2010-08-01 Shiro Kawai <[email protected]> |
| 12836 |
|
| 12837 |
* lib/gauche/dictionary.scm (call-with-iterator): Implemented |
| 12838 |
minimum collection protocol for bimap. Need to think more |
| 12839 |
about bulders and other shortcuts, but this one fills the |
| 12840 |
needs for the time being. |
| 12841 |
* test/dict.scm: Added bimap collection test. |
| 12842 |
|
| 12843 |
2010-07-01 Shiro Kawai <[email protected]> |
| 12844 |
|
| 12845 |
* lib/gauche/cgen/precomp.scm (handle-define, handle-define-macro): |
| 12846 |
Escape strings in C-comment properly. |
| 12847 |
|
| 12848 |
2010-06-30 Shiro Kawai <[email protected]> |
| 12849 |
|
| 12850 |
* lib/gauche/numerical.scm (%exact-integer-sqrt): Fixed a bug |
| 12851 |
when the given arg is too large to coerce to double. |
| 12852 |
|
| 12853 |
2010-06-19 Shiro Kawai <[email protected]> |
| 12854 |
|
| 12855 |
* src/number.c (Scm_Numerator, Scm_Denominator): Bug fix for |
| 12856 |
inexact arguments. |
| 12857 |
(Scm_Exact, Scm_Inexact, Scm_VMInexact): We're naming |
| 12858 |
Scm_InexactToExact etc.; they are more concise without loss |
| 12859 |
of meaning. To keep binary compatibility, shorter names are |
| 12860 |
macros during 0.9.x. In 1.0 we'll switch macros and instances. |
| 12861 |
* src/write.c, src/number.c, src/vminsn.scm, src/stdlib.stub, |
| 12862 |
src/extlib.stub: Modified according to the above change. |
| 12863 |
|
| 12864 |
* lib/gauche/numerical.scm (div, mod, div0, mod0, div-and-mod) |
| 12865 |
(div0-and-mod0): Added R6RS integer divisions. |
| 12866 |
|
| 12867 |
2010-06-17 Shiro Kawai <[email protected]> |
| 12868 |
|
| 12869 |
* lib/gauche/numerical.scm (inexact, exact, real-valued?) |
| 12870 |
(rational-valued?, integer-valued?): Added for R6RS compatibiltiy. |
| 12871 |
|
| 12872 |
* src/stdlib.stub (rational?): Exclude +inf.0, -inf.0 and +nan.0 from |
| 12873 |
the set of rational numbers. These are the only numbers that are |
| 12874 |
real but not rational. |
| 12875 |
|
| 12876 |
* lib/gauche/numerical.scm (exact-integer-sqrt): Added. |
| 12877 |
(sqrt): Revised so that it returns exact number if the argument |
| 12878 |
is a square of exact real number. |
| 12879 |
* src/autoloads.scm (exact-integer-sqrt): Added. |
| 12880 |
|
| 12881 |
2010-06-16 Shiro Kawai <[email protected]> |
| 12882 |
|
| 12883 |
* src/compile.scm (pass2/check-constant-asm): Fold numeric operation |
| 12884 |
$ASMs on constant arguments. |
| 12885 |
|
| 12886 |
2010-06-08 Shiro Kawai <[email protected]> |
| 12887 |
|
| 12888 |
* src/write.c (write_ss_rec): Fixed an infinite recursion problem |
| 12889 |
when attempting to print (cdr #1='#1#). |
| 12890 |
|
| 12891 |
2010-06-07 Shiro Kawai <[email protected]> |
| 12892 |
|
| 12893 |
* ext/template.DIST: Exclude .git from being included to distribution |
| 12894 |
tarball. |
| 12895 |
|
| 12896 |
2010-05-29 Shiro Kawai <[email protected]> |
| 12897 |
|
| 12898 |
* libsrc/util/match.scm (gen): For certain patterns, this function |
| 12899 |
can be called exponential times, taking very long for expansion. |
| 12900 |
This fixes exponential expansion time by avoiding calling gen |
| 12901 |
on the same patterns. |
| 12902 |
|
| 12903 |
2010-05-28 Shiro Kawai <[email protected]> |
| 12904 |
|
| 12905 |
* lib/rfc/http.scm (http-request): Committing tentative SENDER |
| 12906 |
protocol. NB: I'm going to try a different protocol, |
| 12907 |
so take this version with a grain of salt. |
| 12908 |
|
| 12909 |
* ext/uvector/uvlib.stub.tmpl (uvector-size): Allow start and end |
| 12910 |
optional arguments, for the consistency with write-block. |
| 12911 |
Also documented this function. |
| 12912 |
|
| 12913 |
2010-05-26 Shiro Kawai <[email protected]> |
| 12914 |
|
| 12915 |
* lib/rfc/http.scm (http-request): Revised RECEIVER protocol; |
| 12916 |
now it takes the total response size in the third arg. It allows |
| 12917 |
the retriever to track the progress. |
| 12918 |
|
| 12919 |
2010-05-23 Shiro Kawai <[email protected]> |
| 12920 |
|
| 12921 |
* lib/rfc/http.scm (http-request): Changed main API of rfc.http. |
| 12922 |
High-level APIs are consolidated to http-request, instead of |
| 12923 |
having separate calls for each request method, since method |
| 12924 |
is often parameterized. SINK and FLUSHER arguments to handle |
| 12925 |
response is deprecated and superseded by RECEIVER argument |
| 12926 |
for flexibility. |
| 12927 |
|
| 12928 |
2010-05-19 Shiro Kawai <[email protected]> |
| 12929 |
|
| 12930 |
* lib/gauche/parseopt.scm (build-option-parser): Let let-args raise |
| 12931 |
an error of condition type <parseopt-error> for invalid arguments, |
| 12932 |
so that the program can capture this particular type of runtime |
| 12933 |
error. |
| 12934 |
|
| 12935 |
2010-05-13 Shiro Kawai <[email protected]> |
| 12936 |
|
| 12937 |
* src/compile.scm (define-syntax, let-syntax, letrec-syntax) |
| 12938 |
(syntax-rules, pass1/eval-macro-rhs): Generalize syntactic |
| 12939 |
binding as evaluating rhs in compile-time environment. The |
| 12940 |
syntactic keyword is bound to the resulting macro transformer. |
| 12941 |
This is the first step to open up variations of macro |
| 12942 |
transfomers other than syntax-rules. Now syntax-rules are |
| 12943 |
implemented as first-class compile-time syntax, and eventually |
| 12944 |
will become just one of ordinary macro transformers. |
| 12945 |
(compile): Enable to take CENV as the second argument. |
| 12946 |
(pass1): Adjusted to expect resolution of local syntactic |
| 12947 |
bindings be #<syntax>. This happens when let-syntax etc. |
| 12948 |
are used to add aliases, e.g. (let-syntax ((xif if)) (xif ...)). |
| 12949 |
* src/macro.c (Scm_CompileSyntaxRules): allow NAME to be #f |
| 12950 |
for it may be so when syntax-rules is used stand-alone. |
| 12951 |
* src/intlib.stub (syntax?): Added. Note: The name syntax? may |
| 12952 |
be renamed, for it is confusing with syntax-case's use of "syntax". |
| 12953 |
|
| 12954 |
* src/port.c (Scm_MakePortWithFd): Set seeker if the given fd is |
| 12955 |
seekable. For example, Scm_SysMkstemp calls this function on |
| 12956 |
an fd associated to a file, so it is natural to be seekable. |
| 12957 |
OTOH, sys-pipe passes pipe fd, which isn't seekable. |
| 12958 |
|
| 12959 |
* src/objlib.scm (ref, (setter ref)): Added generic slot reference |
| 12960 |
with fallback, and setter to list, for consistency. |
| 12961 |
Patch from Masatake YAMATO. |
| 12962 |
|
| 12963 |
2010-05-12 Shiro Kawai <[email protected]> |
| 12964 |
|
| 12965 |
* ext/net/netaux.scm (make-server-sockets): If the system defaults |
| 12966 |
v6 sockets to be dual-stack (i.e. IPV6_V6ONLY is off by default), |
| 12967 |
the current strategy fails since v6 socket tries to bind both |
| 12968 |
v4 and v6 addresses. The default is system-dependent, so we |
| 12969 |
adopt a heuristic: First we bind v6 addresses, and then we try |
| 12970 |
v4 ones; if v4 one fails with EADDRINUSE, we just ignore it. |
| 12971 |
|
| 12972 |
2010-05-11 Shiro Kawai <[email protected]> |
| 12973 |
|
| 12974 |
* src/vm.c (POP_CONT): fixed a bug that refers wrong pointer. |
| 12975 |
|
| 12976 |
* src/port.c (register_buffered_port): Fixed a race condition |
| 12977 |
accessing the active port vector. Pointed by enami. |
| 12978 |
|
| 12979 |
* src/vm.c (user_eval_inner, Scm_VMCallPC): |
| 12980 |
src/intlib.stub (%call/pc): |
| 12981 |
lib/gauche/partcont.scm: Experimentally added partial (delimited) |
| 12982 |
continuation support. A partial continuation is marked by |
| 12983 |
ep->cstack == NULL. Its 'root' is cut by %call/pc. It is |
| 12984 |
executed on the cstack where it is invoked. When execution of |
| 12985 |
a partial continuation ends, popping continuation frame yields |
| 12986 |
vm->cont == NULL, which caused run_loop() to return to |
| 12987 |
user_eval_inner, which in turn hands the control over the latest |
| 12988 |
continuation delimited by reset(). Note that reset() operator |
| 12989 |
is simply Scm_VMApplyRec0---user_eval_inner implicitly delimits |
| 12990 |
the continuation. No partial continuation frames should include |
| 12991 |
c stack frames in it. |
| 12992 |
|
| 12993 |
2010-05-10 Shiro Kawai <[email protected]> |
| 12994 |
|
| 12995 |
* src/vm.c (user_eval_inner, throw_continuation): Allow execution |
| 12996 |
of "ghost continuations", the continuations whose dynamic extent |
| 12997 |
of C stack is effectively expired. For example, if a |
| 12998 |
continuation is captured within the callback function from C, |
| 12999 |
and the callback has already returned to C, then the continuation |
| 13000 |
becomes a ghost. Ghost continuation cannot return to C at its |
| 13001 |
bottom, for it is not allowed in C to return from already expired |
| 13002 |
stack frame. We used to raise an error when ghost continuation |
| 13003 |
is invoked. However, the Scheme portion of a ghost continuation |
| 13004 |
is still effective and executable. This change allows a ghost |
| 13005 |
continuation to be executed on the current C stack. If the |
| 13006 |
continuation tries to return to C, an error is signalled. |
| 13007 |
|
| 13008 |
2010-05-04 Shiro Kawai <[email protected]> |
| 13009 |
|
| 13010 |
* src/char.c (Scm_CharSetComplement): Fixed to handle complement |
| 13011 |
correctly for the cases that the range touches the lower bound, |
| 13012 |
or the range has one-character gap. |
| 13013 |
|
| 13014 |
2010-05-03 Shiro Kawai <[email protected]> |
| 13015 |
|
| 13016 |
* ext/util/queue.scm (any-in-queue, every-in-queue): added. |
| 13017 |
|
| 13018 |
* lib/gauche/common-macros.scm (unwind-protect): Allow multiple |
| 13019 |
handlers, as in CL. |
| 13020 |
|
| 13021 |
* src/module.h (origin, prefix): Added these slots to support |
| 13022 |
wrapper module with prefix. Modules are not statically allocated, |
| 13023 |
so this shouldn't affect ABI. |
| 13024 |
* src/module.c (Scm__MakeWrapperModule): An implicit module inserted |
| 13025 |
to support prefixed symbols. This obsoletes the change on |
| 13026 |
2009-09-23, using module and prefix pair in the import list. |
| 13027 |
(Scm_FindBinding): Consider prefix from the wrapper module |
| 13028 |
Dropped support of (#<module> . prefix) in the import list. |
| 13029 |
(Scm__InitModulePost): Made module information visible as slots. |
| 13030 |
We should call Scm_InitStatiClassWithMeta in module.c, but |
| 13031 |
that needs to be done after the class system is initialized. |
| 13032 |
Scm__InitModule needs to be called before Scm__InitClass, |
| 13033 |
so we need another initialize function, which is called |
| 13034 |
after Scm__InitClass. |
| 13035 |
* src/core.c (Scm_Init), src/class.c (Scm__InitClass): Changed |
| 13036 |
accordingly. |
| 13037 |
* src/compile.scm (process-import): Support :rename. Rewrote |
| 13038 |
:only and :except support to use wrapper modules. |
| 13039 |
|
| 13040 |
2010-05-02 Shiro Kawai <[email protected]> |
| 13041 |
|
| 13042 |
* lib/control/job.scm, lib/control/thread-pool.scm: Added. |
| 13043 |
* test/TESTS2, Makefile.in, src/Makefile.in: Set up some tests |
| 13044 |
to be run after ext/* tests. |
| 13045 |
* test/control.scm: Added. |
| 13046 |
|
| 13047 |
* ext/util/queue.scm (mtqueue-room): Added. |
| 13048 |
|
| 13049 |
2010-05-01 Shiro Kawai <[email protected]> |
| 13050 |
|
| 13051 |
* ext/net/test.scm: Fix test failure on ipv6 enabled host. |
| 13052 |
|
| 13053 |
* src/gauche-init.scm (use): Allow options that can be passed |
| 13054 |
to import. |
| 13055 |
|
| 13056 |
* doc/modgauche.tex (gauche.mop.propagate): Made it officially |
| 13057 |
documented. |
| 13058 |
* lib/gauche/mop/propagate.scm: Enable initialization of propagated |
| 13059 |
slot via init-keyword. |
| 13060 |
|
| 13061 |
2010-04-30 Shiro Kawai <[email protected]> |
| 13062 |
|
| 13063 |
* src/compile.scm (pass1/define, pass1/lambda): Defines R5RS version |
| 13064 |
and Gauche version of define and lambda separately; Gauche version |
| 13065 |
supports extended formals, R5RS version not. For those who want |
| 13066 |
vanilla versions for whatever reason, say (extend scheme). |
| 13067 |
|
| 13068 |
2010-04-25 Shiro Kawai <[email protected]> |
| 13069 |
|
| 13070 |
* src/compile.scm (pass1/define-inline): Revamp inlining mechanism |
| 13071 |
of lambdas with closed environment. The new scheme doesn't |
| 13072 |
require separate form such as %inlinable-lambda. I check in the |
| 13073 |
current state, which works on basic cases but needs more refinement |
| 13074 |
for the practical cases. This change shouldn't affect the existing |
| 13075 |
valid code (that is, the path to inline lambdas with no closed |
| 13076 |
enviornment isn't changed). |
| 13077 |
Also reverting the change on 2010-03-28 about the packed information |
| 13078 |
of inlinable procedure (the info in $lambda-flag). With this new |
| 13079 |
scheme we can just use packed IForm; no need to keep extra info. |
| 13080 |
* src/intlib.stub (%insert-binding): Allow optional flags. |
| 13081 |
|
| 13082 |
2010-04-21 Shiro Kawai <[email protected]> |
| 13083 |
|
| 13084 |
* ext/bcrypt: Change module name from gauche.bcrypt to crypt.bcrypt, |
| 13085 |
for it represents the module better. |
| 13086 |
|
| 13087 |
2010-04-20 Shiro Kawai <[email protected]> |
| 13088 |
|
| 13089 |
* src/Makefile.in: Re-adding $(LIBS) to link gauche-config, for |
| 13090 |
it is needed on mingw. |
| 13091 |
|
| 13092 |
2010-04-19 Shiro Kawai <[email protected]> |
| 13093 |
|
| 13094 |
* configure.ac, src/gauche/config.h.in: Added GNU/kfreebsd and |
| 13095 |
GNU/Hurd support. Patch from NIIBE Yutaka. |
| 13096 |
|
| 13097 |
* lib/gauche/treeutil.scm (tree-map-map, tree-map-for-each): Added. |
| 13098 |
* src/autoloads.scm, doc/corelib.texi: Modified accordingly. |
| 13099 |
|
| 13100 |
* src/Makefile.in: Fix linking gauche-config; patch from Debian build, |
| 13101 |
by YAEGASHI Takeshi. |
| 13102 |
|
| 13103 |
* configure.ac: Support for arm-unknown-linux-gnueabi and |
| 13104 |
arm-unknown-linux-gnulp architecture. Patch from NIIBE Yutaka. |
| 13105 |
|
| 13106 |
* src/number.c (Scm_NumLE, Scm_NumLT, Scm_NumGE, Scm_NumGT): |
| 13107 |
Added these APIs that handles NaN properly. Scm_NumCmp alone |
| 13108 |
is not suitable to handle comparison involving NaNs. |
| 13109 |
* src/number.h: ditto. |
| 13110 |
* src/vminsn.scm ($w/numcmp): Use above APIs to handle NaNs. |
| 13111 |
* src/stdlib.stub (=, <, <=, >, >=): Use above APIs to handle NaNs. |
| 13112 |
* test/number.scm: Added tests of numeric comparison involving NaNs. |
| 13113 |
|
| 13114 |
* src/gauche/float.h (SCM_HALF_FLOAT_IS_NAN, SCM_HALF_FLOAT_CMP): |
| 13115 |
Recognizes and handles NaN bitpattern of ScmHalfFloat. |
| 13116 |
* src/vector.c (compare_f16vector): ditto. |
| 13117 |
* ext/uvector/test.scm: Added tests for uvector comparison. |
| 13118 |
|
| 13119 |
2010-04-18 Shiro Kawai <[email protected]> |
| 13120 |
|
| 13121 |
* src/gauche/vector.h (struct ScmVectorRec): The 'size' field |
| 13122 |
must have the same length as ScmObj, otherwise vector literals |
| 13123 |
allocated in ScmObj[] by precompiler doesn't work on big-endian |
| 13124 |
machines. Patch from Stephen Lewis. |
| 13125 |
|
| 13126 |
2010-04-13 Shiro Kawai <[email protected]> |
| 13127 |
|
| 13128 |
* lib/srfi-98.scm, lib/Makefile.in: Added srfi-98 support. |
| 13129 |
* src/core.c: Made cond-expand aware of srfi-98, srfi-99. |
| 13130 |
* doc/concepts.texi, doc/corelib.texi, doc/modsrfi.texi: srfi-98. |
| 13131 |
|
| 13132 |
2010-04-11 Shiro Kawai <[email protected]> |
| 13133 |
|
| 13134 |
* src/compile.scm (dynamic-wind): Fixed a bug that leaves lvar's |
| 13135 |
refcounts wrong after inline transformation. |
| 13136 |
|
| 13137 |
2010-04-08 Shiro Kawai <[email protected]> |
| 13138 |
|
| 13139 |
* src/vm.c (save_env): Revised the previous fix to make it |
| 13140 |
clearer, based on the analysis of NIIBE Yutaka. |
| 13141 |
|
| 13142 |
2010-04-07 Shiro Kawai <[email protected]> |
| 13143 |
|
| 13144 |
* src/vm.c (save_env): Avoid copying ScmEnvFrame header as an |
| 13145 |
array of ScmObj*. Doing so apparently violates the strict |
| 13146 |
aliasing rule and results unintended compilation on some |
| 13147 |
architectures (gcc on ia64 confirmed). Patch contribution |
| 13148 |
from NIIBE Yutaka. |
| 13149 |
|
| 13150 |
2010-03-30 Shiro Kawai <[email protected]> |
| 13151 |
|
| 13152 |
* doc/*.texi: Moved 'coding: utf-8' to the end of the file, |
| 13153 |
since texinfo-multiple-files-update seems to blindly assume |
| 13154 |
the first line of a file is a node command. |
| 13155 |
|
| 13156 |
2010-03-28 Shiro Kawai <[email protected]> |
| 13157 |
|
| 13158 |
* src/compile.scm (pass1/inlinable-lambda, pass1/expand-inliner etc): |
| 13159 |
Changed inlining info in $LAMBDA node to allow closed lvars |
| 13160 |
plus future extensions, from a simple vector of packed IForm. |
| 13161 |
Changed places that uses info, though currently they only deal |
| 13162 |
with the case that no lvars are closed. |
| 13163 |
This affects the dumped format of precompilation; the old format |
| 13164 |
is still recognized and supported, but will be dropped in the |
| 13165 |
next major release. |
| 13166 |
|
| 13167 |
2010-03-25 Shiro Kawai <[email protected]> |
| 13168 |
|
| 13169 |
* lib/gauche/record.scm: Added support of vector-backed pseudo record. |
| 13170 |
The procedure returned by rtd-accessor has a setter if the field |
| 13171 |
is mutable. |
| 13172 |
|
| 13173 |
2010-03-22 Shiro Kawai <[email protected]> |
| 13174 |
|
| 13175 |
* libsrc/util/match.scm: Fixed a bug that caused match-let* fail |
| 13176 |
(required identifiers are not defined). |
| 13177 |
|
| 13178 |
2010-03-09 Shiro Kawai <[email protected]> |
| 13179 |
|
| 13180 |
* src/compile.scm (iform-copy): Fixed a bug that yielded a wrong |
| 13181 |
optimization when flagged closure is inlined. Thanks to |
| 13182 |
Michael Campbell for the detailed report. |
| 13183 |
|
| 13184 |
2010-02-27 Shiro Kawai <[email protected]> |
| 13185 |
|
| 13186 |
* lib/www/cgi.scm (get-mime-parts): Fixed a bug that didn't parse |
| 13187 |
option values in content-disposition header are unquoted. |
| 13188 |
|
| 13189 |
* ext/threads/threads.scm, ext/threads/Makefile.in: |
| 13190 |
Integrated thrlib.stub into threads.scm. |
| 13191 |
|
| 13192 |
2010-02-24 Shiro Kawai <[email protected]> |
| 13193 |
|
| 13194 |
* src/gauche/vm.h, src/vm.c, src/gauche/pthread.h, src/gauche/uthread.h: |
| 13195 |
Abstract thread handle type as ScmInternalThread. |
| 13196 |
|
| 13197 |
2010-02-23 Shiro Kawai <[email protected]> |
| 13198 |
|
| 13199 |
* src/gauche/win-compat.h (struct timespec), src/system.c (nanosleep): |
| 13200 |
Added nanosleep emulation on Windows. |
| 13201 |
* src/syslib.stub (sys-nanosleep): Enable on windows as well. |
| 13202 |
|
| 13203 |
2010-02-23 Shiro Kawai <[email protected]> |
| 13204 |
|
| 13205 |
* most sources: Removed $Id...$ from most of the sources. We have |
| 13206 |
moved away from CVS, so it is no longer relevant. It may even |
| 13207 |
cause confusion, since it's not updated anymore. (It is left |
| 13208 |
to the source taken from outside; in which case the line shows |
| 13209 |
which version we've taken from). |
| 13210 |
|
| 13211 |
* ext/util/queue.scm (with-mtq-mutex-lock): Made mutex locking |
| 13212 |
cancellation safe. |
| 13213 |
|
| 13214 |
2010-02-22 Shiro Kawai <[email protected]> |
| 13215 |
|
| 13216 |
* src/regexp.c (rc1_lex_minmax): Changed to treat re{,M} as re{0,M} |
| 13217 |
in the regexp parser, which is compatible to Oniguruma. |
| 13218 |
This is, strictly speaking, an INCOMPATIBILE CHANGE; the previous |
| 13219 |
version is compatible to Perl, which makes {,M} to match the |
| 13220 |
string literally. It should be written \{,M} now. |
| 13221 |
|
| 13222 |
* lib/gauche/fileutil.scm (make-glob-fs-fold): Fixed a bug in glob |
| 13223 |
that fails if an intermediate directory in the fully-specified |
| 13224 |
path is searchable but unreadable. |
| 13225 |
|
| 13226 |
* src/gauche/regexp.h, src/regexp.c: Added 'ast' field in ScmRegexp |
| 13227 |
to save parsed AST. |
| 13228 |
* lib/gauche/regexp.scm (regexp-unparse): An utility to reconstruct |
| 13229 |
string representation of regexp from AST. |
| 13230 |
* src/extlib.stub, src/scmlib.scm (regexp->string): Changed |
| 13231 |
regexp->string so that if the 'pattern' field of ScmRegexp is |
| 13232 |
#f (i.e. the regexp is directly created from AST), it uses |
| 13233 |
regexp-unparse to reconstruct the string representation. The |
| 13234 |
constructed string is set to the 'pattern' field so that the |
| 13235 |
subsequent call of regexp->string will use it. |
| 13236 |
* src/autoloads.scm: Mark regexp-unparse autoload. |
| 13237 |
|
| 13238 |
2010-02-21 Shiro Kawai <[email protected]> |
| 13239 |
|
| 13240 |
* lib/rfc/http.scm (request-response): Exclude keyword arguments |
| 13241 |
for the receiver from request headers. |
| 13242 |
|
| 13243 |
* src/scmlib.scm (delete-keywords, delete-keywords!): Added. |
| 13244 |
|
| 13245 |
2010-02-20 Shiro Kawai <[email protected]> |
| 13246 |
|
| 13247 |
* src/char.c (charset_print): Fixed char-set writer that violated |
| 13248 |
read/write invariance if the set includes '^' as the first |
| 13249 |
character. |
| 13250 |
|
| 13251 |
2010-02-19 Shiro Kawai <[email protected]> |
| 13252 |
|
| 13253 |
* test/system.scm: Exclude sys-wait test on cygwin, since sigmask |
| 13254 |
doesn't seem to work reliably on cygwin 1.7. |
| 13255 |
|
| 13256 |
* INSTALL.in: switched to utf-8. |
| 13257 |
|
| 13258 |
2010-02-12 Shiro Kawai <[email protected]> |
| 13259 |
|
| 13260 |
* src/system.c: Do not treat '\\' as a directory separator on |
| 13261 |
non-windows platforms (On GAUCHE_WINDOWS, we still treat both |
| 13262 |
'/' and '\\' as a separator.) |
| 13263 |
|
| 13264 |
2010-02-06 Shiro Kawai <[email protected]> |
| 13265 |
|
| 13266 |
* src/objlib.scm (slot-pop!): Added for the consistency with other |
| 13267 |
*-push!/pop! API pairs. |
| 13268 |
* src/treemap.c (core_bound), test/treemap.scm: Fixed a bug that |
| 13269 |
tree-map-pop-min! didn't update num_entries. Patch from |
| 13270 |
Masatake YAMATO. |
| 13271 |
|
| 13272 |
2010-02-05 Shiro Kawai <[email protected]> |
| 13273 |
|
| 13274 |
* doc/*.texi: Switched from euc-jp to utf-8. |
| 13275 |
* doc/extract: Changed accordingly. |
| 13276 |
|
| 13277 |
* doc/gauche-install.1.in, doc/gauche-package.1.in, |
| 13278 |
doc/gauche-cesconv.1.in: Added these manpages based on the ones |
| 13279 |
provided by Jens Thiele. |
| 13280 |
* doc/gosh.1.in, doc/gauche-config.1.in: Updated. |
| 13281 |
* configure.ac: Changed to process the added manpages. |
| 13282 |
|
| 13283 |
2010-02-02 Shiro Kawai <[email protected]> |
| 13284 |
|
| 13285 |
* ext/util/queue.scm (enqueue/wait! etc.): Implemented synchronizing |
| 13286 |
operations. |
| 13287 |
* ext/threads/test.scm: Added tests of interacting between threads |
| 13288 |
using mtqueue. |
| 13289 |
* doc/modutil.texi: Extended descriptions of util.queue. |
| 13290 |
|
| 13291 |
2010-01-21 Shiro Kawai <[email protected]> |
| 13292 |
|
| 13293 |
* libsrc/gauche/collection.scm, lib/gauche/mop/instance-pool.scm: |
| 13294 |
Remove dependency to util.queue; it caused build problem. |
| 13295 |
|
| 13296 |
* ext/util/queue.scm, lib/util/queue.scm: Rewrote util.queue |
| 13297 |
partly using C, in order to support thread-safe queue efficiently. |
| 13298 |
* ext/util/Makefile.in, ext/Makefile.in, test/util.scm, |
| 13299 |
ext/util/test.scm: Changed accordingly. |
| 13300 |
|
| 13301 |
2010-01-18 Shiro Kawai <[email protected]> |
| 13302 |
|
| 13303 |
* lib/rfc/http.scm: Experimentally added https support, using |
| 13304 |
stunnel as an external agent to handle SSL. Pass :secure #t |
| 13305 |
to http-get etc. Needs more test to become 'official'. |
| 13306 |
(Current problem: There seems to be no way to get erroneous |
| 13307 |
condition in stunnel side). |
| 13308 |
|
| 13309 |
2010-01-17 Shiro Kawai <[email protected]> |
| 13310 |
|
| 13311 |
* src/objlib.scm, lib/gauche/procedure.scm, src/autoloads.scm, |
| 13312 |
lib/gauche/experimental/ref.scm (~): Integrated '~' into the |
| 13313 |
core (currently autoloaded from gauche/procedure.scm). Now |
| 13314 |
it's officially supported. 'ref*' became an alias of '~', but |
| 13315 |
it's only for the backward compatibility and will fade out. |
| 13316 |
|
| 13317 |
* doc/corelib.texi (Combinators): formally account '.$' as an |
| 13318 |
altenative name of 'compose'. |
| 13319 |
|
| 13320 |
2010-01-16 Shiro Kawai <[email protected]> |
| 13321 |
|
| 13322 |
* src/compile.scm (transparent?/rec): Treat $GREF of inlinable |
| 13323 |
bindings as referentially trasparent. |
| 13324 |
|
| 13325 |
2010-01-15 Shiro Kawai <[email protected]> |
| 13326 |
|
| 13327 |
* src/link-dylib: Adjust install_name according to the ABI version |
| 13328 |
(patch from Tatsuya BIZENN). |
| 13329 |
|
| 13330 |
* src/compile.scm (pass1/define-inline, pass1/inlinable-lambda): |
| 13331 |
Factored out the part to save intermediate IForm to $lambda node. |
| 13332 |
This is to prepare for further aggressive inlining. |
| 13333 |
|
| 13334 |
* lib/gauche/record.scm: Added srfi-99/srfi-9 compatible record type. |
| 13335 |
* src/class.c (Scm__AllocateAndInitializeInstance), |
| 13336 |
src/objlib.scm (%make-record,%make-recordv,%record-ref,%record-set!): |
| 13337 |
Auxiliary internal procedures to support record type efficiently. |
| 13338 |
* lib/srfi-9.scm: Just extend gauche.record. |
| 13339 |
|
| 13340 |
2010-01-10 Shiro Kawai <[email protected]> |
| 13341 |
|
| 13342 |
* ext/Makefile.ext.in (GAUCHE_ARCHDIR etc): Reverted not to use |
| 13343 |
gauche-config, for it caused problem on MinGW, on which gauche-config |
| 13344 |
returns a pathname relative to the executable. |
| 13345 |
|
| 13346 |
2010-01-09 Shiro Kawai <[email protected]> |
| 13347 |
|
| 13348 |
* doc/coresyn.texi: officially document extended lambda formals, ^, |
| 13349 |
and ^c. |
| 13350 |
|
| 13351 |
* src/compile.scm (pass1/extended-lambda): If :optional spec is given |
| 13352 |
but not :key nor :rest, and given arguments exceeds maximum number |
| 13353 |
of optional arguments, signals an error. It is consistent to |
| 13354 |
SUBR with :optional args, and also to Common Lisp. |
| 13355 |
NB: The error message needs to be improved. Thinking to change that |
| 13356 |
when we adopt better compilation strategy for optiona arguments. |
| 13357 |
|
| 13358 |
2010-01-08 Shiro Kawai <[email protected]> |
| 13359 |
|
| 13360 |
* src/scmlib.scm (let-keywords*): Grace period expires; raises an error |
| 13361 |
if unknown keyword is given (see 2007-01-21). |
| 13362 |
|
| 13363 |
2010-01-07 Shiro Kawai <[email protected]> |
| 13364 |
|
| 13365 |
* src/scmlib.scm (let-keywords, let-keywords*): Allow single variable |
| 13366 |
without default value, for the consistency with let-optionals*. |
| 13367 |
|
| 13368 |
* lib/gauche/common-macros.scm (^ ^a ...), |
| 13369 |
lib/gauche/experimental/lamb.scm, |
| 13370 |
src/autoloads.scm: |
| 13371 |
Moved ^ and ^x macro from experimental to built-in. |
| 13372 |
|
| 13373 |
* src/autoloads.scm: Allow multiple symbols in :macro entry, for |
| 13374 |
conciseness. |
| 13375 |
|
| 13376 |
2010-01-05 Shiro Kawai <[email protected]> |
| 13377 |
|
| 13378 |
* libsrc/file/util.scm (temporary-directory): Make this a parameter, |
| 13379 |
for sometimes it is useful to change the temporary directory. |
| 13380 |
|
| 13381 |
* src/compile.scm (pass1/open-include-file): Check the platform at |
| 13382 |
run-time instead of compile-time, since compile.scm is likely to be |
| 13383 |
pre-compiled on a machine different from the one actually runs it. |
| 13384 |
|
| 13385 |
* src/genconfig.in: Use unique name for temporary file to avoid |
| 13386 |
race condition when make is run in parallel. |
| 13387 |
|
| 13388 |
2010-01-04 Shiro Kawai <[email protected]> |
| 13389 |
|
| 13390 |
* configure.ac, */Makefile.in, src/genconfig.in, src/makeverslink.in, |
| 13391 |
src/gauche/config.h.in: Adopted the new installation directory |
| 13392 |
strcture to keep binary compatibility for the same ABI version. |
| 13393 |
Bumped to 0.9.1_pre1. |
| 13394 |
* src/scmlib.scm: Added a temporary workaround to use extension |
| 13395 |
modules compiled for 0.9 to work with 0.9.x series. |
| 13396 |
|
| 13397 |
* Gauche.spec: Fix rpm build problem caused by missing micro version. |
| 13398 |
This is peculiar to the new minor version up; remember to revert it |
| 13399 |
upon 0.9.1 release. |
| 13400 |
|
| 13401 |
2010-01-03 Shiro Kawai <[email protected]> |
| 13402 |
|
| 13403 |
* ext/bcrypt: Added crypt_blowfish binding. We chose to include it |
| 13404 |
in the main distribution instead of providing it as an external |
| 13405 |
package, in order to encourage users to use a modern password |
| 13406 |
hashing scheme rather than relying on crypt(3) or rolling their own. |
| 13407 |
|
| 13408 |
2009-12-30 Shiro Kawai <[email protected]> |
| 13409 |
|
| 13410 |
* src/compile.scm: (id->bound-gloc): Refactored. |
| 13411 |
(cenv): Added 'source-path' slot to support include. |
| 13412 |
(pass1/body): Factored out the recursive parts as pass1/body-rec. |
| 13413 |
(syntax/include): Added 'include'. |
| 13414 |
|
| 13415 |
2009-12-29 Shiro Kawai <[email protected]> |
| 13416 |
|
| 13417 |
* src/scmlib.scm (current-load-path): Added. It is going to be more |
| 13418 |
reliable and convenient to obtain the path than via current-load-port. |
| 13419 |
|
| 13420 |
* src/compile.scm (dynamic-wind): Added builtin inliner for |
| 13421 |
dynamic-wind. This expansion uses PUSH-HANDLERS and POP-HANDLERS |
| 13422 |
instructions. |
| 13423 |
|
| 13424 |
2009-12-28 Shiro Kawai <[email protected]> |
| 13425 |
|
| 13426 |
* src/compile.scm (pass2p/precompute-constant): Support the case |
| 13427 |
when the precomputation procedure returns multiple values |
| 13428 |
(for now, we give up optimization if the proc returns more than |
| 13429 |
one value. will be fixed in future.) |
| 13430 |
|
| 13431 |
2009-12-22 Shiro Kawai <[email protected]> |
| 13432 |
|
| 13433 |
* src/vminsn.scm (PUSH-HANDLERS): Fixed: the order of arguments is |
| 13434 |
reversed; "before" comes first (hence in the stack) and "after" |
| 13435 |
follows (hence in VAL0). |
| 13436 |
|
| 13437 |
2009-12-21 Shiro Kawai <[email protected]> |
| 13438 |
|
| 13439 |
* src/compile.scm (pass1/call): Expand immediate lambda here, too, |
| 13440 |
for such a form can appear as a result of macro expansion. |
| 13441 |
Elimiating lambda here helps later pass to optimize clsures. |
| 13442 |
|
| 13443 |
2009-12-16 Shiro Kawai <[email protected]> |
| 13444 |
|
| 13445 |
* src/vmcall.c: Pass the actual # of args in the stack via VAL0 |
| 13446 |
to Scheme-defined procedures/methods. This info will be used |
| 13447 |
for efficient optional argument handling. |
| 13448 |
|
| 13449 |
* src/intlib.stub (gloc-ref, gloc-bound?): Fix a bug that gloc-ref |
| 13450 |
potentially leaks out #<unbound> to the Scheme world. Now gloc-ref |
| 13451 |
raises an error if it doesn't have a binding. You can give a |
| 13452 |
fallback value to avoid an error. Also provides gloc-bound? to |
| 13453 |
check if the gloc has a value. |
| 13454 |
* src/compile.scm: Changed accordingly to avoid dereferincing unbound |
| 13455 |
glocs. |
| 13456 |
|
| 13457 |
* src/compile.scm (pass2p/optimize-call): Added some heuristics |
| 13458 |
to deduce result of built-in predicate from what we know about |
| 13459 |
its argument. |
| 13460 |
(lvar-const-value): Factored out the common usage to get initval |
| 13461 |
of lvar if it is a constant binding. |
| 13462 |
|
| 13463 |
2009-12-15 Shiro Kawai <[email protected]> |
| 13464 |
|
| 13465 |
* lib/text/parse.scm: Rewritten to take advantage of the new |
| 13466 |
compiler optimization. |
| 13467 |
* libsrc/srfi-13.scm: Avoid creation of closure by %get-char-pred. |
| 13468 |
* ext/sxml/sxml-ssax.scm.in, ext/sxml/trans.scm, ext/sxml/adaptor.scm: |
| 13469 |
Make some global bindings constant so that the compiler can perform |
| 13470 |
more optimization. |
| 13471 |
|
| 13472 |
* src/gauche.h (ScmProcedure): Added 'constant' bit. See the |
| 13473 |
comment for the details. |
| 13474 |
(SCM_DEFINE_SUBRX): A new macro to specify 'constant' bit. This |
| 13475 |
macro is mainly for autogenerated C code. Other procedure |
| 13476 |
initializer macros are adjusted accordingly. |
| 13477 |
* src/proc.c (proc-constant): Added accessor for 'constant' bit. |
| 13478 |
* lib/gauche/cgen/stub.scm (define-cproc): Added a support for |
| 13479 |
flag :constant, that turn on the constant bit of SUBR and |
| 13480 |
make the SUBR inlinable. This allows the compiler to precalculate |
| 13481 |
constant values using buiting procedures. |
| 13482 |
* src/stdlib.stub, src/extlib.stub: Added :constant flags to |
| 13483 |
cprocs when applicable. |
| 13484 |
|
| 13485 |
* src/compile.scm (pass2p/optimize-call): Enables constant folding |
| 13486 |
involving procedures marked as 'constant'. |
| 13487 |
(pass2, pass2p/$IF, pass2p/optimize-call): If IForm structure |
| 13488 |
is changed significantly during pass2 post, repeat pass2 post again |
| 13489 |
for further optimization. |
| 13490 |
(pass2, compile-p2): Added dump? argument for troubleshooting. |
| 13491 |
(initval-list-cdr): Fixed a bug that creates invalid $LIST node. |
| 13492 |
(%attach-inline-er-transformer): Preserve inliner info attached |
| 13493 |
by define-inline, so that we can set a compiler macro on |
| 13494 |
procedures defined by define-inline. |
| 13495 |
(pp-iform): Include identifier's module info. |
| 13496 |
|
| 13497 |
* src/intlib.stub (identifier-module): Removed after all. Speed is |
| 13498 |
no so critical, so we can use (slot-ref id 'module) instead. |
| 13499 |
|
| 13500 |
2009-12-14 Shiro Kawai <[email protected]> |
| 13501 |
|
| 13502 |
* src/scmlib.scm (let-optionals*): Improved not to emit unnecessary |
| 13503 |
code to advance a pointer in the last of optional argument. |
| 13504 |
|
| 13505 |
* src/compile.scm (pp-iform): Slightly changed output format for |
| 13506 |
better readability. |
| 13507 |
(pass2/$IF, pass2p/$IF): Moved $if-$it optimization to the pass2p, |
| 13508 |
for it won't affect main pass2 optimization, but it introduces |
| 13509 |
shared node and makes later pass cumbersome. |
| 13510 |
(pass2/$ASM, pass2p/$ASM, pass2/check-constant-asm): Perform |
| 13511 |
$ASM-node constant folding in pass2 main as well. This benefits |
| 13512 |
other pass2 main optimization. |
| 13513 |
(reset-lvars): Re-adjust lvar reference count after pass2 main, |
| 13514 |
for the pass may prune subtree from IForm. |
| 13515 |
(pass2p/$CALL): Another call optimization. At this point we know |
| 13516 |
a lot about $CALL node, so we can perform some more optimization. |
| 13517 |
(pass2p/$SEQ): Eliminate dead code if we know it is safe to do so. |
| 13518 |
|
| 13519 |
* src/intlib.stub (identifier-module): Added to be used in |
| 13520 |
pass2p/inlinable-gref? in compile.scm. |
| 13521 |
|
| 13522 |
2009-12-13 Shiro Kawai <[email protected]> |
| 13523 |
|
| 13524 |
* src/compile.scm (unpack-iform): Recover lvar's initvals after |
| 13525 |
unpacking. Missing initvals prevented some optimizations. |
| 13526 |
(transparent?): Check circular/shared reference of $LABEL node. |
| 13527 |
(pass2p): Passing labels table to avoid recursing into circular/ |
| 13528 |
shared $LABEL node. |
| 13529 |
|
| 13530 |
* src/main.c (-fno-post-inline-pass), |
| 13531 |
src/gauche/vm.h (SCM_COMPILE_NO_PASS2POST), |
| 13532 |
src/intlib.stub (vm-compiler-flag-no-pass2-post?), |
| 13533 |
src/compile.scm (pass2): Added a new compiler flag to skip post-pass2 |
| 13534 |
optimization, mainly for troubleshooting. |
| 13535 |
|
| 13536 |
* src/intlib.stub (vm-compiler-flag-noinline-locals?): Bug fix: |
| 13537 |
Missing 'result' caused this function always return false. |
| 13538 |
|
| 13539 |
* src/compile.scm (transparent?): More sophisticated check to see if |
| 13540 |
we can safely move around or eliminate subtree of IForm. |
| 13541 |
(pass2/remove-unused-lvars): If an lvar became unused and its initval |
| 13542 |
is transparent, we eliminate the initval expr (previously we only |
| 13543 |
eliminate if initval is $const or $lambda). |
| 13544 |
(pass2p/$IF): If the test becomes a constant due to prior optimization, |
| 13545 |
expands then or else node directly. |
| 13546 |
(pass2p/$ASM): Partially evaluate some assemblers if we know enough |
| 13547 |
about the arguments. |
| 13548 |
|
| 13549 |
2009-12-12 Shiro Kawai <[email protected]> |
| 13550 |
|
| 13551 |
* src/compile.scm (pass2/local-call-embedder): Bug fix: It could |
| 13552 |
generate an embed $call node without inserting $label node in its |
| 13553 |
child's $lambda. Pass3 assumes there's always a $label node, thus |
| 13554 |
fails in such a case. This bug has been covered by the another bug |
| 13555 |
fixed below: |
| 13556 |
(pass2/remove-unused-lvars): Bug fix: It didn't decrement lvar ref |
| 13557 |
count when $lref is removed from the inits of the $let. This didn't |
| 13558 |
cause a malfunction but caused slightly inefficient code, and covered |
| 13559 |
up the aforementioned bug. |
| 13560 |
($const?, $lref?, $it?): Added for conciseness. |
| 13561 |
(pass2p/$CALL): Do not recurse if the call is marked 'jump, since |
| 13562 |
its body is shared by other call nodes. |
| 13563 |
|
| 13564 |
* src/scmlib.scm (every), libsrc/srfi-1.scm: Make 'every' built-in, |
| 13565 |
for it is used in compile.scm now. |
| 13566 |
|
| 13567 |
* src/compile.scm (adjust-arglist): Emit ($CONST ()) for the restarg |
| 13568 |
instead of ($LIST). This allows further constant elimination. |
| 13569 |
(pp-iform): Fix missing close paren in $LIST, $LIST* and $VECTOR |
| 13570 |
branch. Also replaced ';' by ':' for Emacs-friendliness. |
| 13571 |
(pass2): Introduced extra pass after pass2 to do further optimizations |
| 13572 |
that are made available by closure optimization. |
| 13573 |
When closures are inlined, we have a good chance to partially evaluate |
| 13574 |
the original body, since some of the provided arguments can be |
| 13575 |
constants. |
| 13576 |
|
| 13577 |
2009-12-11 Shiro Kawai <[email protected]> |
| 13578 |
|
| 13579 |
* lib/gauche/procedure.scm (make-dispatcher): Attach a compiler macro |
| 13580 |
to case-lambda so that if we know # of args at the call site we |
| 13581 |
can skip dispatcher. |
| 13582 |
|
| 13583 |
* src/compile.scm (%attach-inline-er-transformer) |
| 13584 |
(%bind-inline-er-transformer), |
| 13585 |
src/intlib.scm (%mark-binding-inlinable!), |
| 13586 |
src/scmlib.scm (define-compiler-macro): Added tentative compiler- |
| 13587 |
macro API. This is still a kind of stub; don't expect it to work |
| 13588 |
universally (esp. it is unlikely to go well with precompilation.) |
| 13589 |
* ext/uvector/uvutil.scm: Adjusted TAGvector-ref expander to the |
| 13590 |
above API. |
| 13591 |
|
| 13592 |
* src/gauche/gloc.h, src/gloc.c (Scm_GlocInlinableSetter, Scm_GlocMark): |
| 13593 |
Laying out the base to support proper inlining behavior. |
| 13594 |
* src/module.c (Scm_MakeBinding): Added support of inlinable bindings. |
| 13595 |
* src/compile.scm (pass1/define-inline, pass3/$DEFINE): Ditto. |
| 13596 |
Define-inline will create an inlinable binding. |
| 13597 |
* src/vminsn.scm (DEFINE): Support creating inlinable bindings. |
| 13598 |
* lib/gauche/cgen/stub.scm (cgen-emit-init, variable-parser-common): |
| 13599 |
Add inlinable flag to the bindings of cprocs inlinable to vm insn. |
| 13600 |
|
| 13601 |
* src/intlib.stub (gloc-inlinable?): added. |
| 13602 |
|
| 13603 |
2009-12-10 Shiro Kawai <[email protected]> |
| 13604 |
|
| 13605 |
* src/gauche/module.h, src/module.c (Scm_MakeBinding): A generic API |
| 13606 |
to insert global binding. Eventually it will supersede Scm_Define. |
| 13607 |
|
| 13608 |
* src/stdlib.stub (+, *): Fixed these by removing SCM_NUMBERP checks, |
| 13609 |
since they should be handled in Scm_Add and Scm_Mul. It can be |
| 13610 |
legal to pass non-numbers to them, because of object-+ and object-* |
| 13611 |
hooks. (This bug haven't surfaced easily, since inlied version of |
| 13612 |
'+' and '*' handles it correctly.) |
| 13613 |
|
| 13614 |
2009-12-09 Shiro Kawai <[email protected]> |
| 13615 |
|
| 13616 |
* src/intlib.stub (make-case-lambda-dispatcher): Put the dispatch |
| 13617 |
vector in the procedure info, so that disasm and other introspection |
| 13618 |
routines can dig into the body of the case-lambda. The format |
| 13619 |
in which the info is stored is tentative and may be changed later. |
| 13620 |
* lib/gauche/procedure.scm (disasm): Allow disassembling case-lambda, |
| 13621 |
using the info available by the above change. |
| 13622 |
|
| 13623 |
2009-12-04 Shiro Kawai <[email protected]> |
| 13624 |
|
| 13625 |
* src/gauche/bytes_inline.h: Added swap_*_t for the union types |
| 13626 |
commonly used in the swapping operations. |
| 13627 |
* ext/binary/binary.c: Changed to use above types. |
| 13628 |
|
| 13629 |
* ext/uvector/uvector.c.tmpl, ext/uvector/uvector.h.tmpl, |
| 13630 |
ext/uvector/uvectorP.h, ext/uvector/uvgen.scm, |
| 13631 |
ext/uvector/uvlib.stub.tmpl: Changed uvector-swap-bytes and |
| 13632 |
uvector-swap-bytes! to deal with ARM's mixed endian, by taking |
| 13633 |
optional argument. Also changed read-block! and write-block to deal |
| 13634 |
with ARM mixed endian, and obey default-endian parameter if endian |
| 13635 |
argument is omitted. |
| 13636 |
|
| 13637 |
2009-11-30 Shiro Kawai <[email protected]> |
| 13638 |
|
| 13639 |
* src/gauche/bytes_inline.h, src/binary.c: Factored out byte swapping |
| 13640 |
macros. |
| 13641 |
|
| 13642 |
* src/core.c (Scm_Init), src/parameter.c (Scm__InitParameter): |
| 13643 |
Removed InitParameter, since all we need is statically initialize |
| 13644 |
mutex. This alleviates headache of ordering Scm__Init* routines |
| 13645 |
to satisfy dependencies. |
| 13646 |
|
| 13647 |
* ext/binary/binary.c, src/number.c, src/gauche/number.h |
| 13648 |
(Scm_DefaultEndian, Scm_NativeEndian, Scm_SetDefaultEndian): |
| 13649 |
Move the default-endian parameter from to the core, for it will |
| 13650 |
be used in all binary i/o consistently. binary.c reflects the |
| 13651 |
change below to check ARM_LITTLE_ENDIAN at runtime. |
| 13652 |
* ext/binary/binary.h, ext/binary/io.scm: changed accordingly. |
| 13653 |
* src/extlib.stub (native-endian): added. |
| 13654 |
|
| 13655 |
* src/parameter.c (Scm_ParameterSet): Make it return the previous value, |
| 13656 |
for the consistency to Scheme-level parameter behavior. |
| 13657 |
|
| 13658 |
2009-11-29 Shiro Kawai <[email protected]> |
| 13659 |
|
| 13660 |
* src/gauche/float.h: Moved ScmIEEEDouble definition to src/number.c. |
| 13661 |
Since ARM's double endian needs special care, it's no longer |
| 13662 |
casually usable. |
| 13663 |
* src/number.c (check_armendian): On ARM, checks double's endian |
| 13664 |
at runtime. |
| 13665 |
(decode_double, Scm__EncodeDouble): Enclose ARM special handling |
| 13666 |
in these. |
| 13667 |
(Scm_DecodeFlonum, Scm_DoubleToHalf): No longer touches ScmIEEEDouble |
| 13668 |
directly. |
| 13669 |
* src/bignum.c (Scm_BignumToDouble): No longer touches ScmIEEEDouble |
| 13670 |
directly. |
| 13671 |
* configure.ac, src/gauche/config.h.in: Comment adjusted to reflect |
| 13672 |
above changes. |
| 13673 |
|
| 13674 |
2009-11-28 Shiro Kawai <[email protected]> |
| 13675 |
|
| 13676 |
* ext/sxml/Makefile.in (SCMCOMPILE): Needs to add "provide" expr |
| 13677 |
in command line, since we removed explicit provides, but autoprovide |
| 13678 |
doesn't work in this particular case. |
| 13679 |
|
| 13680 |
* src/gauche.h (SCM_ALIGN8): Constrains some Scheme objects to |
| 13681 |
be aligned in 8-byte boundary using __attribute__. See the comment |
| 13682 |
for the details. |
| 13683 |
|
| 13684 |
* Many files: Removed (provide "...") idioms, for it is no longer |
| 13685 |
necessary with the autoprovide feature. |
| 13686 |
|
| 13687 |
* lib/rfc/822.scm (date->rfc822-date): Added the reverse operation |
| 13688 |
of rfc822-date->date for the convenience. |
| 13689 |
|
| 13690 |
2009-11-25 Shiro Kawai <[email protected]> |
| 13691 |
|
| 13692 |
* lib/rfc/http.scm (request-response): When server returns status |
| 13693 |
code 204 or 304, we should not try to retrieve the message body, |
| 13694 |
otherwise the function hangs waiting for the body. |
| 13695 |
|
| 13696 |
2009-11-23 Shiro Kawai <[email protected]> |
| 13697 |
|
| 13698 |
* lib/gauche/cgen/literal.scm, lib/gauche/cgen/literal-uv.scm: |
| 13699 |
Merged literal-uv.scm into literal.scm. |
| 13700 |
|
| 13701 |
2009-11-21 Shiro Kawai <[email protected]> |
| 13702 |
|
| 13703 |
* release 0.9 |
| 13704 |
|
| 13705 |
* examples/spigot, examples/mqueue-cpp: Updated to use the newer |
| 13706 |
stub forms. |
| 13707 |
|
| 13708 |
* lib/gauche/cgen/stub.scm (process-expr-spec, process-call-spec): |
| 13709 |
As a transition from old (expr ...) and (call ...) form, we make |
| 13710 |
these forms check the ::<type> style return-type if the result |
| 13711 |
type is not given in these forms. We can't obsolete these forms |
| 13712 |
completely, for the new CiSE spec is not yet fixed and it won't |
| 13713 |
cover all cases (esp. C++ support is weak). So the stub file |
| 13714 |
may still use expr or call form if CiSE can't be used. However, |
| 13715 |
the stub can now use the new style of return type form, e.g.: |
| 13716 |
(define-cproc foo () ::<return-type> (expr "Some_C_Expr")) |
| 13717 |
instead of the old style: |
| 13718 |
(define-cproc foo () (expr <return-type> "Some_C_Expr")) |
| 13719 |
|
| 13720 |
* ext/template.DIST, examples/spigot/DIST, examples/mqueue-cpp/DIST: |
| 13721 |
Exclude .svn subdir from tarball as well as CVS. |
| 13722 |
|
| 13723 |
* lib/rfc/http.scm (consider-proxy): Fix host header handling with |
| 13724 |
proxy. Now the server given to :proxy only used for the connection. |
| 13725 |
The host request header is the destination server, which may |
| 13726 |
be overwritten by :host keyword argument. Patch for teppey. |
| 13727 |
|
| 13728 |
2009-11-19 Shiro Kawai <[email protected]> |
| 13729 |
|
| 13730 |
* src/gauche.h (SCM_CHAR_VALUE): make sure it returns unsigned value. |
| 13731 |
|
| 13732 |
2009-11-18 Shiro Kawai <[email protected]> |
| 13733 |
|
| 13734 |
* src/gauche.h: Include gauche/arch.h as it should be. |
| 13735 |
* src/main.c (version): Includes the architecture in output. |
| 13736 |
|
| 13737 |
2009-11-15 Shiro Kawai <[email protected]> |
| 13738 |
|
| 13739 |
* lib/gauche/fileutil.scm (glob-fold-1): Fixed a bug that caused |
| 13740 |
an error on (glob "**"). |
| 13741 |
|
| 13742 |
2009-11-11 Shiro Kawai <[email protected]> |
| 13743 |
|
| 13744 |
* lib/rfc/http.scm (with-connection): Fixed to make a connection |
| 13745 |
to the proxy if it is specified (pointed by Naohiro NISHIKAWA). |
| 13746 |
|
| 13747 |
2009-11-10 Shiro Kawai <[email protected]> |
| 13748 |
|
| 13749 |
* src/vmcall.c (ADJUST_ARGUMENT_FRAME): Fixed a boundary case |
| 13750 |
of CHECK_STACK when unfolding rest args. (Patch from enami). |
| 13751 |
|
| 13752 |
2009-11-03 Shiro Kawai <[email protected]> |
| 13753 |
|
| 13754 |
* gc/dyn_load.c (GC_FirstDLOpenedLinkMap): Applied a patch |
| 13755 |
from enami to support the newest NetBSD-current. |
| 13756 |
NB: We avoid using __NetBSD_Prereq__, for its definition |
| 13757 |
was changed in incompatible way sometime around 4.99.x and |
| 13758 |
that made it unusable to test across wider range of |
| 13759 |
NetBSD versions. |
| 13760 |
|
| 13761 |
* gc/misc.c, gc/alloc.c, gc/os_dep.c, gc_pthread_support.c, |
| 13762 |
gc/pthread_stop_world.c, gc/include/private/gcconfig.h, |
| 13763 |
gc/include/private/gc_priv.h: Back port pthread_cancel safe |
| 13764 |
patch from gc cvs head. |
| 13765 |
* gc_pthread_support.c (GC_new_thread): Remove duplicate entry |
| 13766 |
before registering a new one. This particular case happens |
| 13767 |
with glibc-2.7/i386, where GC_exit_handler isn't called when |
| 13768 |
the thread exits with pthread_exit() or pthread_cancel(). |
| 13769 |
I'm not sure the real cause is in gc or glibc, but at least |
| 13770 |
this change workarounds the deadlock situation caused by the |
| 13771 |
failure of GC_exit_handler. |
| 13772 |
|
| 13773 |
2009-10-28 Shiro Kawai <[email protected]> |
| 13774 |
|
| 13775 |
* ext/net/net.c, ext/net/net.ac, src/gauche/config.h.in |
| 13776 |
(HAVE_STRUCT_IFREQ_IFR_IFINDEX, HAVE_STRUCT_IFREQ_IFR_INDEX): |
| 13777 |
FreeBSD7.2 has ifreq.ifr_index instead of ifreq.ifr_ifindex, |
| 13778 |
so we check which is available. Patch from Naohiro NISHIKAWA. |
| 13779 |
|
| 13780 |
2009-10-27 Shiro Kawai <[email protected]> |
| 13781 |
|
| 13782 |
* ext/zlib/zliblib.stub (Z_TEXT, Z_FIXED): Conditionally define |
| 13783 |
these, since older zlib doesn't have them. |
| 13784 |
|
| 13785 |
2009-10-26 Shiro Kawai <[email protected]> |
| 13786 |
|
| 13787 |
* lib/gauche/cgen/stub.scm (process-body): Recognize obsoleted |
| 13788 |
(return <c-func-name>) and (return <type> <c-func-name>) to |
| 13789 |
issue a warning and treat them as 'call' forms. The extensions |
| 13790 |
that have not been updated recently may have thes forms, and |
| 13791 |
it will be inconvenient if we stop supporting them now. |
| 13792 |
|
| 13793 |
2009-10-25 Shiro Kawai <[email protected]> |
| 13794 |
|
| 13795 |
* src/port.c (Scm_FdReady): Made it work with Windows pipe. |
| 13796 |
|
| 13797 |
* src/syslib.stub (sys-get-osfhandle): Added this for low-level |
| 13798 |
tweaking on Windows. |
| 13799 |
|
| 13800 |
* ext/termios/termios.scm (without-echoing): Added a high-level |
| 13801 |
utitily for reading input without echoing, which can be used |
| 13802 |
across platforms. |
| 13803 |
* lib/gauche/package/util.scm (get-password): Rewrote this using |
| 13804 |
without-echoing. |
| 13805 |
|
| 13806 |
* lib/gauche/cgen/type.scm, ext/uvector/uvlib.stub.tmpl: |
| 13807 |
Moved stub type definitions of <s8vector> etc. from ext/uvector |
| 13808 |
to cgen/type.scm, since they are now supported by core. |
| 13809 |
|
| 13810 |
* ext/termios/termiolib.stub: Added bunch of Windows Console API |
| 13811 |
on GAUCHE_WINDOWS. |
| 13812 |
|
| 13813 |
2009-10-24 Shiro Kawai <[email protected]> |
| 13814 |
|
| 13815 |
* src/syslib.stub (Scm_MakeWinHandle, Scm_WinHandleP etc.), |
| 13816 |
src/system.c (Scm_WinProcessPID), src/gauche/system.h: |
| 13817 |
Created generic Windows HANDLE wrapper and redefined Windows |
| 13818 |
process handle API on top of it. |
| 13819 |
|
| 13820 |
* src/scmlib.scm (%sys-escape-windows-command-line), |
| 13821 |
src/system.c (win_create_command_line), |
| 13822 |
lib/gauche/process.scm (shell-escape-string): |
| 13823 |
Moved Windows shell argument escape routine from shell-escape-string |
| 13824 |
to src/scmlib.scm, since it is also needed to implement |
| 13825 |
Scm_Exec on Windows correctly (well, almost. Windows does not |
| 13826 |
enforce consistent rules of parsing command lines, so all we can |
| 13827 |
do is cross our fingers.) |
| 13828 |
|
| 13829 |
2009-10-21 Shiro Kawai <[email protected]> |
| 13830 |
|
| 13831 |
* src/system.c (Scm_SysExec, pipe), src/gauche/win-compat.h: |
| 13832 |
Support I/O redirection using pipes on Windows, and try to |
| 13833 |
align process exit status handling. |
| 13834 |
|
| 13835 |
* src/port.c (Scm_PortFdDup), src/extlib.stub (port-fd-dup!): |
| 13836 |
Support these under Windows as well (via _dup2()). They are |
| 13837 |
not fully compatible (Windows seems to have some restrictions |
| 13838 |
on which file descriptors can be dup'ed?) but it's better than |
| 13839 |
nothing. |
| 13840 |
|
| 13841 |
* src/error.c (Scm_SysError): On GAUCHE_WINDOWS, check both |
| 13842 |
errno and GetLastError; posix-compatible API uses the former |
| 13843 |
and Windows API uses the latter, and Scm_SysError doesn't know |
| 13844 |
which for sure. We always reset both errors after Scm_SysError |
| 13845 |
so we can guess that non-zero one reflects the actual error. |
| 13846 |
|
| 13847 |
* src/syslib.stub (sys-stat): On GAUCHE_WINDOWS, remove trailing |
| 13848 |
path separator in PATH if any (excluding the root directory; e.g. |
| 13849 |
"/" or "c:\\" are untouched). This is because Windows stat() |
| 13850 |
raises error if there's trailing separator, except the root |
| 13851 |
directory case. |
| 13852 |
|
| 13853 |
* src/main.c (main): On GAUCHE_WINDOWS, sets stdin, stdout and |
| 13854 |
stderr to binary mode. This will align gosh's behavior the |
| 13855 |
same on Windows and Unix, and save lots of troubles. Note that |
| 13856 |
applications that want to link libgauche.dll should take care |
| 13857 |
of this by themselves. |
| 13858 |
|
| 13859 |
2009-10-20 Shiro Kawai <[email protected]> |
| 13860 |
|
| 13861 |
* src/syslib.stub (sys-unlink): On GAUCHE_WINDOWS, make file writable |
| 13862 |
before unlink(), since Windows doesn't allow unlinking a read-only |
| 13863 |
file. |
| 13864 |
|
| 13865 |
2009-10-19 Shiro Kawai <[email protected]> |
| 13866 |
|
| 13867 |
* test/system.scm: Excluded fork&wait test on cygwin platform since |
| 13868 |
fork() on cygwin is so unreliable. |
| 13869 |
|
| 13870 |
* src/mingw-exify: Updated to use 0.9 API. |
| 13871 |
|
| 13872 |
* src/core.c (init_cond_features): Added a feature gauche.os.cygwin |
| 13873 |
on cygwin platform. It comes short to provide an illusion of |
| 13874 |
complete unix emulation, so the program may want to switch its |
| 13875 |
behavior. |
| 13876 |
|
| 13877 |
* gencomp: Resurrected for the backward compatibility. It issues |
| 13878 |
warning to move on to precomp. |
| 13879 |
|
| 13880 |
* src/gauche.h, src/gauche/load.h, src/gauche/hash.h, src/gauche/port.h, |
| 13881 |
src/main.c, src/test-vmstack.c, ext/Makefile.ext.in: |
| 13882 |
Removed GAUCHE_API_0_9 flags. Now 0.9 API is the default. The |
| 13883 |
backward compatibility API is available under a new flag, |
| 13884 |
GAUCHE_API_PRE_0_9. |
| 13885 |
|
| 13886 |
2009-10-18 Shiro Kawai <[email protected]> |
| 13887 |
|
| 13888 |
* src/gauche/extend.h (SCM_INIT_EXTENSION): Revived data/bss area |
| 13889 |
registration code only for Cygwin; it still seems to need them. |
| 13890 |
|
| 13891 |
* gc/configure.ac: Applied a patch to avoid adding -lpthread -ldl |
| 13892 |
when building on Cygwin, for it causes link error. |
| 13893 |
|
| 13894 |
2009-10-17 Shiro Kawai <[email protected]> |
| 13895 |
|
| 13896 |
* src/vm.c (vm_finalize): Issue a warning when a thread is terminated |
| 13897 |
by an uncaught exception and its state is never retrieved by |
| 13898 |
thread-join!. Such a case must be a coding error, and usually |
| 13899 |
causes pain in debugging if such thread dies silently. |
| 13900 |
* src/exclib.stub, src/gauche/exception.h, ext/thread/thrlib.stub: |
| 13901 |
Moved thread exception definitions from the thread subsystem to |
| 13902 |
the core; we need <uncaught-exception> in the core to implement |
| 13903 |
the above feature. |
| 13904 |
* ext/threads/threads.c (Scm_ThreadJoin): Use SAEF_LOCK_BEGIN|END. |
| 13905 |
|
| 13906 |
2009-10-16 Shiro Kawai <[email protected]> |
| 13907 |
|
| 13908 |
* src/gauche-install.in: Added -C|--canonical-suffix option that |
| 13909 |
renames *.sci to *.scm upon install. This is to avoid confusion |
| 13910 |
when both foo.sci and foo.scm happens to be installed. |
| 13911 |
* ext/Makefile.ext.in, ext/template.Makefile.in: Added -C option |
| 13912 |
to gauche-install. |
| 13913 |
|
| 13914 |
2009-10-13 Shiro Kawai <[email protected]> |
| 13915 |
|
| 13916 |
* lib/gauche/cgen/cise.scm (define-cfn): Fixed a bug that didn't |
| 13917 |
escape identifiers for forward-declaration in record-static. |
| 13918 |
|
| 13919 |
* src/extlib.stub (%vm-show-stack-trace): experimentally expose |
| 13920 |
this function for diagnostics. |
| 13921 |
|
| 13922 |
2009-10-11 Shiro Kawai <[email protected]> |
| 13923 |
|
| 13924 |
* configure.ac: platform match for freebsd allows *freebsd, in order |
| 13925 |
to support kfreebsd (Patch from Jens Thiele). |
| 13926 |
|
| 13927 |
2009-10-10 Shiro Kawai <[email protected]> |
| 13928 |
|
| 13929 |
* lib/rfc/http.scm (http-generic): adds user-agent header automatically, |
| 13930 |
using default value from the parameter http-user-agent. |
| 13931 |
Also supports :proxy option. |
| 13932 |
|
| 13933 |
2009-10-09 Shiro Kawai <[email protected]> |
| 13934 |
|
| 13935 |
* lib/rfc/http.scm (http-compose-form-data, http-generic): |
| 13936 |
Support automatic multipart/form-data composition in |
| 13937 |
http-post and http-put. |
| 13938 |
|
| 13939 |
2009-10-08 Shiro Kawai <[email protected]> |
| 13940 |
|
| 13941 |
* lib/rfc/http.scm (http-compose-query, http-generic): Support |
| 13942 |
application/x-www-form-urlencoded query composition in http-* |
| 13943 |
procedures. |
| 13944 |
|
| 13945 |
2009-10-07 Shiro Kawai <[email protected]> |
| 13946 |
|
| 13947 |
* lib/rfc/mime.scm (mime-compose-message, mime-compose-message-string) |
| 13948 |
(mime-make-boundary): Added support of composing a MIME message. |
| 13949 |
(mime-parse-parameters, mime-compose-parameters): Expose those |
| 13950 |
APIs (the former renamed from mime-parse-parameter-value). |
| 13951 |
|
| 13952 |
2009-09-29 Shiro Kawai <[email protected]> |
| 13953 |
|
| 13954 |
* src/gauche/gloc.h, src/gloc.c (Scm_GlocMarkConst,Scm_GlocUnmarkConst): |
| 13955 |
APIs for better encapsulation. Also dropped Scm_MakeConstGloc, |
| 13956 |
because of duplicated feature. |
| 13957 |
* src/module.c (Scm_Define, Scm_DefineConst): Factored out the |
| 13958 |
common parts, and make sure modules.mutex is unlocked. |
| 13959 |
|
| 13960 |
2009-09-26 Shiro Kawai <[email protected]> |
| 13961 |
|
| 13962 |
* src/gauche/gloc.h, src/gloc.c, |
| 13963 |
src/gauche/module.h, src/module.c (Scm_HideBinding, Scm_FindBinding), |
| 13964 |
src/intlib.stub (%hide-binding): Added a hack to hide binding |
| 13965 |
inherited from parent modules. This feature is not for general |
| 13966 |
use; it is an internal tool to implement import's :except |
| 13967 |
and :rename qualifiers via intermediate module. |
| 13968 |
|
| 13969 |
* src/compile.scm (process-import): Added support of :except |
| 13970 |
qualifier in import, using the above feature. |
| 13971 |
|
| 13972 |
2009-09-24 Shiro Kawai <[email protected]> |
| 13973 |
|
| 13974 |
* src/compile.scm (import): Added support of :only qualifier |
| 13975 |
in import. |
| 13976 |
|
| 13977 |
2009-09-23 Shiro Kawai <[email protected]> |
| 13978 |
|
| 13979 |
* src/module.c (Scm_FindBinding, Scm_ImportModule), |
| 13980 |
src/gauche/module.h, src/intlib.stub (%import-module), |
| 13981 |
src/compile.scm (import): Added a feature to import a module |
| 13982 |
with prefixed names. (import (MODULE :prefix PREFIX)) imports |
| 13983 |
exported bindings of MODULE into the current module, exposing |
| 13984 |
the symbols with PREFIX attached. |
| 13985 |
The C-level API Scm_ImportModules() is deprecated, since it |
| 13986 |
is not very convenient for the callers to call it with the |
| 13987 |
new prefixed format. Instead the C programs should call |
| 13988 |
Scm_ImportModule() for each module to be imported. |
| 13989 |
* src/main.c: Rewritten using Scm_ImportModule() instead of |
| 13990 |
Scm_ImportModules(). |
| 13991 |
|
| 13992 |
2009-09-21 Shiro Kawai <[email protected]> |
| 13993 |
|
| 13994 |
* src/core.c (Scm__MutexCleanup), |
| 13995 |
src/vm.c (process_queued_requests), |
| 13996 |
src/gauche/pthread.h (SCM_INTERNAL_MUTEX_SAFE_LOCK_BEGIN|END), |
| 13997 |
src/gauche/uthread.h (SCM_INTERNAL_MUTEX_SAFE_LOCK_BEGIN|END): |
| 13998 |
Abstracted the pattern of mutex lock/unlock with cleanup |
| 13999 |
handler installed. |
| 14000 |
|
| 14001 |
2009-09-19 Shiro Kawai <[email protected]> |
| 14002 |
|
| 14003 |
* src/vm.c (process_queued_requests): Make sure the VM's lock |
| 14004 |
is unlocked when the thread is canceled while stopped. |
| 14005 |
Note: The same fix is needed wherever LOCK/UNLOCK pair contains |
| 14006 |
cancellation point. |
| 14007 |
|
| 14008 |
2009-09-05 Shiro Kawai <[email protected]> |
| 14009 |
|
| 14010 |
* ext/digest/md5.*: Renamed MD5Final -> MD5_Final etc. to avoid |
| 14011 |
name conflict in Snow Leopard. Patch from KOGURO Naoki. |
| 14012 |
* gc/match_dep.c: Fix build problem on Snow Leopard. |
| 14013 |
Patch from KOGURO Naoki. |
| 14014 |
* src/symbol.c (Scm_Gensym), src/main.c (cleanup_main): |
| 14015 |
Suppress warning on printf directive size mismatch. |
| 14016 |
Patch from KOGURO Naoki. |
| 14017 |
* m4/ax_check_define.m4, configure.ac, acinclude.m4: |
| 14018 |
Fix build problem on Snow Leopard. Patch from KOGURO Naoki. |
| 14019 |
|
| 14020 |
2009-08-26 Shiro Kawai <[email protected]> |
| 14021 |
|
| 14022 |
* lib/gauche/cgen/cise.scm (cise-translate): Added per-file cise |
| 14023 |
rendering support. This enables automatic generation of forward |
| 14024 |
prototype declarations of static procedures in the file. |
| 14025 |
|
| 14026 |
2009-08-25 Shiro Kawai <[email protected]> |
| 14027 |
|
| 14028 |
* lib/gauche/cgen/cise.scm (<cise-env>, define-cise-toplevel): Added |
| 14029 |
"toplevel" context so that we can have a toplevel cise macro |
| 14030 |
that expands into toplevel cise forms. |
| 14031 |
(cise-render, cies-render-to-string): Because of the above change, |
| 14032 |
the optional argument to indicate the context now takes a symbol |
| 14033 |
either one of 'toplevel, 'stmt or 'expr, as opposed to the boolean |
| 14034 |
value. |
| 14035 |
* lib/gauche/cgen/stub.scm (define-cfn, process-expr-spec) |
| 14036 |
(c-literal-expr): Changed accordingly. |
| 14037 |
|
| 14038 |
2009-08-23 Shiro Kawai <[email protected]> |
| 14039 |
|
| 14040 |
* ext/net/net.ac (net/if.h, struct ifreq): need sys/socket.h on OSX |
| 14041 |
to check these. |
| 14042 |
|
| 14043 |
2009-08-21 Shiro Kawai <[email protected]> |
| 14044 |
|
| 14045 |
* src/number.c (MAX_EXPONENT): Changed to 325, since the least |
| 14046 |
absolute value of denormalized number (expt 2.0 -1024) would be |
| 14047 |
printed to 5.0e-324, so we do need to handle exponent -324 to |
| 14048 |
keep read/write invariance. |
| 14049 |
(iexpt10): handle cases where e is larger than pre-computed |
| 14050 |
table size. It can happen in legitimate input, although rarely. |
| 14051 |
|
| 14052 |
* src/vm.c (Scm_VMFlushFPStack): Fixed a bug that forgot to scan |
| 14053 |
ARGP of in-stack continuation when flonum registers are flushed. |
| 14054 |
(Thanks to naoya_t for finding and providing reproduceable test |
| 14055 |
case.) |
| 14056 |
|
| 14057 |
2009-08-20 Shiro Kawai <[email protected]> |
| 14058 |
|
| 14059 |
* src/portapi.c (Scm_PortSeek): Fixed to revert the buffer pointer |
| 14060 |
when a seek method of a procedural buffered port gives up the |
| 14061 |
operation. (See ext/vport/test.scm for the actual case). |
| 14062 |
|
| 14063 |
2009-08-19 Shiro Kawai <[email protected]> |
| 14064 |
|
| 14065 |
* lib/gauche/cgen/cise.scm (.if): Changed preprocessor directive |
| 14066 |
macro from |#if| to .if, since the former is too intrusive in |
| 14067 |
the code. |
| 14068 |
(.cond, .include): Added these to generate preprocessor directives |
| 14069 |
#if..#elif..#endif and #include. |
| 14070 |
* src/*.stub, ext/syslog/syslog.scm: Changed accordingly. |
| 14071 |
|
| 14072 |
2009-07-28 Shiro Kawai <[email protected]> |
| 14073 |
|
| 14074 |
* src/read.c (read_string), |
| 14075 |
src/gauche/char_*.h (SCM_CHAR_EXTRA_WHITESPACE_INTRALINE): |
| 14076 |
Fully support all intraline whitespace characters. |
| 14077 |
|
| 14078 |
2009-07-27 Shiro Kawai <[email protected]> |
| 14079 |
|
| 14080 |
* src/read.c (skipws), src/gauche/char_*.h (SCM_CHAR_EXTRA_WHITESPACE): |
| 14081 |
Recognize all whitespace characters in the reader. |
| 14082 |
|
| 14083 |
* src/list.c (Scm_DeleteDuplicates): Fixed a bug that SEGVs when |
| 14084 |
dotted list is given. |
| 14085 |
|
| 14086 |
2009-07-26 Shiro Kawai <[email protected]> |
| 14087 |
|
| 14088 |
* lib/gauche/test.scm (prim-test, test-check): Changed the default |
| 14089 |
check procedure from equal? to a new test-check procedure. It |
| 14090 |
treats <test-error> objects specially, for the comparison of |
| 14091 |
error case is non symmetric. The old version handled error |
| 14092 |
cases by overloading object-equal? for <test-error>, but it is |
| 14093 |
awkward since object-equal? is expected to be symmetric. |
| 14094 |
|
| 14095 |
* test/*, ext/*/test.scm: Rewrote *test-error* in error case tests |
| 14096 |
with test-error; the *test-error* variable is obsoleted. |
| 14097 |
|
| 14098 |
2009-07-25 Shiro Kawai <[email protected]> |
| 14099 |
|
| 14100 |
* lib/rfc/uri.scm (uri-decompose-hierarchical): Changed to regard |
| 14101 |
empty PATH part as missing, and returns #f instead of "". It is |
| 14102 |
also consistent with rfc2396 section 3. (Pointed out by, |
| 14103 |
and tests provided by Hisashi Morita). |
| 14104 |
|
| 14105 |
2009-07-24 Shiro Kawai <[email protected]> |
| 14106 |
|
| 14107 |
* src/gauche/symbol.h, src/symbol.c (Scm_WriteSymbolName): Made |
| 14108 |
symbol printing routine available for keyword printing. |
| 14109 |
* src/keyword.c (print_keyword): Escapes keyword name if it contains |
| 14110 |
weird characters. |
| 14111 |
* src/read.c (read_keyword): Supports :|...| style escaped keywords. |
| 14112 |
|
| 14113 |
2009-07-06 Shiro Kawai <[email protected]> |
| 14114 |
|
| 14115 |
* lib/gauche/test.scm (test-error): Supersedes the global *test-error* |
| 14116 |
variable. Now the user can create a new <test-error> object for |
| 14117 |
each test, giving expected condition type, so that it will be |
| 14118 |
easier to test if the code raises a particular condition. |
| 14119 |
*test-error* variable is deprecated, and will fade away. |
| 14120 |
|
| 14121 |
2009-07-03 Shiro Kawai <[email protected]> |
| 14122 |
|
| 14123 |
* src/syslib.stub (sys-stfrerror): avoid using 'errno' as argument |
| 14124 |
name, for it may collide with a system macro. |
| 14125 |
|
| 14126 |
2009-07-02 Shiro Kawai <[email protected]> |
| 14127 |
|
| 14128 |
* src/read.c (read_shebang): Removed unnecessary EOF check. |
| 14129 |
|
| 14130 |
2009-06-28 Shiro Kawai <[email protected]> |
| 14131 |
|
| 14132 |
* src/prof.c (collect_samples): Replaced a call to HashTableGet |
| 14133 |
for HashTableRef. |
| 14134 |
(Scm_ProfilerCountBufferFlush): Replaced a call to HashTableAdd |
| 14135 |
for HashTableSet. |
| 14136 |
|
| 14137 |
2009-06-26 Shiro Kawai <[email protected]> |
| 14138 |
|
| 14139 |
* src/write.c, src/keyword.c: Replaced calls to obsoleted APIs |
| 14140 |
HashTableGet/Put for the new APIs HashTableRef/Set. |
| 14141 |
|
| 14142 |
2009-06-25 Shiro Kawai <[email protected]> |
| 14143 |
|
| 14144 |
* src/symbol.c (symbol_print, Scm_MakeSymbol), |
| 14145 |
src/read.c (read_internal, read_escaped_symbol), |
| 14146 |
src/write.c (write_walk): Support #:symbol notation of uninterned |
| 14147 |
symbols. |
| 14148 |
* src/extlib.stub (string->uninterned-symbol, symbol-interned?): |
| 14149 |
Added. |
| 14150 |
|
| 14151 |
2009-06-24 Shiro Kawai <[email protected]> |
| 14152 |
|
| 14153 |
* src/symbol.c (Scm_SymbolSansPrefix), |
| 14154 |
src/extlib.stub (symbol-sans-prefix): Added. |
| 14155 |
|
| 14156 |
* src/symbol.c (Scm_Intern): Doh! Scm_Intern wasn't MT-safe. Fixed. |
| 14157 |
|
| 14158 |
2009-06-15 Shiro Kawai <[email protected]> |
| 14159 |
|
| 14160 |
* src/gauche/vm.h (ScmVM): Use of queueNotEmpty flag had a race |
| 14161 |
condition. We ditched it and introduced separate flags for |
| 14162 |
atomicity. |
| 14163 |
Also dropped unused SCM_VM_BLOCKED state and introduced |
| 14164 |
SCM_VM_STOPPED state; the former is for blocked on system calls, |
| 14165 |
but it's too expensive to change the state for every syscall. |
| 14166 |
SVM_VM_STOPPED is for being stopped by other thread for debugging. |
| 14167 |
* src/core.c, src/signal.c, src/extlib.stub: Changed accordingly. |
| 14168 |
|
| 14169 |
* src/vm.c (process_queued_requests), |
| 14170 |
ext/threads/threads.c (Scm_ThreadStop, Scm_ThreadCont), |
| 14171 |
ext/threads/thrlib.stub (thread-stop!, thread-cont!): |
| 14172 |
Implemented a hand-shake protocol to stop/continue a thread from |
| 14173 |
another thread. |
| 14174 |
* ext/threads/thrlib.stub (thread-state): Added. |
| 14175 |
|
| 14176 |
2009-06-07 Shiro Kawai <[email protected]> |
| 14177 |
|
| 14178 |
* lib/rfc/http.scm (http-put, http-delete): Added. Patch from illness-P. |
| 14179 |
|
| 14180 |
2009-06-01 Shiro Kawai <[email protected]> |
| 14181 |
|
| 14182 |
* lib/rfc/ftp.scm (ftp-size): Adjust transfer-type by the connection's |
| 14183 |
transfer-type before sending ftp SIZE request; the value is affected |
| 14184 |
by transfer-type, and some ftpd rejects SIZE request in ASCII mode |
| 14185 |
(since the server needs to scan the file to calculate effects of |
| 14186 |
CRLF conversions). |
| 14187 |
|
| 14188 |
2009-05-31 Shiro Kawai <[email protected]> |
| 14189 |
|
| 14190 |
* lib/gauche/portutil.scm (copy-port): Make SIZE argument to accept |
| 14191 |
zero as a valid size; previously zero meant no size limit. This |
| 14192 |
argument was undocumented, so I hope this change won't affect |
| 14193 |
existing code. |
| 14194 |
|
| 14195 |
2009-05-30 Shiro Kawai <[email protected]> |
| 14196 |
|
| 14197 |
* lib/www/cgi.scm (cgi-main): Change buffering mode of the current |
| 14198 |
error port so that httpd error log will be cleaner. |
| 14199 |
|
| 14200 |
2009-05-20 Shiro Kawai <[email protected]> |
| 14201 |
|
| 14202 |
* ext/net/netaux.scm (call-with-client-socket): Added :input-buffering |
| 14203 |
and :output-buffering keyword arguments. |
| 14204 |
|
| 14205 |
2009-05-02 Shiro Kawai <[email protected]> |
| 14206 |
|
| 14207 |
* src/gauche-package.in (compile): Fix a problem when --rpath-flag |
| 14208 |
is empty (e.g. on OSX) |
| 14209 |
|
| 14210 |
2009-04-30 Shiro Kawai <[email protected]> |
| 14211 |
|
| 14212 |
* doc/corelib.texi (atan): fix description of 2-argument atan. |
| 14213 |
(atan y x) and (atan (/ y x)) are equivalent only when x and |
| 14214 |
y are both nonegative. Rewrote to use R5RS's definition. |
| 14215 |
|
| 14216 |
2009-04-29 Shiro Kawai <[email protected]> |
| 14217 |
|
| 14218 |
* src/list.c, src/gauche.h (Scm_ArrayToListWithTail): Added new API. |
| 14219 |
|
| 14220 |
* src/proc.c: Added 'optcount' slot to the procedure object. |
| 14221 |
|
| 14222 |
* lib/gauche/procedure.scm (case-lambda), |
| 14223 |
src/intlib.stub (make-case-lambda-dispatcher): Rewrote case-lambda |
| 14224 |
implemetation to take advantage of non-consing optional arguments |
| 14225 |
(i.e. optional > 1). Simple benchmark showed 20x-80x speedup. |
| 14226 |
|
| 14227 |
2009-04-27 Shiro Kawai <[email protected]> |
| 14228 |
|
| 14229 |
* lib/gauche/cgen/precomp.scm (compile-toplevel-form): Instead of |
| 14230 |
matchin toplevel define/define-macro/... literally, we override |
| 14231 |
special form definitions within compile-module to hook the special |
| 14232 |
actions. The former approach doesn't work if those special forms |
| 14233 |
are generated as the result of macro expansion. |
| 14234 |
The new approach may bread if the compiled source overrides |
| 14235 |
those special forms as well. See the comment near |
| 14236 |
"Special form handlers" for the details. |
| 14237 |
|
| 14238 |
2009-04-24 Shiro Kawai <[email protected]> |
| 14239 |
|
| 14240 |
* src/gauche-package.in (compile), |
| 14241 |
lib/gauche/package/compile (gauche-package-compile) |
| 14242 |
(gauche-package-link): |
| 14243 |
Added --gauche-builddir option / :gauche-builddir keyword arg |
| 14244 |
to allow compiling extension using not-yet-installed Gauche. |
| 14245 |
|
| 14246 |
* src/core.c (Scm_SimpleMain): Added for the convenience of |
| 14247 |
creating a compiled binary that kicks a Gauche script. |
| 14248 |
|
| 14249 |
2009-04-23 Shiro Kawai <[email protected]> |
| 14250 |
|
| 14251 |
* src/gauche.h: include scmconst.h. |
| 14252 |
|
| 14253 |
* lib/gauche/cgen/literal.scm (<cgen-scheme-real>): properly handles |
| 14254 |
inifinity and NaN flonum constants. |
| 14255 |
|
| 14256 |
2009-04-22 Shiro Kawai <[email protected]> |
| 14257 |
|
| 14258 |
* src/system.c (Scm_SysExec), |
| 14259 |
src/syslib.stub (sys-exec, sys-fork-and-exec): Added support to |
| 14260 |
chdir() before exec(), by :directory keyword argument. |
| 14261 |
Dropped support of ancient-style API (sys-exec cmd args iomap). |
| 14262 |
* lib/gauche/process.scm (run-process): Added :directory keyword |
| 14263 |
argument. |
| 14264 |
|
| 14265 |
2009-04-21 Shiro Kawai <[email protected]> |
| 14266 |
|
| 14267 |
* ext/sparse/ctrie.c (CompactTrieDelete): Fixed a bug that failed |
| 14268 |
to shrink tree properly. |
| 14269 |
(CompactTrieCheck): Added consistency checking routine. |
| 14270 |
(CompactTrieCopy): Added copy operation. |
| 14271 |
* ext/sparse/spvec.[ch]: Added SparseVectorCopy. |
| 14272 |
* ext/sparse/sptab.[ch]: Added SparseTableCopy. Fixed a bug in |
| 14273 |
SparseTableAdd in the edge case when hash keys conflict. |
| 14274 |
* ext/sparse/sparse.scm (sparse-table-copy, sparse-vector-copy): |
| 14275 |
Added. |
| 14276 |
|
| 14277 |
2009-04-20 Shiro Kawai <[email protected]> |
| 14278 |
|
| 14279 |
* ext/sparse/sparse.scm: Added *-update!, *-push! and *-pop!. |
| 14280 |
|
| 14281 |
* lib/gauche/cgen/stub.scm (cgen-genstub): Moved genstub main |
| 14282 |
functionarity here. |
| 14283 |
* src/genstub: only command-line processing remains. |
| 14284 |
|
| 14285 |
2009-04-19 Shiro Kawai <[email protected]> |
| 14286 |
|
| 14287 |
* ext/sparse/spvec.[ch], ext/sparse/sparse.scm (sparse-vector-inc!): |
| 14288 |
Experimentally added. |
| 14289 |
(CompactTrieClear): Fixed a bug that segfaults when ctrie is empty. |
| 14290 |
|
| 14291 |
2009-04-18 Shiro Kawai <[email protected]> |
| 14292 |
|
| 14293 |
* src/gauche/bits_inline.h (Scm__CountBitsInWord): Faster code. |
| 14294 |
(Benchmarks on Core2 Quad Q6600 2.4GHz 64bit: 11ns -> 6.2ns, |
| 14295 |
Core Duo L2400 1.66GHz 32bit: 10ns -> 8ns) |
| 14296 |
|
| 14297 |
* ext/sparse/spvec.[ch], ext/sparse/sparse.scm: Added sparse uniform |
| 14298 |
vector support. |
| 14299 |
|
| 14300 |
2009-04-17 Shiro Kawai <[email protected]> |
| 14301 |
|
| 14302 |
* src/gauche/bits.h: Added SCM_BITS_TEST_IN_WORD etc. for single- |
| 14303 |
word bit manipulation. |
| 14304 |
* ext/sparse/spvec.[ch], ext/sparse/sparse.scm: Revised implementation |
| 14305 |
of sparse vector; dropped extra leaf array and let it store values |
| 14306 |
directly in the ctrie's leaf node, which showed better performance |
| 14307 |
and memeory usage. Added delete!, exists? and iterators. |
| 14308 |
|
| 14309 |
2009-04-16 Shiro Kawai <[email protected]> |
| 14310 |
|
| 14311 |
* lib/rfc/http.scm (receive-body-nochunked): Fixed the bug that made |
| 14312 |
http-get hang when Content-Length is 0. Patch from kzfm1024. |
| 14313 |
|
| 14314 |
* src/compile.scm (pass1/extended-lambda), |
| 14315 |
lib/gauche/cgen/precomp.scm (cgen-precompile, cgen-precompile-multi): |
| 14316 |
precomp.scm has been using a new keyword arg syntax in extended |
| 14317 |
lambda (the one compatible to CL's), but that prevents svn trunk |
| 14318 |
from compiling on 0.8.14 since it doesn't understand the new syntax. |
| 14319 |
So we reverted the offending part temporarily, and changed |
| 14320 |
compile.scm to allow both syntax; they should be gone once we |
| 14321 |
roll out the next release. |
| 14322 |
(NB: You need fresh 0.8.14 installed to compile this revision) |
| 14323 |
|
| 14324 |
2009-04-15 Shiro Kawai <[email protected]> |
| 14325 |
|
| 14326 |
* ext/sparse/sparse.scm, ext/sparse/sptab.c: Implemented dictionary |
| 14327 |
protocol to <sparse-table>. |
| 14328 |
(sparse-table-exists?): added. |
| 14329 |
|
| 14330 |
2009-04-14 Shiro Kawai <[email protected]> |
| 14331 |
|
| 14332 |
* ext/auxsyslib.stub, ext/auxsys.scm, src/syslib.stub, src/autoloads.scm |
| 14333 |
(sys-chown, sys-lchown): Moved these from auxsys to core. The |
| 14334 |
primary motivation is to avoid file.util depending on auxsys |
| 14335 |
(the dependency causes a build problem). But in fact, I don't |
| 14336 |
remember why I factored these out to auxsys. Since loading time |
| 14337 |
isn't much issue now, probably I should consider merging all auxsys |
| 14338 |
into core again. |
| 14339 |
|
| 14340 |
* ext/net/netlib.stub (socket-sendmsg, socket-buildmsg, socket-ioctl), |
| 14341 |
ext/net/net.c (Scm_SocketSendMsg, Scm_SocketBuildMsg, |
| 14342 |
Scm_SocketIoctl): Added these low-level stuff. SocketIoctl only |
| 14343 |
supports SIOCGIFINDEX for now. |
| 14344 |
* ext/net/net.ac, src/gauche/configure.h.in (HAVE_NET_IF_H, |
| 14345 |
HAVE_STRUCT_IFREQ): Added these checks to support socket-ioctl. |
| 14346 |
|
| 14347 |
2009-04-10 Shiro Kawai <[email protected]> |
| 14348 |
|
| 14349 |
* libsrc/file/util.scm (create-directory-tree): Make :owner and |
| 14350 |
:group work with :symlink to change symlink's owner/group instead |
| 14351 |
of the file pointed by it. Note that :mode is ignored if :symlink; |
| 14352 |
we may honor :mode on systems that has lchmod in future. |
| 14353 |
(check-directory-tree): Fix bug in attribute check. |
| 14354 |
|
| 14355 |
* src/gauche-install.in: Changed -p option to take actual path prefix |
| 14356 |
instead of the number of path components to strip. It is rather |
| 14357 |
useful to make it so to strip $(srcdir) in the make rules. |
| 14358 |
|
| 14359 |
* src/precomp, lib/gauche/cgen/precomp.scm: Support multiple Scheme |
| 14360 |
sources to precompile into single DSO. Each source generates |
| 14361 |
individual *.sci file, which includes dynamic-load form with |
| 14362 |
:init-function to initialize the corresponding part of DSO. |
| 14363 |
It is the key to solve the dependency problem. |
| 14364 |
The API and functionality are not fixed yet; especially we need |
| 14365 |
to redesign naming convention of init function name, since currently |
| 14366 |
we can't have more than one source file with the same basename |
| 14367 |
(e.g. foo/bar.scm and baz/bar.scm). |
| 14368 |
|
| 14369 |
2009-04-09 Shiro Kawai <[email protected]> |
| 14370 |
|
| 14371 |
* src/load.c (Scm_DynLoad): Allow multiple initialization function |
| 14372 |
in a DSO, in order to support precompiling multiple Scheme sources |
| 14373 |
(modules) into single DSO. |
| 14374 |
|
| 14375 |
2009-04-07 Shiro Kawai <[email protected]> |
| 14376 |
|
| 14377 |
* src/load.c (Scm_DynLoad): Turned the obsoleted third argument |
| 14378 |
into 'flags' argument for future extension. |
| 14379 |
|
| 14380 |
* src/read.c (read_shebang): Fixed a problem that left incorrect |
| 14381 |
VM's numVals after calling shebang handler. |
| 14382 |
|
| 14383 |
2009-04-06 Shiro Kawai <[email protected]> |
| 14384 |
|
| 14385 |
* lib/gauche/cgen/precomp.scm (check-first-form-is-define-module): |
| 14386 |
We can't read entire source first, since it may contain srfi-10 |
| 14387 |
extended reader syntax precomp is not aware of. Instead we just |
| 14388 |
read the first sexp to check define-module, then read and process |
| 14389 |
forms one by one. |
| 14390 |
|
| 14391 |
* ext/*: Removed dependency on ext/uvector. Extension modules only |
| 14392 |
need the uvector features built into core, so they don't need |
| 14393 |
to link DSO in ext/uvector. Now we can avoid hairy dependency |
| 14394 |
issues at build time. |
| 14395 |
|
| 14396 |
2009-04-05 Shiro Kawai <[email protected]> |
| 14397 |
|
| 14398 |
* ext/*: Modified to match the new naming convention of DSO files |
| 14399 |
and generated scheme interface files (except uvector, for some |
| 14400 |
external modules depend on the name "libgauche-uvector.so" yet). |
| 14401 |
Also removed *_head.c/*_tail.c magics; they are no longer relevant |
| 14402 |
with modern compilers. |
| 14403 |
|
| 14404 |
* src/precomp: Support --strip-prefix and --strip-prefix-all options. |
| 14405 |
Added short options. |
| 14406 |
|
| 14407 |
* lib/gauche/cgen/precomp.scm: Recognize export-if-defined form. |
| 14408 |
|
| 14409 |
* src/genconfig.in: Write to tmp file then rename. Otherwise |
| 14410 |
parallel make may grab a partially written file and fail. |
| 14411 |
|
| 14412 |
2009-04-04 Shiro Kawai <[email protected]> |
| 14413 |
|
| 14414 |
* src/precomp, lib/gauche/cgen/precomp.scm: Reworked API. Since |
| 14415 |
'ext-module' should be generated for each scheme file that |
| 14416 |
implements individual modules, there's no point splitting |
| 14417 |
cgen-with-ext-module API. For the convenience of converting |
| 14418 |
Scheme libraries into precompiled DSO + ext-module file, we set |
| 14419 |
a new convention: A Scheme library "foo/bar.scm" is to be |
| 14420 |
precompiled into "foo--bar.so" and "foo/bar.sci". |
| 14421 |
|
| 14422 |
Since we can now infer ext-module file name, --ext-module option |
| 14423 |
for precomp isn't a necessary condition to generate ext-module |
| 14424 |
file and to generate extention initializer. Now ext-module |
| 14425 |
file is generated if the source contains define-module form |
| 14426 |
at the beginning, and extension initializer is generated by |
| 14427 |
--ext-main option. The --ext-module option is left mainly for |
| 14428 |
backward compatibility. |
| 14429 |
|
| 14430 |
2009-04-02 Shiro Kawai <[email protected]> |
| 14431 |
|
| 14432 |
* src/load.c (Scm__InitLoad): Recognize "sci" (Scheme Interface) |
| 14433 |
as a valid suffix as well as traditional "scm". "sci" takes |
| 14434 |
precedence, and to be used for generated interface files by |
| 14435 |
the precompiler. |
| 14436 |
(Scm_Require): Fixed where it assumed "scm" suffix. |
| 14437 |
|
| 14438 |
* src/precomp: Renamed from gencomp to reflect its function. |
| 14439 |
* */Makefile.in: Changed accordingly. |
| 14440 |
|
| 14441 |
* src/gauche-install.in: Added -p option. |
| 14442 |
* test/scripts.scm: Start adding tests for script utilities. |
| 14443 |
|
| 14444 |
2009-04-01 Shiro Kawai <[email protected]> |
| 14445 |
|
| 14446 |
* libsrc/file/util.scm (create-directory-tree, check-directory-tree): |
| 14447 |
Added. |
| 14448 |
|
| 14449 |
2009-03-31 Shiro Kawai <[email protected]> |
| 14450 |
|
| 14451 |
* src/compile.scm (pass1/extended-lambda): Fixed the case when |
| 14452 |
:rest and (:optional and/or :key) are both specified. |
| 14453 |
|
| 14454 |
* src/scmlib.scm (exit-handler): Let the default exit handler add |
| 14455 |
newline to the output. |
| 14456 |
|
| 14457 |
2009-03-30 Shiro Kawai <[email protected]> |
| 14458 |
|
| 14459 |
* src/gencomp, lib/gauche/cgen/precomp.scm: Some modifications to |
| 14460 |
support muliple scm files into one DSO case. This version is still |
| 14461 |
not good enough; if the source consists of multiple modules, |
| 14462 |
each modules should have corresponding ext-module file instead of |
| 14463 |
just one in the current version. But then, who is responsible |
| 14464 |
to load the common DSO? Trying to find better pattern. |
| 14465 |
|
| 14466 |
2009-03-28 Shiro Kawai <[email protected]> |
| 14467 |
|
| 14468 |
* lib/gauche/cgen/literal.scm (<cgen-scheme-string>): Properly |
| 14469 |
escape emitted C string constants. |
| 14470 |
|
| 14471 |
2009-03-27 Shiro Kawai <[email protected]> |
| 14472 |
|
| 14473 |
* lib/gauche/cgen/literal.scm, lib/gauche/cgen/literal-uv.scm: |
| 14474 |
Added support for uvector literals. (NOTE: To build this revision |
| 14475 |
you have to use 0.8.14 as host Gauche. The bug in %uvector-ref |
| 14476 |
inlining support, which was fixed by the previous commit, would |
| 14477 |
interfere with this module. See also the comment in literal-uv.scm |
| 14478 |
and don't forget to merge it into literal.scm after releasing the |
| 14479 |
next version.) |
| 14480 |
|
| 14481 |
* src/extlib.stub (uvector-length, uvector-immutable?, SCM_UVECTOR_*): |
| 14482 |
Expose some more uvector stuff here to support uvector literal |
| 14483 |
in cgen. |
| 14484 |
|
| 14485 |
* src/compile.scm (%uvector-ref): Fix the inliner to emit UVEC-REF |
| 14486 |
only when 'type' arg is a constant integer. |
| 14487 |
|
| 14488 |
2009-03-26 Shiro Kawai <[email protected]> |
| 14489 |
|
| 14490 |
* lib/gauche/cgen/precomp.scm (cgen-with-ext-module): ensure the |
| 14491 |
directory to put ext module file. |
| 14492 |
|
| 14493 |
* lib/gauche/cgen/literal.scm (cgen-make-literal) |
| 14494 |
(<cgen-user-defined-type>, infer-literal-handler): Allow precompiler |
| 14495 |
to embed a constant value of user-defined type, as far as the type |
| 14496 |
has external representation using SRFI-10 syntax. |
| 14497 |
* src/read.c (Scm_GetReaderCtor), src/extlib.stub (%get-reader-ctor): |
| 14498 |
Added interface to obtain reader constructor. |
| 14499 |
* src/read.c (Scm_DefineReaderCtor): Added an argument for future |
| 14500 |
extension of making reader-ctor module-aware. |
| 14501 |
|
| 14502 |
* lib/gauche/cgen/precomp.scm: Removed old cruft and reorganized |
| 14503 |
the source a bit. |
| 14504 |
|
| 14505 |
* src/module.c (Scm_MakeModule): Made anonymous module name's name |
| 14506 |
to #f instead of '|#|. I planned this change long time ago, but |
| 14507 |
apparently forgot to implement it. It shouldn't affect existing |
| 14508 |
code. |
| 14509 |
|
| 14510 |
2009-03-25 Shiro Kawai <[email protected]> |
| 14511 |
|
| 14512 |
* src/gauche.h (SCM_IGNORE_RESULT): fix again to properly fool gcc. |
| 14513 |
* src/gencomp, lib/gauche/cgen/precomp.scm: Moved gencomp functionality |
| 14514 |
into gauche.cgen.precomp module. |
| 14515 |
|
| 14516 |
2009-03-23 Shiro Kawai <[email protected]> |
| 14517 |
|
| 14518 |
* ext/sparse/sparse.scm (sparse-table-fold): fix a bug about the end |
| 14519 |
marker. |
| 14520 |
* ext/sparse/spvec.c (g_desc): elementAtomic should be FALSE. |
| 14521 |
|
| 14522 |
2009-03-22 Shiro Kawai <[email protected]> |
| 14523 |
|
| 14524 |
* ext/sparse: Renamed spvector for sparse-vector and sptable for |
| 14525 |
sparse-table. It's more verbose, but abbrev form seems to lack |
| 14526 |
consistency. |
| 14527 |
|
| 14528 |
2009-03-21 Shiro Kawai <[email protected]> |
| 14529 |
|
| 14530 |
* lib/gauche/cgen/stub.scm (process-body): Fix the case when |
| 14531 |
C routine calls Scm_Values*. In such case, the stub generator |
| 14532 |
doesn't need to generate Scm_Values* code, but just passes |
| 14533 |
the return value from C routine as if it returns a single value. |
| 14534 |
|
| 14535 |
* src/write.c (Scm_Vprintf): Support '*' in the precision and width |
| 14536 |
position of the format directives. |
| 14537 |
|
| 14538 |
* src/hash.c (insert_entry): Clears old bucket array when hashtable |
| 14539 |
is extended, in order to reduce inadvertent retention of garbages. |
| 14540 |
(Scm_HashString): Allow modulo == 0. |
| 14541 |
|
| 14542 |
* ext/sparse: Added sparse data structures (initially just a sparse |
| 14543 |
vector; eventually we'll add sparse uniform vectors and sparse |
| 14544 |
hashtable---hashtable using sparse vector as a backend store). |
| 14545 |
The main advantage of sparse vectors over hashtables is that it |
| 14546 |
behaves better in memory consumption when structures with large |
| 14547 |
number of elements (like >1M) are repeatedly created and discarded. |
| 14548 |
Although each sparse vector uses more memory than a hashtable of |
| 14549 |
the same number of elements, large hashtables are more likely to |
| 14550 |
become "dead memory", because of its large bucket vector. |
| 14551 |
|
| 14552 |
2009-03-19 Shiro Kawai <[email protected]> |
| 14553 |
|
| 14554 |
* src/Makefile.in: added gauche/bits_inline.h |
| 14555 |
* src/gauche/bits_inline.h, src/bits.c: Splitted some useful and |
| 14556 |
performance-critical routines from bits.c into a separate header. |
| 14557 |
The header is not for general inclusion; only those code that |
| 14558 |
needs such routines should explicitly include it. |
| 14559 |
|
| 14560 |
2009-03-18 Shiro Kawai <[email protected]> |
| 14561 |
|
| 14562 |
* src/gauche.h (SCM_IGNORE_RESULT): Added this macro to silence |
| 14563 |
"ignoring return value" warnings when the return value is |
| 14564 |
intentionally ignored. |
| 14565 |
* src/core.c (Scm_Abort), src/string.c (Scm_DStringDump): |
| 14566 |
Using SCM_IGNORE_RESULT. |
| 14567 |
|
| 14568 |
2009-03-17 Shiro Kawai <[email protected]> |
| 14569 |
|
| 14570 |
* lib/gauche/dictionary.scm (<bimap>): Added bidirectional map. |
| 14571 |
(dict-get, dict-put!, dict-exists?, dict-delete!): Completed |
| 14572 |
dictionary interface protocol. |
| 14573 |
* lib/dbm.scm (dict-get, dict-put!, dict-exists?, dict-delete!): |
| 14574 |
Adapted to the new dictionary protocol. |
| 14575 |
* test/dict.scm: added. |
| 14576 |
|
| 14577 |
2009-03-10 Shiro Kawai <[email protected]> |
| 14578 |
|
| 14579 |
* ext/net/addr.c: Allocates <sockaddr-*> instances as ATOMIC to |
| 14580 |
reduce the risk of false pointers. |
| 14581 |
|
| 14582 |
* src/core.c (Scm_Abort): Tells the compiler that we intentionally |
| 14583 |
ignore the return value of write(2). Newer gcc whined on it. |
| 14584 |
|
| 14585 |
2009-03-01 Shiro Kawai <[email protected]> |
| 14586 |
|
| 14587 |
* src/gauche/extend.h (SCM_INIT_EXTENSION): Redefined this macro |
| 14588 |
to no-op. The old scheme of registering data/bss start/end by |
| 14589 |
this macro is no longer relevant, since modern linkers doesn't |
| 14590 |
keep the relative locations of static symbols anyway. Eventually |
| 14591 |
we'll make *_head.c/_tail.c fade out as well. |
| 14592 |
|
| 14593 |
2009-02-28 Shiro Kawai <[email protected]> |
| 14594 |
|
| 14595 |
* src/string.c (Scm_StringCiCmp): a couple of bug fix, thanks to |
| 14596 |
Tsugutomo Enami. |
| 14597 |
|
| 14598 |
2009-02-26 Shiro Kawai <[email protected]> |
| 14599 |
|
| 14600 |
* src/vmcall.c (ADJUST_ARGUMENT_FRAME): Fix CHECK_STACK assertion |
| 14601 |
condition and no optargs case in APPLY_CALL. |
| 14602 |
|
| 14603 |
2009-02-23 Shiro Kawai <[email protected]> |
| 14604 |
|
| 14605 |
* lib/util/toposort.scm (topological-sort): Fix the code that locally |
| 14606 |
shadows '=' by the given optional argument, that breaks when the |
| 14607 |
optional equality predicate isn't compatibile with numeric comparison. |
| 14608 |
|
| 14609 |
2009-02-22 Shiro Kawai <[email protected]> |
| 14610 |
|
| 14611 |
* src/vminsn.scm: Bug fix: added some missing SCM_FLONUM_ENSURE_MEMs. |
| 14612 |
|
| 14613 |
* src/vm.c (Scm_VMFlushFPStack), src/vminsn.scm ($values): |
| 14614 |
Allow register flonums in vm->vals registers. Make sure they're |
| 14615 |
moved to heap when FP stack is flushed. |
| 14616 |
|
| 14617 |
* src/vminsn.scm (UVEC-REFI), src/compile.scm: An experimental code |
| 14618 |
to add UVEC-REFI instruction. Not enough evidence is collected |
| 14619 |
to support the instruction, though, so they are commented out |
| 14620 |
in this commit. |
| 14621 |
|
| 14622 |
* src/compile.scm (attach-inline-transformer): Experimentally added |
| 14623 |
a hook for pass1 inliner. It's still highly experimental and |
| 14624 |
purely for internal use. |
| 14625 |
* ext/uvector/uvutil.scm: Renamed from uvseq.scm. Inline expand |
| 14626 |
TAGvector-ref into %uvector-ref using inline transformer. |
| 14627 |
|
| 14628 |
2009-02-21 Shiro Kawai <[email protected]> |
| 14629 |
|
| 14630 |
* ext/uvector/uvlib.stub.tmpl: Flag :fast-flonum for uvector arithmetic |
| 14631 |
(e.g. TAGvector-add etc.) The second arg can be a register flonum. |
| 14632 |
|
| 14633 |
* ext/uvector/uvector.c.tmpl (arg2_check): Fixed a bug that passed |
| 14634 |
too few arguments to Scm_Error. |
| 14635 |
|
| 14636 |
* src/vminsn.scm (NUMBERP, REALP): Added instructions. |
| 14637 |
* src/stdlib.stub (number?, complex?, real?, rational?): Use new |
| 14638 |
instructions for inline. |
| 14639 |
|
| 14640 |
* src/stdlib.stub (numcmp): Rewrote =, <, <=, >= and > using :optarray |
| 14641 |
to avoid consing in 3- and 4-ary cases. |
| 14642 |
* src/number.c (Scm_NumCmp): Deferred SCM_FLONUM_ENSURE_MEM until |
| 14643 |
it's absolutely necessary, reducing flonum allcation. |
| 14644 |
|
| 14645 |
* lib/gauche/cgen/stub.scm: Added support of :optarray argument |
| 14646 |
spec; it allows SUBR to receive optional arguments as a C array of |
| 14647 |
ScmObj. |
| 14648 |
* ext/uvector/uvector.c.tmpl, ext/uvector/uvector.h.tmpl, |
| 14649 |
ext/uvector/uvlib.stub.tmpl: Changed 'TAGvector' function using |
| 14650 |
:optarray argument spec, so that if the argument list is short |
| 14651 |
it won't cons. |
| 14652 |
|
| 14653 |
2009-02-20 Shiro Kawai <[email protected]> |
| 14654 |
|
| 14655 |
* lib/gauche/cgen/stub.scm, src/vmcall.c (ADJUST_ARGUMENT_FRAME): |
| 14656 |
Made SUBR's :optional argument does not cause caller to cons |
| 14657 |
the optional arguments. Improved performance quite a bit, |
| 14658 |
especially when passing flonums in optional args (if optional args |
| 14659 |
are consed, the flonums have to be moved to the heap; now it can |
| 14660 |
stay in the flonum stack). |
| 14661 |
|
| 14662 |
2009-02-17 Shiro Kawai <[email protected]> |
| 14663 |
|
| 14664 |
* lib/gauche/cgen/stub.scm (process-cproc-args): Code cleanup. |
| 14665 |
|
| 14666 |
* src/vmcall.c (ADJUST_ARGUMENT_FRAME), |
| 14667 |
src/gauche.h (ScmProcedure): Allow procedure->optional to be more |
| 14668 |
than 1. This is preparation for optional arg handling optimization. |
| 14669 |
|
| 14670 |
2009-02-15 Shiro Kawai <[email protected]> |
| 14671 |
|
| 14672 |
* src/gauche/vector.h, src/vector.c, src/extlib.stub (%uvector-ref): |
| 14673 |
Experimentally added internal support of generic uvector referencer. |
| 14674 |
* src/vminsn.scm (UVEC-REF), src/compile.scm: Experimentally added |
| 14675 |
instruction for %uvector-ref |
| 14676 |
|
| 14677 |
* ext/uvector/uvlib.stub.tmpl, ext/uvector/uvector.h.tmpl, |
| 14678 |
ext/uvector/uvector.c.tmpl, ext/uvector/uvgen.scm: |
| 14679 |
Let *vector-dot routine to take advantage of FFX. |
| 14680 |
|
| 14681 |
* lib/gauche/cgen/type.scm: Fixed boxer definition of <float>, |
| 14682 |
<double> and <real> to use ScmVMReturnFlonum to take advantage |
| 14683 |
of FFX. Also added <uvector> to builtin types, since it is now |
| 14684 |
supported in the core. |
| 14685 |
|
| 14686 |
2009-02-14 Shiro Kawai <[email protected]> |
| 14687 |
|
| 14688 |
* src/gauche/vector.h, src/vector.c, ext/uvector/uvector.c.tmpl, |
| 14689 |
ext/uvector/uvector.h.tmpl: Moved definition of ScmUVector structure, |
| 14690 |
constructors, and <uvector> classes from ext/uvector to the core. |
| 14691 |
The role of uniform vector has gotten bigger, for it is used |
| 14692 |
to treat binary data in the Scheme world. It is awkward to require |
| 14693 |
extensions to link ext.uvector only to use ScmUVector structure. |
| 14694 |
The utility procedures for uvectors remain in ext.uvector. |
| 14695 |
NOTE: This changes definition of type-specific uniform vectors |
| 14696 |
such as Scm_S8Vector; the difference is the type of 'elements' field. |
| 14697 |
As long as you access uvector elements using SCM_*VECTOR_ELEMENTS |
| 14698 |
macro, this change shouldn't affect your code. |
| 14699 |
|
| 14700 |
2009-02-03 Shiro Kawai <[email protected]> |
| 14701 |
|
| 14702 |
* ext/auxsys/auxsys.scm (sys-realpath): Fixed to follow '..' |
| 14703 |
correctly and other corner cases, thanks to Tsugutomo Enami. |
| 14704 |
|
| 14705 |
2009-02-01 Shiro Kawai <[email protected]> |
| 14706 |
|
| 14707 |
* ext/auxsys/auxsys.scm (sys-realpath): realpath(3) can be not safe |
| 14708 |
(Linux manpage recommends not to use it), so we reimplemented it |
| 14709 |
in Scheme. |
| 14710 |
|
| 14711 |
2009-01-28 Shiro Kawai <[email protected]> |
| 14712 |
|
| 14713 |
* src/gauche.h, src/gauche/module.h, src/Makefile.in: Splitted |
| 14714 |
ScmModule related declarations into a separate header. |
| 14715 |
|
| 14716 |
2009-01-19 Shiro Kawai <[email protected]> |
| 14717 |
|
| 14718 |
* ext/sxml/sxml/tree-trans.scm.in: Added missing 'use srfi-11'. |
| 14719 |
|
| 14720 |
2008-12-20 Shiro Kawai <[email protected]> |
| 14721 |
|
| 14722 |
* INSTALL.in: Updated some instructions. |
| 14723 |
|
| 14724 |
* src/geninsn, lib/gauche/vm/insn-core.scm: Allow :obsoleted flag |
| 14725 |
in the insturction definition to suppress emission of the particular |
| 14726 |
combined instructions. It is a step before removing them |
| 14727 |
(we can't just remove them from vminsn.scm, since the current |
| 14728 |
release of Gauche would generate them when compiling the trunk |
| 14729 |
code, and the trunk VM must be able to execute them). |
| 14730 |
* src/vminsn.scm: Add :obsoleted flag to LREF0-PUSH-GREF-* insns. |
| 14731 |
|
| 14732 |
2008-12-16 Shiro Kawai <[email protected]> |
| 14733 |
|
| 14734 |
* src/geninsn (construct-vmbody): Fixed handling of insns that combine |
| 14735 |
more than two basic insns. In the previous code, if you want an |
| 14736 |
insn A-B-C, you have to have the insn B-C. Now you don't need to. |
| 14737 |
(You still need A-B, for the insn combine state machine can only |
| 14738 |
keep one instruction in a queue; this limitation should be addressed |
| 14739 |
sometime in future.) |
| 14740 |
* src/vminsn.scm: Removed NUMADDI-PUSH, for it is no longer needed |
| 14741 |
by the above change. |
| 14742 |
|
| 14743 |
2008-12-13 Shiro Kawai <[email protected]> |
| 14744 |
|
| 14745 |
* src/vminsn.scm, src/compile.scm: Experimentally added supports |
| 14746 |
for combined instructions: LREF-VAL0-BNUMNE, LREF-VAL0-NUMADD2, |
| 14747 |
NUMADDI-PUSH, LREF-NUMADDI, LREF-NUMADDI-PUSH and LREF-RET. Some |
| 14748 |
of these combinations frequently appear in typical loop |
| 14749 |
constructs. This change improves performance slightly (about 7-8% |
| 14750 |
in tak). The improvement is not so much as expected, though, so |
| 14751 |
we might revert this if we find more fundamental improvements. |
| 14752 |
|
| 14753 |
* src/gauche/code.h (SCM_VM_INSN_CODE): utilize full 12bits for code. |
| 14754 |
|
| 14755 |
2008-12-09 Shiro Kawai <[email protected]> |
| 14756 |
|
| 14757 |
* lib/util/combinations (but-kth, permutations, permutations*, |
| 14758 |
permutations-for-each, permutations*-for-each, combinations, |
| 14759 |
combinations*, combinations-for-each, combinations*-for-each): |
| 14760 |
Optimized a bit. |
| 14761 |
|
| 14762 |
2008-12-06 Shiro Kawai <[email protected]> |
| 14763 |
|
| 14764 |
* src/gauche.h (ScmFlonum): Make ScmFlonum a structure containing |
| 14765 |
double instead of just a bare double; some 32bit processors/compilers |
| 14766 |
do not align bare double on 8-byte boundary, but they do a struct |
| 14767 |
that containing a double. |
| 14768 |
* src/number.c (Scm_MakeFlonum), src/gauche/vm.h (Scm_VMReturnFlonum): |
| 14769 |
Changed accordingly. |
| 14770 |
|
| 14771 |
2008-12-04 Shiro Kawai <[email protected]> |
| 14772 |
|
| 14773 |
* src/gauche.h (struct ScmClassRec, SCM__DEFINE_CLASS_COMMON): |
| 14774 |
Changed the initial element of the ScmClass structure so that it is |
| 14775 |
likely to be placed in 8-byte align boundary on ILP32 machines. |
| 14776 |
|
| 14777 |
2008-11-28 Shiro Kawai <[email protected]> |
| 14778 |
|
| 14779 |
* lib/rfc/ip.scm (ip-version, ip-header-length, ip-protocol, |
| 14780 |
ip-source-address, ip-destination-address): Added 'offset' argument, |
| 14781 |
since it is much needed in the practical situation. THIS IS AN |
| 14782 |
INCOMPATIBLE CHANGE. Hope there are not many people who have |
| 14783 |
used this obscure module. |
| 14784 |
|
| 14785 |
2008-11-27 Shiro Kawai <[email protected]> |
| 14786 |
|
| 14787 |
* src/load.c (Scm_LoadFromPort): Fixed a bug in initilalizing |
| 14788 |
load_from_port. |
| 14789 |
|
| 14790 |
2008-11-23 Shiro Kawai <[email protected]> |
| 14791 |
|
| 14792 |
* ext/digest/sha2.h: Incorporate checks of endianness and uintXX_t |
| 14793 |
from gauche/config.h. |
| 14794 |
|
| 14795 |
2008-11-22 Shiro Kawai <[email protected]> |
| 14796 |
|
| 14797 |
* src/load.c (Scm_Require, Scm_Provide): Implemented 'autoprovide' |
| 14798 |
feature. If (require "X") causes loading of X.scm, and there's no |
| 14799 |
'provide' form in X.scm, the feature "X" is provided upon successful |
| 14800 |
completion of loading X.scm as if there is (provide "X") form |
| 14801 |
at the end of X.scm. If X.scm contains 'provide' form, |
| 14802 |
autoproviding is turned off. (provide #f) can be used to disable |
| 14803 |
autoproviding and not providing any feature. |
| 14804 |
|
| 14805 |
2008-11-21 Shiro Kawai <[email protected]> |
| 14806 |
|
| 14807 |
* src/load.c (Scm_LoadPacketInit), src/gauche/load.h (ScmLoadPacket): |
| 14808 |
Cleadned up the structure. Added Scm_LoadPacketInit to keep |
| 14809 |
room of future extension. |
| 14810 |
|
| 14811 |
2008-11-20 Shiro Kawai <[email protected]> |
| 14812 |
|
| 14813 |
* src/load.c (Scm_Load, Scm_LoadFromPort), |
| 14814 |
src/stdlib.stub (load), src/extlib.stub (load-from-port): |
| 14815 |
Moved definitions of Scheme's 'load' and 'load-from-port' into |
| 14816 |
stub files for simplicity. |
| 14817 |
|
| 14818 |
* lib/gauche/cgen/cise.scm (dopairs): Added a new macro. |
| 14819 |
(render-rec): Added some heuristics to distinguish types and |
| 14820 |
expressions; some operators (such as sizeof) and macros may take |
| 14821 |
types instead of expressions as arguments, and they need to be |
| 14822 |
rendered differently. This reverts the kludge of sizeof introduced |
| 14823 |
on 11/18. |
| 14824 |
|
| 14825 |
* lib/gauche/cgen/stub.scm (process-cproc-args): Switched the stub |
| 14826 |
function's lambda keywords from |
| 14827 |
{&optional,&keyword,&rest,&allow-other-keys} to |
| 14828 |
{:optional,:key,:rest,:allow-other-keys}. The latter set is |
| 14829 |
consistent with the extended lambda syntax, and it doesn't need to |
| 14830 |
treat ordinary symbols such as &optional specially. |
| 14831 |
The old lambda keywords are supported for the backward compatibility, |
| 14832 |
but will eventually fade out. |
| 14833 |
(process-setter): Make static setter definition handling consistent |
| 14834 |
with define-cproc. |
| 14835 |
* *.stub: Changed accordingly. |
| 14836 |
|
| 14837 |
2008-11-19 Shiro Kawai <[email protected]> |
| 14838 |
|
| 14839 |
* src/extlib.stub (%open/allow-noexist?): Check errno==ENXIO as well. |
| 14840 |
|
| 14841 |
2008-11-18 Shiro Kawai <[email protected]> |
| 14842 |
|
| 14843 |
* lib/gauche/cgen/stub.scm (declcode): Added 'declcode' directive |
| 14844 |
to insert raw code in the decl part. Traditionally, the first |
| 14845 |
raw string in the stub file has served for this purpose, but it |
| 14846 |
won't work when the stub stuff is embedded by inline-stub, since |
| 14847 |
this special handling of the first raw string is treated specially |
| 14848 |
only by genstub. It is better to be explicit. (The special |
| 14849 |
treatment by genstub remains only for the backward compatibility.) |
| 14850 |
(define-cmethod): Allow the new cproc body syntax here as well. |
| 14851 |
|
| 14852 |
* lib/gauche/cgen/sice.scm (sizeof): Made sizeof a cgen macro to |
| 14853 |
allow e.g. (sizeof struct foo). |
| 14854 |
|
| 14855 |
2008-11-17 Shiro Kawai <[email protected]> |
| 14856 |
|
| 14857 |
* lib/gauche/cgen/cise.scm (cise-render-typed-var): Allow expr |
| 14858 |
in size part of array declaration. |
| 14859 |
(list): fixed a bug when many elements are given. |
| 14860 |
* ext/auxsyslib/auxsyslib.stub, ext/binary/binarylib.stub, |
| 14861 |
ext/dbm/{gdbm,ndbm,odbm}-lib.scm, ext/digest/{md5,sha}-lib.scm: |
| 14862 |
Rewrote using new stub syntax. |
| 14863 |
|
| 14864 |
* ext/charconv/convaux.scm, ext/charconv/convlib.stub: |
| 14865 |
Made convaux.scm absorb convlib.stub. |
| 14866 |
|
| 14867 |
* lib/gauche/cgen/stub.scm: Changed define-cproc flag syntax, and |
| 14868 |
supports a more concise way for the case when C function takes |
| 14869 |
the same arguments as Scheme one (the old 'call' clause). |
| 14870 |
'code', 'call', 'expr', and 'body' clauses are deprecated. |
| 14871 |
Old 'return' clause support is finally omitted. |
| 14872 |
* src/*.stub, ext/uvector/uvlib.stub.tmpl: Changed accordingly. |
| 14873 |
|
| 14874 |
2008-11-15 Shiro Kawai <[email protected]> |
| 14875 |
|
| 14876 |
* src/syslib.stub: (sys-rename, sys-remove, sys-chdir, sys-mkdir, |
| 14877 |
sys-chmod, sys-fchmod, sys-link, sys-close, sys-rmdir, sys-truncate, |
| 14878 |
sys-ftruncate, sys-symlink): Now returns #<undef> |
| 14879 |
|
| 14880 |
* lib/gauche/cgen/stub.scm (define-cproc): Introduced a new syntax |
| 14881 |
of define-cproc to specify return-type, eliminating the necessity |
| 14882 |
of body form, allowing more concise definition, and being more |
| 14883 |
consistent with define-cfn. |
| 14884 |
* src/*.stub: Changed using the new define-cproc syntax whenever |
| 14885 |
possible. |
| 14886 |
|
| 14887 |
* lib/gauche/cgen/cise.scm |
| 14888 |
(dolist, dotimes, |#if|): Added new cise macros. |
| 14889 |
(cise-render-to-string): Added an utility api. |
| 14890 |
|
| 14891 |
* src/objlib.scm: Integrated moplib.stub into objlib.scm using |
| 14892 |
inline-stub. |
| 14893 |
* src/moplib.stub: Removed. |
| 14894 |
* src/core.c, src/Makefile.in: Changed accordingly. |
| 14895 |
|
| 14896 |
2008-11-14 Shiro Kawai <[email protected]> |
| 14897 |
|
| 14898 |
* src/vminsn.scm: Removed obsoleted VM instructions, and rearranged |
| 14899 |
the order of some instructions. Developers should rebuild from |
| 14900 |
maintainer-clean to make sure precompiled files are in sync. |
| 14901 |
|
| 14902 |
* src/stdlib.stub (%complex->real/imag): Removed; this API is |
| 14903 |
superfluous, since calling real-part and imag-part separately |
| 14904 |
doesn't hurt performance at all. |
| 14905 |
|
| 14906 |
* src/gauche.h etc: Integrated fast flonum extension (FFX) |
| 14907 |
(cf. http://portal.acm.org/citation.cfm?id=1408687 ). This |
| 14908 |
boosts up speed of programs involving heavy floating-point number |
| 14909 |
calculation. |
| 14910 |
It can be turned off by changing #define GAUCHE_FFX 1 to |
| 14911 |
#define GAUCHE_FFX 0 in gauche.h; if you find suspicious behaviors |
| 14912 |
(like incorrect result of flonum calculation), recompile without FFX |
| 14913 |
to see if it is the reason. |
| 14914 |
|
| 14915 |
2008-11-13 Shiro Kawai <[email protected]> |
| 14916 |
|
| 14917 |
* lib/gauche/package/compile.scm (gauche-package-compile-and-link): |
| 14918 |
Fix the :output keyword arg for the filnal DSO file affecting |
| 14919 |
individual C-file compilation inadvertently. |
| 14920 |
|
| 14921 |
2008-11-11 Shiro Kawai <[email protected]> |
| 14922 |
|
| 14923 |
* src/gauche/system.h (SCM_SYS_STAT_STAT): wrap access to the statrec |
| 14924 |
field by a macro. |
| 14925 |
* src/system.c, src/syslib.stub: changed accordingly. |
| 14926 |
|
| 14927 |
2008-11-09 Shiro Kawai <[email protected]> |
| 14928 |
|
| 14929 |
* src/gauche/memory.h: Removed, since Boehm GC's inline macros have been |
| 14930 |
changed since 7.0 and are no longer straightforward to use. |
| 14931 |
|
| 14932 |
2008-11-08 Shiro Kawai <[email protected]> |
| 14933 |
|
| 14934 |
* configure.ac, ext/zlib/zlib.ac, ext/zlib/Makefile.in: Check zlib |
| 14935 |
availability, and allow --with-zlib configure option to specify |
| 14936 |
zlib location. |
| 14937 |
|
| 14938 |
2008-11-07 Shiro Kawai <[email protected]> |
| 14939 |
|
| 14940 |
* ext/zlib/*: Renamed deflate-port/inflate-port for deflating-port/ |
| 14941 |
inflating-port, since deflate/inflate are verbs. |
| 14942 |
(zlib-version): made it a function instead of a constant. |
| 14943 |
|
| 14944 |
* lib/gauche/cgen/stub.scm (process-call-spec): Allow symbol as the |
| 14945 |
C function name in 'call' clause of define-cproc. (I'm not sure |
| 14946 |
why I didn't allow this. Maybe just an overlook.) |
| 14947 |
|
| 14948 |
* lib/gauche/cgen/cise.scm (canonicalize-vardecl): Allow more flexible |
| 14949 |
notation of typed variables, e.g. var::type, var:: type, var ::type |
| 14950 |
are all treated as (var :: type) in the define-cfn argument list, |
| 14951 |
and (var::type [init]), (var:: type [init]), or (var ::type [init]) |
| 14952 |
are all treated as (var :: type [init]) in the let* variable list. |
| 14953 |
* ext/zlib/zliblib.stub, ext/dbm/ndbm-lib.scm, ext/dbm/odbm-lib.scm, |
| 14954 |
ext/dbm/gdbm-lib.scm: Modified to reflect the above change. |
| 14955 |
|
| 14956 |
2008-10-31 Shiro Kawai <[email protected]> |
| 14957 |
|
| 14958 |
* ext/zlib/zlib.scm, ext/zlib/Makefile.in: fixed for zlib.scm to be |
| 14959 |
installed into proper location. |
| 14960 |
|
| 14961 |
2008-10-30 Shiro Kawai <[email protected]> |
| 14962 |
|
| 14963 |
* ext/zlib/*: Added rfc.zlib (written by Rui Ueyama). |
| 14964 |
Probably we should add libz check in the main configure.ac later. |
| 14965 |
|
| 14966 |
2008-10-27 Shiro Kawai <[email protected]> |
| 14967 |
|
| 14968 |
* src/compile.scm (pass1/extended-lambda): Changed keyword argument |
| 14969 |
spec with different variable name to match the CL-style, i.e. |
| 14970 |
you write (define (foo x :key ((:bar baz) 'init)) ...) to let |
| 14971 |
the baz receives the value supplied to the keyword :bar. |
| 14972 |
Also extended :allow-other-keys to take optional argument that |
| 14973 |
receives unrecognized keyword-value list. |
| 14974 |
|
| 14975 |
* test/package.scm: Added to test gauche.package.*. |
| 14976 |
* test/cgen.scm: Added to test gauche.cgen.*. |
| 14977 |
|
| 14978 |
* lib/*, libsrc/*: Rewrote most let-keywords*/let-optionals* with |
| 14979 |
extended lambda experimentally to see how it looks like in the |
| 14980 |
real code. |
| 14981 |
|
| 14982 |
2008-10-09 Shiro Kawai <[email protected]> |
| 14983 |
|
| 14984 |
* src/compile.scm (compile-toplevel-form, do-it): Instead of |
| 14985 |
recognizing inline-stub literally in compile-toplevel-form, we |
| 14986 |
override inline-stub macro in the compile-module. It allows |
| 14987 |
macros that generates inline-stub form. |
| 14988 |
|
| 14989 |
* src/gauche/macro.h, src/gauche/code.h, src/gauche/extend.h, |
| 14990 |
ext/uvector/uvector.h.tmpl: Increase C++ friendliness. |
| 14991 |
|
| 14992 |
* src/extlib.stub (%open-input-file, %open-output-file): |
| 14993 |
When :if-does-not-exist is #f or :if-exists is #f, these procedures |
| 14994 |
have ignored all errors, even if open(2) failed with other reasons |
| 14995 |
such as EPERM. Now we check errno for these cases and raise |
| 14996 |
appropriate <system-error> if the error reason is not expected one. |
| 14997 |
|
| 14998 |
2008-10-08 Shiro Kawai <[email protected]> |
| 14999 |
|
| 15000 |
* ext/digest: Added support of SHA2 (SHA224, SHA256, SHA384 and |
| 15001 |
SHA512), using Aaron Gifford's implementation. |
| 15002 |
|
| 15003 |
2008-10-07 Shiro Kawai <[email protected]> |
| 15004 |
|
| 15005 |
* lib/gauche/cgen/cise.scm (cise-render-typed-var): Allow array |
| 15006 |
type declaration e.g. (.array (unsigned char) (10 10)). |
| 15007 |
|
| 15008 |
* src/compile.scm, src/intlib.stub: Moved some C-implemented |
| 15009 |
compiler-internal routines from intlib.stub to compile.scm |
| 15010 |
using inline-stub. |
| 15011 |
|
| 15012 |
2008-10-06 Shiro Kawai <[email protected]> |
| 15013 |
|
| 15014 |
* release 0.8.14 |
| 15015 |
|
| 15016 |
2008-10-05 Shiro Kawai <[email protected]> |
| 15017 |
|
| 15018 |
* test/rfc.scm, ext/net/test.scm: Avoid using sys-fork to run the |
| 15019 |
test server process; fork doesn't go well with windows. |
| 15020 |
|
| 15021 |
* ext/net/netlib.stub (sockaddr-name): correctly identifies the |
| 15022 |
length of pathname of the unix domain socket; it can be 0. |
| 15023 |
|
| 15024 |
2008-10-03 Shiro Kawai <[email protected]> |
| 15025 |
|
| 15026 |
* ext/net/netlib.stub (SHUT_RD, SHUT_WR, SHUT_RDWR): defines |
| 15027 |
constants for 'how' argument of socket-shutdown. |
| 15028 |
|
| 15029 |
* configure.ac, ext/Makefile.in, DIST_EXCLUDE: Exclude ext/peg and |
| 15030 |
lib/rfc/json.scm; these are not ready for 0.8.14 release. |
| 15031 |
|
| 15032 |
* src/number.c (read_real): Fixed the bug that misunderstands the |
| 15033 |
case when no integral part appears right after the initial sign |
| 15034 |
(e.g. ++i or +/4). |
| 15035 |
|
| 15036 |
2008-09-18 Shiro Kawai <[email protected]> |
| 15037 |
|
| 15038 |
* lib/rfc/ip.scm (ipv4-global-address?): added. |
| 15039 |
|
| 15040 |
* src/Makefile.in (scmlib.c, objlib.c): added dependency on |
| 15041 |
../lib/gauche/vm/insn.scm. |
| 15042 |
|
| 15043 |
2008-09-11 Shiro Kawai <[email protected]> |
| 15044 |
|
| 15045 |
* src/scmlib.scm (inline-stub): just issue warning instead of |
| 15046 |
error, for it is sometimes useful to 'load' the source with |
| 15047 |
inline-stub during debugging. |
| 15048 |
|
| 15049 |
2008-09-04 Shiro Kawai <[email protected]> |
| 15050 |
|
| 15051 |
* src/scmlib.scm (exit, exit-handler): Implemented exit-handler |
| 15052 |
feature to hook application's exit operation. See the manual |
| 15053 |
for detailed explanation and design rationale. |
| 15054 |
|
| 15055 |
* src/builtin-syms.scm (SCM_SYM_PLUSP): defined to an wrong symbol |
| 15056 |
'+?'; should be '++'. |
| 15057 |
|
| 15058 |
2008-09-02 Shiro Kawai <[email protected]> |
| 15059 |
|
| 15060 |
* lib/gauche/cgen/cise.scm (define-referencer): Allow C++-style |
| 15061 |
method invocation: (-> A (B C) (D E)) expands to "A->B(C)->D(E)". |
| 15062 |
|
| 15063 |
2008-08-31 Shiro Kawai <[email protected]> |
| 15064 |
|
| 15065 |
* src/vm.c (wna), src/vmcall.c, src/proc.c (Scm_CurryProcedure), |
| 15066 |
src/gauche.h, src/builtin-syms.scm, src/intlib.stub, |
| 15067 |
lib/gauche/procedure.scm: |
| 15068 |
Experimentally added some code to support automatic currying. |
| 15069 |
This version still has an issue (see the comment in src/proc.c), |
| 15070 |
so the feature is commented out. |
| 15071 |
|
| 15072 |
2008-08-29 Shiro Kawai <[email protected]> |
| 15073 |
|
| 15074 |
* lib/gauche/cgen/cise.scm (values): Expands 'values' cise macro |
| 15075 |
into appropiate Scm_Values* call. |
| 15076 |
|
| 15077 |
* src/gauche/experimental/lamb.scm (^., ^*): added shorthand notation |
| 15078 |
of match-lambda and match-lambda* experimentally. |
| 15079 |
|
| 15080 |
2008-08-28 Shiro Kawai <[email protected]> |
| 15081 |
|
| 15082 |
* src/extlib.stub (%open-input-file): Use Scm_SysError when |
| 15083 |
Scm_OpenFilePort returns #f, since if it returns #f the reason |
| 15084 |
is the failure of open(2). |
| 15085 |
|
| 15086 |
2008-08-26 Shiro Kawai <[email protected]> |
| 15087 |
|
| 15088 |
* lib/gauche/cgen/unit.scm (cgen-safe-comment): Added. |
| 15089 |
* lib/gauche/cgen/literal.scm, src/gencomp: Emit more comments into |
| 15090 |
generated C file for ease of debugging. |
| 15091 |
|
| 15092 |
* src/gencomp, src/scmlib.scm (declare): Added ad-hoc 'declare' syntax |
| 15093 |
to support keep-private-macro in source instead of command-line args |
| 15094 |
for gencomp. This is a purely temporary solution, since it won't |
| 15095 |
be needed once we can byte-compile hygienic macros. It is |
| 15096 |
convenient for the time being to produce some extensions, but it |
| 15097 |
will disappear soon. |
| 15098 |
|
| 15099 |
2008-08-23 Shiro Kawai <[email protected]> |
| 15100 |
|
| 15101 |
* src/syslib.stub (sys-lstat): On windows, make it behave just like |
| 15102 |
sys-stat. Windows doesn't have lstat(), but since it works the |
| 15103 |
same as stat() when path is not a symlink, it is reasonable to |
| 15104 |
make it so (and it reduces one headache of cross-platform dev.) |
| 15105 |
|
| 15106 |
* ext/peg/peg-lib.scm: Renamed semantic-value-finalize! to |
| 15107 |
rope-finalize, in order to reflect its function more clearly, |
| 15108 |
and also avoid unecessary consing. Added $<<. |
| 15109 |
(This is still a temporary snapshot; large restructuring is |
| 15110 |
planned.) |
| 15111 |
* lib/rfc/json.scm: Changed accordingly. |
| 15112 |
|
| 15113 |
2008-08-21 Shiro Kawai <[email protected]> |
| 15114 |
|
| 15115 |
* src/getdir_darwin.c (get_install_dir): fixed a bug that releases |
| 15116 |
unretained resource. Based on a patch by Naoya Tozuka. |
| 15117 |
|
| 15118 |
* lib/gauche/experimental/*: Moved some weird syntactic experiment |
| 15119 |
into separate modules, so that it will be easy to track their users |
| 15120 |
in case if we want to change or drop the support. NOTE: the '$' |
| 15121 |
experiment is now in gauche.experimental.app. (used to be built-in). |
| 15122 |
* src/autoloads.scm, lib/gauche/procedure.scm: Moved $ and $* to |
| 15123 |
gauche.experimental.app. Experimentally added .$ as an alias of |
| 15124 |
compose. |
| 15125 |
|
| 15126 |
* src/Makefile.in (INSTALL_SUBHEADERS): added some missing headers. |
| 15127 |
|
| 15128 |
2008-08-20 Shiro Kawai <[email protected]> |
| 15129 |
|
| 15130 |
* src/port.c (SCM_PORT_CASE_FOLD), src/gauche/port.h, |
| 15131 |
src/read.c, src/gauche/reader.h: Moved the case folding flag from |
| 15132 |
read context to port. |
| 15133 |
* src/scmlib.scm, src/extlib.stub (port-case-fold-set!): Changed |
| 15134 |
accordingly. |
| 15135 |
* src/core.c: Moved InitVM much earlier than InitPort, since now |
| 15136 |
VM's runtime flag affects the port's case folding flag. The VM's |
| 15137 |
standard I/O are set in InitPort. |
| 15138 |
|
| 15139 |
* **/*.scm: Cleaned up use of |-escapes meant to work for both case- |
| 15140 |
sensitive and case-insensitive mode. Now we have #!no-case-fold, |
| 15141 |
so we can ensure the file is read in case-sensitive mode. |
| 15142 |
|
| 15143 |
* src/gauche/reader.h, src/gauche.h: splitted reader API from gauche.h |
| 15144 |
to reader.h |
| 15145 |
|
| 15146 |
* src/read.c (ScmReadContext, Scm_MakeReadContext): made read context |
| 15147 |
a Scheme object of class <read-context>. |
| 15148 |
* src/class.c, src/load.c: changed accordingly. |
| 15149 |
|
| 15150 |
* src/portapi.c, src/gauche/port.h: Added 'bytes' field in ScmPort |
| 15151 |
that counts the cumulative bytes read from the port. It is used |
| 15152 |
by the reader to distinguish the script's shebang line and |
| 15153 |
#!<identifier> directive. |
| 15154 |
|
| 15155 |
* src/read.c (Scm_DefineReaderDirective, read_shebang): |
| 15156 |
src/extlib.stub (define-reader-directive): |
| 15157 |
Modified the reader to recognize R6RS-style #!<identifier> |
| 15158 |
directive. Now, only the '#!' of the beginning of the port, |
| 15159 |
followed by '/' or ' ', are recognized as the script shebang |
| 15160 |
line. All other '#!'s are treated as #!<identifier> directive |
| 15161 |
(before, '#!'s unconditionally worked as a |
| 15162 |
comment-to-end-of-line). The behavior of #!<identifier> is |
| 15163 |
customizable by define-reader-directive. |
| 15164 |
* src/scmlib.scm: Added standard #!<identifier> directives: |
| 15165 |
#!r6rs, #!fold-case and #!no-fold-case. |
| 15166 |
|
| 15167 |
* src/gencomp (global-eq??): fixed a bug when the comparing identifier |
| 15168 |
is not yet defined in the host gosh. |
| 15169 |
* src/Makefile.in (scmlib.c): use --keep-private-macro=inline-stub |
| 15170 |
to keep inline-stub macro definition in the core. |
| 15171 |
|
| 15172 |
2008-08-19 Shiro Kawai <[email protected]> |
| 15173 |
|
| 15174 |
* lib/gauche/cgen/cise.scm (define-cfn): Introduced define-cfn cise |
| 15175 |
form to enable to write pure C function (not cproc, which is a |
| 15176 |
Scheme subr with C body) in cise. |
| 15177 |
* lib/gauche/cgen/stub.scm: Recognizes define-cfn within stub code. |
| 15178 |
(initcode): Allow cise in the code portion. |
| 15179 |
(make-literal, c-literal-expr): Allow cise expression in the |
| 15180 |
expr section of raw c literal (e.g. (c expr)). |
| 15181 |
(define-cclass): Allow :private qualifier to emit the CLASS_DECL and |
| 15182 |
standard macros into the c file. |
| 15183 |
(cclass-emit-standard-decls): is the body to generate standard macros |
| 15184 |
mentioned above. Eventually there should be an option to emit |
| 15185 |
these into a separate header file. |
| 15186 |
|
| 15187 |
* ext/peg/peg-lib.scm: Rewrote a couple of C static functions within |
| 15188 |
inline-stub by define-cfn. |
| 15189 |
|
| 15190 |
* ext/dbm/gdbm-lib.scm, ext/dbm/ndbm-lib.scm, ext/dbm/odbm-lib.scm: |
| 15191 |
Include stub code in the Scheme code using init-stub. |
| 15192 |
*.stub are no longer needed. {gdbm,ndbm,odbm}.scm are auto- |
| 15193 |
generated. |
| 15194 |
* ext/dbm/dbm.ac: changed accordingly. |
| 15195 |
|
| 15196 |
* ext/dbm/bdbm.c, ext/dbm/bsddb.h, ext/dbm/bsddb.stub: Removed. |
| 15197 |
Berkeley DB licensing terms are like GPL, so it's better to be |
| 15198 |
supported in a separate extension to avoid complication of |
| 15199 |
Gauche-embedded application development. |
| 15200 |
|
| 15201 |
* ext/digest/md5-lib.scm, ext/digest/sha1-lib.scm: Include stub |
| 15202 |
code in the Scheme code using init-stub. *.stub are no longer |
| 15203 |
needed. {md5,sha1}.scm are autogenerated. |
| 15204 |
|
| 15205 |
2008-08-17 Shiro Kawai <[email protected]> |
| 15206 |
|
| 15207 |
* src/vminsn.scm (VALUES-APPLY), src/vm.c (Scm_ApplyRec): fixed |
| 15208 |
a bug that caused SEGV when more than SCM_VM_MAX_VALUES args |
| 15209 |
are given to Scm_ApplyRec. This hasn't been noticed since Scheme |
| 15210 |
version of APPLY doesn't go through this path. (Note: This |
| 15211 |
is a temporary fix. VALUES-APPLY can keep the rest list until |
| 15212 |
argumet adjustment, in the same way as TAIL-APPLY.) |
| 15213 |
* src/intlib.stub: Added some procedures that uses Scm_ApplyRec |
| 15214 |
family for the testing purpose. |
| 15215 |
|
| 15216 |
* lib/gauche/sortutil.scm, src/autoloads.scm, test/sort.scm: |
| 15217 |
Added sort-by, sort-by!, stable-sort-by, stable-sort-by!. |
| 15218 |
|
| 15219 |
2008-08-08 Shiro Kawai <[email protected]> |
| 15220 |
|
| 15221 |
* lib/dbm.scm (dbm-db-copy, dbm-db-move): Provides fallback methods. |
| 15222 |
* doc/modutil.texi (dbm): Added explanation on the protocol a new |
| 15223 |
dbm implementation should conform. |
| 15224 |
|
| 15225 |
2008-08-04 Shiro Kawai <[email protected]> |
| 15226 |
|
| 15227 |
* doc/modgauche.texi: added missing description of the return |
| 15228 |
value of mutex-unlock!. |
| 15229 |
|
| 15230 |
2008-08-02 Shiro Kawai <[email protected]> |
| 15231 |
|
| 15232 |
* src/vminsn.scm: added LREF-CAR and LREF-CDR combined insns. We could |
| 15233 |
wait for the new instruction scheme ('push' bit), but this is simple |
| 15234 |
and effective, so why not? |
| 15235 |
Also added VALUES-RET. |
| 15236 |
|
| 15237 |
* ext/peg/peg-lib.scm |
| 15238 |
($fold-parsers, $fold-parsers-right): change $fold and $fold-right |
| 15239 |
to these names to avoid confusion. |
| 15240 |
($count, $sep-end-by): rewrote to use $loop macro for speed and |
| 15241 |
correct behavior. |
| 15242 |
* ext/peg/test.scm, tests/rfc.scm: moved rfc.json test under ext/peg, |
| 15243 |
for it depends on parser.peg. |
| 15244 |
|
| 15245 |
2008-07-31 Shiro Kawai <[email protected]> |
| 15246 |
|
| 15247 |
* ext/net/netlib.stub: Added several IP socket option constants. |
| 15248 |
|
| 15249 |
2008-07-28 Shiro Kawai <[email protected]> |
| 15250 |
|
| 15251 |
* src/compile.scm (pack-iform): Fixed a bug handling $RECEIVE node. |
| 15252 |
(pass3/branch-core): Added an optimization to cut the unreachable |
| 15253 |
branch of $if. Such $if may occur as a result of macro expansion. |
| 15254 |
|
| 15255 |
2008-07-26 Shiro Kawai <[email protected]> |
| 15256 |
|
| 15257 |
* src/compile.scm (pass1/body-wrap-intdefs): Ensure the evaluation |
| 15258 |
order of internal define the same as corresponding letrec. Before |
| 15259 |
it was reversed and a source of confusion. It is also consistent |
| 15260 |
to letrec* behavior. |
| 15261 |
|
| 15262 |
* ext/peg/peg-lib.scm |
| 15263 |
($many_): Removed, for it is same as $skip-many. |
| 15264 |
($fold, $fold-right, $many-chars, $many1): Added. |
| 15265 |
(peg-parse-string): Renamed from parse-string. |
| 15266 |
(peg-run-parser, peg-parse-port): Added. |
| 15267 |
|
| 15268 |
2008-07-25 Shiro Kawai <[email protected]> |
| 15269 |
|
| 15270 |
* lib/gauche/parseopt.scm (compose-entry): Allow '*' modifier in |
| 15271 |
option-spec, for options that can be specified multiple times. |
| 15272 |
This is just a preparation; the actual code to support multiple |
| 15273 |
appearance of an option hasn't been done yet. |
| 15274 |
|
| 15275 |
2008-07-20 Shiro Kawai <[email protected]> |
| 15276 |
|
| 15277 |
* lib/gauche/vm/insn.scm.src, lib/gauche/vm/insn-core.scm: Removed |
| 15278 |
the template file insn.scm.src and added a separate module |
| 15279 |
insn-core.scm. The generated insn.scm extends insn-core. This |
| 15280 |
is required since geninsn needs to refer to <vm-insn-info>, but |
| 15281 |
gauche.vm.insn doesn't exist yet when geninsn is generating it. |
| 15282 |
* src/geninsn: changed accordingly. |
| 15283 |
|
| 15284 |
2008-07-15 Shiro Kawai <[email protected]> |
| 15285 |
|
| 15286 |
* src/vminsn.svm ($insn-body), src/geninsn (insn-alist): |
| 15287 |
Allow insn definition to retrieve other insn body. |
| 15288 |
|
| 15289 |
* src/vminsn.scm ($arg-source, LREF-VAL0-BNxx), |
| 15290 |
src/compile.scm (pass3/if-numcmp): Emit special instructions for |
| 15291 |
BNxx when one of the arguments are LREF. This saves one stack |
| 15292 |
push/pop pair. |
| 15293 |
|
| 15294 |
2008-07-14 Shiro Kawai <[email protected]> |
| 15295 |
|
| 15296 |
* src/vminsn.scm ($vm-err): Avoid expanding CISE into VM_ERR macro, |
| 15297 |
for some C compilers choke on #line directives between macro |
| 15298 |
arguments. |
| 15299 |
|
| 15300 |
2008-07-10 Shiro Kawai <[email protected]> |
| 15301 |
|
| 15302 |
* src/compile.scm (pass1/define-inline), |
| 15303 |
src/gencomp (check-packed-inliner): Properly emit inliner |
| 15304 |
information of the procedures defined by define-inline, even |
| 15305 |
if the target VM's instruction codes differ from host VM's. |
| 15306 |
|
| 15307 |
2008-07-08 Shiro Kawai <[email protected]> |
| 15308 |
|
| 15309 |
* configure.ac: Checking for gcc by $GCC instead of $CC, to cope |
| 15310 |
with the case when $CC is actually "gcc -std=gnu99" etc. |
| 15311 |
|
| 15312 |
2008-07-02 Shiro Kawai <[email protected]> |
| 15313 |
|
| 15314 |
* lib/gauche/vm/insn.scm.src, src/gauche/code.h: Extended the |
| 15315 |
opcode width in the instruction word from 8 bits to 12 bits. |
| 15316 |
|
| 15317 |
* src/compile.scm: Instead of reading vminsn.scm to define vm |
| 15318 |
instruction constants, using gauche.vm.insn to do so. |
| 15319 |
* src/geninsn: allow define-insn-lref* and define-insn-lref+, |
| 15320 |
that automatically defines LERFn-XXX and LREFmn-XXX combined |
| 15321 |
instructions from the base LREF-XXX instruction definition. |
| 15322 |
|
| 15323 |
* lib/gauche/procedure.scm (disasm): removed kludge for old versions. |
| 15324 |
|
| 15325 |
* src/code.c (Scm_CompiledCodeEmit): Adopted STN created from |
| 15326 |
vminsn.scm to handle instruction combination. With this change, |
| 15327 |
the VM instruction set architecture is solely defined by vminsn.scm. |
| 15328 |
* src/geninsn: some extension to handle more combined insns. |
| 15329 |
* src/vminsn.scm: some fixes |
| 15330 |
|
| 15331 |
2008-07-01 Shiro Kawai <[email protected]> |
| 15332 |
|
| 15333 |
* src/vminsn.scm, src/geninsn, src/vm.c (run_loop): Having VM loop |
| 15334 |
code fragment within the VM instruction definition in vminsn.scm, |
| 15335 |
and use geninsn to generate the "meat" of the VM loop into |
| 15336 |
vminsn.c. This is a big step towards VM generation. |
| 15337 |
|
| 15338 |
* lib/gauche/cgen/literal.scm (cgen-emit-static-data), |
| 15339 |
lib/gauche/cgen/unit.scm (cgen-emit-c): Moved SCM_CGEN_CONST |
| 15340 |
kludge emission from unit to literal, since it is only required |
| 15341 |
for the static data array generated by cgen-emit-static-data. |
| 15342 |
|
| 15343 |
2008-06-28 Shiro Kawai <[email protected]> |
| 15344 |
|
| 15345 |
* src/vm.c (VALUES_APPLY): Removed unnecessary code. |
| 15346 |
|
| 15347 |
2008-06-27 Shiro Kawai <[email protected]> |
| 15348 |
|
| 15349 |
* lib/gauche/cgen/cise.scm (source-info): Replaced makeshift source |
| 15350 |
info extractor for debug-source-info. |
| 15351 |
(cise-render-rec): Expose an API to call back to cise expander |
| 15352 |
recursievly. Needed to write certain type of cise macros. |
| 15353 |
(cise-context, cise-context-copy, cise-register-macro!, |
| 15354 |
cise-lookup-macro): Allow to have multiple cise macro namespaces. |
| 15355 |
(define-cise-stmt, define-cise-expr): allow to specify a variable |
| 15356 |
to receive the cise environment, which is required to call |
| 15357 |
cise-render-rec within the expander. |
| 15358 |
|
| 15359 |
2008-06-26 Shiro Kawai <[email protected]> |
| 15360 |
|
| 15361 |
* src/autoload.scm, lib/gauche/miscutil.scm (object-source-info): |
| 15362 |
Removed. Use debug-source-info. |
| 15363 |
|
| 15364 |
2008-06-25 Shiro Kawai <[email protected]> |
| 15365 |
|
| 15366 |
* lib/rfc/http.scm (http-generic): fixed 'host' field being messed |
| 15367 |
up when redirected. |
| 15368 |
|
| 15369 |
2008-06-24 Shiro Kawai <[email protected]> |
| 15370 |
|
| 15371 |
* lib/gauche/cgen/cise.scm: Added cise macros: while, label, goto, |
| 15372 |
post++, post--. Allow variable declaration only (without init |
| 15373 |
nor type) in let*. |
| 15374 |
|
| 15375 |
2008-06-20 Shiro Kawai <[email protected]> |
| 15376 |
|
| 15377 |
* src/vm.c, src/gauche.h (Scm_ApplyRec[01234]): Added these to avoid |
| 15378 |
consing in callback from C to Scheme. |
| 15379 |
* src/vminsn.scm (VALUES-APPLY): Changed the name from CONST-APPLY. |
| 15380 |
|
| 15381 |
2008-06-19 Shiro Kawai <[email protected]> |
| 15382 |
|
| 15383 |
* src/vm.c (Scm_ApplyRec): Avoid allocation by using valN registers |
| 15384 |
to pass the arguments. |
| 15385 |
* src/vminsn.scm (CONST-APPLY): Changed the definition since we |
| 15386 |
no longer need an operand. |
| 15387 |
|
| 15388 |
2008-06-08 Shiro Kawai <[email protected]> |
| 15389 |
|
| 15390 |
* src/extlib.stub (hash-table-copy): added. Why this hasn't been |
| 15391 |
implemented until now? It must be an overlook. |
| 15392 |
|
| 15393 |
2008-06-03 Shiro Kawai <[email protected]> |
| 15394 |
|
| 15395 |
* ext/peg/peg-lib.scm (space): recognized 'v' as a space incorrectly. |
| 15396 |
(patch from Masayuki Muto). |
| 15397 |
|
| 15398 |
2008-06-01 Shiro Kawai <[email protected]> |
| 15399 |
|
| 15400 |
* src/vm.c (user_eval_inner), src/gauche/vm.h (ScmCStrackRec): |
| 15401 |
save/restore signal mask by ourselves, since sigsetjmp's behavior |
| 15402 |
is platform-dependent w.r.t. threads. |
| 15403 |
* src/signal.c (Scm_GetSigmask, Scm_SetSigmask) :added convenience |
| 15404 |
functions to hide sigprocmask/pthread_sigmask difference among |
| 15405 |
platforms. |
| 15406 |
|
| 15407 |
2008-05-30 Shiro Kawai <[email protected]> |
| 15408 |
|
| 15409 |
* src/Makefile.in (INSTALL_HEADERS): install some more gc headers. |
| 15410 |
|
| 15411 |
2008-05-27 Shiro Kawai <[email protected]> |
| 15412 |
|
| 15413 |
* ext/peg/peg-lib.scm (make-peg-parse-error): better error message. |
| 15414 |
|
| 15415 |
2008-05-26 Shiro Kawai <[email protected]> |
| 15416 |
|
| 15417 |
* src/extlib.stub (eof-object): added from R6RS. |
| 15418 |
|
| 15419 |
2008-05-25 Shiro Kawai <[email protected]> |
| 15420 |
|
| 15421 |
* rfc/json.scm : Added (written by Rui Ueyama. Using parser.peg). |
| 15422 |
|
| 15423 |
* ext/peg/*, configure.ac, ext/Makefile.in: Added parser.peg module, |
| 15424 |
PEG parser combinator library originally written by Rui Ueyama. |
| 15425 |
|
| 15426 |
2008-05-22 Shiro Kawai <[email protected]> |
| 15427 |
|
| 15428 |
* src/number.c (Scm_FiniteP, Scm_InfiniteP, Scm_NanP), |
| 15429 |
src/extlib.stub (finite?, infinite?, nan?): Added from R6RS. |
| 15430 |
|
| 15431 |
2008-05-21 Shiro Kawai <[email protected]> |
| 15432 |
|
| 15433 |
* lib/srfi-26.scm (srfi-26-internal-cut): performance fix (see the |
| 15434 |
comment). |
| 15435 |
|
| 15436 |
* src/load.c (Scm_DynLoad): Fixed a bug that leaves dlobj inconsisntent |
| 15437 |
state when dl_sym couldn't find initfn. |
| 15438 |
|
| 15439 |
2008-05-19 Shiro Kawai <[email protected]> |
| 15440 |
|
| 15441 |
* src/load.c (Scm_DynLoad): Fixed a bug that caused a dead-lock |
| 15442 |
when the initialization function of DSO executes some Scheme |
| 15443 |
function (it happens if the DSO is pre-compiled from Scheme source), |
| 15444 |
and the execution triggers an autoload, which in turn tries to |
| 15445 |
dynamic-load some other module. Before, we had a global lock for |
| 15446 |
dynamic-load, so the recursive call to it caused a dead lock. |
| 15447 |
Now the lock is per-DSO. |
| 15448 |
|
| 15449 |
2008-05-12 Shiro Kawai <[email protected]> |
| 15450 |
|
| 15451 |
* src/gencomp, src/genstub, lib/gauche/cgen/stub.scm: Allow stub |
| 15452 |
definitions to be embedded in an ordinary *.scm file for pre- |
| 15453 |
compilation. When gencomp sees a toplevel |
| 15454 |
(inline-stub stub-form ...) form, the stub-form ... part is |
| 15455 |
passed to gauche.cgen.stub to generate C code into the pre-compiled |
| 15456 |
output. |
| 15457 |
* src/gencomp, src/compile.scm (global-eq??): Now gencomp takes |
| 15458 |
into account the module visibility when it checks the special |
| 15459 |
identifiers in the toplevel, so that it won't accidentally step |
| 15460 |
on the source where those identifiers are redefined. |
| 15461 |
* src/scmlib.scm (inline-stub): A macro inline-stub is defined |
| 15462 |
to detect when the form is evaluated at runtime (it's only valid |
| 15463 |
for precompilation, so at runtime the form throws an error.) |
| 15464 |
|
| 15465 |
* gc/thread_local_alloc.c (GC_mark_thread_local_fls_for): Fixed |
| 15466 |
size-zero allocation problem. |
| 15467 |
|
| 15468 |
2008-05-10 Shiro Kawai <[email protected]> |
| 15469 |
|
| 15470 |
* libsrc/file/util.scm (safe-stat): fix for platforms that don't |
| 15471 |
have sys-lstat. |
| 15472 |
|
| 15473 |
* src/genstub, lib/gauche/cgen/type.scm, lib/gauche/cgen/stub.scm: |
| 15474 |
Moved most of the stub handling stuff into gauche.cgen.type and |
| 15475 |
gauche.cgen.stub modules. Now genstub is a thin frontend for |
| 15476 |
those modules. |
| 15477 |
|
| 15478 |
2008-05-09 Shiro Kawai <[email protected]> |
| 15479 |
|
| 15480 |
* src/macro.c (Scm_VMMacroExpand): properly handles the case when |
| 15481 |
the operator is an indentifier. |
| 15482 |
|
| 15483 |
* libsrc/util/match.scm: Added support to a certain degree |
| 15484 |
for the case when match macros are used with hygienic macros. |
| 15485 |
Specifically it gracefully handles the case that match macros |
| 15486 |
are inserted as the result of hygienic macro expansion. It's not |
| 15487 |
complete, but we'll patch the holes as it goes, until we replace |
| 15488 |
the current version with completely hygienic match macro. |
| 15489 |
|
| 15490 |
2008-05-08 Shiro Kawai <[email protected]> |
| 15491 |
|
| 15492 |
* ext/dbm/ndbm-makedb.c (main): fix. some versions of ndbm don't |
| 15493 |
like O_WRONLY. |
| 15494 |
|
| 15495 |
* ext/dbm/ndbm.scm (dbm-db-copy, dbm-db-move): fixed for the case |
| 15496 |
when ndbm uses single database file. |
| 15497 |
|
| 15498 |
2008-05-07 Shiro Kawai <[email protected]> |
| 15499 |
|
| 15500 |
* src/compile.scm (pass1/lambda): Merged EXPERIMENTAL extended-lambda |
| 15501 |
support (CL-style :optional, :key, :rest and :allow-other-keys args). |
| 15502 |
Not sure if it fits in Scheme style, but let's see how it goes. |
| 15503 |
Currently an extended lambda is expanded into a normal lambda and |
| 15504 |
let-keywords/let-optionals forms within the compiler. Eventually |
| 15505 |
I prefer them being supported natively, so that the compiler can |
| 15506 |
do some optimizations. |
| 15507 |
|
| 15508 |
* test/system.scm (get-pwd-via-pwd): adapted to OSX's /bin/pwd |
| 15509 |
different behavior. |
| 15510 |
|
| 15511 |
2008-05-08 ENDO Yasuyuki <[email protected]> |
| 15512 |
|
| 15513 |
* winnt/nsis/setup.nsi.in (OutFile): use "mingw" instead of "win32". |
| 15514 |
|
| 15515 |
* winnt/nsis/Makefile (TARGET): use "mingw" instead of "win32". |
| 15516 |
|
| 15517 |
* winnt/nsis/README: use "mingw" instead of "win32". |
| 15518 |
|
| 15519 |
2008-05-07 Shiro Kawai <[email protected]> |
| 15520 |
|
| 15521 |
* ext/dbm/ndbm.stub, ext/dbm/ndbm.scm, ext/dbm/ndbm-makedb.c, |
| 15522 |
ext/dbm/ndbm-suffixes.scm, ext/dbm/Makefile.in: Since different |
| 15523 |
ndbm implementations attach different suffixes for the database |
| 15524 |
files, we determine the suffixes at the build time by actually |
| 15525 |
creating the ndbm database. The extra files (ndbm-makedb.c and |
| 15526 |
ndbm-suffixes.scm) are used in the build time to create |
| 15527 |
ndbm-suffixes.h, which is included from ndbm.c (generated from |
| 15528 |
ndbm.stub). Probably some adjustment will be required for cross- |
| 15529 |
compilation. |
| 15530 |
|
| 15531 |
* ext/Makefile.ext.in: For the convenience, defined LOCAL_LFLAGS |
| 15532 |
make variable that exports library flags generated |
| 15533 |
from --with-local configure option. |
| 15534 |
|
| 15535 |
2008-05-06 Shiro Kawai <[email protected]> |
| 15536 |
|
| 15537 |
* gc/libatomic_ops-1.2/Makefile.in etc. Ran automake again to make |
| 15538 |
Makefile.in etc. keep up to the newest autoconf. |
| 15539 |
|
| 15540 |
* lib/dbm.scm, lib/dbm/fsdbm.scm, ext/dbm/*: Renamed dbm-rename to |
| 15541 |
dbm-move, for the consistency of copy-file/move-file. The old |
| 15542 |
name dbm-rename is kept as an alias of dbm-move. Added dbm-copy |
| 15543 |
and dbm-move support to dbm.fsdbm. |
| 15544 |
|
| 15545 |
* libsrc/file/util.scm, ext/file/test.scm: Added copy-directory*. |
| 15546 |
Fixed the behavior on dangling symlinks in copy-file. |
| 15547 |
Dropped copy-files and move-files, for its API need to be |
| 15548 |
considered more. |
| 15549 |
|
| 15550 |
* gc/tests/test.c: excluded GC_FREE(GC_MALLOC(0))-type tests for |
| 15551 |
they cause problems with DONT_ADD_BYTE_AT_END. |
| 15552 |
|
| 15553 |
2008-05-04 Shiro Kawai <[email protected]> |
| 15554 |
|
| 15555 |
* gc/*, Makefile.in, src/Makefile.in: Bumped up to Boehm GC 7.1. |
| 15556 |
|
| 15557 |
2008-05-03 Shiro Kawai <[email protected]> |
| 15558 |
|
| 15559 |
* lib/gauche/numerical.scm (scheme): added two-argument log support. |
| 15560 |
(log z b) is base-b logarithm of z, i.e. (/ (log z) (log b)). This |
| 15561 |
is an R6RS addition. |
| 15562 |
|
| 15563 |
2008-04-28 ENDO Yasuyuki <[email protected]> |
| 15564 |
|
| 15565 |
* winnt/nsis/setup.nsi.in: delete gauche-logo.ico |
| 15566 |
|
| 15567 |
2008-04-21 ENDO Yasuyuki <[email protected]> |
| 15568 |
|
| 15569 |
* winnt/nsis/setup.nsi.in: add language English. |
| 15570 |
|
| 15571 |
2008-04-19 Shiro Kawai <[email protected]> |
| 15572 |
|
| 15573 |
* src/parameter.c (Scm__VMParameterTableInit): Potentially allocating |
| 15574 |
too few elements. |
| 15575 |
|
| 15576 |
* src/hash.c (Scm_HashTableAdd): Typo fix in the error message. |
| 15577 |
|
| 15578 |
* ext/charconv/jconv.c (jconv): Use Scm_Panic instead of Scm_Error |
| 15579 |
in the logically unreachable code within the critical section. |
| 15580 |
|
| 15581 |
* src/gauche/mingw-compat.h: Removed, for this is replaced by |
| 15582 |
win-compat.h |
| 15583 |
* src/Makefile.in: install win-compat.h instead of mingw-compat.h. |
| 15584 |
|
| 15585 |
2008-04-19 ENDO Yasuyuki <[email protected]> |
| 15586 |
|
| 15587 |
* DIST: fix winnt/nsis make clean bug. |
| 15588 |
|
| 15589 |
2008-04-18 Shiro Kawai <[email protected]> |
| 15590 |
|
| 15591 |
* configure.ac (RPATH_FLAG): substitutes RPATH_FLAG for |
| 15592 |
system-dependent compiler flags to embed library paths in the |
| 15593 |
DSO. "-Wl,--rpath -Wl," for Linux, for example. |
| 15594 |
* src/genconfig (--rpath-flag): A new flag to return RPATH_FLAG info. |
| 15595 |
|
| 15596 |
* src/gauche-package.in ("compile"): added --local option to |
| 15597 |
the 'compile' command to add local include paths and local library |
| 15598 |
search paths conveniently. |
| 15599 |
* ext/template.configure.ac, ext/template.Makefile.in: |
| 15600 |
added --with-local configure option that propagates to --local |
| 15601 |
option of gauche-package. |
| 15602 |
|
| 15603 |
* lib/gauche/process.scm (shell-escape-string): Added a utility |
| 15604 |
function. |
| 15605 |
|
| 15606 |
2008-04-18 ENDO Yasuyuki <[email protected]> |
| 15607 |
|
| 15608 |
* winnt/nsis/setup.nsi (VIProductVersion): get version from |
| 15609 |
##(incdude (*current-version*)) macro. |
| 15610 |
|
| 15611 |
* winnt/nsis/file-list.scm (main): check path exists. |
| 15612 |
|
| 15613 |
* winnt/nsis/Makefile (GAUCHE_VERSION): hide error message if |
| 15614 |
../../VVERSION not exists. |
| 15615 |
|
| 15616 |
2008-04-17 ENDO Yasuyuki <[email protected]> |
| 15617 |
|
| 15618 |
* winnt/nsis/Makefile (all): add target all. |
| 15619 |
(gen): add target gen. |
| 15620 |
(build): add target build. |
| 15621 |
(clean): add target clean. |
| 15622 |
(MAKENSIS): check makensis.exe. |
| 15623 |
|
| 15624 |
* winnt/nsis/file-list.scm (include): fix match bug. |
| 15625 |
|
| 15626 |
* winnt/nsis/setup.nsi.in: include version from |
| 15627 |
"##(include (*current-version*))". |
| 15628 |
|
| 15629 |
* winnt/nsis/Makefile (setup.nsi): add argument <dist-path>, |
| 15630 |
<gauche-version> for file-list.scm. |
| 15631 |
version from `cat ../../VERSION`. |
| 15632 |
|
| 15633 |
* winnt/nsis/file-list.scm (*current-version*): add. |
| 15634 |
(main): required args: <dist-path> <template-file> <gauche-version> |
| 15635 |
(include): match inline "##(include exp)" template. |
| 15636 |
|
| 15637 |
2008-04-15 ENDO Yasuyuki <[email protected]> |
| 15638 |
|
| 15639 |
* winnt/nsis/Makefile (setup.nsi): generate setup.nsi from |
| 15640 |
setup.nsi.in. |
| 15641 |
|
| 15642 |
* winnt/nsis/file-list.scm: list Gauche-mingw files and generate |
| 15643 |
NSIS script. |
| 15644 |
|
| 15645 |
* winnt/nsis/setup.nsi.in: add. (template for NSIS script) |
| 15646 |
|
| 15647 |
* winnt/nsis/README: add. |
| 15648 |
|
| 15649 |
* winnt/nsis/gauche-logo.ico: Windows icon file for Gauche. |
| 15650 |
|
| 15651 |
2008-04-11 Shiro Kawai <[email protected]> |
| 15652 |
|
| 15653 |
* src/main.c (main, getopt): fixed argument processing on Windows. |
| 15654 |
|
| 15655 |
2008-03-03 Shiro Kawai <[email protected]> |
| 15656 |
|
| 15657 |
* lib/util/trie.scm (call-with-builder): incorrect argument order |
| 15658 |
* lib/util/relation.scm (relation-column-getters): typo fix |
| 15659 |
* lib/gauche/cgen/literal.scm (cgen-emit-xtrn): fixed incorrect |
| 15660 |
variable name. |
| 15661 |
(Thanks to koguro for the above three fixes.) |
| 15662 |
|
| 15663 |
2008-02-26 Shiro Kawai <[email protected]> |
| 15664 |
|
| 15665 |
* lib/gauche/dictionary.scm: removed undefined dict-map-to from |
| 15666 |
export list. |
| 15667 |
|
| 15668 |
* lib/gauche/common-macros.scm, src/autoloads.scm, src/scmlib.scm |
| 15669 |
(let-optionals*, let-keywords, let-keywords*): moved from |
| 15670 |
common-macros to scmlib. This is a step toward supporting |
| 15671 |
keyword and optional args in VM core. |
| 15672 |
|
| 15673 |
* lib/gauche/test.scm (read-summary): avoid using file-exists?, for |
| 15674 |
it triggers autoload which may not be tested in the early stage |
| 15675 |
of testing. |
| 15676 |
|
| 15677 |
2008-02-24 Shiro Kawai <[email protected]> |
| 15678 |
|
| 15679 |
* various scm files: cosmetic changes and adoption of rlet1. |
| 15680 |
|
| 15681 |
* lib/gauche/common-macros.scm: added if-let1 and rlet1. |
| 15682 |
|
| 15683 |
* libsrc/file/util.scm: added touch-files, copy-files, move-files, |
| 15684 |
remove-files, and delete-files. |
| 15685 |
|
| 15686 |
2008-02-23 Shiro Kawai <[email protected]> |
| 15687 |
|
| 15688 |
* lib/binary/pack.scm (read-count): fixed wrong arguments |
| 15689 |
in function call. |
| 15690 |
|
| 15691 |
* lib/srfi-27.scm (random-source-make-reals): fixed nonexistent |
| 15692 |
function call. |
| 15693 |
|
| 15694 |
2008-02-20 Shiro Kawai <[email protected]> |
| 15695 |
|
| 15696 |
* src/write.c (format_proc): raise an error on incomplete tilde |
| 15697 |
sequence in format string. |
| 15698 |
|
| 15699 |
* lib/gauche/time.scm (with-time-counter): avoid multiple |
| 15700 |
evaluation of time-counter expression. |
| 15701 |
|
| 15702 |
2008-02-16 Shiro Kawai <[email protected]> |
| 15703 |
|
| 15704 |
* lib/www/cgi.scm (get-mime-parts): allow :mode option for mime |
| 15705 |
part handler. |
| 15706 |
|
| 15707 |
2008-02-14 Shiro Kawai <[email protected]> |
| 15708 |
|
| 15709 |
* src/vmcall.c (ADJUST_ARGUMENT_FRAME): Fixed a bug that apply didn't |
| 15710 |
copy the argument list when it needed to 'unfold' the passed |
| 15711 |
argument list. |
| 15712 |
|
| 15713 |
2008-02-13 Shiro Kawai <[email protected]> |
| 15714 |
|
| 15715 |
* release 0.8.13 |
| 15716 |
|
| 15717 |
2008-02-12 Shiro Kawai <[email protected]> |
| 15718 |
|
| 15719 |
* src/load.c (Scm_ResolveAutoload): fixed another bug that, when N |
| 15720 |
threads (N >= 3) tried to resolve the same autoload and N-1 threads |
| 15721 |
goes to wait, only one of them is ever waked up. |
| 15722 |
|
| 15723 |
2008-02-09 Shiro Kawai <[email protected]> |
| 15724 |
|
| 15725 |
* src/load.c (Scm_ResolveAutoload): fix a bug that caused malfunction |
| 15726 |
of autoload resolving in multithreaded environment. |
| 15727 |
|
| 15728 |
2008-02-08 Shiro Kawai <[email protected]> |
| 15729 |
|
| 15730 |
* src/gauche.h (ScmDefaultCPL): make SCM_EXTERN to extern, for cygwin |
| 15731 |
to treat them as compile-time constants. (Needs more work for |
| 15732 |
Win/VC platform). |
| 15733 |
|
| 15734 |
2008-02-07 Shiro Kawai <[email protected]> |
| 15735 |
|
| 15736 |
* src/char.c (charset_print_ch): Safer print method for charset |
| 15737 |
literal. |
| 15738 |
|
| 15739 |
2008-02-06 Shiro Kawai <[email protected]> |
| 15740 |
|
| 15741 |
* ext/net/netlib.stub: Added some more socket option constants. |
| 15742 |
|
| 15743 |
2008-02-05 Shiro Kawai <[email protected]> |
| 15744 |
|
| 15745 |
* src/scmlib.scm (rxmatch->string): added. |
| 15746 |
|
| 15747 |
* src/system.c (Scm_CurrentMicroseconds), src/extlib.stub |
| 15748 |
(greatest-fixnum, least-fixnum): fixes for 64bit architecture. |
| 15749 |
|
| 15750 |
2008-02-04 Shiro Kawai <[email protected]> |
| 15751 |
|
| 15752 |
* test/system.scm, ext/termios/test.scm: excluded some tests from |
| 15753 |
cygwin, for they are not supported well on it. |
| 15754 |
|
| 15755 |
* src/vmcall.c: fixed a bug that takes calling context |
| 15756 |
(normal or applyargs) incorrectly when a next-method object is |
| 15757 |
created in applyargs context, is invoked in normal calling |
| 15758 |
context, a new next-method is created during it, and the new |
| 15759 |
next-method is invoked in the normal calling context. |
| 15760 |
|
| 15761 |
2008-02-03 Shiro Kawai <[email protected]> |
| 15762 |
|
| 15763 |
* lib/gauche/test.scm (closure-grefs): We've been missing checking |
| 15764 |
the closures in the operand of LOCAL-ENV-CLOSURES. Check added. |
| 15765 |
|
| 15766 |
* configure.ac, */Makefile.in, src/genconfig.in: Adapted for |
| 15767 |
cross compilation. (Parch from YOKOTA Hiroshi). |
| 15768 |
|
| 15769 |
* src/bignum.c, src/gauche/config.h.in: checks malloc.h to use |
| 15770 |
alloca on mingw. (Parch from YOKOTA Hiroshi). |
| 15771 |
|
| 15772 |
* src/string.c, src/system.c, src/number.c, src/dl_win.c, |
| 15773 |
src/class.c, ext/mt-random/mt-random.c: removing inline from |
| 15774 |
externed procs, and some other fixes for better portability. |
| 15775 |
(Parch from YOKOTA Hiroshi). |
| 15776 |
|
| 15777 |
* Makefile.in (uninstall): avoid going into gc/, since we don't |
| 15778 |
install a separate libgc.a so we shouldn't uninstall it. |
| 15779 |
|
| 15780 |
2008-02-02 Shiro Kawai <[email protected]> |
| 15781 |
|
| 15782 |
* lib/gauche/parseopt.scm (next-option): fixed a problem that regexp |
| 15783 |
might run out the stack when very long option arg is given. |
| 15784 |
|
| 15785 |
2008-02-01 Shiro Kawai <[email protected]> |
| 15786 |
|
| 15787 |
* libsrc/file/util.scm (copy-file): Fixed a bug that didn't |
| 15788 |
preserve the mode of dst when dst already exists, safe is #f |
| 15789 |
and keep-mode is #f. |
| 15790 |
|
| 15791 |
* src/read.c (read_char): allow 5, 6, or 7 hex digits in unicode char |
| 15792 |
literal (#\uxxxxx etc.) The old code only allows 4 or 8 digits, |
| 15793 |
which is too restrictive (and not much point since Unicode is now |
| 15794 |
only up to #\u10ffff.) |
| 15795 |
|
| 15796 |
* src/extlib.stub (fixnum-width, greatest-fixnum, least-fixnum): |
| 15797 |
Added. |
| 15798 |
|
| 15799 |
* src/syslib.stub (current-microseconds): Experimentally |
| 15800 |
added. Returns # of microseconds since system-dependent epoch, |
| 15801 |
wrapped around fixnum resolution (possibly negative). Useful |
| 15802 |
for micro benchmarking since it doesnt' allocate. |
| 15803 |
|
| 15804 |
2008-01-31 Shiro Kawai <[email protected]> |
| 15805 |
|
| 15806 |
* 0.8.13_pre1 |
| 15807 |
|
| 15808 |
* lib/gauche/procedure.scm, src/autoloads.scm: Experimentally |
| 15809 |
added '$' and '$*' macro. It's unofficial yet. See how it |
| 15810 |
works. |
| 15811 |
|
| 15812 |
2008-01-26 Shiro Kawai <[email protected]> |
| 15813 |
|
| 15814 |
* lib/gauche/process.scm (handle-abnormal-exit): Fix not to call |
| 15815 |
:on-error-exit handler if the process' exit status is zero. |
| 15816 |
|
| 15817 |
2008-01-23 Shiro Kawai <[email protected]> |
| 15818 |
|
| 15819 |
* src/class.c (generic_print): Reverted the display format of |
| 15820 |
generic functions; maxReqargs is not relevant for most users, |
| 15821 |
so it's just confusing. |
| 15822 |
|
| 15823 |
2008-01-04 Shiro Kawai <[email protected]> |
| 15824 |
|
| 15825 |
* lib/slib.scm.in (require, provide, provided?): adapted to |
| 15826 |
slib3a5 (using slib:require instead of require:require, etc). |
| 15827 |
This should also work with slib 3a4 as well, since 3a4 exports |
| 15828 |
both APIs. |
| 15829 |
|
| 15830 |
2007-12-31 Shiro Kawai <[email protected]> |
| 15831 |
|
| 15832 |
* src/vm.c (run_loop): Implemented an optimization on TAIL-APPLY |
| 15833 |
instruction. Since arguments are already on the stack except |
| 15834 |
the last one, we can share large part of processing with TAIL-CALL |
| 15835 |
instruction, with a modification of the special treatment of |
| 15836 |
the last argument. This eliminates the need to call Scm_VMApply, |
| 15837 |
and also allows large argument list to be applied, such as |
| 15838 |
(apply + (iota 10000)). |
| 15839 |
(Scm_VMApply): changed to use TAIL-APPLY instruction. This also |
| 15840 |
eliminates need of unfoling the passed args. |
| 15841 |
* src/vmcall.c: Added to refactor the similar code between CALL |
| 15842 |
and TAIL-APPLY instruction handling. |
| 15843 |
|
| 15844 |
* src/compile.scm (pass3/$ASM), src/stdlib.stub (apply): |
| 15845 |
A little hack to make *every* 'apply' call a tail-call, so that |
| 15846 |
it is compiled as TAIL-APPLY instruction. |
| 15847 |
|
| 15848 |
2007-12-28 Shiro Kawai <[email protected]> |
| 15849 |
|
| 15850 |
* src/class.c (Scm_ComputeApplicableMethods): Optimized inner loop |
| 15851 |
a little bit. General code cleanup. |
| 15852 |
* src/moplib.stub: Rewrote some procs using cise. |
| 15853 |
|
| 15854 |
2007-12-25 Shiro Kawai <[email protected]> |
| 15855 |
|
| 15856 |
* lib/gauche/numerical.scm (asin, asinh): fixed a problem of avoiding |
| 15857 |
numerical instability. |
| 15858 |
(exp, expt, cos, cosh, sin, sinh): use real-part/imag-part instead |
| 15859 |
of %complex->real/imag, for the former is slightly faster. |
| 15860 |
|
| 15861 |
2007-12-22 Shiro Kawai <[email protected]> |
| 15862 |
|
| 15863 |
* src/extlib.stub (rxmatch-num-matches): returns 0 if #f is passed, |
| 15864 |
as described in the manual. |
| 15865 |
|
| 15866 |
2007-12-18 Shiro Kawai <[email protected]> |
| 15867 |
|
| 15868 |
* lib/rfc/822.scm (rfc822-write-headers): Added generic message |
| 15869 |
header generation routine. |
| 15870 |
(rfc822-read-headers): Renamed rfx822-header->list for the |
| 15871 |
symmetry with rfc822-write-headers. We keep the old name |
| 15872 |
for the backward compatibility. |
| 15873 |
|
| 15874 |
2007-12-11 Shiro Kawai <[email protected]> |
| 15875 |
|
| 15876 |
* src/read.c (read_string): Supports R6RS-style line folding in |
| 15877 |
string literal. This should be reworked once we support all |
| 15878 |
kind of whitespaces and line endings, but for the time being |
| 15879 |
we just hardcode treatment of SPC and TABs. |
| 15880 |
|
| 15881 |
* lib/rfc/mime.scm (mime-decode-text, mime-encode-word, |
| 15882 |
mime-encode-text): Added utilities to encode/decode header fields |
| 15883 |
according to RFC2047. |
| 15884 |
|
| 15885 |
2007-12-09 Shiro Kawai <[email protected]> |
| 15886 |
|
| 15887 |
* lib/rfc/quoted-printable.scm (quoted-printable-encode): Added line- |
| 15888 |
width and binary keyword arguments. Encode '?' to avoid interference |
| 15889 |
with RFC2047 encoded header body. |
| 15890 |
|
| 15891 |
2007-12-07 Shiro Kawai <[email protected]> |
| 15892 |
|
| 15893 |
* lib/rfc/base64.scm (base64-encode): Added line-width keyword argument |
| 15894 |
to specify line width or suppress line breaking of the output. |
| 15895 |
|
| 15896 |
2007-12-06 Shiro Kawai <[email protected]> |
| 15897 |
|
| 15898 |
* lib/rfc/http.scm (request-response): Fixed to pass the port number |
| 15899 |
to host header field (RFC2616 section 14.23). |
| 15900 |
|
| 15901 |
2007-11-30 Shiro Kawai <[email protected]> |
| 15902 |
|
| 15903 |
* src/port.c (Scm__InitPort): Set stdout buffering mode to FULL if |
| 15904 |
the file descriptor 1 is not connected to a terminal. This greatly |
| 15905 |
improves performance when large number of lines of output are |
| 15906 |
redirected to a file. |
| 15907 |
|
| 15908 |
2007-11-23 Shiro Kawai <[email protected]> |
| 15909 |
|
| 15910 |
* lib/gauche/fileutil.scm (glob-fold, make-glob-fs-fold): Removed |
| 15911 |
:root and :current args from glob-fold, for they should belong to |
| 15912 |
the 'folder' function rather than the glob-fold function itself. |
| 15913 |
Instead, we added a utility function make-glob-fs-fold to generate |
| 15914 |
a customized 'folder' function with root/current dirs. |
| 15915 |
(glob-fold-1): Added support of '**' wildcard. |
| 15916 |
|
| 15917 |
2007-11-20 Shiro Kawai <[email protected]> |
| 15918 |
|
| 15919 |
* lib/gauche/fileutil.scm (glob-fold): Added :root and :current |
| 15920 |
keyword arguments for the flexibility. |
| 15921 |
|
| 15922 |
* lib/gauche/regexp.scm, src/scmlib.scm, src/autoloads.scm: |
| 15923 |
Moved regexp-replace, regexp-replace-all, regexp-replace*, |
| 15924 |
regexp-replace-all* and regexp-quote from the autoloaded regexp.scm |
| 15925 |
to the compiled scmlib.scm. |
| 15926 |
* src/regexp.c, src/objlib.scm: Implemented regexp printer in |
| 15927 |
Scheme write-object instead of C's class print function. Properly |
| 15928 |
escapes slashes in the regexp and adds 'i' suffix for case-folded |
| 15929 |
regexp, so that read/write invariance is sufficed for trivial |
| 15930 |
cases. (See the comment before write-object (<regexp> <top>) for |
| 15931 |
the work to do to realize full read/write invariance). |
| 15932 |
* src/read.c (read_regexp): let the reader consume a backslash before |
| 15933 |
a slash, for it has nothing to do with regexp parser (and it will |
| 15934 |
be consistent from the regexp created via string->regexp). |
| 15935 |
* src/preload.scm: use gauche.regexp explicitly, for it is needed |
| 15936 |
to compile HEAD with 0.8.12. Can be removed after 0.8.13 release. |
| 15937 |
|
| 15938 |
2007-11-09 Shiro Kawai <[email protected]> |
| 15939 |
|
| 15940 |
* configure.ac, src/gauche/config.h.in: Enabled large file support |
| 15941 |
(AC_SYS_LARGEFILE). On Linux this defines _FILE_OFFSET_BITS as 64. |
| 15942 |
COMPATIBILITY NOTE: The definition may affect the behavior of the |
| 15943 |
standard libraries. It is crucial to include <gauche.h> *before* |
| 15944 |
any other standard headers. |
| 15945 |
* src/system.c (Scm_IntegerToOffset, Scm_OffsetToInteger, ScmSysStat): |
| 15946 |
properly handles 64bit offsets. |
| 15947 |
* ext/fcntl/fcntl.c: properly handles 64bit offsets. |
| 15948 |
|
| 15949 |
* examples/mqueue-cpp/README: added explanation to include |
| 15950 |
gauche.h first. |
| 15951 |
|
| 15952 |
2007-11-08 Shiro Kawai <[email protected]> |
| 15953 |
|
| 15954 |
* lib/gauche/regexp.scm (regexp-parse-subpattern): allow named |
| 15955 |
reference in the replace string in regexp-replace etc. |
| 15956 |
Patch from Rui Ueyama. |
| 15957 |
|
| 15958 |
2007-11-07 Shiro Kawai <[email protected]> |
| 15959 |
|
| 15960 |
* configure.ac, src/gauche/config.h.in (HAVE_SYS_RESOURCE_H, |
| 15961 |
SIZEOF_RLIM_T): configuration for getrlimit/setrlimit |
| 15962 |
* src/syslib.stub (sys-getrlimit, sys-setrlimit): Added. |
| 15963 |
(Patch from Tatsuya BIZENN). |
| 15964 |
|
| 15965 |
* src/extlib.stub (tree-map-floor etc.): Added Scheme-level interface |
| 15966 |
to find the closest entry in the treemap. Also added tree-map-clear! |
| 15967 |
|
| 15968 |
2007-11-06 Shiro Kawai <[email protected]> |
| 15969 |
|
| 15970 |
* lib/text/gettext.scm, lib/text/tr.scm: Moved to ext/text. |
| 15971 |
* libsrc/text/tr.scm, ext/text/*: Made text.gettext and text.tr |
| 15972 |
compiled modules. |
| 15973 |
|
| 15974 |
* src/gencomp (compile-toplevel-form): Modified to recognize |
| 15975 |
define-constant form so that constant-folding works in |
| 15976 |
pre-compilation. |
| 15977 |
|
| 15978 |
* ext/srfi/srfi-19-lib.scm: switched back julian-day calculation |
| 15979 |
to use exact numbers (Cf. ChangeLog at 2007-01-16 below). By |
| 15980 |
scaling everything except nanoseconds first, we can avoid |
| 15981 |
ratnums in intermediate calculations. With working constant folding |
| 15982 |
in pre-compilation, the overhead isn't as bad as before. See |
| 15983 |
the comment near TM_EXACT_CALC for the details. |
| 15984 |
|
| 15985 |
* src/gauche/system.h (ScmTime): use ScmInt64 to represent seconds |
| 15986 |
to avoid year 2038 problem. |
| 15987 |
* src/system.c: Changed accordingly. Added Scm_MakeTime64() and |
| 15988 |
Scm_Int64SecondsToTime(). |
| 15989 |
* src/gauche/int64.h, src/number.c: Added macros (SCM_INT64_EQV, |
| 15990 |
SCM_INT64_CMP, SCM_SET_INT64_BY_LONG, SCM_SET_INT64_BY_DOUBLE) |
| 15991 |
and APIs (Scm_Int64ToDouble, Scm_UInt64ToDouble, Scm_DoubleToInt64, |
| 15992 |
Scm_UInt64ToDouble). |
| 15993 |
|
| 15994 |
2007-10-29 Shiro Kawai <[email protected]> |
| 15995 |
|
| 15996 |
* release 0.8.12 |
| 15997 |
|
| 15998 |
* winnt/winvc-prep.sh, DIST: enable preparation for winvc from |
| 15999 |
the distribution tarball. |
| 16000 |
* src/system.c: Some fixes for MinGW. |
| 16001 |
|
| 16002 |
2007-10-27 Shiro Kawai <[email protected]> |
| 16003 |
|
| 16004 |
* gc/configure.in: Added CFLAGS to compile on Leopard. |
| 16005 |
|
| 16006 |
* src/objlib.scm (x->integer, x->string): a bit of simplification. |
| 16007 |
|
| 16008 |
2007-10-23 Shiro Kawai <[email protected]> |
| 16009 |
|
| 16010 |
* ext/dbm/gdbm.scm (dbm.gdbm): added missing exports (gdbm-errno, |
| 16011 |
GDBM_SYNCMODE. |
| 16012 |
|
| 16013 |
2007-10-01 Shiro Kawai <[email protected]> |
| 16014 |
|
| 16015 |
* src/number.c (read_number, double_print): Changed infinities and |
| 16016 |
NaN notation to +inf.0, -inf.0 and +nan.0, according to R6RS. |
| 16017 |
The old syntax #i1/0, #i-1/0 and #i0/0 are recognized for |
| 16018 |
the compatibility. |
| 16019 |
|
| 16020 |
* ext/net/net.ac, ext/net/net.c: Removed dependency on inet_aton |
| 16021 |
(always using inet_pton). |
| 16022 |
|
| 16023 |
* lib/gauche/parseopt.scm: When "f" is specified as the option's |
| 16024 |
argument type, it allows rational number to be given but coerces |
| 16025 |
it to flonum. |
| 16026 |
|
| 16027 |
2007-09-28 Shiro Kawai <[email protected]> |
| 16028 |
|
| 16029 |
* ext/auxsys/auxsys.c (Scm_Environ), |
| 16030 |
ext/auxsys/auxsyslib.stub (sys-environ), |
| 16031 |
ext/auxsys/auxsys.scm (sys-environ->alist): Added sys-environ |
| 16032 |
and sys-environ->alist to obtain all environment variable bindings |
| 16033 |
of the current process. |
| 16034 |
|
| 16035 |
2007-09-27 Shiro Kawai <[email protected]> |
| 16036 |
|
| 16037 |
* ext/sxml/Makefile.in, ext/sxml/sxml-sxpath.scm.in: avoid dependency |
| 16038 |
on sxml-tools at generation time, by turning the references to |
| 16039 |
it into autoloads. |
| 16040 |
|
| 16041 |
* lib/gauche/fileutil.scm (glob-fold-1): Changed the traversal |
| 16042 |
procedure from 'lister' (returns a list) to 'folder' (works like |
| 16043 |
fold), for better flexibility. |
| 16044 |
|
| 16045 |
2007-09-24 Shiro Kawai <[email protected]> |
| 16046 |
|
| 16047 |
* lib/text/progress.scm (make-text-progress-bar): added a feature to |
| 16048 |
show information text on right, and allow to alter header and info |
| 16049 |
text on the fly. |
| 16050 |
* ext/sxml/Makefile.in: temporarily reverted to make sxml-sxpath.c |
| 16051 |
to depend on sxml-tools.so, because of the build problem. This |
| 16052 |
doesn't work on windows port, though, so we might need to find |
| 16053 |
some trick. |
| 16054 |
|
| 16055 |
2007-09-18 Shiro Kawai <[email protected]> |
| 16056 |
|
| 16057 |
* libsrc/gauche/sequence.scm: added permute and shuffle. |
| 16058 |
|
| 16059 |
2007-09-17 Shiro Kawai <[email protected]> |
| 16060 |
|
| 16061 |
* src/system.c, src/syslib.stub, src/auxsyslib.stub, src/process.scm: |
| 16062 |
Implemented an abstraction layer for kill and waitpid (Scm_SysKill, |
| 16063 |
Scm_SysWait) to support windows process smoothly. For Windows |
| 16064 |
processes we keep its process handle instead of an integer pid. |
| 16065 |
|
| 16066 |
2007-09-16 Shiro Kawai <[email protected]> |
| 16067 |
|
| 16068 |
* src/number.c (Scm_NumCmp): apply short cut path for the case when |
| 16069 |
both args are negative. |
| 16070 |
|
| 16071 |
2007-09-13 Shiro Kawai <[email protected]> |
| 16072 |
|
| 16073 |
* src/gauche.h, src/class.c: Resurrected windows DLL data import hack |
| 16074 |
we used to had for cygwin support (back in 2002). We have dropped |
| 16075 |
the hack since the newer gcc supports auto data importing (by |
| 16076 |
runtime pseudo reloc), but we found that the same technique can |
| 16077 |
be used for Windows/VC++. This supersedes the kludge in 2007-09-10 |
| 16078 |
changes. |
| 16079 |
* src/gauche/extend.h: SCM_EXTENSION_ENTRY macro to indicate |
| 16080 |
the initialization function entry of extension modules; needed |
| 16081 |
for Win/VC. |
| 16082 |
* src/* : various additions for MSVC support. shouldn't affect |
| 16083 |
unix build. |
| 16084 |
|
| 16085 |
2007-09-10 Shiro Kawai <[email protected]> |
| 16086 |
|
| 16087 |
* src/gencomp: make it accept -D option to specify preprocessor |
| 16088 |
symbols. |
| 16089 |
|
| 16090 |
* src/gauche/extern.h: added to hide windows dll insanity. |
| 16091 |
* src/gauche.h, src/gauche/class.h, src/gauche/string.h, |
| 16092 |
src/gauche/code.h, src/genstub, src/gencomp, |
| 16093 |
lib/gauche/cgen/literal.scm: Experimentally added a workaround |
| 16094 |
to the MSVC linker limitation that the address of external variables |
| 16095 |
in a separate DLL can't be used in a constant expression to |
| 16096 |
initialize static variables. It defeats the Gauche's tag |
| 16097 |
architecture. This fix makes the static Scheme objects to be |
| 16098 |
initialized with dummy tags (see SCM_CLASS_STATIC_TAG in gauche.h), |
| 16099 |
and "patches" the correct tag in the initializatin code. |
| 16100 |
|
| 16101 |
2007-09-06 Shiro Kawai <[email protected]> |
| 16102 |
|
| 16103 |
* src/char.c, src/read.c, src/port.c, ext/charconv/charconv.c, |
| 16104 |
ext/uvector/uvinit.c: Instead of letting extensions set the hook |
| 16105 |
function pointer, added an explicit API to set the hook (for |
| 16106 |
easier handling in windows dll). |
| 16107 |
|
| 16108 |
2007-08-29 Shiro Kawai <[email protected]> |
| 16109 |
|
| 16110 |
* ext/net/net.scm, ext/net/gauche/net.h, lib/gauche/cgen/cise.scm: |
| 16111 |
typo fix. |
| 16112 |
|
| 16113 |
* src/number.c (numcmp3): optimization in case when all args are |
| 16114 |
fixnums (can happen on 64bit machines). |
| 16115 |
|
| 16116 |
2007-08-28 Shiro Kawai <[email protected]> |
| 16117 |
|
| 16118 |
* src/number.c, src/string.c, src/class.c, src/bignum.c: various |
| 16119 |
small fixes. |
| 16120 |
|
| 16121 |
* lib/gauche/fileutil.scm (glob, glob-fold, sys-glob): Implemented |
| 16122 |
glob functionality in Scheme. |
| 16123 |
* src/autoload.scm (glob, glob-fold, sys-glob): sets these autoloads. |
| 16124 |
* src/syslib.stub (sys-glob), src/system.c (Scm_GlobDirectory): |
| 16125 |
removed C-function for the glob() interface. |
| 16126 |
|
| 16127 |
* src/extlib.stub (read-char-set): Expose char-set parser to |
| 16128 |
the Scheme level. |
| 16129 |
|
| 16130 |
2007-08-26 Shiro Kawai <[email protected]> |
| 16131 |
|
| 16132 |
* libsrc/file/util.scm (file->string etc.): made them gracefully |
| 16133 |
return #f if the file doesn't exist and :if-does-not-exist #f |
| 16134 |
is given. |
| 16135 |
(temporary-directory): look at TMPDIR environment variable. |
| 16136 |
(current-directory): clean up. |
| 16137 |
|
| 16138 |
* src/number.c (Scm_NumCmp): fixed a bug in the short cut path |
| 16139 |
of ratnum vs ratnum comparison. |
| 16140 |
|
| 16141 |
* ext/net/netlib.stub (socket-input-port, socket-output-port): |
| 16142 |
Fixed a bug that (effectively) forces socket input mode to be |
| 16143 |
:full, making many network applications behave incorrectly. |
| 16144 |
|
| 16145 |
2007-08-25 Shiro Kawai <[email protected]> |
| 16146 |
|
| 16147 |
* src/regexp.c (regmatch_ref): fixed a bug that the failed named |
| 16148 |
submatch returns "" instead of #f. |
| 16149 |
* lib/gauche/cgen/cise.scm (render-rec): handles character constants |
| 16150 |
outside of alphanumeric range. |
| 16151 |
|
| 16152 |
2007-08-24 Shiro Kawai <[email protected]> |
| 16153 |
|
| 16154 |
* Start adding Windows/MSVC support. |
| 16155 |
* DIST: added 'winvc' target to pre-generate files necessary to |
| 16156 |
compile with VisualStudio. |
| 16157 |
* winnt/*: files for VisualStudio. |
| 16158 |
* src/gauche/win-compat.h: renamed from mingw-compat.h and |
| 16159 |
integrated MSVC support. |
| 16160 |
* src/*.c : various touch-up for Windows support. |
| 16161 |
|
| 16162 |
2007-08-21 Shiro Kawai <[email protected]> |
| 16163 |
|
| 16164 |
* DIST, */Makefile.in : adjusted pre-package make target so that |
| 16165 |
it will do most of the pre-packaging job, hence can make DIST script |
| 16166 |
less cluttered. |
| 16167 |
|
| 16168 |
2007-08-16 Shiro Kawai <[email protected]> |
| 16169 |
|
| 16170 |
* release 0.8.11 |
| 16171 |
|
| 16172 |
2007-08-15 Shiro Kawai <[email protected]> |
| 16173 |
|
| 16174 |
* lib/gauche/cgen/cise.scm (define-cise-stmt, define-cise-expr): |
| 16175 |
A bit of touch-up for cise API. |
| 16176 |
* src/genstub: recognize define-cise-stmt and define-cise-expr as |
| 16177 |
a stub forms, so that one doesn't need to use eval* form. |
| 16178 |
I'm ambivalent on the eval* stub form; maybe it should be removed. |
| 16179 |
* src/stdlib.stub, src/extlib.stub: changed accordingly. |
| 16180 |
|
| 16181 |
2007-08-14 Shiro Kawai <[email protected]> |
| 16182 |
|
| 16183 |
* configure.ac: fixed a problem to set GAUCHE_USE_PTHREADS correctly |
| 16184 |
when thread type isn't specified. |
| 16185 |
|
| 16186 |
2007-08-13 Shiro Kawai <[email protected]> |
| 16187 |
|
| 16188 |
* src/port.c (Scm_PortFdDup), src/extlib.stub (port-fd-dup!): |
| 16189 |
Added an interface to dup2(2). Patch from Rui Ueyama. |
| 16190 |
|
| 16191 |
* src/bignum.c (Scm_BignumToDouble): Fixed a double rounding bug |
| 16192 |
caused from using flonum arithmetic (see the comment for the |
| 16193 |
details). |
| 16194 |
* src/bignum.c (Scm_BignumLogCount), src/extlib.stub (logcount): |
| 16195 |
Implemented logcount natively on top of ScmBits API. |
| 16196 |
* src/gauche/float.h (ScmIEEEDouble): moved the structure definition |
| 16197 |
from src/number.c, for it is now used by both number.c and |
| 16198 |
bignum.c. |
| 16199 |
* lib/gauche/logical.scm: removed logcount. |
| 16200 |
* src/bits.c: finally a working version. |
| 16201 |
|
| 16202 |
2007-08-11 Shiro Kawai <[email protected]> |
| 16203 |
|
| 16204 |
* src/load.c (Scm_ResolveAutoload): Renamed from Scm_LoadAutoload, |
| 16205 |
and changed so that it returns SCM_UNBOUND instead of raising an |
| 16206 |
error when it detects the autoload is recursive. That allows |
| 16207 |
more natural handling in implicit binding checks like implicit |
| 16208 |
generic definition by define-method or implicit redefinition |
| 16209 |
check by define-class. Note that the caller of Scm_ResolveAutoload |
| 16210 |
must check if the return value is SCM_UNBOUND and take an appropriate |
| 16211 |
action. |
| 16212 |
|
| 16213 |
* src/gauche.h: Because of the above change, we dropped |
| 16214 |
SCM_BINDING_KEEP_AUTOLOAD flag for Scm_GlobalVariableRef, since |
| 16215 |
it was introduced only to avoid the recursive autoload in the |
| 16216 |
implicit generic definition. We no longer need it. |
| 16217 |
* src/module.c (Scm_GlobalVariableRef): Changed accordingly. |
| 16218 |
* src/moplib.stub (%ensure-generic-function): Changed accordingly. |
| 16219 |
|
| 16220 |
* src/class.c (Scm_CheckClassBinding): Simplified according to |
| 16221 |
the above change. |
| 16222 |
|
| 16223 |
* test/load2.scm: Added to test the above autoload mechanisms. |
| 16224 |
This can't be in load.scm, since we have to test it after |
| 16225 |
object.scm. |
| 16226 |
|
| 16227 |
2007-08-10 Shiro Kawai <[email protected]> |
| 16228 |
|
| 16229 |
* lib/gauche/test.scm (test-end): Let it return the number of |
| 16230 |
failed tests. May be useful if the test script wants to return |
| 16231 |
non-zero exit status when test fails (e.g. (exit (test-end)) ). |
| 16232 |
Suggested by Masatake YAMATO. |
| 16233 |
|
| 16234 |
2007-08-09 Shiro Kawai <[email protected]> |
| 16235 |
|
| 16236 |
* configure.ac: When --enable-threads is not given (or 'default' is |
| 16237 |
given) we turn on pthreads support on available platforms, and |
| 16238 |
turn off on others. |
| 16239 |
Also defines _POSIX_PTHREAD_SEMANTICS on Solaris with threads |
| 16240 |
so that we can get a pthread-compatible API |
| 16241 |
(more specifically, sigwait()). |
| 16242 |
* gc/configure.in: Adapted to the above change; now we ignore |
| 16243 |
--enable-threads, and rely on the info the main 'configure.ac' |
| 16244 |
left in 'config.threads'. |
| 16245 |
* src/gauche/config.h.in: added _POSIX_PTHREAD_SEMANTICS. |
| 16246 |
* src/gauche.h: Include gauche/config.h before any headers so that |
| 16247 |
the definitions like _POSIX_PTHREAD_SEMANTICS can affect the |
| 16248 |
system headers. |
| 16249 |
* src/signal.c: removed system header includes, since they are |
| 16250 |
included in gauche.h anyway. |
| 16251 |
|
| 16252 |
* libsrc/srfi-1.scm (list=): bug fix for handling more than three |
| 16253 |
lists. (Patch from OGURISU Osamu). |
| 16254 |
|
| 16255 |
* ext/template.Makefile.in, lib/gauche/package/compile.scm: |
| 16256 |
Supports separate buiddir during compiling extension packages |
| 16257 |
(Patch from Leonardo Boiko). |
| 16258 |
|
| 16259 |
* doc/corelib.texi (Symbols): removed the remark of "symbols are always |
| 16260 |
interned", since gensym'ed symbols are not interned. |
| 16261 |
|
| 16262 |
* src/gencomp (allocate-code-vector): properly escape '/*' and '*/' |
| 16263 |
in the inserted comments. |
| 16264 |
|
| 16265 |
* src/class.c, src/port.c, src/vm.c: added casts between intptr_t and |
| 16266 |
void* for proper operation on LP64. (Patch from Rui Ueyama). |
| 16267 |
|
| 16268 |
* lib/gauche/time.scm (gauche.time): export <time-counter>. Although |
| 16269 |
it is a pure abstract class, user may want to define a method |
| 16270 |
specializing for a bunch of time-counter subclasses. |
| 16271 |
|
| 16272 |
2007-08-08 Shiro Kawai <[email protected]> |
| 16273 |
|
| 16274 |
* src/intlib.stub: include gauche/memory.h to get decl of |
| 16275 |
GC_print_static_roots. |
| 16276 |
|
| 16277 |
* src/core.c (Scm_Init): added missing call to Scm__InitCollection(). |
| 16278 |
|
| 16279 |
2007-08-07 Shiro Kawai <[email protected]> |
| 16280 |
|
| 16281 |
* src/port.c (port_cleanup): resurrected unregister_buffered_port |
| 16282 |
to remove active buffererd port entry when a port is closed. |
| 16283 |
It was removed before, since when port_cleanup is called via |
| 16284 |
port's finalizer, the entry is already cleared by GC. However, |
| 16285 |
it turned out that there was a case that number of closed ports |
| 16286 |
retained from GC grew, prohibiting new ports from being registered |
| 16287 |
to the active buffered port vector. Note: maybe we can also |
| 16288 |
clear some pointers in the port when it is closed, so that the |
| 16289 |
stuff referenced from the port can be GCed even the closed port |
| 16290 |
itself lives longer. |
| 16291 |
|
| 16292 |
2007-08-06 Shiro Kawai <[email protected]> |
| 16293 |
|
| 16294 |
* src/number.c (Scm_DoubleToHalf): fixed to make sure shifting long |
| 16295 |
literal instead of int literal to generate a mask larger than 32bits. |
| 16296 |
The bug yielded incorrect rounding behaviour on 64bit platforms. |
| 16297 |
|
| 16298 |
2007-08-05 Shiro Kawai <[email protected]> |
| 16299 |
|
| 16300 |
* ext/net/test.scm: Avoid using "ip" for testing getprotobyname/ |
| 16301 |
getprotobynumber, since the official name of protocol number 0 |
| 16302 |
has been changed and we're in transition phase. Using "icmp" |
| 16303 |
instead. |
| 16304 |
|
| 16305 |
* libsrc/file/util.scm (copy-file): Added :keep-mode keyword arg. |
| 16306 |
|
| 16307 |
2007-08-02 Shiro Kawai <[email protected]> |
| 16308 |
|
| 16309 |
* src/syslib.stub (sys-umask): Support omitting mode to query |
| 16310 |
the current umask without changing it. |
| 16311 |
|
| 16312 |
2007-07-31 Shiro Kawai <[email protected]> |
| 16313 |
|
| 16314 |
* libsrc/srfi-13.scm (%string-*case!): fixed a bug that caused an |
| 16315 |
error when the last optional args are omitted for string-downcase! |
| 16316 |
etc. |
| 16317 |
|
| 16318 |
2007-07-25 Shiro Kawai <[email protected]> |
| 16319 |
|
| 16320 |
* src/hash.c (string_access): fixed invalid argument passed to |
| 16321 |
Scm_Error (ScmHashTableCore* is not ScmObj). |
| 16322 |
|
| 16323 |
2007-07-16 Shiro Kawai <[email protected]> |
| 16324 |
|
| 16325 |
* src/number.c (Scm_GetDouble): fixed a bug on big ratnum coercion |
| 16326 |
that caused SEGV in some cases. |
| 16327 |
(Scm_NumCmp): fixed a bug on comparing small ratnum with big |
| 16328 |
denominator with fixnum. |
| 16329 |
|
| 16330 |
2007-07-10 Shiro Kawai <[email protected]> |
| 16331 |
|
| 16332 |
* libsrc/gauche/collection.scm: Added find-min, find-max, and |
| 16333 |
find-min&max. |
| 16334 |
|
| 16335 |
2007-06-30 Shiro Kawai <[email protected]> |
| 16336 |
|
| 16337 |
* src/scmlib.scm (error): error message formatting routines didn't |
| 16338 |
consider circular structure, causing SEGV when such a structure |
| 16339 |
is given to error/errorf. |
| 16340 |
|
| 16341 |
2007-06-22 Shiro Kawai <[email protected]> |
| 16342 |
|
| 16343 |
* src/compile.scm (cond, case): exclude dotted list from clauses |
| 16344 |
and properly reports syntax error instead of SEGV. |
| 16345 |
* lib/rfc/http.scm (request-response): fixed a bug that ignores |
| 16346 |
:sink and :flusher keyword arguments. |
| 16347 |
* lib/gauche/interactive/info.scm (viewer): fixed malformed |
| 16348 |
with-signal-handlers (enbugged when we rewrite with-error-handler |
| 16349 |
to guard?) |
| 16350 |
* ext/uvector/uvector.c.tmpl (Scm_WriteBlock): added a missing breaks. |
| 16351 |
(Scm_UVectorCopy, Scm_UVectorSwapBytes, Scm_UVectorSwapBytesX): |
| 16352 |
f16vector support was missing. |
| 16353 |
* src/vm.c (get_debug_info): fixed a bug in the range check. |
| 16354 |
|
| 16355 |
2007-05-31 Shiro Kawai <[email protected]> |
| 16356 |
|
| 16357 |
* src/hash.c, src/weak.c, src/gauche/hash.h, src/gauche/weak.h, |
| 16358 |
src/extlib.stub: some additions for weak hash tables. unfortunately |
| 16359 |
I found the current hash core implementation doesn't go well with |
| 16360 |
key-weak hash table, and am planning to replace hash core |
| 16361 |
implementation; for the time being, I freeze development of |
| 16362 |
weak hash tables. |
| 16363 |
|
| 16364 |
2007-05-22 Shiro Kawai <[email protected]> |
| 16365 |
|
| 16366 |
* lib/rfc/ftp.scm (req&send, ftp-put-unique): made ftp-put-unique |
| 16367 |
to return two values, a final server's response and the remote |
| 16368 |
file path given by 1xx response. AN INCOMPATIBLE API CHANGE. |
| 16369 |
But I assume nobody has been used ftp-put-unique seriously, |
| 16370 |
for it is almost useless without obtaining the generated remote path. |
| 16371 |
|
| 16372 |
* configure.ac: shows some of the configuration parameters |
| 16373 |
at the end, upon a request. |
| 16374 |
|
| 16375 |
* ext/net/netlib.stub (sockaddr-addr): fixed inet6 address bug |
| 16376 |
in LP64 architectures, and also adaped to gauche.cgen.cise. |
| 16377 |
|
| 16378 |
* lib/rfc/ftp.scm (call-with-ftp-connection): Fix passing wrong |
| 16379 |
keyword argument to ftp-login. |
| 16380 |
|
| 16381 |
* src/number.c (Scm_NumCmp): Fixed a bug that raises an error when |
| 16382 |
attempted to compare bignum and infinity. |
| 16383 |
|
| 16384 |
* lib/slib.scm.in (force-output): oversight. made it an alias of |
| 16385 |
flush. |
| 16386 |
|
| 16387 |
* src/main.c (main): temporarily avoided using new Scm_Apply API |
| 16388 |
due to the bug that lost stack traces. |
| 16389 |
|
| 16390 |
2007-05-21 Shiro Kawai <[email protected]> |
| 16391 |
|
| 16392 |
* src/gauche/charset.h (SCM_CHAR_SET etc): Changed CHARSET in |
| 16393 |
macro names to CHAR_SET for the consistency. Old names are |
| 16394 |
defined for compatibility but will fade out. |
| 16395 |
* src/char.c, src/regexp.c, src/class.c: changed accordingly. |
| 16396 |
|
| 16397 |
* lib/gauche/cgen/cise.scm: Allow embedding Scheme constants |
| 16398 |
by quote form. Allow omitting type declaration if it's ScmObj. |
| 16399 |
Some more conveniece macros. |
| 16400 |
* src/extlib.stub: changed to use gauche.cgen.cise more. |
| 16401 |
|
| 16402 |
2007-05-19 Shiro Kawai <[email protected]> |
| 16403 |
|
| 16404 |
* lib/gauche/miscutil.scm: added. |
| 16405 |
* src/autoload.scm: added autoload for gauche.miscutil. |
| 16406 |
|
| 16407 |
* lib/gauche/cgen/cise.scm: added. A utility to generate C code |
| 16408 |
from S-expression. The spec is still experimental and may be |
| 16409 |
tweaked. |
| 16410 |
* src/genstub, src/stdlib.stub, src/extlib.stub: changed to use |
| 16411 |
gauche.cgen.cise module. |
| 16412 |
* lib/Makefile.in, lib/gauche/cgen/unit.scm: changed accordingly. |
| 16413 |
|
| 16414 |
2007-05-15 Shiro Kawai <[email protected]> |
| 16415 |
|
| 16416 |
* ext/fcntl/fcntl.c, ext/net/netdb.c, ext/termios/termios.c, |
| 16417 |
ext/threads/mutex.c, src/class.c, src/codec, src/compaux.c, |
| 16418 |
src/error.c, src/genstub, src/proc.c, src/system.c: |
| 16419 |
Use SCM_CLASS_SLOT_SPEC_END() macro instead of literal constant. |
| 16420 |
Patch from MUTOU Masayuki. |
| 16421 |
|
| 16422 |
2007-05-04 Shiro Kawai <[email protected]> |
| 16423 |
|
| 16424 |
* lib/gauche/interpolate.scm (%string-interpolate): recognize '[' and |
| 16425 |
'{' as the beginning of unquoted expression as well. |
| 16426 |
|
| 16427 |
* src/genstub, lib/gauche/cgen/unit.scm, lib/gauche/cgen/literal.scm: |
| 16428 |
Further integrated genstub's code into gauche.cgen.*. Changes |
| 16429 |
include: Cpp conditions are now supported by <cgen-node>. |
| 16430 |
The subclass of <cgen-node> should override cgen-emit-* methods, |
| 16431 |
not the cgen-emit method. Some of literal handling code |
| 16432 |
are moved to gauche.cgen.*. |
| 16433 |
Also experimentally testing shorthand notation of ref. |
| 16434 |
|
| 16435 |
2007-04-26 Shiro Kawai <[email protected]> |
| 16436 |
|
| 16437 |
* src/genstub: Refactored to utilize more features of gauche.cgen; |
| 16438 |
the original genstub predated gauche.cgen and had many kludges |
| 16439 |
that gauche.cgen solved better. |
| 16440 |
|
| 16441 |
* src/gauche/port.h: Fixed a problem that compatibility functions |
| 16442 |
are not declared when necessary (#ifdef area got wrong). |
| 16443 |
|
| 16444 |
2007-04-23 Shiro Kawai <[email protected]> |
| 16445 |
|
| 16446 |
* lib/gauche/cgen.scm, lib/gauche/cgen/unit.scm, |
| 16447 |
lib/gauche/cgen/literal.scm: Splitted gauche.cgen module for |
| 16448 |
modularity and readability. |
| 16449 |
|
| 16450 |
2007-04-22 Shiro Kawai <[email protected]> |
| 16451 |
|
| 16452 |
* ext/auxsys/auxsys.scm (sys-realpath): typo fix. |
| 16453 |
|
| 16454 |
2007-04-21 Shiro Kawai <[email protected]> |
| 16455 |
|
| 16456 |
* src/gauche/weak.h, src/weak.c: Start adding weak hash table |
| 16457 |
(not finished yet). |
| 16458 |
* src/hash.c: added Scm_HashCoreInitGeneral. |
| 16459 |
|
| 16460 |
2007-04-20 Shiro Kawai <[email protected]> |
| 16461 |
|
| 16462 |
* src/extlib.stub (hash-table-clear!): added. |
| 16463 |
|
| 16464 |
* ext/net/net.c (init_winsock): typo fix for mingw. |
| 16465 |
|
| 16466 |
2007-04-18 Shiro Kawai <[email protected]> |
| 16467 |
|
| 16468 |
* release 0.8.10 |
| 16469 |
|
| 16470 |
* lib/www/cgi.scm (cgi-main): fix to make error handler called |
| 16471 |
correctly. |
| 16472 |
* src/system.c (copy_win32_path): bug fix on mingw. |
| 16473 |
|
| 16474 |
2007-04-17 Shiro Kawai <[email protected]> |
| 16475 |
|
| 16476 |
* src/vm.c, src/vminsn.scm, src/compile.scm: Inline inexact arithmetic |
| 16477 |
operators (+., -., *. and /., as NUMIADD2, NUMISUB2, NUMIMUL2, and |
| 16478 |
NUMIDIV2). These operators are meant for performance tuning, so |
| 16479 |
it's better to make them as fast as normal operators. |
| 16480 |
|
| 16481 |
* ext/net/netlib.stub (inet-checksum): fix for big-endian machines. |
| 16482 |
* src/hash.c (NOTFOUND): added missing 'return'. |
| 16483 |
* src/gauche/bits.h (SCM_BITS_TEST): fix for 64bit platform |
| 16484 |
|
| 16485 |
2007-04-16 Shiro Kawai <[email protected]> |
| 16486 |
|
| 16487 |
* ext/charconv/cvt.scm (generate-utf8->eucj): fix for not generating |
| 16488 |
mappings from U+0080-U+009f range; they produced wrong EUC sequence, |
| 16489 |
causing troubles. Now they are replaced to alternative characters. |
| 16490 |
|
| 16491 |
2007-04-15 Shiro Kawai <[email protected]> |
| 16492 |
|
| 16493 |
* src/port.c, src/scmlib.scm, src/stdlib.stub, src/extlib.stub, |
| 16494 |
src/gauche/port.h: Made current-{input|output|error}-port |
| 16495 |
like parameters, allowing replacing them. Moved implementation |
| 16496 |
of with-input-from-port etc. to Scheme (scmlib.scm), hence dropping |
| 16497 |
them from extlib.stub. Scm_WithPort is also dropped. |
| 16498 |
New API Scm_SetCurrentInputPort etc. |
| 16499 |
The old Scm_WithPort had a bug that didn't set a proper "before" |
| 16500 |
thunk for dynamic-wind. The bug doesn't exist in the new version. |
| 16501 |
|
| 16502 |
* src/genstub (emit-definition): removed remanings of GAUCHE_SUBR_VM |
| 16503 |
support. |
| 16504 |
(<procstub>): moved several slots from <cproc> to fix define-cmethod. |
| 16505 |
(define-cmethod): fixed incorrectly placed close paren. |
| 16506 |
(parse-specialized-args): reversing parsed arglist. |
| 16507 |
(process-body-spec): removed remainings of GAUCHE_VMAPI_VM support |
| 16508 |
|
| 16509 |
* src/gauche/mingw-compat.h: added #undef small, for <windows.h> |
| 16510 |
defines 'small' to 'char'. |
| 16511 |
|
| 16512 |
2007-04-13 Shiro Kawai <[email protected]> |
| 16513 |
|
| 16514 |
* lib/www/cgi.scm: Fixed a bug that hangs when Content-Length is zero |
| 16515 |
(Patch from Tatsuya BIZENN). |
| 16516 |
|
| 16517 |
* src/hash.c (Scm_HashIterInit, Scm_HashIterNext): changed so that |
| 16518 |
the initial iterator points "one before the first entry" and |
| 16519 |
the 'next' operation returns an entry after proceeding the pointer. |
| 16520 |
It is consistent with Scm_TreeMapInit/Next. - Nope. Reverted. |
| 16521 |
If the caller happens to delete the curent entry from the table, |
| 16522 |
the new version of the iterator loses the iteration. We can prevent |
| 16523 |
that by letting the iterator prefetch the next entry---but the code |
| 16524 |
to do prefetch is exactly the same the previous version was doing! |
| 16525 |
(The change would be visible if we have HashIterCurrent, but it |
| 16526 |
seems little use so we dropped it. If we ever re-adopt |
| 16527 |
HashIterCurrent do not forget to keep the current entry pointer |
| 16528 |
as well as the 'next' prefetch pointer). |
| 16529 |
|
| 16530 |
2007-04-11 Shiro Kawai <[email protected]> |
| 16531 |
|
| 16532 |
* src/write.c (Scm_Sprintf, Scm_SprintfShared, Scm_Vsprintf): added |
| 16533 |
convenience functions. |
| 16534 |
* src/error.c : changed to use above new APIs. |
| 16535 |
|
| 16536 |
* src/load.c, src/gauche/load.h (Scm_Load, Scm_LoadFromPort, |
| 16537 |
Scm_Require): New APIs for better error handling. |
| 16538 |
* src/read.c, src/main.c, src/extlib.stub, src/char.c: |
| 16539 |
changed accordingly. |
| 16540 |
|
| 16541 |
2007-04-08 Shiro Kawai <[email protected]> |
| 16542 |
|
| 16543 |
* src/collection.c, src/gauche/colleciton.h: Make SCM_DICT_SET_VALUE |
| 16544 |
to check iff given value isn't an obviously illegal value (e.g. |
| 16545 |
NULL or SCM_UNBOUND), for the safety. |
| 16546 |
* src/module.c: Replaced old hashtable APIs for the new ones. |
| 16547 |
|
| 16548 |
2007-04-07 Shiro Kawai <[email protected]> |
| 16549 |
|
| 16550 |
* src/char.c (Scm_CharSetLE): fixed a bug. |
| 16551 |
|
| 16552 |
* lib/gauche/test.scm: record "abort count", the # of test processes |
| 16553 |
aborted, as well. |
| 16554 |
|
| 16555 |
* src/hash.c, src/gauche/hash.h, src/gauche.h: Changed hashtable API |
| 16556 |
for consistency of dictionary API. This introduces incompatibility |
| 16557 |
in Scm_HashIterInit and Scm_HashIterNext, which we provide the |
| 16558 |
backward compatibility routines by default; defining GAUCHE_API_0_9 |
| 16559 |
make the new API visible. Also we deprecate Scm_HashTableGet, |
| 16560 |
Scm_HashTablePut, and Scm_HashTableAdd, in favor of the new |
| 16561 |
APIs Scm_HashTableRef and Scm_HashTableSet. (Scm_HashTableDelete |
| 16562 |
is also changed, but it only changes its return type which isn't |
| 16563 |
used much.) All the "raw" hashtable support is dropped, in favor |
| 16564 |
of ScmHashTableCore. |
| 16565 |
* src/class.c, src/extilb.stub, src/module.c: Changed to adapt the |
| 16566 |
new hashtable API. |
| 16567 |
|
| 16568 |
2007-04-06 Shiro Kawai <[email protected]> |
| 16569 |
|
| 16570 |
* lib/text/progress.scm: fix. |
| 16571 |
* examples/text-progress.scm: added. |
| 16572 |
|
| 16573 |
2007-04-04 Shiro Kawai <[email protected]> |
| 16574 |
|
| 16575 |
* src/gauche/charset.h: splitted char-set related API decls. |
| 16576 |
* src/char.c: rewrote ScmCharSet using ScmBits and ScmTreeCore. |
| 16577 |
API rename for consistency: Scm_CopyCharSet -> ScmCharSetCopy. |
| 16578 |
* src/treemap.c: adjust some APIs based on the experience of |
| 16579 |
reimplementing ScmCharSet. |
| 16580 |
|
| 16581 |
* src/gauche/collection.h (ScmDictEntry): make 'key' member const. |
| 16582 |
|
| 16583 |
2007-03-31 Shiro Kawai <[email protected]> |
| 16584 |
|
| 16585 |
* src/gauche/bits.h, src/bits.c: added ScmBits, generic bitarray |
| 16586 |
operation support. A plan is to use this to cleanup charset |
| 16587 |
implementation and also for CL-ish bitvector. Some other |
| 16588 |
datastuructures may take advantage of this. |
| 16589 |
* src/char.c: using ScmBits for the small character maps. |
| 16590 |
|
| 16591 |
* src/core.c (init_cond_features): adds the feature gauche.sys.pthreads |
| 16592 |
if Gauche is compiled w/ pthread support. |
| 16593 |
|
| 16594 |
* src/syslib.stub (sys-symlink): defines sys-symlink conditionally, |
| 16595 |
with the feature identifier gauche.sys.symlink. |
| 16596 |
|
| 16597 |
2007-03-28 Shiro Kawai <[email protected]> |
| 16598 |
|
| 16599 |
* src/core.c: defines the feature identifier gauche.sys.pthreads |
| 16600 |
if Gauche is compiled with pthreads enabled. |
| 16601 |
|
| 16602 |
2007-03-27 Shiro Kawai <[email protected]> |
| 16603 |
|
| 16604 |
* test/system.scm: use sys-nanosleep instead of sys-sleep if |
| 16605 |
possible, to reduce the time of test. |
| 16606 |
|
| 16607 |
* ext/auxsys/auxsys.c (Scm_SetEnv): added a wrapper routine for |
| 16608 |
sys-putenv and sys-setenv, so that we can use whichever available |
| 16609 |
on the system. Importantly, this will fix the leak problem of |
| 16610 |
sys-putenv on the common platform that supports setenv(3). |
| 16611 |
* ext/auxsys/auxsys.scm: cleanup some cond-expands. |
| 16612 |
|
| 16613 |
2007-03-26 Shiro Kawai <[email protected]> |
| 16614 |
|
| 16615 |
* src/stdlib.stub (vector-ref, vector-set!), |
| 16616 |
src/vector.c (Scm_VectorRef, Scm_VectorSet): we can't use ::<fixnum> |
| 16617 |
type for the index of vector-ref, since bignum is allowed if |
| 16618 |
fallback is also given. Because of this, we moved range check |
| 16619 |
to stub, and made Scm_VectorRef not raise an error. Similar change |
| 16620 |
on vector-set! for consistency. |
| 16621 |
|
| 16622 |
* src/vm.c (SCM_VEC_REF etc): fix error message. if bignum is given |
| 16623 |
as an index, the message should be "out of bound" instead of |
| 16624 |
wrong type argument. |
| 16625 |
|
| 16626 |
* src/number.c (Scm_GetDouble): handles the corner case when ratnum |
| 16627 |
has very large denominator and/or numerator. |
| 16628 |
|
| 16629 |
* src/treemap.c, src/gauche/treemap.h: Renamed and cleaned up some |
| 16630 |
treemap API for the consistency. |
| 16631 |
|
| 16632 |
2007-03-24 Shiro Kawai <[email protected]> |
| 16633 |
|
| 16634 |
* ext/net/net.ac: added a hack to avoid dragonfly's broken |
| 16635 |
gethostbyaddr_r. |
| 16636 |
|
| 16637 |
2007-03-23 Shiro Kawai <[email protected]> |
| 16638 |
|
| 16639 |
* configure.ac, gc/configure.in, gc/libtool.m4: Patched to support |
| 16640 |
DragonFly BSD. |
| 16641 |
|
| 16642 |
* ext/net/addr.c, ext/net/test.scm: struct in6_addr.s6_addr32 isn't |
| 16643 |
portable, so we roll our own. also make sure we won't run ipv6 |
| 16644 |
inet_pton/ntop if Gauche isn't configured with ipv6. Patch from |
| 16645 |
Tatsuya BIZENN. |
| 16646 |
|
| 16647 |
2007-03-22 Shiro Kawai <[email protected]> |
| 16648 |
|
| 16649 |
* ext/sxml/sxml-ssax.scm.in: extend text.parse as well, for |
| 16650 |
ssax:make-parser inserts assert-curr-char. |
| 16651 |
|
| 16652 |
* ext/mt-random/mt-random.c (mt_allocate): Seed initialization was |
| 16653 |
broken when seed is given to the initialization argument. |
| 16654 |
Consolidated mt-random-set-seed! and seed initialization into |
| 16655 |
Scm_MTSetSeed. |
| 16656 |
|
| 16657 |
* ext/net/netaux.scm, ext/net/netlib.stub, ext/net/net.c: |
| 16658 |
Implemented inet-address->string and inet-string->address in C, |
| 16659 |
using inet_pton and inet_ntop. |
| 16660 |
|
| 16661 |
2007-03-21 Shiro Kawai <[email protected]> |
| 16662 |
|
| 16663 |
* ext/srfi/srfi-19-lib.scm (tm:directives): fix date formats to make |
| 16664 |
them iso-8601 compliant. |
| 16665 |
|
| 16666 |
2007-03-16 Shiro Kawai <[email protected]> |
| 16667 |
|
| 16668 |
* ext/dbm/dbm.ac: checks for ndbm funcs in more libraries. |
| 16669 |
* ext/xlink: allow no file arguments; depending on configuration, |
| 16670 |
both $(LIBFILES) and $(SCMFILES) can be empty in ext/Makefile.ext. |
| 16671 |
* src/genconfig.in: be friendly to autoconf 2.60. |
| 16672 |
|
| 16673 |
* lib/gauche/dictionary.scm: dictionary generic functions. |
| 16674 |
experimental. |
| 16675 |
* src/objlib.scm: added 'ref' and 'set!' methods for tree-map. |
| 16676 |
|
| 16677 |
2007-03-15 Shiro Kawai <[email protected]> |
| 16678 |
|
| 16679 |
* lib/rfc/icmp.scm: added ICMPv6 support. |
| 16680 |
|
| 16681 |
* ext/net/net.c, ext/net/netlib.stub (inet-checksum+): added |
| 16682 |
inet-checksum+, which can be used to combine checksums; handy |
| 16683 |
for IPv6 packet checksum calculation, for it requires including |
| 16684 |
pseudo-IPv6 header. See RFC2460 sectin 8.1. |
| 16685 |
Nope! reverted. Kernel takes care of IPv6 checksum, so we |
| 16686 |
don't need it. |
| 16687 |
|
| 16688 |
2007-03-14 Shiro Kawai <[email protected]> |
| 16689 |
|
| 16690 |
* ext/net/addr.c (sockaddr_in6_allocate): fixed memory leak (missing |
| 16691 |
freeaddrinfo). |
| 16692 |
|
| 16693 |
2007-03-12 Shiro Kawai <[email protected]> |
| 16694 |
|
| 16695 |
* src/error.c, src/gauche/exception.h: Dropped <application-exit> |
| 16696 |
exception; it doesn't work well. The most annoying part is |
| 16697 |
that the exception may be shadowed by other exceptions if the |
| 16698 |
latter is thrown within the error handler; it does happen, for |
| 16699 |
example, in the cleanup clause of unwind-protect. We still want |
| 16700 |
the applictation to exit without reporting stack trace even something |
| 16701 |
fails in cleanup handlers. It seems that application-exit needs |
| 16702 |
different mechanism to trap (e.g. exit-handler) after all. |
| 16703 |
|
| 16704 |
2007-03-11 Shiro Kawai <[email protected]> |
| 16705 |
|
| 16706 |
* src/number.c (Scm_RoundToExact), src/extlib.stub (round->exact etc): |
| 16707 |
implemented round->exact etc in C, for it can avoid some overhead |
| 16708 |
and makes them much faster. Since the operation is so common I |
| 16709 |
think it's worth of it. |
| 16710 |
* lib/gauche/numerical.scm, src/autoloads.scm: removed round->exact |
| 16711 |
etc, for they're in extlib.stub now. |
| 16712 |
|
| 16713 |
2007-03-10 Shiro Kawai <[email protected]> |
| 16714 |
|
| 16715 |
* src/genconfig.in : Lets genconfig generate lib/gauche/config.scm, |
| 16716 |
so that gauche.config no longer needs to call gauche-config command. |
| 16717 |
* lib/gauche/config.scm: Removed from repository, for it is now |
| 16718 |
generated by src/genconfig. |
| 16719 |
|
| 16720 |
2007-03-09 Shiro Kawai <[email protected]> |
| 16721 |
|
| 16722 |
* src/Makefile.in (HOSTGOSH): reset GAUCHE_LOAD_PATH and |
| 16723 |
GAUCHE_DYNLOAD_PATH to avoid unexpected interference. |
| 16724 |
|
| 16725 |
* ext/auxsys/auxsys.scm (sys-fdset): added a convenience constructor |
| 16726 |
of <sys-fdset>. |
| 16727 |
|
| 16728 |
2007-03-06 Shiro Kawai <[email protected]> |
| 16729 |
|
| 16730 |
* lib/text/progress.scm: added. |
| 16731 |
|
| 16732 |
* src/gauche-init.scm, src/scmlib.scm: moved string-interpolate |
| 16733 |
read-ctor and <exception> definition from gauche-init.scm to |
| 16734 |
scmlib.scm. We can't move three define-macro stuff yet, since |
| 16735 |
gencomp doens't preserve macro definitions, but eventually we |
| 16736 |
want to eliminate gauche-init.scm totally. |
| 16737 |
* lib/gauche/numerical.scm, src/autoloads.scm: added |
| 16738 |
round->exact, floor->exact, ceiling->exact and truncate->exact. |
| 16739 |
|
| 16740 |
2007-03-05 Shiro Kawai <[email protected]> |
| 16741 |
|
| 16742 |
* src/main.c: Added -F<feature> option and -L<file> option. |
| 16743 |
|
| 16744 |
2007-03-04 Shiro Kawai <[email protected]> |
| 16745 |
|
| 16746 |
* src/main.c: Handle <application-exit> during execution of 'main' |
| 16747 |
procedure. |
| 16748 |
|
| 16749 |
* lib/gauche/process.scm: Added support of remove execution by |
| 16750 |
:host keyword argument. |
| 16751 |
|
| 16752 |
* ext/net/addr.c: Allow <sockaddr-in> and <sockaddr-in6> constructors |
| 16753 |
to take integer and u8vector IP address as :host initializer |
| 16754 |
keywords. |
| 16755 |
* ext/net/netlib.stub, ext/net/netaux.scm: Implements sockaddr-name |
| 16756 |
of <sockaddr-in> and <sockaddr-in6> in Scheme, since now we have |
| 16757 |
inet-address->string so they're more concise in Scheme. |
| 16758 |
* ext/net/net.c (socket-setsockopt): Accepts uniform vector as |
| 16759 |
a value. We'll phase out the use of string as a binary data |
| 16760 |
and replace them for uvectors. |
| 16761 |
|
| 16762 |
2007-03-03 Shiro Kawai <[email protected]> |
| 16763 |
|
| 16764 |
* lib/gauche/time.scm: use inexact arithmetics to avoid the timer |
| 16765 |
results being ratnums. |
| 16766 |
|
| 16767 |
* src/number.c (div_internal): fix: (/ 0 <inexact-number>) must be |
| 16768 |
the inexact zero, not the exact zero. |
| 16769 |
* src/extlib.stub: added inexact arithmetics: +. -. *. /. |
| 16770 |
|
| 16771 |
* ext/net/netaux.scm: added inet-address->string, inet->string->address |
| 16772 |
and inet-string->address! (these have replaced the provisional |
| 16773 |
address parsers in rfc.ip). |
| 16774 |
|
| 16775 |
2007-03-01 Shiro Kawai <[email protected]> |
| 16776 |
|
| 16777 |
* ext/net/net.c: cleaned up winsock-specific code using |
| 16778 |
Scm_AddCleanupHandler. Also add the feature gauche.net.ipv6 |
| 16779 |
conditionally. |
| 16780 |
|
| 16781 |
* src/core.c (Scm_AddFeature): Moved cond-features management code |
| 16782 |
here from load.c, and cleaned up API. |
| 16783 |
* src/intlib.stub (cond-features): ditto. |
| 16784 |
* lib/srfi-0.scm (cond-expand): ditto. |
| 16785 |
|
| 16786 |
* src/genstub: added 'when' directive. |
| 16787 |
|
| 16788 |
* src/char.c: added a feature, either one of gauche.ces.utf8, |
| 16789 |
gauche.ces.sjis, gauche.ces.eucjp, or gauche.ces.none, according |
| 16790 |
to the compile-time option. |
| 16791 |
* src/syslib.stub: conditionally add features: gauche.sys.sigwait, |
| 16792 |
gauche.sys.nanosleep, gauche.sys.crypt, gauche.sys.symlink, |
| 16793 |
gauche.sys.readlink, gauche.sys.select. |
| 16794 |
* ext/auxsys/*: conditionally add features: gauche.sys.realpath, |
| 16795 |
gauche.sys.getloadavg, gauche.sys.putenv, gauche.sys.setenv, |
| 16796 |
gauche.sys.unsetenv, gauche.sys.lchown. |
| 16797 |
* ext/fcntl/fcntl.c: conditionally add a feature: gauche.sys.fcntl. |
| 16798 |
* ext/termios/termiolib.stub: conditionally add features: |
| 16799 |
gauche.sys.openpty, gauche.sys.forkpty. |
| 16800 |
* ext/syslog/syslog.stub: conditionally add features: |
| 16801 |
gauche.sys.syslog, gauche.sys.setlogmask |
| 16802 |
|
| 16803 |
2007-02-26 Shiro Kawai <[email protected]> |
| 16804 |
|
| 16805 |
* src/error.c, src/vm.c, src/gauche/exception.h: Support |
| 16806 |
<application-exit> condition experimentally. |
| 16807 |
|
| 16808 |
2007-02-24 Shiro Kawai <[email protected]> |
| 16809 |
|
| 16810 |
* lib/rfc/ip.scm: added ip-parse-address and ip-parse-address! |
| 16811 |
|
| 16812 |
2007-02-21 Shiro Kawai <[email protected]> |
| 16813 |
|
| 16814 |
* ext/uvector/*: added Scm_UVectorSizeInBytes and uvector-size to |
| 16815 |
get uvector's size in bytes. Useful to treat uvectors as a |
| 16816 |
binary buffer. |
| 16817 |
* ext/binary/binary.c: changed to use above API. |
| 16818 |
|
| 16819 |
* ext/net/netlib.stub: added inet-checksum routine; the same checksum |
| 16820 |
routine is used for various protocols, so it may be worth to have |
| 16821 |
it (and it's pretty fast in C). |
| 16822 |
|
| 16823 |
* lib/rfc/ip.scm: Added experimentally. |
| 16824 |
|
| 16825 |
2007-02-20 Shiro Kawai <[email protected]> |
| 16826 |
|
| 16827 |
* lib/rfc/uri.scm (uri-encode-string, uri-decode-string): Support |
| 16828 |
:encoding keyword argument. |
| 16829 |
(*rfc2396-unreserved-char-set*, *rfc3986-unreserved-char-set*): |
| 16830 |
Export two slightly different "unreserved" char set, so that |
| 16831 |
the application can choose (or modify from) either one. |
| 16832 |
(uri-encode): Change the default :noescape value to |
| 16833 |
*rfc3986-unreserved-char-set*. Patch by Tatsuya BIZENN. |
| 16834 |
|
| 16835 |
* ext/net/*: Added socket-recv! and socket-recvfrom!. Changed |
| 16836 |
socket-send and socket-sendto to accept uniform vectors as well |
| 16837 |
as strings. These are a part of shift towards using uniform |
| 16838 |
vectors uniformly for binary data, instead of strings. |
| 16839 |
|
| 16840 |
* lib/rfc/icmp.scm: added experimentally. |
| 16841 |
|
| 16842 |
* ext/binary/*: reconsidered and changed the argument order of put-*! |
| 16843 |
to be consistent with u*vector-set!; after some coding I found that |
| 16844 |
the original one was too confusing. |
| 16845 |
|
| 16846 |
2007-02-19 Shiro Kawai <[email protected]> |
| 16847 |
|
| 16848 |
* configure.ac: added check for sys/types.h; gauche.h includes it |
| 16849 |
unconditionally, but some configure check (on some specific OS) |
| 16850 |
needs it to be included, so it is convenient to force all checks |
| 16851 |
include sys/types.h. (Specifically, sys/socket.h requires |
| 16852 |
sys/types.h on older MacOSX). |
| 16853 |
|
| 16854 |
* ext/binary/*: Made default-endian a parameter; it eliminates |
| 16855 |
need to provide endian argument in almost all cases. |
| 16856 |
The peculiar endianness of double floats in ARM processors are |
| 16857 |
supported as arm-little-endian. |
| 16858 |
Renamed read-binary-uint8 etc. to read-u8 etc. for |
| 16859 |
brevity and consistency with uniform vectors (old names are |
| 16860 |
supported for the compatibility, but deprecated). |
| 16861 |
Added support of read from and write to uniform vectors. |
| 16862 |
|
| 16863 |
2007-02-18 Shiro Kawai <[email protected]> |
| 16864 |
|
| 16865 |
* ext/uvector/*, src/read.c: added f16vector support. changed |
| 16866 |
{s,u}{8,16} unbox routine to use the new conversion API below. |
| 16867 |
|
| 16868 |
* src/gauche/number.h, src/number.c: Introduced ScmObj -> C integer |
| 16869 |
conversion routines for u8, s8, u16, and s16. |
| 16870 |
|
| 16871 |
2007-02-17 Shiro Kawai <[email protected]> |
| 16872 |
|
| 16873 |
* src/gauche/parameter.h, src/parameter.c: Cleaned up Parameter-related |
| 16874 |
API. Introduced ScmParameterLoc and Scm_DefinePrimitiveParameter |
| 16875 |
to make it easier to create and access (builtin) parameters from C. |
| 16876 |
* src/vm.c, src/gauche/vm.h, src/gauche.h, src/extlib.stub: Changed |
| 16877 |
accordingly. |
| 16878 |
|
| 16879 |
* src/number.c (Scm_HalfToDouble, Scm_DoubleToHalf): Added conversion |
| 16880 |
functions for 16-bit float (half). |
| 16881 |
* src/gauche/float.h: added. |
| 16882 |
* configure.ac, src/gauche/config.h.in: added checks for uint16_t |
| 16883 |
and long double. |
| 16884 |
* src/test-arith.c: added tests for 16-bit float support. |
| 16885 |
* ext/binary/binarylib.stub, ext/binary/binary.c, ext/binary/io.scm: |
| 16886 |
added {read|write}-binary-half-float. |
| 16887 |
|
| 16888 |
2007-02-16 Shiro Kawai <[email protected]> |
| 16889 |
|
| 16890 |
* lib/gauche/test.scm: Added an experimental feature to report |
| 16891 |
the total test result across multiple test processes. If |
| 16892 |
the environment variable GAUCHE_TEST_RECORD_FILE is defined, |
| 16893 |
gauche.test accumulates the test result stats into the named |
| 16894 |
file. |
| 16895 |
* Makefile.in, src/Makefile.in, ext/Makefile.ext.in: modified |
| 16896 |
to support the above feature. |
| 16897 |
|
| 16898 |
2007-02-13 Shiro Kawai <[email protected]> |
| 16899 |
|
| 16900 |
* src/compile.scm (iform-copy-lvar): fixed bug (compared lvars |
| 16901 |
by assoc, now by assq). Patch from Rui Ueyama. |
| 16902 |
|
| 16903 |
2007-02-12 Shiro Kawai <[email protected]> |
| 16904 |
|
| 16905 |
* src/treemap.c, src/gauche/treemap.h, lib/gauche/treeutil.scm: |
| 16906 |
Added native support of red-black tree, for it is useful to |
| 16907 |
implement efficient char-set, character attribute map, and |
| 16908 |
readtable. |
| 16909 |
* src/collection.c, src/gauche/collection.h: Besides <collection> |
| 16910 |
and <sequence>, added two more abstract classes, <dictionary> |
| 16911 |
and <ordered-dictionary>. These files implement some of |
| 16912 |
common stuff for these classes. |
| 16913 |
* src/hash.c: Now inherits <dictionary> as well. |
| 16914 |
* src/genstub: added <tree-map> as a builtin type. |
| 16915 |
* src/extlib.stub: added some tree-map native cprocs. |
| 16916 |
* src/autoloads.scm: added autoloads for gauche.treeutil. |
| 16917 |
|
| 16918 |
* lib/util/rbtree.scm: removed the previous content and changed |
| 16919 |
to use builtin tree-map. This is kept for the backward |
| 16920 |
compatibility. |
| 16921 |
|
| 16922 |
2007-02-10 Rui Ueyama <[email protected]> |
| 16923 |
|
| 16924 |
* src/char.c (charset_print): write a character at once instead of |
| 16925 |
byte-by-byte. |
| 16926 |
|
| 16927 |
* src/write.c: fixed a bug of handling multibyte character, |
| 16928 |
causing Scm_WriteLimited to raise an error. |
| 16929 |
|
| 16930 |
2007-02-09 Rui Ueyama <[email protected]> |
| 16931 |
|
| 16932 |
* test/rfc.scm: Added tests for rfc.html module. |
| 16933 |
|
| 16934 |
* lib/rfc/http.scm: Added <http-error>. Fixed a bug in the case |
| 16935 |
of HTTP request is redirected, causing malformed request-line is |
| 16936 |
sent to a server. |
| 16937 |
|
| 16938 |
2007-02-04 Shiro Kawai <[email protected]> |
| 16939 |
|
| 16940 |
* lib/www/cgi/test.scm: Renamed www.cgi-test module to www.cgi.test |
| 16941 |
module (www.cgi-test is kept for backward compatibility). |
| 16942 |
|
| 16943 |
* src/port.c, src/gauche.h (Scm_GetOutputString, |
| 16944 |
Scm_GetOutputStringUnsafe, Scm_GetRemainingInputString): API CHANGE: |
| 16945 |
New API takes string constructor flags. Compatibility macros |
| 16946 |
are provided by default; defining GAUCHE_API_0_9 makes the new |
| 16947 |
API visible. |
| 16948 |
|
| 16949 |
* src/gauche/string.h: Splitted String API. |
| 16950 |
* src/string.c, src/extlib.stub: Removed string mutating APIs: |
| 16951 |
Scm_StringSet(), Scm_StringByteSet(), Scm_StringSubstitute(), |
| 16952 |
and Scm_StringFill(). Since string bodies are immutable, |
| 16953 |
there's little advantage for providing these operations in C. |
| 16954 |
Instead, String_ReplaceBody() and Scheme-level |
| 16955 |
%string-replace-body! are added. Scheme-level string mutators |
| 16956 |
are built on top of this. |
| 16957 |
* src/scmlib.scm: Defines string-set!, string-byte-set! and |
| 16958 |
string-fill! here. Note: There's no more string-substitute!. |
| 16959 |
* libsrc/srfi-13.scm: Changed string-copy!, string-upcase!, |
| 16960 |
string-downcase!, string-titlecase!, string-reverse!, |
| 16961 |
string-map! and string-xcopy! to use %string-replace-body! |
| 16962 |
instead of string-substitute!. |
| 16963 |
|
| 16964 |
2007-02-02 Shiro Kawai <[email protected]> |
| 16965 |
|
| 16966 |
* src/core.c (Scm_GC): added an API to trigger GC. |
| 16967 |
|
| 16968 |
* src/gauche.h (SCM_NEW_ATOMIC_ARRAY): added for consistency. |
| 16969 |
|
| 16970 |
* src/gauche/symbol.h, src/gauche/gloc.h, src/gauche/keyword.h, |
| 16971 |
src/gloc.c, src/Makefile.in: Reorganized the sources. |
| 16972 |
|
| 16973 |
2007-02-01 Shiro Kawai <[email protected]> |
| 16974 |
|
| 16975 |
* ext/dbm/dbm.ac, ext/dbm/dbmconf.h.in, ext/dbm/ndbm.stub, |
| 16976 |
ext/dbm/odbm.stub: Some platform has gdbm-ndbm.h etc., and/or |
| 16977 |
requires -lgdbm_compat, for dbm/ndbm compatibility. Added |
| 16978 |
autoconf stuff to detect that. It became unnecessarily complicated |
| 16979 |
because of the defect of autoconf design (its name translation |
| 16980 |
scheme can't distinguish gdbm/ndbm.h and gdbm-ndbm.h!) |
| 16981 |
|
| 16982 |
* test/system.scm: Changed tests for mkdir/chmod/fchmod to tolerate |
| 16983 |
the case that the directory is sgid-ed. |
| 16984 |
|
| 16985 |
* lib/gauche/process.scm (run-process): Changed the API to be |
| 16986 |
consistent with other keyword-argument taking procedures. |
| 16987 |
Old API is still supported but deprecated. The reasons of |
| 16988 |
the change are (1) STk compatibility is much less important |
| 16989 |
now, and (2) it's easier to write code that calls run-process |
| 16990 |
if it takes keyword arguments canonically. |
| 16991 |
|
| 16992 |
2007-01-30 Rui Ueyama <[email protected]> |
| 16993 |
|
| 16994 |
* src/read.c (read_internal, process_sharp_comma), src/gauche.h: |
| 16995 |
avoid evaluating SRFI-10 sharp-comma expression within SRFI-62 |
| 16996 |
S-expression comment. |
| 16997 |
|
| 16998 |
2007-01-21 Shiro Kawai <[email protected]> |
| 16999 |
|
| 17000 |
* lib/gauche/package/compile.scm |
| 17001 |
(gauche-package-link, gauche-package-compile): let them recognize |
| 17002 |
extra keyword args, for such keywords can be passed via |
| 17003 |
gauche-package-compile-and-link. |
| 17004 |
|
| 17005 |
* lib/www/cgi-test.scm (call-with-cgi-script): added :on-abnormal-exit |
| 17006 |
:ignore to call-with-process-io. (Note: the proper fix may be to |
| 17007 |
mask SIGPIPE when running the child process instead of ignoring |
| 17008 |
the error.) |
| 17009 |
|
| 17010 |
2007-01-21 Rui Ueyama <[email protected]> |
| 17011 |
|
| 17012 |
* lib/gauche/common-macros.scm (let-keywords): added let-keywords. |
| 17013 |
* src/autoloads.scm, test/procedure.scm: changed accordingly. |
| 17014 |
|
| 17015 |
* lib/gauche/common-macros.scm (let-keywords*): issue a warning if |
| 17016 |
given argument list contains unknown keyword. It will be |
| 17017 |
changed to raise an error soon. |
| 17018 |
|
| 17019 |
* src/genstub (define-cproc etc.): added check for unknown keyword |
| 17020 |
parameter. A new keyword argument, &allow-other-keys is |
| 17021 |
introduced to disables the checking. |
| 17022 |
|
| 17023 |
* ext/charconv/convaux.scm, ext/net/netaux.scm, |
| 17024 |
ext/vport/vport.scm, lib/dbi.scm, lib/dbm.scm, |
| 17025 |
lib/file/filter.scm, lib/gauche/libutil.scm, |
| 17026 |
lib/gauche/package.scm, lib/gauche/portutil.scm, |
| 17027 |
lib/gauche/process.scm, lib/gauche/test.scm, |
| 17028 |
lib/gauche/package/build.scm, lib/gauche/package/compile.scm, |
| 17029 |
lib/gauche/package/fetch.scm, lib/gauche/package/util.scm, |
| 17030 |
lib/gauche/vm/profiler.scm, lib/net/client.scm, lib/rfc/822.scm, |
| 17031 |
lib/rfc/hmac.scm, lib/rfc/telnet.scm, lib/rfc/uri.scm, |
| 17032 |
lib/text/diff.scm, lib/text/html-lite.scm, , lib/text/tr.scm, |
| 17033 |
lib/www/cgi-test.scm, lib/www/cgi.scm, libsrc/file/util.scm, |
| 17034 |
libsrc/gauche/collection.scm, libsrc/gauche/sequence.scm: |
| 17035 |
changed to use let-keywords instead of let-keywords* or |
| 17036 |
get-keyword. |
| 17037 |
|
| 17038 |
* ext/threads/test.scm: typo fix. |
| 17039 |
|
| 17040 |
* ext/uvector/uvseq.scm: call-with-iterator for uniform vector |
| 17041 |
classes didn't recognize `:size' keyword. |
| 17042 |
|
| 17043 |
* lib/binary/pack.scm: removed unused variable `keys'. added |
| 17044 |
keyword check. |
| 17045 |
|
| 17046 |
2007-01-21 Shiro Kawai <[email protected]> |
| 17047 |
|
| 17048 |
* lib/gauche/process.scm: added a mechanism to handle child process' |
| 17049 |
abnormal exit status via <process-abnormal-exit> condition. |
| 17050 |
This changes the default behavior of process port procedures, |
| 17051 |
which used to ignore nonzero exit status, now raises an error. |
| 17052 |
To get the old behavior, add ':on-abnormal-exit :ignore' to |
| 17053 |
the call of those procedures. |
| 17054 |
|
| 17055 |
2007-01-18 Shiro Kawai <[email protected]> |
| 17056 |
|
| 17057 |
* ext/charconv/convaux.scm, ext/dbm/gdbm.scm, ext/net/netaux.scm, |
| 17058 |
ext/uvector/uvgen.scm, lib/dbm.scm, lib/file/filter.scm, |
| 17059 |
lib/gauche/cgen.scm, lib/gauche/interpolate.scm, |
| 17060 |
lib/gauche/libutil.scm, lib/gauche/parseopt.scm, |
| 17061 |
lib/gauche/process.scm, lib/gauche/redefutil.scm, |
| 17062 |
lib/gauche/test.scm, lib/gauche/interactive/info.scm, |
| 17063 |
lib/gauche/package/fetch.scm, lib/rfc/mime.scm, |
| 17064 |
lib/text/gettext.scm, lib/www/cgi.scm, libsrc/file/util.scm, |
| 17065 |
src/compile.scm: Replaced 'with-error-handler' for 'guard' or |
| 17066 |
'unwind-protect'. There are some left in src/scmlib.scm, which |
| 17067 |
should be replaced after the next release, since 0.8.9 doesn't |
| 17068 |
know about unwind-protect yet so it wouln't build the CVS HEAD |
| 17069 |
if we replace them now. |
| 17070 |
|
| 17071 |
* lib/rfc/ftp.scm: Added. Based on the contribution from |
| 17072 |
OOHASHI Daichi. |
| 17073 |
|
| 17074 |
2007-01-17 Shiro Kawai <[email protected]> |
| 17075 |
|
| 17076 |
* lib/gauche/common-macros.scm (unwind-protect): added unwind-protect, |
| 17077 |
finally. |
| 17078 |
* src/autoload.scm: changed accordingly. |
| 17079 |
|
| 17080 |
* release 0.8.9 |
| 17081 |
|
| 17082 |
2007-01-16 Shiro Kawai <[email protected]> |
| 17083 |
|
| 17084 |
* ext/net/net.ac: on mingw, we need to inlcude <windows.h> to check |
| 17085 |
struct sockaddr_storage. |
| 17086 |
|
| 17087 |
* ext/srfi/srfi-19-lib.scm: make julian-day calculation in inexact |
| 17088 |
numbers to avoid the huge overhead of rational arithmetic. |
| 17089 |
* config.guess, config.sub: updated to the newer version. |
| 17090 |
|
| 17091 |
2007-01-15 Shiro Kawai <[email protected]> |
| 17092 |
|
| 17093 |
* src/gauche.h: reintroduced the compatibility macros for Scm_Eval, |
| 17094 |
Scm_EvalCString and Scm_Apply, since there are extension packages |
| 17095 |
that need more time to migrate. By default, these are defined |
| 17096 |
to Scm_EvalRec etc. If GAUCHE_API_0_8_8 is defined, these becomes |
| 17097 |
the new APIs. |
| 17098 |
|
| 17099 |
2007-01-14 Shiro Kawai <[email protected]> |
| 17100 |
|
| 17101 |
* src/signal.c (Scm_SigWait): Added a wrapper of sigwait to ensure |
| 17102 |
removing signal handlers for the signals to wait. The behavior |
| 17103 |
of sigwait with signal handlers is underined in the spec, and |
| 17104 |
it causes unpleasant effect on some systems. We also need to ensure |
| 17105 |
removing signals from the passed masks that are not under control |
| 17106 |
of Gauche. |
| 17107 |
(sig_handle): treat signalPendingLimit == 0 case separately to avoid |
| 17108 |
potential overflow of sigcounts. |
| 17109 |
|
| 17110 |
2007-01-13 Shiro Kawai <[email protected]> |
| 17111 |
|
| 17112 |
* src/system.c (Scm_GlobDirectory): dropped SCM_SYSCALL around |
| 17113 |
glob(), since it doesn't necessarily return a negative value |
| 17114 |
on error, and it doesn't necessarily set errno. Well, eventually |
| 17115 |
this function should go away, but for the time being this fix |
| 17116 |
may be effective. |
| 17117 |
|
| 17118 |
* gc/darwin_stop_world.c (GC_stop_world): applied a patch posted |
| 17119 |
to gc-list by Allan Hsu that prevents SEGV on OSX. |
| 17120 |
|
| 17121 |
* src/class.c (find_core_allocator): added more precise check for |
| 17122 |
inheritance; the previous code incorrectly rejected a valid |
| 17123 |
inheritance in which more than one BASE class are included but |
| 17124 |
they form a single inheritance. The previous code also incorrectly |
| 17125 |
accepted a class that inherits from BUILTIN class. |
| 17126 |
|
| 17127 |
2007-01-11 Shiro Kawai <[email protected]> |
| 17128 |
|
| 17129 |
* src/syslib.stub (sys-fchmod): added. Patch from UEYAMA Rui. |
| 17130 |
|
| 17131 |
* lib/slib.scm.in: adapted to slib3a4 changes. Based on a patch |
| 17132 |
by YOKOTA Hiroshi. There're some hacks to make it work with |
| 17133 |
both old and new slibs. |
| 17134 |
|
| 17135 |
2007-01-10 Shiro Kawai <[email protected]> |
| 17136 |
|
| 17137 |
* src/signal.c: |
| 17138 |
(Scm_SetSignalHandler): set up C-level signal handler so that all |
| 17139 |
signals are blocked during its execution, in order to avoid race |
| 17140 |
condition. |
| 17141 |
(sig_handle): interpret signalPendingLimit==0 as no limit. |
| 17142 |
|
| 17143 |
2007-01-09 Shiro Kawai <[email protected]> |
| 17144 |
|
| 17145 |
* src/signal.c, src/gauche/vm.h: changed signal handling; we no longer |
| 17146 |
queue the signals; instead the C-level signal handler just counts |
| 17147 |
what signals it received. The order of signal arrival isn't |
| 17148 |
preserved, but it's ok for most Unixes doesn't guarantee that |
| 17149 |
anyway. The upper limit of the # of occurrences of the same |
| 17150 |
signal before VM handles them can be configured by |
| 17151 |
set-signal-pending-limit; if the signals excceds this limit, |
| 17152 |
Scm_Abort() is called. |
| 17153 |
* src/syslib.stub (set-signal-pending-limit, get-signal-pending-limit): |
| 17154 |
added. |
| 17155 |
|
| 17156 |
2007-01-09 Rui Ueyama <[email protected]> |
| 17157 |
|
| 17158 |
* configure.ac, src/syslib.stub, test/system.scm, |
| 17159 |
src/gauche/config.h.in : added sys-sigwait |
| 17160 |
|
| 17161 |
2007-01-08 Shiro Kawai <[email protected]> |
| 17162 |
|
| 17163 |
* Makefile.in, src/Makefile.in, ...: added datarootdir = @datarootdir@ |
| 17164 |
definition for autoconf 2.60 and after. It works for both pre-2.60 |
| 17165 |
and 2.60; pre-2.60 leaves @datarootdir@ as is, but no other place |
| 17166 |
refers $(datarootdir) so it is ok; for 2.60, @datadir@ is replaced |
| 17167 |
for reference of $(datarootdir), so it also works. |
| 17168 |
|
| 17169 |
2007-01-07 Shiro Kawai <[email protected]> |
| 17170 |
|
| 17171 |
* lib/gauche/listener.scm (listener-read-handler): fixed a bug |
| 17172 |
that exits the listener when an error is signaleld during |
| 17173 |
evaluation. This fix is temporary; more complete fix is required. |
| 17174 |
|
| 17175 |
* src/mingw-exify : Adapted to Scm_Apply API change. |
| 17176 |
|
| 17177 |
* src/signal.c (Scm_SetSignalHandler, Scm_SigCheck): Added "mask" |
| 17178 |
argument to Scm_SetSignalHandler so that one can ensure a signal |
| 17179 |
handler is executed while certain signals are blocked. |
| 17180 |
Also added Scm_GetSignalHandlerMask(). |
| 17181 |
* src/syslib.stub (set-signal-handler!, get-signal-handler-mask): |
| 17182 |
changed accordingly. |
| 17183 |
|
| 17184 |
* src/scmlib.scm (sys-sigset): added the convenience function. |
| 17185 |
|
| 17186 |
2007-01-06 Shiro Kawai <[email protected]> |
| 17187 |
|
| 17188 |
* configure.ac: Removed warning of defaulting encoding to utf-8. |
| 17189 |
0.8.9_pre1. |
| 17190 |
|
| 17191 |
2007-01-03 Shiro Kawai <[email protected]> |
| 17192 |
|
| 17193 |
* src/number.c (Scm_Mul): fixed a silly bug in the short cut paths, |
| 17194 |
which resulted (* +i 0.0) => +i etc. |
| 17195 |
|
| 17196 |
2006-12-26 Shiro Kawai <[email protected]> |
| 17197 |
|
| 17198 |
* lib/gauche/process.scm (%run-process): Fixed a leak bug that didn't |
| 17199 |
delete a process from the active process list if :wait #t is |
| 17200 |
given. Thanks for Tomas Stanek to point this out. |
| 17201 |
|
| 17202 |
2006-12-21 Shiro Kawai <[email protected]> |
| 17203 |
|
| 17204 |
* lib/dbi.scm (dbi-execute-query): fixed a wrong way of passing |
| 17205 |
:pass-through arg to dbi-do. This bug only surfaced if the |
| 17206 |
app was using compatibility APIs. |
| 17207 |
|
| 17208 |
2006-12-09 Shiro Kawai <[email protected]> |
| 17209 |
|
| 17210 |
* src/vm.c (run_loop): fix tail-recursive APPLY. |
| 17211 |
|
| 17212 |
* src/compile.scm (pass2/$LREF): Added a check for circle in |
| 17213 |
initialization of local variables introduced by letrec. It |
| 17214 |
have caused an infinite loop in the compiler. Patch from |
| 17215 |
Rui Ueyama. |
| 17216 |
|
| 17217 |
2006-12-08 Shiro Kawai <[email protected]> |
| 17218 |
|
| 17219 |
* src/hash.c (Scm_EqvHash): didn't considered RATNUMs. |
| 17220 |
|
| 17221 |
2006-12-06 Shiro Kawai <[email protected]> |
| 17222 |
|
| 17223 |
* vm.c: removed obsoleted experimental code (SMALL_REGS switch and |
| 17224 |
SAVE_REGS/RESTORE_REGS stuff). |
| 17225 |
|
| 17226 |
2006-11-30 Shiro Kawai <[email protected]> |
| 17227 |
|
| 17228 |
* src/string.c (get_string_from_body), src/gauche.h: Avoid accessing |
| 17229 |
out-of-bound element of the string content to check whether the |
| 17230 |
string is NUL-terminated. Instead, we introduced a new flag |
| 17231 |
SCM_STRING_TERMINATED to track whether the string content is |
| 17232 |
NUL-terminated. |
| 17233 |
Also we deprecate SCM_MAKSTR_* flags, and consolidated them to |
| 17234 |
SCM_STRING_* flags. |
| 17235 |
* various files: Replaced SCM_MAKSTR_* flags for SCM_STRING_* flags. |
| 17236 |
|
| 17237 |
2006-11-27 Shiro Kawai <[email protected]> |
| 17238 |
|
| 17239 |
* src/number.c (Scm_InexactToExact): Rule out NaN and Inf before |
| 17240 |
applying modf. |
| 17241 |
|
| 17242 |
2006-11-26 Shiro Kawai <[email protected]> |
| 17243 |
|
| 17244 |
* src/intlib.stub (global-call-type): Experimentally added a feature |
| 17245 |
to record modules used during expansion, to be used by test-module |
| 17246 |
later. |
| 17247 |
|
| 17248 |
2006-11-23 Shiro Kawai <[email protected]> |
| 17249 |
|
| 17250 |
* src/regexp.c (Scm_RegMatchStart etc.): Optimized counting length |
| 17251 |
of submatch strings. Patch from Rui Ueyama. |
| 17252 |
|
| 17253 |
2006-11-20 Shiro Kawai <[email protected]> |
| 17254 |
|
| 17255 |
* src/class.c (Scm__InitClass): Added missing initialization of |
| 17256 |
<rational> class. |
| 17257 |
|
| 17258 |
2006-11-19 Shiro Kawai <[email protected]> |
| 17259 |
|
| 17260 |
* src/string.c (substring): avoid counting characters when the end |
| 17261 |
of the substring is equal to the end of the source string. |
| 17262 |
Patch from Rui Ueyama. |
| 17263 |
|
| 17264 |
* src/vm.c (Scm_NewVM): a newly created VM didn't inherit current |
| 17265 |
ports from the prototype. This became visible when a new thread |
| 17266 |
was created when current ports were bound to ports other than |
| 17267 |
the standard ones. |
| 17268 |
|
| 17269 |
2006-11-17 Shiro Kawai <[email protected]> |
| 17270 |
|
| 17271 |
* src/main.c (main): the change to use the new Scm_Apply was |
| 17272 |
incorrect; (1) it returns exit_code == 0 when 'main' returns |
| 17273 |
non-integer, and (2) it exits silently when non-captured |
| 17274 |
error occurs. |
| 17275 |
|
| 17276 |
* lib/gauche/condutil.scm (define-condition-type): automatically add |
| 17277 |
:init-keyword to slots, for the convenience. Based on the patch |
| 17278 |
from Rui Ueyama. |
| 17279 |
|
| 17280 |
2006-11-15 Shiro Kawai <[email protected]> |
| 17281 |
|
| 17282 |
* src/class.c (Scm__InternalClassName): make sure to return a string, |
| 17283 |
for some code in error.c assumes a string and SEGVs otherwise. |
| 17284 |
|
| 17285 |
2006-11-13 Shiro Kawai <[email protected]> |
| 17286 |
|
| 17287 |
* src/vm.c, src/gauche.h: removed compatibility stuff about |
| 17288 |
Scm_Eval etc. |
| 17289 |
|
| 17290 |
2006-11-12 Shiro Kawai <[email protected]> |
| 17291 |
|
| 17292 |
* src/vm.c (Scm_EvalCStringRec): typo fix (was: Scm_EvalRecCString). |
| 17293 |
|
| 17294 |
* src/gauche.h, src/gauche/vector.h: splitted vector API header. |
| 17295 |
|
| 17296 |
* src/compile.scm (case, cond): Applied srfi-61/srfi-87 patch from |
| 17297 |
Rui Ueyama. |
| 17298 |
|
| 17299 |
2006-11-11 Shiro Kawai <[email protected]> |
| 17300 |
|
| 17301 |
* release 0.8.8 |
| 17302 |
|
| 17303 |
2006-11-10 Shiro Kawai <[email protected]> |
| 17304 |
|
| 17305 |
* configure.ac, src/gauche/config.h.in (sunmath): Solaris's compiler |
| 17306 |
provides isinf() in a separate header/library. Added checks for it. |
| 17307 |
|
| 17308 |
* src/class.c (unlock_class_redefinition): reset |
| 17309 |
class_redefition_lock.owner to NULL as well, otherwise the |
| 17310 |
redefinition lock keeps other threads waiting until the lock holding |
| 17311 |
thread terminates. |
| 17312 |
|
| 17313 |
* src/number.c (SCM_IS_INF): Provide an alternative function when |
| 17314 |
the system does not provide isinf(). We used to inline the check, |
| 17315 |
but some version of gcc appears to assume incorrectly the condition |
| 17316 |
would never be satisfied and optimizes it away. (It happened on |
| 17317 |
gcc-3.3.2/Solaris 5.9/i86pc). |
| 17318 |
|
| 17319 |
* lib/gauche/logger.scm: We can't determine lock policy statically, |
| 17320 |
since the lock file may be placed on a filesystem that doesn't |
| 17321 |
support fcntl lock. So I changed the lock policy to be dynamically |
| 17322 |
determined at the first access to the file-based log drain. |
| 17323 |
|
| 17324 |
2006-11-09 Shiro Kawai <[email protected]> |
| 17325 |
|
| 17326 |
* INSTALL.in, doc/extract: moved away from escm to generate INSTALL |
| 17327 |
and INSTALL.eucjp, since it is awkward for escm to handle eucjp doc |
| 17328 |
with utf-8 gauche. Instead I use doc/extract. |
| 17329 |
|
| 17330 |
* src/vm.c (Scm_VMDefaultExceptionHandler), |
| 17331 |
src/gauche/vm.h (ScmEscapePoint): added a flag in ScmEscapePoint |
| 17332 |
to specify whether the dynamic handlers should be rewind before |
| 17333 |
or after the error handler is invoked. Legacy with-error-handler |
| 17334 |
assumes they are invoked after the error handler. SRFI-34's guard |
| 17335 |
requires the handler clauses are invoked after the dynamic env |
| 17336 |
is rewound. It may be better to change with-error-handler semantics, |
| 17337 |
but for now, we go with this flag. Do not count on this flag |
| 17338 |
kept in future. |
| 17339 |
* src/exclib.stub (with-error-handler): added a keyword arg to |
| 17340 |
set the ScmEscapePoint flag mentioned above. This is a temporary |
| 17341 |
solution; applications should not cound on this feature. |
| 17342 |
* lib/gauche/common-macros.scm (guard): fixed guard semantics |
| 17343 |
to conform srfi-34, using the above feature. |
| 17344 |
|
| 17345 |
|
| 17346 |
2006-11-08 Shiro Kawai <[email protected]> |
| 17347 |
|
| 17348 |
* ext/sxml/sxml-tools.scm.in: Avoid mutual dependency between |
| 17349 |
sxml.sxpath and sxml.tools by autoloads. |
| 17350 |
|
| 17351 |
* configre.ac, src/gauche/config.h.in, src/syslib.stub (HAVE_CRYPT_H): |
| 17352 |
Adds crypt.h if exists, to suppress warnings. Patch from |
| 17353 |
David Mosberger-Tang and YAEGASHI Takeshi. |
| 17354 |
|
| 17355 |
* ext/dbm/gdbm.stub (gdbm-open): improved error message. |
| 17356 |
|
| 17357 |
* src/read.c (ref_val): added missing type declaration of the argument, |
| 17358 |
which became a problem on 64bit architecture. Patch from |
| 17359 |
David Mosberger-Tang and YAEGASHI Takeshi. |
| 17360 |
|
| 17361 |
* lib/gauche/test.scm (closure-grefs): fixed to trace code in the |
| 17362 |
internal closures. Thanks to Rui Ueyama. |
| 17363 |
* ext/srfi/srfi-19-lib.scm, ext/sxml/sxml-sxpath.scm.in, |
| 17364 |
ext/sxml/sxml-tools.scm.in, ext/sxml/sxml/adaptor-scm, |
| 17365 |
lib/text/gettext.scm, lib/util/stream.scm: fixed the undefined |
| 17366 |
global reference found by the above patch. |
| 17367 |
|
| 17368 |
* gc/darwin_stop_world.c, gc/include/private/gc_priv.h, |
| 17369 |
gc/os_dep.c: Applied Allan Hsu's GC patch for Xcode-2.4/OSX. |
| 17370 |
|
| 17371 |
* gc/*: bumped to Boehm GC 6.8. |
| 17372 |
|
| 17373 |
2006-11-07 Shiro Kawai <[email protected]> |
| 17374 |
|
| 17375 |
* src/gauche.h: define SCM_ILLEGAL_CHAR_* enums to specify illegal |
| 17376 |
character handling mode. |
| 17377 |
|
| 17378 |
* src/string.c, src/extlib.stub: add 'handling' argument to |
| 17379 |
string-incomplete->complete, so that the caller can ensure to |
| 17380 |
obtain a complete string by omitting or replacing incomplete |
| 17381 |
chars in the original string. The linear-update versions, |
| 17382 |
string-complete->incomplete! and string-incomplete->complete!, |
| 17383 |
are obsoleted (the latter is kept for backward compatibility, |
| 17384 |
but will go away soon). |
| 17385 |
|
| 17386 |
* src/gauche/char_utf_8.h (scm_CharUtf8Getc): more strict error |
| 17387 |
checking. |
| 17388 |
|
| 17389 |
2006-11-05 Shiro Kawai <[email protected]> |
| 17390 |
|
| 17391 |
* src/gauche.h (ScmModule): added a field to track module dependency. |
| 17392 |
|
| 17393 |
* src/error.c (Scm_TypeError): added a convenience API to report |
| 17394 |
argument type error. |
| 17395 |
|
| 17396 |
2006-11-04 Shiro Kawai <[email protected]> |
| 17397 |
|
| 17398 |
* src/gauche/port.h (PORT_SAFE_CALL): Remove bogus check of lockOwner. |
| 17399 |
|
| 17400 |
* src/class.c (lock_class_redefinition): There was an off-by-one |
| 17401 |
error in the recursive lock count. |
| 17402 |
|
| 17403 |
2006-11-02 Shiro Kawai <[email protected]> |
| 17404 |
|
| 17405 |
* gauche.h, vm.c (Scm_Eval etc.): changed my mind about the names |
| 17406 |
of the new Eval API. If GAUCHE_API_0_8_8 is defined before including |
| 17407 |
gauche.h, Scm_Eval, Scm_EvalCString and Scm_Apply have the new |
| 17408 |
APIs (the old ones are accessible as Scm_EvalRec etc.). If |
| 17409 |
GAUCHE_API_0_8_8 is not defined, Scm_Eval, Scm_EvalCString |
| 17410 |
and Scm_Apply have the original API (and Scm_EvalRec etc., are |
| 17411 |
also available). This helps the transition, while maintaining |
| 17412 |
compatibility and avoid further extra names like SafeEval. |
| 17413 |
NB: I'm still not sure about what Scm_Eval etc. should return. |
| 17414 |
May change my mind again. |
| 17415 |
* various files: updated accordingly. |
| 17416 |
|
| 17417 |
2006-10-29 Shiro Kawai <[email protected]> |
| 17418 |
|
| 17419 |
* src/vm.c (Scm_SafeEval etc.): The previous version was broken. |
| 17420 |
Needed to set up error handler properly. |
| 17421 |
|
| 17422 |
2006-10-28 Shiro Kawai <[email protected]> |
| 17423 |
|
| 17424 |
* src/gauche.h, src/vm.c (Scm_SafeEval): Added convenient and robust |
| 17425 |
API to call Scheme program casually from C code. Scm_Safe* APIs |
| 17426 |
catch errors and returns the info in the packet. They also handle |
| 17427 |
multiple values. |
| 17428 |
The existing Scm_Eval and Scm_Apply are renamed to Scm_EvalRec |
| 17429 |
and Scm_ApplyRec, for they call VM recursively. The old names |
| 17430 |
are #defined for backward compatibility. The plan is to give |
| 17431 |
Scm_Eval etc. to Scm_SafeEval eventually. The reason is that |
| 17432 |
Scm_EvalRec etc. are not really for end-user programming, since |
| 17433 |
handling errors are still cumbersome. Scm_SafeEval is more |
| 17434 |
intuitive that it (almost) always returns, error or no error. |
| 17435 |
So Scm_SafeEval is more suitable to get the simpler name, Scm_Eval. |
| 17436 |
|
| 17437 |
2006-10-21 Shiro Kawai <[email protected]> |
| 17438 |
|
| 17439 |
* ext/net/test.scm: On some systems IPv6 loopback host name isn't |
| 17440 |
"localhost" by default, so we apply some heuristics. Patch from |
| 17441 |
Rui Ueyama. |
| 17442 |
|
| 17443 |
* src/number.c (read_real): some fixes to handle divide-by-zero cases. |
| 17444 |
Patch from OOHASHI Daichi. |
| 17445 |
|
| 17446 |
* lib/util/rbtree.scm, test/util.scm, lib/Makefile.in: |
| 17447 |
added util.rbtree, contributed from Rui Ueyama. |
| 17448 |
|
| 17449 |
2006-10-20 Shiro Kawai <[email protected]> |
| 17450 |
|
| 17451 |
* libsrc/gauche/collection.scm: original 'fold' is now built-in |
| 17452 |
instead of srfi-1. |
| 17453 |
* libsrc/gauche/sequence.scm (fold-right): added generic version |
| 17454 |
of fold-right. It is sequence's operation, since collections |
| 17455 |
don't care about the order of elements. |
| 17456 |
|
| 17457 |
2006-10-18 Shiro Kawai <[email protected]> |
| 17458 |
|
| 17459 |
* src/port.c (Scm_FlushAllPorts): fixed MT-hazard in Scm_FlushAllPorts. |
| 17460 |
|
| 17461 |
* src/number.c (read_real): Fixed the behavior when too big or |
| 17462 |
too small exponent is given. Also fixed the handling of explicitly |
| 17463 |
exact fractional numbers (e.g. #e12.34e3 or #e4e-2). |
| 17464 |
|
| 17465 |
2006-10-16 Shiro Kawai <[email protected]> |
| 17466 |
|
| 17467 |
* lib/util/list.scm (cond-list): extended the syntax to allow |
| 17468 |
splicing, using '@' modifier. |
| 17469 |
* lib/util/trie.scm (make-trie): revised using new cond-list syntax. |
| 17470 |
|
| 17471 |
2006-10-15 Shiro Kawai <[email protected]> |
| 17472 |
|
| 17473 |
* lib/util/trie.scm, lib/Makefile.in, test/util.scm: Added util.trie |
| 17474 |
module, contributed by OOHASHI Daichi and other people on WiLiKi. |
| 17475 |
|
| 17476 |
2006-10-14 Shiro Kawai <[email protected]> |
| 17477 |
|
| 17478 |
* src/extlib.stub (boolean): added boolean procedure, which is |
| 17479 |
just (compose not not), but convenient if you want to guarantee |
| 17480 |
the returned value is boolean. |
| 17481 |
|
| 17482 |
2006-10-07 Shiro Kawai <[email protected]> |
| 17483 |
|
| 17484 |
* ext/threads/threads.h: |
| 17485 |
ScmConditionVariable and ScmMutexRec should have SCM_INSTANCE_HEADER, |
| 17486 |
for they are BASE class (I'm not sure whether I should let them |
| 17487 |
inheritable or not, so I may revert this and change them to |
| 17488 |
BUILTIN class in future; but for now, let's maintain the |
| 17489 |
consistency.) |
| 17490 |
|
| 17491 |
* src/write.c (Scm_WriteCircular, Scm_WriteLimited): |
| 17492 |
Fix for write/ss is called during walk pass of outer write/ss. |
| 17493 |
Patch from Rui Ueyama. |
| 17494 |
|
| 17495 |
* ext/charconv/convaux.scm (%open-{input|output}-file/conv): |
| 17496 |
Avoid creating conversion ports when it is unnecessary. |
| 17497 |
Patch from Tatsuya BIZENN. |
| 17498 |
|
| 17499 |
* configure.ac: bumped to 0.8.8_pre1. |
| 17500 |
|
| 17501 |
* ext/sxml/src/serializer.scm, ext/sxml/sxml-serializer.scm.in, |
| 17502 |
ext/sxml/Makefile.in, doc/modutil.texi: |
| 17503 |
Added sxml.serializer module, a customizable SXML serializer. |
| 17504 |
Original code is by Dmitry Lizorkin. Ported to Gauche and |
| 17505 |
documented by Leonardo Boiko. |
| 17506 |
|
| 17507 |
* ext/sxml/test.scm: |
| 17508 |
Added simple tests for sxml.serializer |
| 17509 |
|
| 17510 |
2006-10-06 Shiro Kawai <[email protected]> |
| 17511 |
|
| 17512 |
* src/number.c (Scm_Div, Scm_DivInexact): provide backward-compatible |
| 17513 |
version of division, Scm_DivInexact, which returns flonum when |
| 17514 |
arguments are exact integers and the result isn't a whole number. |
| 17515 |
* src/extlib.stub (inexact-/): make the backward-compatible version |
| 17516 |
of division as 'inexact-/'. |
| 17517 |
* lib/compat/norational.scm: when used, redefines '/' by 'inexact-/', |
| 17518 |
so that the existing code that counts on the old behavior can |
| 17519 |
work as before. |
| 17520 |
|
| 17521 |
2006-10-05 Shiro Kawai <[email protected]> |
| 17522 |
|
| 17523 |
* src/port.c (register_buffered_port): Run global GC when the port |
| 17524 |
vector gets full, so that we may be able to clean up some entries |
| 17525 |
for garbaged ports. I also found unregister_buffered_port wasn't |
| 17526 |
necessary. See the comment titled "Tracking buffered ports" in |
| 17527 |
the source. |
| 17528 |
The original fix is provided from Michal Maruška. |
| 17529 |
|
| 17530 |
2006-10-01 Shiro Kawai <[email protected]> |
| 17531 |
|
| 17532 |
* ext/srfi/srfi-19-lib.scm (date->string): allow '@' option in |
| 17533 |
the format directive (e.g. ~@b) to gurantee the 'C' locale is |
| 17534 |
used. Since srfi-19 only provides locale-sensitive directives |
| 17535 |
for month and day-of-week names, without such extention you |
| 17536 |
cannot write a library whose output isn't affected with locale |
| 17537 |
settings. |
| 17538 |
|
| 17539 |
2006-09-30 Shiro Kawai <[email protected]> |
| 17540 |
|
| 17541 |
* lib/rfc/cookie.scm (construct-cookie-string): accepts srfi-19 |
| 17542 |
<time> and <date> as well as number and string for :expires |
| 17543 |
argument. |
| 17544 |
|
| 17545 |
* src/write.c (Scm_Vprintf): fixed lone '%' in the printf format |
| 17546 |
string. |
| 17547 |
|
| 17548 |
2006-09-28 Shiro Kawai <[email protected]> |
| 17549 |
|
| 17550 |
* libsrc/util/match.scm: fixed a bug that multiple values were not |
| 17551 |
handled properly under the existence of failure continuations. |
| 17552 |
Failure handler was expanded into (k <body>), which should be |
| 17553 |
(call-with-values (lambda () <body>) k). |
| 17554 |
|
| 17555 |
2006-09-25 Shiro Kawai <[email protected]> |
| 17556 |
|
| 17557 |
* src/system.c (Scm_YieldCPU): typo fix. |
| 17558 |
|
| 17559 |
2006-08-27 Shiro Kawai <[email protected]> |
| 17560 |
|
| 17561 |
* libsrc/file/util.scm: fixed directory-fold to make lister returns |
| 17562 |
new seed value as well as directory contents, so that it can process |
| 17563 |
directory pathnames. |
| 17564 |
|
| 17565 |
2006-08-03 Shiro Kawai <[email protected]> |
| 17566 |
|
| 17567 |
* lib/rfc/822.scm (rfc822-date->date): fixed treatment of sub-hour |
| 17568 |
timezone value. |
| 17569 |
|
| 17570 |
2006-07-25 Shiro Kawai <[email protected]> |
| 17571 |
|
| 17572 |
* src/gauche/system.h, src/gauche.h : splitted system-related API |
| 17573 |
declarations to gauche/system.h. |
| 17574 |
|
| 17575 |
2006-07-22 Shiro Kawai <[email protected]> |
| 17576 |
|
| 17577 |
* src/gauche/port.h (PORT_LOCK, PORT_UNLOCK, ScmPort): fixed a race |
| 17578 |
condition caused from PORT_UNLOCK having not been an atomic |
| 17579 |
operation (setting lockOwner, then calling cond_signal). Now |
| 17580 |
we drop using condition variable, which also decreases overhead. |
| 17581 |
See the comment for more detailed discussion. |
| 17582 |
|
| 17583 |
* src/system.c (Scm_YieldCPU): added an API to yield CPU. |
| 17584 |
|
| 17585 |
* ext/thread/thread.c, ext/thread/thrlib.stub (thread-yield!): |
| 17586 |
changed to use Scm_YieldCPU. Dropped Scm_ThreadYield. |
| 17587 |
|
| 17588 |
2006-07-18 Shiro Kawai <[email protected]> |
| 17589 |
|
| 17590 |
* ext/charconv/charconv.c (conv_input_closer): Fixed file descriptor |
| 17591 |
leak by adding code to close the source port if the input port |
| 17592 |
owns it. Tracked down by Tatsuya BIZENN. |
| 17593 |
|
| 17594 |
* lib/gauche/vm/profiler.scm (show-stats): properly round the result |
| 17595 |
of division so that the result won't be shown as a rational number. |
| 17596 |
|
| 17597 |
2006-07-05 Shiro Kawai <[email protected]> |
| 17598 |
|
| 17599 |
* src/gauche.h, src/gauche/port.h: splitted public port API |
| 17600 |
into port.h. |
| 17601 |
|
| 17602 |
2006-07-04 Shiro Kawai <[email protected]> |
| 17603 |
|
| 17604 |
* ext/net/net.ac, ext/net/gauche/net.h (struct sockaddr_storage): added |
| 17605 |
check for struct sockaddr_storage and provides an alternative |
| 17606 |
if the system doesn't have it. Also rewrote the check of |
| 17607 |
SIN_LEN etc by AC_CHECK_MEMBERS. |
| 17608 |
* ext/net/net.c (Scm_SocketRecvFrom): fixed a bug that didn't |
| 17609 |
retrieve sender's sockaddr correctly. Also applied some cosmetic |
| 17610 |
fixes by Tatsuya BIZENN. |
| 17611 |
|
| 17612 |
* configure.ac, src/gauche/config.h.in, src/system.c: use |
| 17613 |
AC_CHECK_MEMBERS to check struct passwd/group members such |
| 17614 |
as PW_GECOS. |
| 17615 |
|
| 17616 |
* ext/net/netlib.stub: fixed typo (SO_RCVBUF). added some more |
| 17617 |
SO_* constants. |
| 17618 |
|
| 17619 |
2006-07-03 Shiro Kawai <[email protected]> |
| 17620 |
|
| 17621 |
* configure.ac: check pthread_spinlock_t type instead of |
| 17622 |
pthread_spinlock_init() function. |
| 17623 |
|
| 17624 |
* ext/threads/threads.c (Scm_ThreadStart): fixed a bug of passing |
| 17625 |
invalid value to pthread_attr_setdetachstate(). |
| 17626 |
* lib/dbi.scm (dbi-parse-dsn): treat "dbi:driver:" as no-option, |
| 17627 |
i.e. same as "dbi:driver". Suggested by Tatsuya BIZENN. |
| 17628 |
|
| 17629 |
* ext/sxml/sxml/adaptor.scm (string-rindex): added alias for missing |
| 17630 |
definition of string-rindex used in sxml-tools.scm |
| 17631 |
|
| 17632 |
2006-06-23 Shiro Kawai <[email protected]> |
| 17633 |
|
| 17634 |
* lib/dbi.scm (dbi-make-driver): use module-name->path instead of |
| 17635 |
library-fold to get a path component of the requested dbd module; |
| 17636 |
if we get full pathname from library-fold, requiring it doesn't |
| 17637 |
match with provided path component in the module, causing the |
| 17638 |
module to be loaded every time dbi-make-driver is called. |
| 17639 |
|
| 17640 |
2006-06-04 Shiro Kawai <[email protected]> |
| 17641 |
|
| 17642 |
* src/number.c: Introduced exact rational numbers. Arithmetic |
| 17643 |
API changed for consistency. Dropped n-ary APIs, since we hardly |
| 17644 |
see n-ary cases now (the compiler expands primitive arithmetics |
| 17645 |
to binary applications). |
| 17646 |
* src/gauche.h, src/gauche/number.h : Splitted numeric APIs to |
| 17647 |
subfile. This is a first step of slimming down gauche.h. |
| 17648 |
* src/vm.c, src/test-arith.h, src/stdlib.stub, src/hash.c, |
| 17649 |
src/bignum.c, src/autoloads.scm, lib/gauche/numerical.scm, |
| 17650 |
lib/gauche/cgen.scm, lib/srfi-42.scm, ext/uvector/uvgen.scm, |
| 17651 |
ext/uvector/uvector.c.tmpl, ext/srfi-srfi-19-lib.scm: |
| 17652 |
Reflected the API changes. |
| 17653 |
|
| 17654 |
2006-05-30 Shiro Kawai <[email protected]> |
| 17655 |
|
| 17656 |
* src/gauche.h, src/number.c, src/stdlib.stub: API CHANGE: |
| 17657 |
changed complex number C API for consistency. |
| 17658 |
|
| 17659 |
2006-05-27 Shiro Kawai <[email protected]> |
| 17660 |
|
| 17661 |
* src/regexp.c, test/regexp.scm: fixed bugs that resulted |
| 17662 |
regexp compilation error. |
| 17663 |
|
| 17664 |
* lib/rfc/http.scm (send-request): avoid sending "\r\n" after |
| 17665 |
body (RFC2616 section 4.1). |
| 17666 |
|
| 17667 |
* lib/gauche/package/compile.scm: dropped quote around CC, for |
| 17668 |
it may contain options such as 'gcc -std=gnu99'. |
| 17669 |
|
| 17670 |
2006-05-05 Shiro Kawai <[email protected]> |
| 17671 |
|
| 17672 |
* src/error.c (Scm_PrintDefaultErrorHeading): fix error message. |
| 17673 |
* src/genstub (emit-definition): fix error message. |
| 17674 |
|
| 17675 |
2006-04-28 Shiro Kawai <[email protected]> |
| 17676 |
|
| 17677 |
* src/char.c (Scm_DigitToInt): fix digit->integer. |
| 17678 |
(digit->integer #\2 2) yielded 2, should be #f. |
| 17679 |
|
| 17680 |
2006-04-13 Shiro Kawai <[email protected]> |
| 17681 |
|
| 17682 |
* doc/Makefile.in: conversion of japanese html lang spec was wrong: |
| 17683 |
'jp' should be 'ja'. |
| 17684 |
|
| 17685 |
2006-04-12 Shiro Kawai <[email protected]> |
| 17686 |
|
| 17687 |
* release 0.8.7 |
| 17688 |
|
| 17689 |
2006-04-07 Shiro Kawai <[email protected]> |
| 17690 |
|
| 17691 |
* src/autoloads.scm : set autoload for 'time' macro---it seems that |
| 17692 |
quite a few people who used other Schemes expect it and have |
| 17693 |
difficulty to find gauche.time module. |
| 17694 |
|
| 17695 |
* src/gauche-install.in (ensure-directory): made mode/owner/group |
| 17696 |
change effective for the directory creation by gauche-install -d. |
| 17697 |
(currently it is only effective on the last component of the |
| 17698 |
directory). |
| 17699 |
|
| 17700 |
2006-04-06 Shiro Kawai <[email protected]> |
| 17701 |
|
| 17702 |
* doc/Makefile.in: reverted jp document from utf-8 to euc-jp, |
| 17703 |
for some tools still don't like utf-8. |
| 17704 |
|
| 17705 |
* src/compile.scm (pass1/define-inline): made define-inline keeps |
| 17706 |
its effect outside its compiler unit. |
| 17707 |
|
| 17708 |
* ext/net/net.c (socket_finalize, Scm_SocketClose): clear |
| 17709 |
inPort/outPort when we're done to help GC. |
| 17710 |
|
| 17711 |
* lib/srfi-0.scm: added some newly supported srfis. |
| 17712 |
|
| 17713 |
* lib/gauche/test.scm (test-module): added a check to find out |
| 17714 |
referencing undefined global variables, as suggested by |
| 17715 |
Kazuki Tsujimoto. A new keyword argument, :allow-undefined, |
| 17716 |
is introduced to disable the checking on certain variables. |
| 17717 |
* ext/net/test.scm, ext/auxsys/test.scm: changed accordingly. |
| 17718 |
|
| 17719 |
2006-04-05 Shiro Kawai <[email protected]> |
| 17720 |
|
| 17721 |
* ext/srfi/srfi-19-lib.scm, ext/uvector/matrix.scm, |
| 17722 |
libsrc/srfi-13.scm: fixed typo of local variable names. |
| 17723 |
|
| 17724 |
2006-03-26 Shiro Kawai <[email protected]> |
| 17725 |
|
| 17726 |
* src/module.c (Scm_FindBinding, Scm_GlobalVariableRef): API CHANGE: |
| 17727 |
instead of stay_in_module boolean flag, it takes bitmasks so that |
| 17728 |
we can extend it later. Scm_GlobalVaribleRef takes a new flag, |
| 17729 |
SCM_BINDING_KEEP_AUTOLOAD, to choose not to resolve autoload, which |
| 17730 |
is required in some special occasions. |
| 17731 |
* src/vm.c, src/moplib.stub, src/macro.c, src/load.c, src/intlib.stub, |
| 17732 |
src/gauche.h, src/extlib.stub, src/compaux.c, src/class.c: |
| 17733 |
changed accordingly. |
| 17734 |
|
| 17735 |
* ext/net/netlib.stub (SOMAXCONN): added SOMAXCONN constant (suggested |
| 17736 |
by Tatsuya BIZENN). |
| 17737 |
|
| 17738 |
2006-03-25 Shiro Kawai <[email protected]> |
| 17739 |
|
| 17740 |
* ext/termios/termiolib.stub (sys-forkpty-and-exec): changed |
| 17741 |
argument from optionals to keywords, to support :sigmask. |
| 17742 |
|
| 17743 |
2006-03-24 Shiro Kawai <[email protected]> |
| 17744 |
|
| 17745 |
* src/system.c (Scm_SysExec): added support of setting signal mask |
| 17746 |
before exec. |
| 17747 |
* src/syslib.stub (sys-exec, sys-fork-and-exec): Changed API to take |
| 17748 |
keyword arguments :iomap and :sigmask. The old signature (optional |
| 17749 |
iomap) is supported for backward compatibility, but will be gone |
| 17750 |
in future. |
| 17751 |
* lib/gauche/process.c (run-process): allow :sigmask keyword argument. |
| 17752 |
|
| 17753 |
2006-03-17 Shiro Kawai <[email protected]> |
| 17754 |
|
| 17755 |
* lib/util/queue.scm (dequeue!): avoid non weak-GC-robust pattern. |
| 17756 |
See the comment for the details. |
| 17757 |
|
| 17758 |
* src/objlib.scm (ref*): Added utility procedure ref*, as suggested |
| 17759 |
by Issac Trotts. Ref methods for some builtin classes are also |
| 17760 |
added here. |
| 17761 |
|
| 17762 |
2006-03-14 Shiro Kawai <[email protected]> |
| 17763 |
|
| 17764 |
* lib/util/stream.scm (stream-cons): The original srfi-40 reference |
| 17765 |
implementation evaluates the second argument twice within delay. |
| 17766 |
|
| 17767 |
2006-03-12 Shiro Kawai <[email protected]> |
| 17768 |
|
| 17769 |
* ext/auxsys.c, ext/auxsyslib.stub: moved sys-gettimeofday to |
| 17770 |
main system. support sys-times on mingw32, emulating times() |
| 17771 |
by GetProcessTimes. |
| 17772 |
* src/system.c, src/syslib.stub: added Scm_GetTimeOfDay, an |
| 17773 |
abstraction of gettimeofday() call. On mingw32 we emulate it |
| 17774 |
with GetSystemTime. sys-gettimeofday is moved here. |
| 17775 |
* src/gauche/mingw-compat.h : some addition for above changes. |
| 17776 |
|
| 17777 |
2006-03-11 Shiro Kawai <[email protected]> |
| 17778 |
|
| 17779 |
* src/system.c (Scm_BaseName, Sys_DirName): handles drive letters |
| 17780 |
sensibly on mingw32. |
| 17781 |
* src/syslib.stub (sys-sleep): Use Sleep() win32api call on mingw32. |
| 17782 |
|
| 17783 |
2006-03-10 Shiro Kawai <[email protected]> |
| 17784 |
|
| 17785 |
* src/autoloads.scm, lib/gauche/procedure.scm: added forgotten exports |
| 17786 |
and autoloads (filter$ etc.) Patch from Michael Campbell. |
| 17787 |
|
| 17788 |
2006-03-09 Shiro Kawai <[email protected]> |
| 17789 |
|
| 17790 |
* src/regexp.c etc. Added support of backreferences, named captures, |
| 17791 |
and lookback assertions to regexp. (Patch from Rui Ueyama). |
| 17792 |
* src/gauche/regexp.h: Splitted regexp-related objects into this |
| 17793 |
header; their internals are not of general interest. |
| 17794 |
|
| 17795 |
* lib/dbi.scm (dbi-execute-query): the adapter to the legacy dbd |
| 17796 |
interface passes :pass-through option to the dbi-do for compatibiliy. |
| 17797 |
This change doesn't affect the new dbd interface. |
| 17798 |
|
| 17799 |
* ext/net/netaux.scm (make-server-socket): added :backlog keyword |
| 17800 |
argument to customize the backlog number passed to socket-listen. |
| 17801 |
(Patch from Tatsuya BIZENN). |
| 17802 |
|
| 17803 |
* src/genstub: fixed setter procedure generation. By looking up |
| 17804 |
the stub name of setter procedure, instead of assuming naming |
| 17805 |
convention, we can now handle setter defintion in define-cgeneric |
| 17806 |
clause (it needs different treatment since their C stub name would |
| 17807 |
differ from normal cproc/cmethod). |
| 17808 |
|
| 17809 |
2006-03-07 Shiro Kawai <[email protected]> |
| 17810 |
|
| 17811 |
* src/genstub: fixed several typos in cgeneric setter generation |
| 17812 |
code (Patch from Takahiro Horii). |
| 17813 |
|
| 17814 |
2006-03-04 Shiro Kawai <[email protected]> |
| 17815 |
|
| 17816 |
* src/compile.scm (module-qualified-variable?): filtered out the |
| 17817 |
case that non-variable could be passed to cenv-lookup. |
| 17818 |
|
| 17819 |
* src/gauche.h (SCM__DEFINE_CLASS_COMMON), |
| 17820 |
src/gauche/pthread.h, src/gauche/uthread.h: |
| 17821 |
Iniitalize the mutex and condition variable in the statically |
| 17822 |
defined builtin classes. |
| 17823 |
|
| 17824 |
* src/class.c (method_more_specific): fixed a bug when comparing |
| 17825 |
methods both of which have rest arg. |
| 17826 |
|
| 17827 |
2006-03-03 Shiro Kawai <[email protected]> |
| 17828 |
|
| 17829 |
* gc/*, src/genstub, src/gauche/config.h.in: Bumped to Boehm GC 6.7. |
| 17830 |
Support NetBSD threads. (Patch from Tatsuya BIZENN). |
| 17831 |
|
| 17832 |
* lib/www/cgi.scm (cgi-header): changed line terminators from '\n' to |
| 17833 |
'\r\n', in order to follow the spec precisely. Some httpds don't |
| 17834 |
like '\n'. |
| 17835 |
|
| 17836 |
2006-02-17 Shiro Kawai <[email protected]> |
| 17837 |
|
| 17838 |
* src/genconfig.in: Avoid using '\"' sequence within the string that |
| 17839 |
is generated by shell script---apparantly some shells treat |
| 17840 |
backslashes differently in this case, causing compatibility problem. |
| 17841 |
Using single quotes is an easy solution. (Thanks to Robbert |
| 17842 |
Haarman for pointing this out). |
| 17843 |
|
| 17844 |
2006-02-10 Shiro Kawai <[email protected]> |
| 17845 |
|
| 17846 |
* libsrc/srfi-13.scm (string-copy!): fixed argument range check bug |
| 17847 |
(Thanks to Jeff Read). |
| 17848 |
|
| 17849 |
2006-02-08 Shiro Kawai <[email protected]> |
| 17850 |
|
| 17851 |
* 0.8.7_pre1. Entered release test cycle. |
| 17852 |
|
| 17853 |
* gc/darwin_stop_world.c: applied Bruce Mitchener's memory leak patch |
| 17854 |
posted on Boehm GC list. |
| 17855 |
|
| 17856 |
2006-01-27 Shiro Kawai <[email protected]> |
| 17857 |
|
| 17858 |
* lib/gauche/vm/debugger.scm (debug-print): made the width of |
| 17859 |
information to print customizable by the parameter |
| 17860 |
debug-print-width. |
| 17861 |
(debug-source-info): added. |
| 17862 |
* src/autoloads.scm: added debug-print-width and debug-source-info. |
| 17863 |
|
| 17864 |
* src/write.c (Scm_WriteLimited, Scm_Format): Fixed a bug that |
| 17865 |
didn't propagate shared-structure-mode flags, causing write routine |
| 17866 |
to go infinite loop even it is called with ss-mode. |
| 17867 |
|
| 17868 |
* src/signal.c (Scm_SysSigmask): Allow NULL to newmask arg, if |
| 17869 |
the caller just want to obtain the mask without modifying it. |
| 17870 |
|
| 17871 |
2006-01-26 Shiro Kawai <[email protected]> |
| 17872 |
|
| 17873 |
* ext/net/netdb.c: rewrote some code using Scm_CStringArrayToList. |
| 17874 |
|
| 17875 |
* ext/termios/termiolib.stub (sys-forkpty-and-exec): added. |
| 17876 |
* ext/termios/termios.c (Scm_ForkptyAndExec): ditto. |
| 17877 |
|
| 17878 |
* src/string.c (Scm_CStringArrayToList): API Change - integrated |
| 17879 |
copying and non-copying version, and added FLAGS argument to |
| 17880 |
specify which. |
| 17881 |
|
| 17882 |
* src/system.c (Scm_SysPrepareFdMap, Scm_SysSwapFds): |
| 17883 |
extracted core functionality of I/O remapping in Scm_SysExec, |
| 17884 |
so that it can be used from other extensions. |
| 17885 |
|
| 17886 |
* src/string.c (Scm_ListToConstCStringArray, Scm_ListToCStringArray): |
| 17887 |
added. |
| 17888 |
|
| 17889 |
* lib/dbi.scm (generate-sql/parameters): fix referencing out-of-scope |
| 17890 |
variable. |
| 17891 |
|
| 17892 |
* ext/binary/io.scm: some optimization and cosmetic changes. |
| 17893 |
* doc/modutil.texi: made "binary.io" official. |
| 17894 |
|
| 17895 |
2006-01-22 Shiro Kawai <[email protected]> |
| 17896 |
|
| 17897 |
* src/gauche/exception.h, src/error.c : added Scm_UnhandledSignalError. |
| 17898 |
* src/signal.c (default_sighandler): the default signal handler now |
| 17899 |
throws <unhandled-signal-error>. |
| 17900 |
|
| 17901 |
* src/extlib.stub (with-ports): added. |
| 17902 |
|
| 17903 |
2006-01-21 Shiro Kawai <[email protected]> |
| 17904 |
|
| 17905 |
* lib/text/sql.scm (sql-tokenize): fixed the regexp stack overflow |
| 17906 |
problem when very long input is given. |
| 17907 |
|
| 17908 |
* src/compile.scm (pass1/body): handles ((with-module x y) arg ...) |
| 17909 |
form in the beginning of lambda body. |
| 17910 |
|
| 17911 |
* src/syslib.stub (sys-wait, sys-waitpid): syscall wasn't restarted |
| 17912 |
when wait/waitpid was interrupted. |
| 17913 |
|
| 17914 |
2006-01-20 Shiro Kawai <[email protected]> |
| 17915 |
|
| 17916 |
* src/compile.scm (pass1/body): added a check for improper list |
| 17917 |
in the lambda body. |
| 17918 |
|
| 17919 |
* src/load.c (Scm_VMLoad), src/main.c, lib/gauche/vm/profiler.scm: |
| 17920 |
added -pload profiler option. |
| 17921 |
* src/vm.c (Scm_VMUnwindProtect, Scm_VMNextHandler, Scm_VMRewindProtect): |
| 17922 |
added. |
| 17923 |
|
| 17924 |
* src/port.c (Scm_GetRemainingInputString): fixed a bug that didn't |
| 17925 |
consider ungotten chars. |
| 17926 |
|
| 17927 |
2006-01-19 Shiro Kawai <[email protected]> |
| 17928 |
|
| 17929 |
* src/compile.scm (module-qualified-variable?): fixed to check if |
| 17930 |
with-module has the right binding when parsing |
| 17931 |
((with-module m v) ...) form. |
| 17932 |
|
| 17933 |
2006-01-15 Shiro Kawai <[email protected]> |
| 17934 |
|
| 17935 |
* src/compile.scm (pass1): support compilation of a form in which |
| 17936 |
the head position has (with-module mod identifier). This allows |
| 17937 |
one to refer syntactic keyword from other module, e.g. |
| 17938 |
((with-module gauche define) x 4). This, in turn, gives more |
| 17939 |
flexibility for modules to redefine syntaxes. |
| 17940 |
|
| 17941 |
2006-01-10 Shiro Kawai <[email protected]> |
| 17942 |
|
| 17943 |
* src/extlib.stub (global-variable-ref): added second optional |
| 17944 |
argument to limit the lookup within the module. |
| 17945 |
* src/module.c (Scm_GlobalVariableRef): dropped Scm_SymbolValue |
| 17946 |
and added this corresponding to global-variable-ref. |
| 17947 |
* src/gauche.h (Scm_SymbolValue): definds it as a macro which |
| 17948 |
expands to Scm_GlobalVariableRef call. |
| 17949 |
|
| 17950 |
* src/vm.c (throw_cont_calculate_handlers, user_eval_inner): |
| 17951 |
dynamic handlers didn't properly invoked when error occurred |
| 17952 |
during reinstallation of dynamic handlers via call/cc. |
| 17953 |
(Patch from Kazuki Tsujimoto). |
| 17954 |
|
| 17955 |
2006-01-09 Shiro Kawai <[email protected]> |
| 17956 |
|
| 17957 |
* src/vm.c, src/vminsn.scm: added some experimental VM insns. |
| 17958 |
not really used yet. |
| 17959 |
|
| 17960 |
* src/Makefile.in (newinsn): added a special build sequence |
| 17961 |
in case the VM insn set has been changed. |
| 17962 |
|
| 17963 |
* src/compile.scm (iform-copy): lvar in $LSET insn wasn't copied, |
| 17964 |
causing compiler internal error (Patch from Kazuki Tsujimoto). |
| 17965 |
Also fixed wrong handling of label assoc list in copying $LABEL |
| 17966 |
node. |
| 17967 |
|
| 17968 |
2006-01-07 Shiro Kawai <[email protected]> |
| 17969 |
|
| 17970 |
* libsrc/gauche/collection.scm (maybe-minimum-size): should return |
| 17971 |
#f if any of collection's size isn't immediately known. Patch |
| 17972 |
from Takahiro Horii. |
| 17973 |
|
| 17974 |
* src/compile.scm (pass1/body): fixed a bug in an argument of |
| 17975 |
error function (Patch from Kazuki Tsujimoto). |
| 17976 |
|
| 17977 |
2006-01-06 Shiro Kawai <[email protected]> |
| 17978 |
|
| 17979 |
* ext/net/net.c (Scm_SocketInputPort, Scm_SocketInputPort): |
| 17980 |
prohibit creating i/o ports from closed socket. |
| 17981 |
|
| 17982 |
* src/gauche.h: removed SCM_VECTOR_FOR_EACH, for it was buggy and |
| 17983 |
not a very useful API. |
| 17984 |
* src/hash.c: rewrote the only instance of using SCM_VECTOR_FOR_EACH. |
| 17985 |
|
| 17986 |
* libsrc/gauche/collection.scm (map-to): size estimatin was wrong when |
| 17987 |
multiple collections of uneven lengths are given. |
| 17988 |
* libsrc/gauche/sequence.scm (map-to-with-index): ditto. |
| 17989 |
|
| 17990 |
* lib/util/stream.scm (write-stream, ->stream-char): fix let-optionals |
| 17991 |
-> let-optionals*. |
| 17992 |
|
| 17993 |
* lib/gauche/procedure.scm (complement): added complement. |
| 17994 |
|
| 17995 |
* src/compile.scm (pass2/$CALL): fixed a bug that caused an internal |
| 17996 |
compiler error when local function inline expansion happens |
| 17997 |
recursively. Many thanks to Jun Inoue for tracking this bug |
| 17998 |
down. |
| 17999 |
|
| 18000 |
* lib/text/sql.scm (sql-tokenize): INCOMPATIBLE CHANGE: changed to |
| 18001 |
return SQL unquoted identifiers as strings. This is because |
| 18002 |
we want to preserve the case of identifiers; although SQL is |
| 18003 |
case-insensitive, some RDBMS honors the case of table and |
| 18004 |
column names. It would be very confusing if pass-through SQL and |
| 18005 |
SQL parsed by sql-tokenize behaves differently. |
| 18006 |
* lib/dbi.scm (generate-sql/parameters): adapted to the above change. |
| 18007 |
|
| 18008 |
* src/port.c (bufport_read): fixed a bug that could block read |
| 18009 |
from non-full-buffered port even there are some data in the |
| 18010 |
buffer. |
| 18011 |
|
| 18012 |
* INSTALL.esc: corrected the default encoding (euc-jp -> utf-8). |
| 18013 |
|
| 18014 |
2006-01-03 Shiro Kawai <[email protected]> |
| 18015 |
|
| 18016 |
* src/system.c (Scm_DirName): fixed a bug that doesn't handle a |
| 18017 |
pathnames with a single slash at the beginning, like "/abc". |
| 18018 |
|
| 18019 |
2005-12-21 Shiro Kawai <[email protected]> |
| 18020 |
|
| 18021 |
* src/write.c (write_object_fallback), src/class.c (class_print): |
| 18022 |
Show whether the class is redefined. This helps to avoid confusions |
| 18023 |
during interactive development when the class is redefined. |
| 18024 |
|
| 18025 |
2005-12-04 Shiro Kawai <[email protected]> |
| 18026 |
|
| 18027 |
* src/extlib.stub (read-block): fixed a bug that may cause SEGV later. |
| 18028 |
(patch from Tatsuya BIZENN). |
| 18029 |
|
| 18030 |
2005-11-23 Shiro Kawai <[email protected]> |
| 18031 |
|
| 18032 |
* lib/util/relation.scm (util.relation): relation-rows wasn't exported. |
| 18033 |
|
| 18034 |
2005-11-17 Shiro Kawai <[email protected]> |
| 18035 |
|
| 18036 |
* lib/util/stream.scm (stream-filter): fixed a bug from the reference |
| 18037 |
implementation that didn't handle the end of stream correctly. |
| 18038 |
|
| 18039 |
2005-11-11 Shiro Kawai <[email protected]> |
| 18040 |
|
| 18041 |
* ext/template.Makefile.in : add $(DESTDIR) |
| 18042 |
|
| 18043 |
2005-11-10 Shiro Kawai <[email protected]> |
| 18044 |
|
| 18045 |
* src/signal.c (sig_handle): in the sigqueue overflow warning, |
| 18046 |
show the signal name and number as the debugging aid. |
| 18047 |
|
| 18048 |
* src/number.c (Scm_Divide): fixed a bug that busts VM when |
| 18049 |
a bignum is divided by zero. |
| 18050 |
|
| 18051 |
* lib/gauche/collection.scm, lib/gauche/sequence.scm, |
| 18052 |
lib/gauche/hook.scm, lib/gauche/parameter.scm: moved to libsrc/, |
| 18053 |
and compiled into DSOs under ext/gauche. |
| 18054 |
* test/colseq.scm, test/hook.scm, test/parameter.scm: moved into |
| 18055 |
ext/gauche. |
| 18056 |
* ext/gauche/* : compile some of gauche.* modules into DSOs |
| 18057 |
* configure.ac, ext/Makefile.in, lib/Makefile.in: adjusted |
| 18058 |
accordingly. |
| 18059 |
|
| 18060 |
2005-11-09 Shiro Kawai <[email protected]> |
| 18061 |
|
| 18062 |
* src/gencomp: added --keep-private-macro option to emit some |
| 18063 |
private macros into the generated Scheme file by --ext-module |
| 18064 |
option. It's a kludge, but needed to compile gauche.parameter. |
| 18065 |
|
| 18066 |
* src/preload.scm: added to make HOSTGOSH more compact. See the file |
| 18067 |
for the detailed explanation. |
| 18068 |
* src/Makefile.in (HOSTGOSH): rewrote using preload.scm |
| 18069 |
|
| 18070 |
2005-11-07 Shiro Kawai <[email protected]> |
| 18071 |
|
| 18072 |
* src/main.c (main): recognize drive letter in argv on MinGW32. |
| 18073 |
|
| 18074 |
* configure.ac: fixed a problem for configuring with |
| 18075 |
--enable-multibyte=none. (Pointed by Sven Hartrumpf). |
| 18076 |
|
| 18077 |
2005-11-04 Shiro Kawai <[email protected]> |
| 18078 |
|
| 18079 |
* release 0.8.6 |
| 18080 |
|
| 18081 |
* src/genconfig.in: added --prefix optoin. |
| 18082 |
* ext/template.configure.ac: override the default prefix by the prefix |
| 18083 |
used to compile installed Gauche. |
| 18084 |
|
| 18085 |
2005-11-03 Shiro Kawai <[email protected]> |
| 18086 |
|
| 18087 |
* src/Makefile.in : fixed to make sure lib/gauche/vm/insn.scm is |
| 18088 |
generated at pre-package stage. |
| 18089 |
|
| 18090 |
* src/genconfig.in: generates src/gauche/arch.h simultaneously as |
| 18091 |
src/gauche-config.c, for it's simpler to synchronize (esp. in |
| 18092 |
MinGW). |
| 18093 |
* src/Makefile.in : changed accordingly. |
| 18094 |
|
| 18095 |
* src/genarch : removed. |
| 18096 |
|
| 18097 |
* lib/util/relation.scm (<relation>): no longer inherits <collection>, |
| 18098 |
since <sequence> can also become as a relation. It now behaves |
| 18099 |
like a mixin. Added the relation-rows method to adapt to the |
| 18100 |
collection. |
| 18101 |
|
| 18102 |
* lib/gauche/sequence.scm (ref): restrict second arg to <integer>, |
| 18103 |
so that it won't interfere if the object inherits <sequence> and |
| 18104 |
something else. |
| 18105 |
|
| 18106 |
2005-11-02 Shiro Kawai <[email protected]> |
| 18107 |
|
| 18108 |
* src/regexp.c (rc_setup_context): fixed a bug that caused |
| 18109 |
regexp-compile to choke if an external AST containing non-greedy |
| 18110 |
match, assertin, etc. |
| 18111 |
|
| 18112 |
2005-11-01 Shiro Kawai <[email protected]> |
| 18113 |
|
| 18114 |
* ext/charconv/charconv.c, ext/net/netdb.c : force static data to |
| 18115 |
be in .data section instead of .bss section, for .bss section can't |
| 18116 |
be reliably scanned by GC. |
| 18117 |
|
| 18118 |
* src/syslib.stub (sys-fork): force GC_gcollect() just before fork(), |
| 18119 |
to avoid the page dirty bits synchronization problem on Solaris. |
| 18120 |
(See my post in the Boehm gc mailing list on Nov 1). |
| 18121 |
|
| 18122 |
2005-10-30 Shiro Kawai <[email protected]> |
| 18123 |
|
| 18124 |
* lib/www/cgi.scm (cgi-main): ensure error page output goes to the |
| 18125 |
current-output at the time cgi-main is called. |
| 18126 |
|
| 18127 |
2005-10-29 Shiro Kawai <[email protected]> |
| 18128 |
|
| 18129 |
* src/syslib.stub (sys-close): added for low-level tweaking. |
| 18130 |
|
| 18131 |
2005-10-28 Shiro Kawai <[email protected]> |
| 18132 |
|
| 18133 |
* src/regexp.c (rc_setup_context): fixed a bug that caused |
| 18134 |
regexp-compile to choke if an external AST containing 'wb' or |
| 18135 |
'nwb' node is given. |
| 18136 |
(rc3_rec): fixed bad assertion. |
| 18137 |
|
| 18138 |
* lib/binary/pack.scm (read-one-packer): fix 'V' directive, and |
| 18139 |
added n!, N!, v!, V! directives as the signed variants of |
| 18140 |
n, N, v, and V. (Patch from Masatake YAMATO). |
| 18141 |
|
| 18142 |
2005-10-27 Shiro Kawai <[email protected]> |
| 18143 |
|
| 18144 |
* lib/www/cgi.scm (get-mime-parts): put a code to accomodate broken |
| 18145 |
IE sending improperly quoted value to content-disposition field. |
| 18146 |
(Patch from Tatsuya BIZENN). |
| 18147 |
|
| 18148 |
* src/system.c (time_compare): implement proper compare function |
| 18149 |
so that equal? will work on <time>'s. |
| 18150 |
* ext/srfi/srfi-19-lib.scm (time<=? etc): changed accordingly. |
| 18151 |
|
| 18152 |
* src/char.c (charset_compare): implement compare function properly, |
| 18153 |
so that equal? will work on charsets. |
| 18154 |
|
| 18155 |
* ext/vport/vport.c (bport_allocate): accept :buffer-size keyword |
| 18156 |
argument to specify the size of the buffer (Patch from Tatsuya |
| 18157 |
BIZENN). |
| 18158 |
|
| 18159 |
2005-10-26 Shiro Kawai <[email protected]> |
| 18160 |
|
| 18161 |
* src/system.c (Scm_NormalizePathname, Scm_BaseName, Scm_DirName): |
| 18162 |
rewrote to handle multibyte pathnames correctly (even with sjis |
| 18163 |
that may contain 0x5c in the second byte). |
| 18164 |
|
| 18165 |
2005-10-25 Shiro Kawai <[email protected]> |
| 18166 |
|
| 18167 |
* src/gencomp (insert-ext-initializer): emit SCM_INIT_EXTENSION |
| 18168 |
in the initialization routine when it is compiling stand-alone |
| 18169 |
Scheme file (i.e. --ext-module option is given). |
| 18170 |
|
| 18171 |
2005-10-23 Shiro Kawai <[email protected]> |
| 18172 |
|
| 18173 |
* configure.ac, Makefile.in, src/genconfig.in : added experimenal |
| 18174 |
support to build Gauche as a private framework on MacOSX. |
| 18175 |
After installing Gauche as usual, configure the source with |
| 18176 |
--enable-framework, then do 'make framework'. |
| 18177 |
* src/genarch, src/paths.c, src/gauche/paths.h, src/getdir_*.c, |
| 18178 |
src/core.c: |
| 18179 |
splitted out the routines to obtain runtime pathnames. |
| 18180 |
|
| 18181 |
2005-10-21 Shiro Kawai <[email protected]> |
| 18182 |
|
| 18183 |
* src/genconfig.in: added --pkg{inc|lib|arch}dir option for more |
| 18184 |
flexible extension configuration. |
| 18185 |
* ext/template.Makefile.in, ext/template.configure.ac: adapted to |
| 18186 |
--pkg*dir option of gauche-config. With the generated configure |
| 18187 |
script, the package installer can choose installation location |
| 18188 |
by command-line options such as --prefix, --exec-prefix, --libdir |
| 18189 |
or --datadir. |
| 18190 |
|
| 18191 |
2005-10-12 Shiro Kawai <[email protected]> |
| 18192 |
|
| 18193 |
* src/string.c, src/gauche.h (ScmString): API CHANGE: ScmString |
| 18194 |
is splitted into the header part and the immutable body |
| 18195 |
(ScmStringBody), for thread safety. See the lengthy comment |
| 18196 |
in the STRING section of gauche.h. New thread-safe API, |
| 18197 |
Scm_GetStringContent and SCM_STRING_BODY* macros are added. |
| 18198 |
Use of SCM_STRING_LENGTH, SCM_STRING_SIZE and SCM_STRING_START |
| 18199 |
is deprecated. |
| 18200 |
* src/*.{c,stub}, ext/*/*.{c,stub}: adapted to the above changes. |
| 18201 |
|
| 18202 |
2005-10-09 Shiro Kawai <[email protected]> |
| 18203 |
|
| 18204 |
* doc/libgauche-ref.texi: dumped. |
| 18205 |
* doc/gauche-dev.texi: started. |
| 18206 |
|
| 18207 |
2005-10-07 Shiro Kawai <[email protected]> |
| 18208 |
|
| 18209 |
* ext/srfi/srfi-19-lib.scm (tm:integer-reader-exact): fixed typo. |
| 18210 |
|
| 18211 |
2005-10-06 Shiro Kawai <[email protected]> |
| 18212 |
|
| 18213 |
* src/class.c (generic_initialize): It turned out we don't need a |
| 18214 |
special initialization method for <generic>. We can just let |
| 18215 |
the default initialization method to handle it. The custom |
| 18216 |
initialization method had a problem of initializing slots defined |
| 18217 |
in a subclass of <generic>. |
| 18218 |
* lib/dbi.scm : added some more backward-compatibility code. |
| 18219 |
|
| 18220 |
2005-10-05 Shiro Kawai <[email protected]> |
| 18221 |
|
| 18222 |
* lib/srfi-55.scm (require-extension): when srfi number unknown to |
| 18223 |
the Gauche runtime is given, it expands to (use srfi-N) anyway, |
| 18224 |
so that it may work if the user put srfi-N.scm in the load-path. |
| 18225 |
(This is useful to make Alex Shinn's common-scheme work). |
| 18226 |
|
| 18227 |
2005-10-04 Shiro Kawai <[email protected]> |
| 18228 |
|
| 18229 |
* src/vector.c (Scm_MakeVector): check the size argument. |
| 18230 |
* ext/srfi/srfi-43-lib.scm: added support of srfi-43. |
| 18231 |
* ext/srfi/test.scm: ditto. |
| 18232 |
|
| 18233 |
2005-10-03 Shiro Kawai <[email protected]> |
| 18234 |
|
| 18235 |
* src/list.c (Scm_ListTail): added fallback argument for consistency. |
| 18236 |
* src/vector.c (Scm_ListToVector): added start and end arguments |
| 18237 |
to support srfi-43's extended list->vector. |
| 18238 |
* src/*.c : some files are affected by the above API changes. |
| 18239 |
|
| 18240 |
2005-10-02 Shiro Kawai <[email protected]> |
| 18241 |
|
| 18242 |
* src/prof.c (Scm_ProfilerStart): fixed bugs that the temporary file |
| 18243 |
wasn't reopened after profiler reset, and profiler-show/profiler-stop |
| 18244 |
segfaulted if profiler-start hadn't been called. Patch from |
| 18245 |
Michael Campbell. |
| 18246 |
* src/autoloads.scm (profiler-show): autoloads gauche.vm.profiler. |
| 18247 |
|
| 18248 |
2005-09-30 Shiro Kawai <[email protected]> |
| 18249 |
|
| 18250 |
* src/system.c (Scm_NormalizePathname): fixed memory corrupting bug. |
| 18251 |
|
| 18252 |
2005-09-22 Shiro Kawai <[email protected]> |
| 18253 |
|
| 18254 |
* lib/rfc/http.scm (receive-body-chunked): added error checking of |
| 18255 |
premature end of chunked body, and fixed a bug referring a |
| 18256 |
nonexistent variable (patch from Michael Campbell). |
| 18257 |
|
| 18258 |
2005-09-20 Shiro Kawai <[email protected]> |
| 18259 |
|
| 18260 |
* src/load.c (Scm_LoadAutoload): fixed a bug that autoload's |
| 18261 |
definition enviornment and resolution environment didn't match. |
| 18262 |
|
| 18263 |
2005-09-18 Shiro Kawai <[email protected]> |
| 18264 |
|
| 18265 |
* lib/gauche/common-macros.scm (until): missing => as a literal |
| 18266 |
identifier. |
| 18267 |
|
| 18268 |
2005-09-13 Shiro Kawai <[email protected]> |
| 18269 |
|
| 18270 |
* libsrc/file/util.scm (relative-path?): recognize pathnames beginning |
| 18271 |
with '~' as a relative pathname. Tilda expansion must be done |
| 18272 |
before any operation on pathnames anyway. |
| 18273 |
|
| 18274 |
2005-09-12 Shiro Kawai <[email protected]> |
| 18275 |
|
| 18276 |
* lib/dbi.scm, lib/dbd/null.scm, test/dbidbd.scm : reverted the change |
| 18277 |
in 9/6, and we use <dbi-query> and dbi-execute again. It is because |
| 18278 |
some drivers require an explicit deallocation of resources used |
| 18279 |
by prepared query, and we can't do it nicely with closures. |
| 18280 |
|
| 18281 |
2005-09-11 Shiro Kawai <[email protected]> |
| 18282 |
|
| 18283 |
* src/class.c (accessor_get_proc, accessor_set_proc): fixed a long |
| 18284 |
standing bug about an undesired interaction of modules and accessor |
| 18285 |
methods. Check out test/object.scm "module and accessor" section |
| 18286 |
for an explanation and an example. |
| 18287 |
|
| 18288 |
* lib/gauche/let-opt.scm, lib/gauche/singleton.scm, |
| 18289 |
lib/gauche/validator.scm : issue warning when used. preparation |
| 18290 |
of removing these obsoleted modules. |
| 18291 |
|
| 18292 |
* src/genstub, *.stub : added define-enum-conditionally to abbreviate |
| 18293 |
the common idiom of defining Scheme enum constant only if it is |
| 18294 |
defined in C. Rewrote some .stub files by using it. |
| 18295 |
* ext/net/netaux.scm, ext/net/net.scm: compile Scheme part into |
| 18296 |
libnet.so. |
| 18297 |
|
| 18298 |
* ext/net/netlib.stub (socket-status): made returned symbol lowercase, |
| 18299 |
in sync with the documentation. |
| 18300 |
|
| 18301 |
* src/gauche.h (SCM_FOREIGN_POINTER_P): use SCM_ISA to check. |
| 18302 |
|
| 18303 |
* src/syslib.stub: exposed some unix error codes (such as EINTR) |
| 18304 |
as predefined constants. |
| 18305 |
|
| 18306 |
2005-09-10 Shiro Kawai <[email protected]> |
| 18307 |
|
| 18308 |
* configure.ac (--enable-multibyte): Switched the default encoding |
| 18309 |
from euc-jp to utf-8. Issue a warning and wait for user's |
| 18310 |
reaction if --enable-multibyte is not given to ./configure, |
| 18311 |
in order to avoid confusion. |
| 18312 |
|
| 18313 |
* lib/dbi.scm, lib/dbd/null.scm : dropped <dbi-object> and |
| 18314 |
<dbi-result-set>. Moved dbi-get-value to the deprecated section. |
| 18315 |
Defines fallbacks of dbi-open? and dbi-close. |
| 18316 |
|
| 18317 |
* lib/util/relation.scm (util.relation): exports <simple-relation> |
| 18318 |
and <object-set-relation>. |
| 18319 |
|
| 18320 |
* src/module.c (Scm_FindBinding): fixed a bug that inadvertently |
| 18321 |
exposes non-exported symbols to outside. |
| 18322 |
|
| 18323 |
2005-09-09 Shiro Kawai <[email protected]> |
| 18324 |
|
| 18325 |
* ext/mt-random/mt-random.c (mt_allocate): allow u32vector to be |
| 18326 |
given to :seed initarg. |
| 18327 |
|
| 18328 |
* ext/srfi/srfi-19-lib.scm (tm:integer-reader-exact): fixed typo |
| 18329 |
in function name. |
| 18330 |
|
| 18331 |
* src/genstub : added 'code' spec to the cproc body so that |
| 18332 |
the cproc can perform some checking before 'call' or 'expr' spec. |
| 18333 |
|
| 18334 |
* ext/charconv/convaux.scm: splitted Scheme-defined functions |
| 18335 |
from charconv.scm and compile them into charconv.so. |
| 18336 |
|
| 18337 |
2005-09-06 Shiro Kawai <[email protected]> |
| 18338 |
|
| 18339 |
* lib/dbi.scm, lib/dbd/null.scm: Revised API. Now dbi-prepare |
| 18340 |
returns a closure that executes the prepared query when invoked. |
| 18341 |
Dropped dbi-execute. Dropped dbd-prepare and dbd-execute, since |
| 18342 |
the driver can now just overload dbi-prepare. |
| 18343 |
Renamed dbd-make-connection to dbi-make-connection to make |
| 18344 |
every method is called dbi-* now (the legacy dbi-make-connection |
| 18345 |
can be distinguished by the signature). Sets the default method |
| 18346 |
of legacy dbi-make-query and dbi-execute-query so that the old |
| 18347 |
client code that uses legacy DBI API can work with the new dbi/dbd. |
| 18348 |
|
| 18349 |
* libsrc/srfi-13.scm (%string-prefix-int): fix (Patch by |
| 18350 |
Michal Maruška). |
| 18351 |
|
| 18352 |
2005-09-05 Shiro Kawai <[email protected]> |
| 18353 |
|
| 18354 |
* src/main.c (further_options): comment options for internal use. |
| 18355 |
|
| 18356 |
2005-09-04 Shiro Kawai <[email protected]> |
| 18357 |
|
| 18358 |
* m4/*, aclocal.m4 : adapetd to the newer autotools convention. |
| 18359 |
* acinclude.m4: removed. superseded by m4/gauche.m4. |
| 18360 |
|
| 18361 |
2005-09-03 Shiro Kawai <[email protected]> |
| 18362 |
|
| 18363 |
* ext/template.configure.ac : renamed configure.in -> configure.ac |
| 18364 |
* src/gauche-package.in : ditto |
| 18365 |
* examples/mqueue-cpp/configure.ac: ditto |
| 18366 |
* examples/spigot/configure.ac: ditto |
| 18367 |
|
| 18368 |
2005-09-02 Shiro Kawai <[email protected]> |
| 18369 |
|
| 18370 |
* lib/gauche/common-macros.scm (while, until): now these are |
| 18371 |
supported officially, with additional syntax to bind a variable |
| 18372 |
during execution of repetition body. |
| 18373 |
|
| 18374 |
* src/class.c (Scm_ForeignPointerAttr etc): added 'attributes' alist |
| 18375 |
to a foreign pointer. See the comments in gauche.h for its usage. |
| 18376 |
|
| 18377 |
2005-09-01 Shiro Kawai <[email protected]> |
| 18378 |
|
| 18379 |
* lib/dbi.scm : ensure dbi-parse-dsn always return a string and |
| 18380 |
a list as option-string and option-alist. |
| 18381 |
|
| 18382 |
2005-08-31 Shiro Kawai <[email protected]> |
| 18383 |
|
| 18384 |
* lib/gauche/interactive/info.scm (viewer): check whether TERM is |
| 18385 |
"dumb", for the newer XEmacs sets it. |
| 18386 |
|
| 18387 |
* src/genstub: reverted to tolerate 'void' to be a return type |
| 18388 |
as well as '<void>' (to accept legacy stub files). |
| 18389 |
(define-type): fixed the behavior when #f is specified for |
| 18390 |
predicate/unboxer/boxer names. |
| 18391 |
|
| 18392 |
* src/gencomp: adds #include <gauche/macro.h> to the output C code |
| 18393 |
(necessary if a traditional macro is compiled in). |
| 18394 |
* lib/gauche/package/util.scm, lib/gauche/package/build.scm: changed |
| 18395 |
to ask password immediately after "gauche-package install" command |
| 18396 |
is invoked with "--install-as" option. The previous versions asked |
| 18397 |
pass before actual installation, which was annoying when the build |
| 18398 |
process took long. |
| 18399 |
|
| 18400 |
2005-08-30 Shiro Kawai <[email protected]> |
| 18401 |
|
| 18402 |
* doc/extract : switched to generate Japanese document in utf-8. |
| 18403 |
Partly because the new texi2html uses utf-8 if I specify --lang=jp. |
| 18404 |
* lib/text/sql.scm: renamed text.sxql to text.sql, since I keep |
| 18405 |
being confused (was it sqxl or sxql?) and also it's awkward to type. |
| 18406 |
|
| 18407 |
2005-08-29 Shiro Kawai <[email protected]> |
| 18408 |
|
| 18409 |
* lib/dbi.scm (dbi-escape-sql): changed not to add surrounding quotes. |
| 18410 |
|
| 18411 |
* src/module.c (Scm_FindBinding): fixed a problem that export |
| 18412 |
shadowed the binding that should be visible in the module body. |
| 18413 |
* src/moplib.stub (%ensure-generic-function): ensure the method |
| 18414 |
definition always inserts the binding of the generic function |
| 18415 |
in the current module. |
| 18416 |
|
| 18417 |
* lib/dbi.scm: let the default methods for legacy API raise an |
| 18418 |
error, to catch the case a dbd implentation fails to implement |
| 18419 |
necessary methods. |
| 18420 |
|
| 18421 |
* util/relation.scm : changed its name to singular for the consistency |
| 18422 |
of gauche.collection etc. |
| 18423 |
|
| 18424 |
2005-08-28 Shiro Kawai <[email protected]> |
| 18425 |
|
| 18426 |
* src/gencomp: improved macro handling |
| 18427 |
|
| 18428 |
* Reorganized to compile some Scheme libraries as extension modules. |
| 18429 |
* libsrc/* : library sources that are compiled as extension modules, |
| 18430 |
_and_ required during compilation, are moved here from lib. |
| 18431 |
* src/main.c : when -ftest flag is given, add ../libsrc to the |
| 18432 |
search path as well. |
| 18433 |
* lib/gauche/cgen.scm : added regexp literal support. |
| 18434 |
* src/stdlib.stub : added regexp-case-fold? |
| 18435 |
* lib/gauche/procedure.scm: partial evaluated versions of srfi-1 |
| 18436 |
procedures are moved here. |
| 18437 |
|
| 18438 |
2005-08-27 Shiro Kawai <[email protected]> |
| 18439 |
|
| 18440 |
* src/main.c (main): reversed search priority of 'lib' and 'src' |
| 18441 |
when -ftest option is given. See the comment for the details. |
| 18442 |
* src/gencomp: added -o option to specify the output .c name |
| 18443 |
(experimental). |
| 18444 |
|
| 18445 |
2005-08-26 Shiro Kawai <[email protected]> |
| 18446 |
|
| 18447 |
* src/Makefile.in: introduced HOSTGOSH macro to be used whenever |
| 18448 |
host gosh is required. |
| 18449 |
|
| 18450 |
* gc/configure.in: set LARGE_CONFIG. |
| 18451 |
|
| 18452 |
2005-08-25 Shiro Kawai <[email protected]> |
| 18453 |
|
| 18454 |
* ext/xlink: removed dependency to the library modules. |
| 18455 |
|
| 18456 |
2005-08-24 Shiro Kawai <[email protected]> |
| 18457 |
|
| 18458 |
* src/objlib.scm (%expand-define-class): avoid embedding literal |
| 18459 |
closure to the macro output, for it prevents the code using |
| 18460 |
define-class from being pre-compiled by gencomp. Instead we |
| 18461 |
insert an identifier. |
| 18462 |
|
| 18463 |
* src/gauche-init.scm: removed compatibility hack of loading |
| 18464 |
gauche.object for transition of 0.8.3->0.8.4. |
| 18465 |
* lib/gauche/object.scm: removed, for it is no longer needed. |
| 18466 |
|
| 18467 |
* src/gencomp: Experimentally added --ext-module option to allow |
| 18468 |
gencomp to emit a module interface scm file, so that it can be |
| 18469 |
used to compile extension modules out of Scheme library easily. |
| 18470 |
This is highly experimental; interface and build process may |
| 18471 |
likely change. |
| 18472 |
* src/core.c: changed accordingly. |
| 18473 |
* ext/sxml/*: using the above change, compile sxml.ssax, sxml.sxpath |
| 18474 |
and sxml.tools into extension modules. |
| 18475 |
* ext/uvector/uvseq.scm : added to compile collection & sequence |
| 18476 |
framework stuff into libgauche-uvector.so. |
| 18477 |
* ext/srfi-19/*: this is also turned to an extension. |
| 18478 |
|
| 18479 |
2005-08-23 Shiro Kawai <[email protected]> |
| 18480 |
|
| 18481 |
* lib/gauche/cgen.scm (<cgen-scheme-char-set>): added support for |
| 18482 |
the literal char-set. |
| 18483 |
|
| 18484 |
2005-08-22 Shiro Kawai <[email protected]> |
| 18485 |
|
| 18486 |
* src/gauche.h (SCM_FOREIGN_POINTER_REF): takes type argument for |
| 18487 |
casting. |
| 18488 |
|
| 18489 |
* lib/gauche/logger.scm (log-default-drain): exposed the default |
| 18490 |
drain as a parameter. |
| 18491 |
|
| 18492 |
* src/module.c, src/gauche.h, src/symbol.c: put the information |
| 18493 |
of whether a binding is exported or not in gloc, instead of |
| 18494 |
module->exported list. We keep the exported list only for backward |
| 18495 |
compatibility and the convenience of meta-module utilities. |
| 18496 |
This change makes Scm_FindBinding faster, since it doens't need |
| 18497 |
to scan the exported list. We also removed the weird convention |
| 18498 |
of putting #t to the exported list to show export-all status---now |
| 18499 |
exported list always keeps the list of exported symbols, even |
| 18500 |
the module is export-all-ed ('define' adds the defined symbol to |
| 18501 |
the exported list). |
| 18502 |
As a side effects, the 'export' syntax is interpreted in more |
| 18503 |
strict way; specifically, you shouldn't export a symbol which you |
| 18504 |
don't define in the module. It used to be ignored, but now it |
| 18505 |
shadows the earlier binding of the symbol. |
| 18506 |
|
| 18507 |
2005-08-19 Shiro Kawai <[email protected]> |
| 18508 |
|
| 18509 |
* src/main.c (main): use GC_INIT macro instead of our own #ifdef-ed |
| 18510 |
GC initialization stuff. |
| 18511 |
|
| 18512 |
2005-08-18 Shiro Kawai <[email protected]> |
| 18513 |
|
| 18514 |
* src/vm.c (Scm_EvalCString): added for convenience. |
| 18515 |
|
| 18516 |
2005-08-15 Shiro Kawai <[email protected]> |
| 18517 |
|
| 18518 |
* src/number.c (IEXPT10_TABLESIZ): we need to enlarge pre-calculated |
| 18519 |
exp10 table to handle denormalized numbers. |
| 18520 |
|
| 18521 |
2005-08-12 Shiro Kawai <[email protected]> |
| 18522 |
|
| 18523 |
* src/vm.c, src/vmstat.c: added some code to record instruction |
| 18524 |
and instruction pair frequency (enabled only if vm.c is compiled |
| 18525 |
with COUNT_INSN_FREQUENCY defined). The collected data will be |
| 18526 |
useful for tuning. |
| 18527 |
|
| 18528 |
* src/extlib.stub: the spec of hash-table-update! was broken. PROC |
| 18529 |
should be called with the default value, when the given key hasn't |
| 18530 |
been in the table. |
| 18531 |
|
| 18532 |
2005-08-11 Shiro Kawai <[email protected]> |
| 18533 |
|
| 18534 |
* src/vm.c: experimentally added the custom mark procedure for the |
| 18535 |
VM stack under USE_CUSTOM_STACK_MARKER flag. It doesn't show |
| 18536 |
any improvement, so currently it's turned off. |
| 18537 |
|
| 18538 |
2005-08-10 Shiro Kawai <[email protected]> |
| 18539 |
|
| 18540 |
* gc/* : upgraded to Boehm GC 6.5. |
| 18541 |
|
| 18542 |
2005-08-09 Shiro Kawai <[email protected]> |
| 18543 |
|
| 18544 |
* ext/net/netlib.stub, ext/net/net.scm : added sys-htonl, sys-htons, |
| 18545 |
sys-ntohl and sys-ntohs (based on the patch by John Kilburg). |
| 18546 |
* src/genstub: fixed a bug in <uint> stub-type handling. |
| 18547 |
|
| 18548 |
2005-08-07 Shiro Kawai <[email protected]> |
| 18549 |
|
| 18550 |
* lib/Makefile.in: enable installation of dbi. |
| 18551 |
|
| 18552 |
* lib/util/queue.scm: added copy-queue. |
| 18553 |
* src/genstub: allow 'maybe' type qualifier to have stub-generated |
| 18554 |
code to handle #f <-> NULL conversion. also supports multiple |
| 18555 |
value return in 'body' spec. |
| 18556 |
* *.stub: adapted to the new specs. |
| 18557 |
|
| 18558 |
2005-08-06 Shiro Kawai <[email protected]> |
| 18559 |
|
| 18560 |
* lib/util/isomorph.scm (object-isomorphic?): was a normal procedure, |
| 18561 |
which should be a generic function. |
| 18562 |
|
| 18563 |
2005-08-05 Shiro Kawai <[email protected]> |
| 18564 |
|
| 18565 |
* src/hash.c, test/hash.scm: hash-table-type has been broken for |
| 18566 |
a while. (Patch from Ueyama Rui) |
| 18567 |
|
| 18568 |
2005-08-04 Shiro Kawai <[email protected]> |
| 18569 |
|
| 18570 |
* src/gauche/char_utf_8.h: fixed u_char*/char* pointer confusion. |
| 18571 |
|
| 18572 |
2005-08-01 Shiro Kawai <[email protected]> |
| 18573 |
|
| 18574 |
* configure.ac: 0.8.6_pre1 |
| 18575 |
|
| 18576 |
* examples/mqueue-cpp: An example of writing bindings to C++ libraries. |
| 18577 |
|
| 18578 |
* src/genstub: rewriting genstub 2nd stage: added new CPROC specs, |
| 18579 |
'body' and 'expr'. They can make typical cproc body much shorter. |
| 18580 |
The 'return' spec is deprecated, in favor of 'call' spec. |
| 18581 |
Also added C++ exception handling support---with 'catch' spec, |
| 18582 |
the stub body is surrounded by try-catch construct and C++ exceptions |
| 18583 |
raised in the body is converted to Gauche exception. |
| 18584 |
* *.stub: adapted to the new CPROC specs. |
| 18585 |
|
| 18586 |
2005-07-31 Shiro Kawai <[email protected]> |
| 18587 |
|
| 18588 |
* src/genstub: rewriting genstub 1st stage: adopted gauche.cgen |
| 18589 |
framework to generate code. |
| 18590 |
|
| 18591 |
2005-07-30 Shiro Kawai <[email protected]> |
| 18592 |
|
| 18593 |
* lib/file/util.scm (path-sans-extension): fixed abnormality when |
| 18594 |
passed a pathname without dirname part. |
| 18595 |
|
| 18596 |
* lib/gauche/logger.scm (default-lock-policy): select 'file lock |
| 18597 |
policy only for MacOSX 10.2 and before. 10.3 and later supports |
| 18598 |
fcntl (Patch from Tatsuya BIZENN). |
| 18599 |
|
| 18600 |
* src/gauche-package.in: add --cc flag in 'compile' command to |
| 18601 |
specify alternative C compiler; handy when you're writing a bridge |
| 18602 |
to C++ library. |
| 18603 |
* src/genstub: added <const-cstring> stub type. |
| 18604 |
|
| 18605 |
* src/class.c: revised foreign-pointer API to take flags. supports |
| 18606 |
the mode that keeps one-to-one mapping between foreign pointer and |
| 18607 |
wrapping ScmObj, for easier resource management. |
| 18608 |
|
| 18609 |
* src/weak.c: added WeakBox C API. |
| 18610 |
|
| 18611 |
2005-07-28 Shiro Kawai <[email protected]> |
| 18612 |
|
| 18613 |
* src/hash.c, src/gauche.h, src/*: rehashed hashtable API to allow |
| 18614 |
raw C data in keys and values. |
| 18615 |
|
| 18616 |
* src/*: code cleanup: replaced SCM_HASHTABLE -> SCM_HASH_TABLE and |
| 18617 |
SCM_WEAKVECTOR -> SCM_WEAK_VECTOR for naming consistency. |
| 18618 |
SCM_HASHTABLE remains as alias for a while, since it may be used |
| 18619 |
in some extensions, but should go away very soon. |
| 18620 |
|
| 18621 |
2005-07-24 Shiro Kawai <[email protected]> |
| 18622 |
|
| 18623 |
* src/vm.c (run_loop): Fixed handling of numVals. Some instructions |
| 18624 |
used not to set numVals so that the previous numVals 'leaked', |
| 18625 |
yielding incorrect result. |
| 18626 |
|
| 18627 |
2005-07-22 Shiro Kawai <[email protected]> |
| 18628 |
|
| 18629 |
* src/core.c (Scm_AddCleanupHandler, Scm_DeleteCleanupHandler): |
| 18630 |
Added API for C-level handlers that are called before exitting |
| 18631 |
Scheme. |
| 18632 |
(Scm_Exit, Scm_Cleanup): allows the application to call cleanup |
| 18633 |
part separately, for the apps that wants some operation after |
| 18634 |
shutting down Scheme system. |
| 18635 |
* src/main.c : rewritten profiler and statistics output using |
| 18636 |
the new cleanup handler API. |
| 18637 |
|
| 18638 |
2005-07-21 Shiro Kawai <[email protected]> |
| 18639 |
|
| 18640 |
* src/module.c (Scm_FindModule): API CHANGE for consistency. Now |
| 18641 |
it takes bitflags as the second arg, and returns ScmModule* |
| 18642 |
instead of ScmObj. Also it signals an error if flags = 0 and |
| 18643 |
named module doesn't exist. |
| 18644 |
This shouldn't affect typical usages, for most of them are either |
| 18645 |
passing TRUE in the second arg (in new API it's the same meaning), |
| 18646 |
and casting the returned value immediately to ScmModule*. |
| 18647 |
* src/error.c (Scm_Raise): Make Scm_VMThrowException an internal API, |
| 18648 |
and provide Scm_Raise instead. |
| 18649 |
(Scm_RaiseCondition): A convenience procedure to create a condition |
| 18650 |
and raise it. |
| 18651 |
* src/gauche.h, src/vm.c, src/read.c, src/main.c, src/load.c, |
| 18652 |
src/gencomp, src/extlib.stub, src/exclib.stub, ext/* : |
| 18653 |
Changed accordingly. |
| 18654 |
|
| 18655 |
2005-07-18 Shiro Kawai <[email protected]> |
| 18656 |
|
| 18657 |
* src/class.c, src/gauche.h (ScmForeignPointer): added convenience |
| 18658 |
procedures to wrap foreign pointers. |
| 18659 |
|
| 18660 |
* src/syslib.stub (sys-strerror): added. |
| 18661 |
|
| 18662 |
2005-07-16 Shiro Kawai <[email protected]> |
| 18663 |
|
| 18664 |
* lib/file/util.scm (make-directory*): do not call sys-mkdir if the |
| 18665 |
last component of the path is ".". |
| 18666 |
|
| 18667 |
* src/gauche-install.in : added -U (uninstall) option. |
| 18668 |
|
| 18669 |
* ext/template.DIST, src/gauche-package.in, examples/spigot/README: |
| 18670 |
Let "gauche-package generate" put DIST script, too. Changed |
| 18671 |
description in spigot/README to reflect the new way of using |
| 18672 |
gauche-package. |
| 18673 |
|
| 18674 |
* lib/util/stream.scm: added srfi-40 and more. |
| 18675 |
|
| 18676 |
2005-07-15 Shiro Kawai <[email protected]> |
| 18677 |
|
| 18678 |
* src/promise.c, src/gauche.h, src/compile.c, src/extlib.stub, |
| 18679 |
src/vm.c: Adopted srfi-45 semantics of lazy evaluation. A new |
| 18680 |
primitive syntax 'lazy' is added. See srfi-45 for the details. |
| 18681 |
|
| 18682 |
* lib/util/relations.scm (util.relations): added. A generic |
| 18683 |
framework of dealing with relations. This module will grow later. |
| 18684 |
|
| 18685 |
2005-07-11 Shiro Kawai <[email protected]> |
| 18686 |
|
| 18687 |
* src/error.c, src/exclib.stub, src/scmlib.scm (error, errorf): |
| 18688 |
implement error and errorf in Scheme, allowing to specify |
| 18689 |
condition class to throw. |
| 18690 |
|
| 18691 |
* lib/slib.scm.in : additional interface for slib3 (patch from |
| 18692 |
Dai Inukai). |
| 18693 |
|
| 18694 |
2005-07-10 Shiro Kawai <[email protected]> |
| 18695 |
|
| 18696 |
* src/extlib.stub: deprecate symbol-bound?, superceded by |
| 18697 |
global-variable-bound?. See the manual for the reason. |
| 18698 |
Also added global-variable-ref. |
| 18699 |
* src/scmlib.scm (symbol-bound?): implemented here for the backward |
| 18700 |
compatibility; will go away in future. |
| 18701 |
* ext/auxsys/auxsys.scm, ext/net/net.scm, ext/net/test.scm, |
| 18702 |
ext/termios/test.scm, lib/gauche/modutil.scm, test/*.scm: |
| 18703 |
replaced symbol-bound? for global-variable-bound? |
| 18704 |
|
| 18705 |
2005-07-06 Shiro Kawai <[email protected]> |
| 18706 |
|
| 18707 |
* src/vm.c (save_env, save_cont): improved stack-overflow handling |
| 18708 |
performance. (x5.7 compared to 0.8.5). |
| 18709 |
|
| 18710 |
2005-07-02 Shiro Kawai <[email protected]> |
| 18711 |
|
| 18712 |
* lib/gauche/package/compile.scm : utility to compile & link |
| 18713 |
extension modules. |
| 18714 |
* src/gauche-package.in: added 'compile' and 'generate' command |
| 18715 |
to ease extension module building. |
| 18716 |
* ext/template.*: template files for extension modules. |
| 18717 |
"gauche-package generate" creates the skeleton from these files. |
| 18718 |
|
| 18719 |
2005-07-01 Shiro Kawai <[email protected]> |
| 18720 |
|
| 18721 |
* lib/gauche/regexp.scm (regexp-replace*, regexp-replace-all*): |
| 18722 |
useful fns to apply multiple regexp replace on a string. |
| 18723 |
|
| 18724 |
2005-06-30 Shiro Kawai <[email protected]> |
| 18725 |
|
| 18726 |
* release 0.8.5 |
| 18727 |
|
| 18728 |
* src/signal.c : fixed a problem that with-signal-handlers reset |
| 18729 |
SIGCHLD handler to SIG_IGN afterwards. |
| 18730 |
|
| 18731 |
* src/number.c (double_print): changed notation of infinity to #i1/0 |
| 18732 |
to emphasize inexactness. (this notation might change depending |
| 18733 |
on how srfi-70 comes out). |
| 18734 |
|
| 18735 |
* src/port.c, src/system.c : set O_BINARY by default on MinGW. |
| 18736 |
For sys-rename, unlink the destination file before calling rename() |
| 18737 |
on MinGW, since Windows doesn't allow rename over an existing file. |
| 18738 |
(NB: this breaks atomicity of rename operation). |
| 18739 |
* src/mingw-exify, src/Makefile.in : to run gauche-* utilities on |
| 18740 |
Windows, we decided to generate .exe files for them. |
| 18741 |
* lib/file/util.scm (find-file-in-paths): Adapt MinGW, which uses |
| 18742 |
#\; for PATH directory separator. |
| 18743 |
|
| 18744 |
2005-06-29 Shiro Kawai <[email protected]> |
| 18745 |
|
| 18746 |
* src/genconfig.in, Makefiles : better MinGW support |
| 18747 |
* src/system.c (Scm_Globdirectory): support on MinGW |
| 18748 |
* lib/file/util.scm: better MinGW support |
| 18749 |
|
| 18750 |
2005-06-27 Shiro Kawai <[email protected]> |
| 18751 |
|
| 18752 |
* lib/www/cgi.scm (cgi-default-output): make sure cgi-default-output |
| 18753 |
writes out everthing even if output conversion port is inserted. |
| 18754 |
|
| 18755 |
2005-06-23 Shiro Kawai <[email protected]> |
| 18756 |
|
| 18757 |
* src/genconfig.in : introduced to make gauche-config a compiled |
| 18758 |
executable. |
| 18759 |
* src/gauche-config.in : removed, for a shell script doesn't work |
| 18760 |
well on Windows/MinGW. Instead, src/genconfig generates a C |
| 18761 |
file gauche-config.c, which is then compiled to gauche-config. |
| 18762 |
|
| 18763 |
2005-06-22 Shiro Kawai <[email protected]> |
| 18764 |
|
| 18765 |
* src/Gauche.spec : change Copyright: entry to License: for newer |
| 18766 |
version of rpm. |
| 18767 |
* src/gauche.h, src/string.c, ext/uvector/uvector.c.tmpl, |
| 18768 |
ext/mt-random/mt-lib.stub, ext/digest/sha1.stub, |
| 18769 |
ext/digest/md5.stub : code cleanup to eliminate warnings. |
| 18770 |
|
| 18771 |
2005-06-20 Shiro Kawai <[email protected]> |
| 18772 |
|
| 18773 |
* src/vector.c (Scm_VectorCopy): added fill argument to adopt srfi-43. |
| 18774 |
* src/extlib.stub (vector-copy): ditto. |
| 18775 |
|
| 18776 |
2005-06-16 Shiro Kawai <[email protected]> |
| 18777 |
|
| 18778 |
* lib/gauche/cgen.scm (cgen-emit-c): added some kludge to save cygwin. |
| 18779 |
|
| 18780 |
* src/number.c : let division by zero yields infinity instead of |
| 18781 |
an error. Adopted a notation of 1/0 and -1/0 for positive and |
| 18782 |
negative infinity, following the current srfi-70 draft. |
| 18783 |
Treatment of NaN should be considered later. |
| 18784 |
|
| 18785 |
2005-06-15 Shiro Kawai <[email protected]> |
| 18786 |
|
| 18787 |
* lib/gauche/cgen.scm (cgen-with-output-file): close the port |
| 18788 |
before unlinking or renaming the file, since Win32 doesn't like |
| 18789 |
a unclosed file to be removed. |
| 18790 |
|
| 18791 |
* src/compile.scm (inliner/-): There was a bug in constant-folding |
| 18792 |
path that yields a wrong value. Gosh! |
| 18793 |
|
| 18794 |
2005-06-08 Shiro Kawai <[email protected]> |
| 18795 |
|
| 18796 |
* src/compile.scm (and-let*): fix to handle lone BOUND-VARIABLE |
| 18797 |
case (patch provided by Michael Campbell). |
| 18798 |
|
| 18799 |
2005-06-05 Shiro Kawai <[email protected]> |
| 18800 |
|
| 18801 |
* src/compile.scm : typo fix (Patch from Hisazumi Kenji). |
| 18802 |
|
| 18803 |
2005-06-01 Shiro Kawai <[email protected]> |
| 18804 |
|
| 18805 |
* src/system.c (time_nsec_set): fixed a format string bug in the |
| 18806 |
error message that caused double fault. |
| 18807 |
|
| 18808 |
2005-05-31 Shiro Kawai <[email protected]> |
| 18809 |
|
| 18810 |
* lib/gauche/cgen.scm (cgen-allocate-static-datum): avoid generating |
| 18811 |
cast exprsesion when the value can be used as an lvalue. |
| 18812 |
|
| 18813 |
2005-05-30 Shiro Kawai <[email protected]> |
| 18814 |
|
| 18815 |
* release 0.8.4 |
| 18816 |
|
| 18817 |
* src/compile.scm (stmt-context): fixed typo. |
| 18818 |
* src/gencomp (compile-toplevel-form): avoid emitting useless toplevel |
| 18819 |
code that only contains CONSTU-RET instruction (such code is |
| 18820 |
sometimes generated as the result of macro expansion). |
| 18821 |
* src/code.c : expose codeSize field as size slot. |
| 18822 |
|
| 18823 |
2005-05-29 Shiro Kawai <[email protected]> |
| 18824 |
|
| 18825 |
* lib/gauche/cgen.scm: revised handling of static C data for Scheme |
| 18826 |
literals to avoid forward-reference problem. |
| 18827 |
* src/gencomp: ditto |
| 18828 |
|
| 18829 |
2005-05-28 Shiro Kawai <[email protected]> |
| 18830 |
|
| 18831 |
* src/macro.c: fixed module handing during syntax-rules compilation |
| 18832 |
(passing current module explicitly instead of relying on |
| 18833 |
CURRENT_MODULE). |
| 18834 |
|
| 18835 |
* src/gauche/compaux.c (Scm_MakeIdentifier): API fix. Removed |
| 18836 |
Scm_MakeIdentifierWithModule. |
| 18837 |
* src/gauche/vm.h, src/macro.c, src/intlib.stub, src/gencomp, |
| 18838 |
src/compile.scm: changed accordingly |
| 18839 |
|
| 18840 |
2005-05-27 Shiro Kawai <[email protected]> |
| 18841 |
|
| 18842 |
* src/compile.scm (pass1 program): added a check for function |
| 18843 |
application syntax being a proper list. |
| 18844 |
|
| 18845 |
2005-05-26 Shiro Kawai <[email protected]> |
| 18846 |
|
| 18847 |
* configure.ac: added --enable-runtime-pseudo-reloc ld flag for MinGW. |
| 18848 |
|
| 18849 |
2005-05-25 Shiro Kawai <[email protected]> |
| 18850 |
|
| 18851 |
* lib/gauche/procedure.scm (compose): allow zero or one arguments |
| 18852 |
to compose (Suggested by Ueyama Rui). |
| 18853 |
|
| 18854 |
2005-05-24 Shiro Kawai <[email protected]> |
| 18855 |
|
| 18856 |
* examples/spigot/Makefile.in : remove rpath link option, for it is |
| 18857 |
not portable and not necessary anyway. |
| 18858 |
|
| 18859 |
2005-05-23 Shiro Kawai <[email protected]> |
| 18860 |
|
| 18861 |
* lib/srfi-55.scm: added srfi-55. |
| 18862 |
|
| 18863 |
* ext/auxsys/auxsys.scm (sys-getloadavg), ext/auxsys/auxsyslib.stub, |
| 18864 |
ext/auxsys/auxsysconf.h.in, configure.ac, src/autoloads.scm: |
| 18865 |
Added sys-getloadavg (based on a patch from John Kilburg). |
| 18866 |
|
| 18867 |
* ltmain.sh, configu.guess, config.sub: updated for the latest version. |
| 18868 |
|
| 18869 |
* src/gauche/arith_i386.h : Applied patch from NIIBE Yutaka for |
| 18870 |
better register allocation. |
| 18871 |
|
| 18872 |
* src/regexp.c, test/regexp.scm, src/builtin-syms.scm : Added |
| 18873 |
support of lookahead assertion (Patch from Ueyama Rui) |
| 18874 |
|
| 18875 |
2005-05-22 Shiro Kawai <[email protected]> |
| 18876 |
|
| 18877 |
* lib/srfi-42.scm : Added srfi-42 support; it is a port of srfi-42 |
| 18878 |
reference implementation. Contributed by Alex Shinn. |
| 18879 |
* lib/Makefile.in : changed accordingly. |
| 18880 |
|
| 18881 |
2005-05-21 Shiro Kawai <[email protected]> |
| 18882 |
|
| 18883 |
* src/gauche.h (ScmSyntax), src/compaux.c: simplified ScmSyntax |
| 18884 |
handling. Now syntax handlers are defined in Scheme and called |
| 18885 |
from VM, so we can use Scm_VMApply to call them. |
| 18886 |
* src/compile.scm : we don't change vm-current-module during |
| 18887 |
compilation anymore. VM's current module info is taken at |
| 18888 |
the beginning of COMPILE as the default module, but then the |
| 18889 |
info is kept private throughout the compiler and the constructs |
| 18890 |
such as WITH-MODULE won't affect the VM's current module. |
| 18891 |
This may affect CURRENT-MODULE call in the traditional macro |
| 18892 |
(which used to be the module of the code being compiled). |
| 18893 |
This is a provisional change: we need to consider semantics of |
| 18894 |
SELECT-MODULE. |
| 18895 |
Also various small optimization is done. |
| 18896 |
* src/autoloads.scm, src/gauche-init.scm, lib/gauche/modutil.scm: |
| 18897 |
EXTEND, EXPORT-ALL and REQUIRE are now recognized by the compiler. |
| 18898 |
|
| 18899 |
2005-05-17 Shiro Kawai <[email protected]> |
| 18900 |
|
| 18901 |
* ext/threads/mutex.c (Scm_MutexLock, Scm_MutexUnlock): added |
| 18902 |
protection for the case that mutex can be locked indefinitely |
| 18903 |
by killed thread. (Patch from Michael Campbell). |
| 18904 |
* lib/srfi-19/format.scm (tm:locale-long-month->index): fixed |
| 18905 |
incorrect call to find-index (Patch from Michael Campbell). |
| 18906 |
|
| 18907 |
2005-05-16 Shiro Kawai <[email protected]> |
| 18908 |
|
| 18909 |
* src/compile.scm (compile), src/compaux.c (Scm_Compile): API fix. |
| 18910 |
|
| 18911 |
2005-05-15 Shiro Kawai <[email protected]> |
| 18912 |
|
| 18913 |
* src/gencomp (vectorize-code): fix to make the dumped code work on |
| 18914 |
both 32bit and 64bit architecture. |
| 18915 |
|
| 18916 |
2005-05-13 Shiro Kawai <[email protected]> |
| 18917 |
|
| 18918 |
* src/load.c (Scm_VMLoadFromPort): Lock port during loading. This |
| 18919 |
slightly improves script loading performance. |
| 18920 |
|
| 18921 |
* src/compile.scm, src/code.c: rewrote instruction emitting & combining |
| 18922 |
routine (pass3/emit!) in C for better compiler performance. |
| 18923 |
(20-25% gain!). Also optimized pass1/global-call. |
| 18924 |
* src/intlib.stub: changed accordingly. |
| 18925 |
|
| 18926 |
2005-05-11 Shiro Kawai <[email protected]> |
| 18927 |
|
| 18928 |
* src/vm.c (Scm_NewVM): removed redundant 'module' parameter. |
| 18929 |
(Scm_AttachVM): added API. |
| 18930 |
* ext/threads/threads.c: changed accordingly. |
| 18931 |
|
| 18932 |
* src/regexp.c : added range check of jump offset. |
| 18933 |
|
| 18934 |
2005-05-10 Shiro Kawai <[email protected]> |
| 18935 |
|
| 18936 |
* ext/dbm/gdbm.scm (dbm-db-copy, dbm-db-rename): didn't work. fixed. |
| 18937 |
* ext/uvector/uvlib.stub.tmpl: some linear-updating binop didn't |
| 18938 |
reuse the arg. |
| 18939 |
|
| 18940 |
|
| 18941 |
2005-05-01 Shiro Kawai <[email protected]> |
| 18942 |
|
| 18943 |
* lib/srfi-1.scm, lib/srfi-1/*.scm: removed some procedures that are |
| 18944 |
already defined in the core. |
| 18945 |
|
| 18946 |
2005-04-30 Shiro Kawai <[email protected]> |
| 18947 |
|
| 18948 |
* src/objlib.scm: embed gauche/object.scm into the core library. |
| 18949 |
* src/gencomp: Fixed handling of identifiers. |
| 18950 |
* src/compile.scm: Object system macros (define-class etc) are now |
| 18951 |
handled as syntax, though this should be transient until gencomp |
| 18952 |
properly handles macros. |
| 18953 |
* src/gauche-init.scm, src/core.c, src/autoloads.scm: |
| 18954 |
changed accordingly. |
| 18955 |
|
| 18956 |
2005-04-28 Shiro Kawai <[email protected]> |
| 18957 |
|
| 18958 |
* src/code.c (Scm_CompiledCodeDump): unwrap syntax from the source |
| 18959 |
code info display of the disassembler output. |
| 18960 |
|
| 18961 |
2005-04-27 Shiro Kawai <[email protected]> |
| 18962 |
|
| 18963 |
* src/compile.scm: fixed a critical bug in the stack handling. |
| 18964 |
|
| 18965 |
2005-04-26 Shiro Kawai <[email protected]> |
| 18966 |
|
| 18967 |
* src/configure.ac: 0.8.4_pre2 |
| 18968 |
* src/vm.c, src/compile.scm: changed sematics of LOCAL_ENV_JUMP's |
| 18969 |
parameter to indicate the # of environment frame to discard. |
| 18970 |
It is required to keep the correct frame adjustment. |
| 18971 |
NB: you need working 0.8.4_pre2 to build this version. |
| 18972 |
|
| 18973 |
2005-04-24 Shiro Kawai <[email protected]> |
| 18974 |
|
| 18975 |
* src/compile.scm (define-simple-struct): rewrote the macro for |
| 18976 |
simpler use. |
| 18977 |
* lib/gauche/cgen.scm: improved literal registration handling. |
| 18978 |
The time for compiling compile.scm becomes a tenth of the previous |
| 18979 |
version. |
| 18980 |
|
| 18981 |
2005-04-22 Shiro Kawai <[email protected]> |
| 18982 |
|
| 18983 |
* src/vm.c (run_loop): changed LOCAL-ENV-JUMP, LOCAL-ENV-CALL, and |
| 18984 |
LOCAL-ENV-TAIL-CALL to get the nargs from SP - ARGP, instead of |
| 18985 |
the insn param. The insn param will be used for other purpose. |
| 18986 |
|
| 18987 |
2005-04-21 Shiro Kawai <[email protected]> |
| 18988 |
|
| 18989 |
* lib/gauche/vm/debugger.scm, src/autoloads.scm: removed procedures |
| 18990 |
obsoleted by the new VM. |
| 18991 |
|
| 18992 |
* src/main.c: changed the profiler option to '-p' from '-fprofiler', |
| 18993 |
to allow future extensions. |
| 18994 |
|
| 18995 |
2005-04-20 Shiro Kawai <[email protected]> |
| 18996 |
|
| 18997 |
* lib/gauche/interpolate.scm (%string-interpolate): insert bare symbols |
| 18998 |
instead of procedures themselves. Not hygiene, but necessary for |
| 18999 |
the program that reads and writes the forms that containts #`"..." |
| 19000 |
syntax. |
| 19001 |
* src/gencomp: allow the filename to have '+'/'-' char. |
| 19002 |
* src/compile.scm: fixed a few serious bugs. |
| 19003 |
|
| 19004 |
2005-04-19 Shiro Kawai <[email protected]> |
| 19005 |
|
| 19006 |
* lib/gauche/cgen.scm: define scm__staticStrings as const. |
| 19007 |
* src/gencomp: substitute (current-module) during compilation to |
| 19008 |
avoid the expanded form from containing literal modules, and from |
| 19009 |
exposing temporary anonymous module used in the compilation. |
| 19010 |
In the dumped code, a call to current-module becomes a call to |
| 19011 |
find-module. |
| 19012 |
|
| 19013 |
2005-04-18 Shiro Kawai <[email protected]> |
| 19014 |
|
| 19015 |
* src/stdlib.stub (real-part, imag-part): moved back here, for there's |
| 19016 |
not much advantage to having these outside the core. |
| 19017 |
* lib/gauche/numerical.scm: changed accordingly. |
| 19018 |
* src/autoload.scm: changed accordingly. |
| 19019 |
|
| 19020 |
* lib/slib.scm.in (*features*): removed slib from *features* list |
| 19021 |
to avoid (use slib) to load srfi-29, which overrides builtin 'format' |
| 19022 |
by the incompatible srfi-29's format. |
| 19023 |
* src/gauche.h (SCM_EXTENDED_PAIR_P): fixed a bug that caused SEGV |
| 19024 |
when the macro was applied to statically allocated objects. |
| 19025 |
* src/extlib.stub (hash-table-update!): added, based on John Kilburg's |
| 19026 |
patch. |
| 19027 |
* test/hash.scm: added test for hash-table-update!, based on |
| 19028 |
John Kilburg's patch. |
| 19029 |
|
| 19030 |
2005-04-13 Shiro Kawai <[email protected]> |
| 19031 |
|
| 19032 |
* src/prof.c: do not use one-shot timer, for it misses too many |
| 19033 |
samples. |
| 19034 |
|
| 19035 |
* src/link-dylib: fix build problem on MacOS X (Patch from |
| 19036 |
Tatsuya BIZENN). |
| 19037 |
|
| 19038 |
* src/compile.scm (pass2/local-call-optimizer): fixed a bug that |
| 19039 |
messes up argument list when the lambda node is traversed twice |
| 19040 |
in pass2. |
| 19041 |
|
| 19042 |
2005-04-11 Shiro Kawai <[email protected]> |
| 19043 |
|
| 19044 |
* joined NVM0_8_3 branch to the trunc. |
| 19045 |
* configure.ac: version 0.8.4_pre1 |
| 19046 |
|
| 19047 |
* src/compile.scm, src/vm.c, src/vminsn.scm : Removed most of |
| 19048 |
the new instructions in the past several days, since it turned |
| 19049 |
out that they don't have much effect on the performance. Let's |
| 19050 |
keep the VM ISA simple for now; we might find more effective way |
| 19051 |
later. |
| 19052 |
|
| 19053 |
2005-04-10 Shiro Kawai <[email protected]> |
| 19054 |
|
| 19055 |
* src/compile.scm: emit BNEQC, BNEQVC, BNUMNEF, BNLTF, etc. |
| 19056 |
|
| 19057 |
* src/vm.c (Scm_VMDefaultExceptionHandler), src/gauche/vm.h: |
| 19058 |
fixed a bug that may cause SEGV when stack overflow occurs |
| 19059 |
during error handlers. The 'cont' pointer of currently |
| 19060 |
executing escape point wasn't updated by the continuation |
| 19061 |
frame relocation. |
| 19062 |
|
| 19063 |
2005-04-05 Shiro Kawai <[email protected]> |
| 19064 |
|
| 19065 |
* src/compile.scm : refactored. |
| 19066 |
* src/vminsn.c : added quite a few new instructions. |
| 19067 |
|
| 19068 |
2005-04-03 Shiro Kawai <[email protected]> |
| 19069 |
|
| 19070 |
* src/compile.scm (pass2): fixed closure optimizer. |
| 19071 |
|
| 19072 |
2005-04-02 Shiro Kawai <[email protected]> |
| 19073 |
|
| 19074 |
* src/compile.scm (pass3): calculate maximum stack depth. |
| 19075 |
(pass2/$IF): more optimization. |
| 19076 |
* src/code.c (Scm_CompiledCodeFinish): take maximum stack depth arg. |
| 19077 |
* src/vm.c: now we know how much stack each closure would consume, |
| 19078 |
we need to CHECK_STACK only when we enter a new closure (and some |
| 19079 |
stack-manipulating places at runtime). |
| 19080 |
* src/vminsn.scm: renamed from EXTEND-ENV to |
| 19081 |
LOCAL-ENV-CLOSURES, and removed unused insns PRE-TAIL, POP and DUP |
| 19082 |
EXTEND-ENV-POP1 is also dropped for now, since it seems too |
| 19083 |
kludgy (we may be resurrect it, but only after we try other |
| 19084 |
optimization strategies). |
| 19085 |
|
| 19086 |
2005-04-01 Shiro Kawai <[email protected]> |
| 19087 |
|
| 19088 |
* src/compile.scm (pass2/$IF): optimize to omit redundant jumps. |
| 19089 |
* src/vminsn.scm, src/vm.c : added LOCAL-ENV-TAIL-CALL insn. |
| 19090 |
|
| 19091 |
2005-03-31 Shiro Kawai <[email protected]> |
| 19092 |
|
| 19093 |
* src/compile.scm, src/compaux.scm, src/intlib.stub : implement the |
| 19094 |
most frequently called procedure "cenv-lookup" in C to improve |
| 19095 |
compiler performance. |
| 19096 |
|
| 19097 |
2005-03-30 Shiro Kawai <[email protected]> |
| 19098 |
|
| 19099 |
* src/compile.scm, src/vminsn.scm, src/vm.c, src/code.c: start adding |
| 19100 |
closure analysis. Also cleaned up some code. |
| 19101 |
|
| 19102 |
2005-03-22 Shiro Kawai <[email protected]> |
| 19103 |
|
| 19104 |
* src/comp.scm -> src/compile.scm : renamd |
| 19105 |
* src/compile.c -> src/compaux.c : renamed |
| 19106 |
* src/core.c, src/Makefile.in : changed accordingly. |
| 19107 |
|
| 19108 |
* src/gauche/vm.h, src/comp.scm, src/intlib.stub, src/main.c: |
| 19109 |
splitted COMPILE_NOINLINE flag into three categories for the |
| 19110 |
better debuggability. |
| 19111 |
|
| 19112 |
2005-03-21 Shiro Kawai <[email protected]> |
| 19113 |
|
| 19114 |
* src/comp.scm: more local closure inlining |
| 19115 |
* src/scmlib.scm: some more srfi-1 procedures implemented here |
| 19116 |
to be used in comp.scm. |
| 19117 |
|
| 19118 |
2005-03-20 Shiro Kawai <[email protected]> |
| 19119 |
|
| 19120 |
* src/comp.scm: eliminate binding of some locally bound closures and |
| 19121 |
inline it. |
| 19122 |
|
| 19123 |
2005-03-19 Shiro Kawai <[email protected]> |
| 19124 |
|
| 19125 |
* src/comp.scm: enable closure inlining (global inlining of |
| 19126 |
define-inline'd procedures, and local inlining of directly |
| 19127 |
called lambdas). |
| 19128 |
NOTE: With this feature enabled, the compiled code (by gencomp) |
| 19129 |
contains a literal vector of intermediate form. If we change the |
| 19130 |
IForm definition, make sure to build the bootstrap version of |
| 19131 |
compiler with -fno-inline. |
| 19132 |
* src/gauche/code.h (ScmCompiledCode): added intermediateForm slot |
| 19133 |
to keep IForm for later inlining. |
| 19134 |
* lib/gauche/cgen.scm : allow literal vectors to be emitted |
| 19135 |
statically. |
| 19136 |
|
| 19137 |
2005-03-16 Shiro Kawai <[email protected]> |
| 19138 |
|
| 19139 |
* src/comp.scm: tweaked typical patterns of letrec and named let. |
| 19140 |
* src/vminsn.scm: added more combined instructions, and removed |
| 19141 |
obsoleted ones. |
| 19142 |
|
| 19143 |
2005-03-15 Shiro Kawai <[email protected]> |
| 19144 |
|
| 19145 |
* prefix.scm (%string-suffix-int): fixed a bug that returned wrong |
| 19146 |
character count. |
| 19147 |
|
| 19148 |
2005-03-14 Shiro Kawai <[email protected]> |
| 19149 |
|
| 19150 |
* src/comp.scm: turned on the pass2 optimization. added some more |
| 19151 |
combined instructions. selection of specialized instructions |
| 19152 |
(e.g. NUMADDI) is pushed back to pass3/$ASM, instead of in the |
| 19153 |
inliner functions, so that we can take advantage of constant |
| 19154 |
folding and local variable renaming. |
| 19155 |
* src/vminsn.scm, src/vm.c: added CONSTx, CONSTx-PUSH, EQVI, BNEQVI, |
| 19156 |
PEEK-CHAR, CURIN, CUROUT, CURERR instructions. |
| 19157 |
|
| 19158 |
2005-03-13 Shiro Kawai <[email protected]> |
| 19159 |
|
| 19160 |
* src/comp.scm: separate $let and $letrec intermediate forms. emit |
| 19161 |
EXTEND-ENV-CLOSURES instruction for letrec. |
| 19162 |
* src/vminsn.scm, src/vm.c, src/code.c: |
| 19163 |
Support EXTEND-ENV-CLOSURES instruction. Removed a few obsoleted |
| 19164 |
instructions. Made Scm_Apply more efficient. |
| 19165 |
|
| 19166 |
2005-03-12 Shiro Kawai <[email protected]> |
| 19167 |
|
| 19168 |
* src/vminsn.scm, src/vm.c: removed obsoleted LET and TAIL-LET |
| 19169 |
instructions. |
| 19170 |
|
| 19171 |
2005-03-11 Shiro Kawai <[email protected]> |
| 19172 |
|
| 19173 |
* src/*: removed SCM_VM_INSN stuff. The compiled code vector is |
| 19174 |
created by compiled code builder API (in code.c), and the VM |
| 19175 |
instruction themselves are no longer distinct Scheme objects. |
| 19176 |
Instead, the VM instructions are dealt with simple integers. |
| 19177 |
By this change, the older-style compiled program representation, |
| 19178 |
i.e. a directed graph of VM instructions, is completely gone. |
| 19179 |
|
| 19180 |
2005-02-28 Shiro Kawai <[email protected]> |
| 19181 |
|
| 19182 |
* src/code.c, src/gauche/code.h: refactored out compiled-code stuff |
| 19183 |
to separate files. |
| 19184 |
|
| 19185 |
2005-02-21 Shiro Kawai <[email protected]> |
| 19186 |
|
| 19187 |
* src/comp.scm: improved quasiquote handling so that it generates |
| 19188 |
compile-time constant structure if the unquoted expressions are |
| 19189 |
all constant (including references to the constant variables). |
| 19190 |
* test/primsym.scm: added more tests for quasiquotes. |
| 19191 |
|
| 19192 |
2005-02-19 Shiro Kawai <[email protected]> |
| 19193 |
|
| 19194 |
* src/scmlib.scm: moved some autoloaded built-ins into this, which |
| 19195 |
is compiled into libgauche. |
| 19196 |
* src/autoload.scm, src/core.c, src/Makefile.in: changed accordingly. |
| 19197 |
* lib/gauche/listutil.scm, lib/gauche/with.scm: removed accordingly. |
| 19198 |
* src/gauche-init.scm: moved some definitions to scmlib.scm. |
| 19199 |
|
| 19200 |
2005-02-17 Shiro Kawai <[email protected]> |
| 19201 |
|
| 19202 |
* src/load.c (Scm_Load): fixed a bug that treats LOAD_QUIET_NOFILE |
| 19203 |
flag incorrectly. |
| 19204 |
|
| 19205 |
* src/main.c: added -fprofile option to profile the script. |
| 19206 |
* lib/gauche/vm/profiler.scm : fix |
| 19207 |
|
| 19208 |
2005-02-16 Shiro Kawai <[email protected]> |
| 19209 |
|
| 19210 |
* src/vminsn.scm, src/vm.c : changed LAMBDA insn to CLOSURE insn, |
| 19211 |
dropping arg # parameters (now they're in compiled code). Also |
| 19212 |
integrated DEFINE-CONST into DEFINE; two are now distinguished |
| 19213 |
by its parameter. |
| 19214 |
* src/gauche/vm.h : added evalSituation field to ScmVMRec to support |
| 19215 |
eval-when construct. |
| 19216 |
* src/comp.scm: added eval-when construct. |
| 19217 |
|
| 19218 |
2005-02-13 Shiro Kawai <[email protected]> |
| 19219 |
|
| 19220 |
* src/comp.scm (and-let* form cenv): support and-let* natively. |
| 19221 |
(quasiquote): improved generated code. |
| 19222 |
* src/gauche-init.scm, src/load.c : provide srfi-2 by default, for |
| 19223 |
and-let* is now supported natively. |
| 19224 |
* lib/srfi-2.scm: removed. |
| 19225 |
|
| 19226 |
2005-02-12 Shiro Kawai <[email protected]> |
| 19227 |
|
| 19228 |
* src/vm.c: fix positions of SCM_PROF_COUNT_CALL to properly record |
| 19229 |
method invocation. assign names to the code created internally |
| 19230 |
at runtime (e.g. apply, eval) so that they can be shown in the |
| 19231 |
profiler output. |
| 19232 |
* src/builtin-syms.scm: added some symbols for the profiling purpose |
| 19233 |
described above. |
| 19234 |
* src/comp.scm: series of performance tuning. |
| 19235 |
|
| 19236 |
2005-02-09 Shiro Kawai <[email protected]> |
| 19237 |
|
| 19238 |
* src/prof.c, src/gauche/prof.h: moved experimental profiler code |
| 19239 |
from core.c to here, and make the profiler buffer VM-local instead |
| 19240 |
of global. |
| 19241 |
|
| 19242 |
2005-02-05 Shiro Kawai <[email protected]> |
| 19243 |
|
| 19244 |
* src/comp.scm: changed intermediate structure to use nested vectors. |
| 19245 |
changed define-builtin-inliner to assign inliner function directly |
| 19246 |
to the builtin subrs. |
| 19247 |
|
| 19248 |
2005-02-04 Shiro Kawai <[email protected]> |
| 19249 |
|
| 19250 |
* src/core.c: added experimental sampling profiler code. it uses |
| 19251 |
ITIMER_PROF, so it won't be available for all platforms. |
| 19252 |
* lib/gauche/vm/profiler.scm: profiler utilities. |
| 19253 |
|
| 19254 |
2005-02-02 Shiro Kawai <[email protected]> |
| 19255 |
|
| 19256 |
* configure.ac, src/gauche/config.h.in (DOUBLE_ARMENDIAN): |
| 19257 |
added check to support ARM processor. |
| 19258 |
* src/number.c (union ieee_double), ext/binary/binary.c (SWAPD): |
| 19259 |
support ARM's mixed endian |
| 19260 |
* ext/uvector/uvectorP.h (s8unbox): ensure return type is signed |
| 19261 |
char. |
| 19262 |
|
| 19263 |
2005-01-25 Shiro Kawai <[email protected]> |
| 19264 |
|
| 19265 |
* lib/gauche/condutil.scm (extract-condition): fixed a bug that |
| 19266 |
error was used where errorf should have been. Patch from |
| 19267 |
Ueyama Rui. |
| 19268 |
|
| 19269 |
2005-01-24 Shiro Kawai <[email protected]> |
| 19270 |
|
| 19271 |
* extlib.stub (append!): fixed to allow non-list in the last arg, |
| 19272 |
for consistency of srfi-1. |
| 19273 |
|
| 19274 |
2005-01-16 Shiro Kawai <[email protected]> |
| 19275 |
|
| 19276 |
* lib/gauche/vm/insn.scm.src, src/gencomp: calculate generated code |
| 19277 |
vector using the target compiler's instruction set, instead of |
| 19278 |
the host compiler's. |
| 19279 |
* src/vminsn.scm: rearranged. |
| 19280 |
|
| 19281 |
2005-01-15 Shiro Kawai <[email protected]> |
| 19282 |
|
| 19283 |
* src/comp.scm: implemented builtin procedure inlining. |
| 19284 |
|
| 19285 |
2005-01-14 Shiro Kawai <[email protected]> |
| 19286 |
|
| 19287 |
* src/compile.c, src/vm.c, src/comp.scm, etc: snapshot of replacing |
| 19288 |
the legacy compiler for the new compiler. Legacy code is #ifdef-ed |
| 19289 |
out. Procedure inlining is not supported, but other functionalities |
| 19290 |
work. |
| 19291 |
|
| 19292 |
2005-01-09 Shiro Kawai <[email protected]> |
| 19293 |
|
| 19294 |
* src/vm.c, src/gauche/vm.h (ScmSyntacticClosure): Added syntactic |
| 19295 |
closure object. Although most functionalities that deal with |
| 19296 |
syntactic closures will be written in Scheme, we need a disjoint |
| 19297 |
type for this, and we need it without bootstrapping. |
| 19298 |
|
| 19299 |
2005-01-08 Shiro Kawai <[email protected]> |
| 19300 |
|
| 19301 |
* src/list.c (Scm_Length): changed API to return distinct values for |
| 19302 |
dotted and circulare lists (SCM_LIST_DOTTED and SCM_LIST_CIRCULAR, |
| 19303 |
respectively). This shouldn't affect existing code, since they |
| 19304 |
all checks if the return value is negative or not. |
| 19305 |
* src/gauche.h : added the enums for above change, and also added |
| 19306 |
three macros, SCM_PROPER_LIST_P, SCM_DOTTED_LIST_P and |
| 19307 |
SCM_CIRCULAR_LIST_P. |
| 19308 |
* src/extlib.stub : included srfi-1's proper-list?, dotted-list? |
| 19309 |
and circular-list?. |
| 19310 |
|
| 19311 |
2005-01-07 Shiro Kawai <[email protected]> |
| 19312 |
|
| 19313 |
* ext/net/net.scm (make-server-socket, make-server-sockets): added |
| 19314 |
:sock-init keyword arguments (Patch from Tatsuya BIZENN). |
| 19315 |
|
| 19316 |
2005-01-05 Shiro Kawai <[email protected]> |
| 19317 |
|
| 19318 |
* ext/mt-random/mt-random.scm (mt-random-integer): fixed a bug in |
| 19319 |
rarely-executed branch of the code. |
| 19320 |
|
| 19321 |
2004-12-30 Shiro Kawai <[email protected]> |
| 19322 |
|
| 19323 |
* src/intlib.stub : moved some APIs from extlib which are only intended |
| 19324 |
to be used by Gauche internal routines. |
| 19325 |
|
| 19326 |
2004-12-27 Shiro Kawai <[email protected]> |
| 19327 |
|
| 19328 |
* src/class.c (Scm_ClassOf, Scm_EOFObjectClass, Scm_UndefinedObjectClass): |
| 19329 |
added classes for singleton immediate object #<eof> and #<undef>. |
| 19330 |
* src/vm.c : added some API needed to run pre-compiled code. |
| 19331 |
* src/gencomp : added initial version of a script to pre-compile |
| 19332 |
the compiler. |
| 19333 |
* src/comp.scm : added a skeleton of the compiler. |
| 19334 |
|
| 19335 |
2004-12-26 Shiro Kawai <[email protected]> |
| 19336 |
|
| 19337 |
* lib/gauche/condutil.scm, lib/gauche/object.scm (object-apply): |
| 19338 |
moved object-apply of <condition-type> from condutil.scm to |
| 19339 |
object.scm, so that condition-type-as-predicate works without |
| 19340 |
loading condutil.scm. |
| 19341 |
|
| 19342 |
* src/compile.c, src/class.c (<identifier>): expose identifier |
| 19343 |
internals to Scheme. This is temporary solution until the compiler |
| 19344 |
is revised. |
| 19345 |
|
| 19346 |
* lib/gauche/cgen.scm : handles static literals more wisely. |
| 19347 |
* src/autoloads.scm, src/builtin-syms.scm : changed accordingly. |
| 19348 |
|
| 19349 |
* src/gauche.h (SCM_STRING_CONST_INITIALIZER): separated constant |
| 19350 |
string initializer to an individual macro. |
| 19351 |
|
| 19352 |
2004-12-24 Shiro Kawai <[email protected]> |
| 19353 |
|
| 19354 |
* lib/file/util.scm: added decompose-path, path-extension, |
| 19355 |
path-sans-extension and path-swap-extension. |
| 19356 |
* Makefile.in, src/Makefile.in, lib/Makefile.in (pre-package): |
| 19357 |
added a target 'pre-package', which should be run before creating |
| 19358 |
distribution tarball. It generates some files that requires |
| 19359 |
pre-installed Gauche. |
| 19360 |
* lib/gauche/vm/insn.scm.src : added. It generates insn.scm from |
| 19361 |
src/vminsn.scm. |
| 19362 |
* src/compile.c (Scm_Compile): changed API to make Scm_Compile as |
| 19363 |
the default gate to the compiler module. |
| 19364 |
* src/vm.c, src/gauche.h: changed accordingly. |
| 19365 |
|
| 19366 |
2004-12-23 Shiro Kawai <[email protected]> |
| 19367 |
|
| 19368 |
* src/vminsn.scm, src/geninsn: added. manage VM insn definition |
| 19369 |
in Scheme format instead of *.h and cpp trick. |
| 19370 |
* src/gauche/vminsn.h: removed. Now it is generated from vminsn.scm. |
| 19371 |
* src/gauche/vm.h: no longer include vminsn.h. The C files that needs |
| 19372 |
vminsn symbols must include gauche/vminsn.h explicitly. |
| 19373 |
* src/vm.c, src/compile.c, src/macro.c, src/stdlib.stub, |
| 19374 |
src/extlib.stub, src/moplib.stub: changed accordingly. |
| 19375 |
* src/Makefile.in: added rules to generate vminsn.[ch]. |
| 19376 |
|
| 19377 |
2004-12-22 Shiro Kawai <[email protected]> |
| 19378 |
|
| 19379 |
* src/vm.c, src/gauche/vm.h, |
| 19380 |
src/compile.c, src/proc.c, src/builtin-syms.scm : |
| 19381 |
Changed VM to use code-vector instead of directed graph. |
| 19382 |
The compiled code is now converted to ScmCompiledCode before |
| 19383 |
executed. This is the first stage of the new VM/compiler |
| 19384 |
architecture. |
| 19385 |
* src/core.c, src/main.c : |
| 19386 |
Added -fcollect-stats option experimentally, to collect and |
| 19387 |
display VM stats info. |
| 19388 |
* lib/gauche/vm/disasm.scm : removed. the functionality is |
| 19389 |
supported by core. |
| 19390 |
* lib/gauche/procedure.scm : the 'disasm' function (wrapper |
| 19391 |
of more primitive subrs) are defined here. |
| 19392 |
|
| 19393 |
2004-12-21 Shiro Kawai <[email protected]> |
| 19394 |
|
| 19395 |
* src/gauche/arith_i386.h (UMULOV, SMULOV): use "g" constraint to |
| 19396 |
avoid gcc from failing to allocate registers in some cases. |
| 19397 |
* acinclude.m4, aclocal.m4 (AC_GAUCHE_OPTFLAGS): check $target instead |
| 19398 |
of $host. Use 'case' to check if the compiler is gcc or not. |
| 19399 |
|
| 19400 |
2004-12-18 Shiro Kawai <[email protected]> |
| 19401 |
|
| 19402 |
* lib/gauche/sortutil.scm (stable-sort!): fixed a bug when sorting |
| 19403 |
vectors. |
| 19404 |
|
| 19405 |
2004-12-17 Shiro Kawai <[email protected]> |
| 19406 |
|
| 19407 |
* src/gauche.h, src/gauche/class.h, src/gauche/memory.h, |
| 19408 |
src/list.c, src/compile.c, src/macro.c, src/read.c, src/vm.c, |
| 19409 |
src/error.c, src/builtin-syms.scm: Changed tagging scheme |
| 19410 |
to make ScmPair 2 words. |
| 19411 |
|
| 19412 |
2004-12-15 Shiro Kawai <[email protected]> |
| 19413 |
|
| 19414 |
* ext/digest/md5.stub, ext/digest/md5.scm, |
| 19415 |
ext/digest/sha1.stub, ext/digest/sha1.scm, |
| 19416 |
ext/digest/Makeifle.in: modified to use u8vector as a buffer |
| 19417 |
instead of string. Based on the patch from Michal Maruška. |
| 19418 |
|
| 19419 |
2004-12-14 Shiro Kawai <[email protected]> |
| 19420 |
|
| 19421 |
* lib/gauche/collection.scm (fold2, fold3, map-accum, |
| 19422 |
group-collection): added these procedures. |
| 19423 |
* lib/gauche/sequence.scm (group-sequence): added a procedure. |
| 19424 |
* test/colseq.scm, doc/modgauche.texi: updated accordingly. |
| 19425 |
|
| 19426 |
2004-12-11 Shiro Kawai <[email protected]> |
| 19427 |
|
| 19428 |
* lib/util/queue.scm (queue-push-unique!, enqueue-unique!): added |
| 19429 |
these procedures. |
| 19430 |
* test/util.scm, doc/modutil.texi: updated accordingly. |
| 19431 |
|
| 19432 |
2004-12-03 Shiro Kawai <[email protected]> |
| 19433 |
|
| 19434 |
* src/Makefile.in: changed LDFLAGS to have -L. before the directories |
| 19435 |
given in --with-local=DIR, to avoid conflicts against the existing |
| 19436 |
libgauche in DIRs. |
| 19437 |
|
| 19438 |
2004-12-02 Shiro Kawai <[email protected]> |
| 19439 |
|
| 19440 |
* release 0.8.3 |
| 19441 |
|
| 19442 |
* lib/slib.scm.in (software-type): check architecture so that |
| 19443 |
it returns MS-DOS on Windows/MinGW version. |
| 19444 |
* src/port.c (look_for_encoding): ignore '-(unix|dos|mac)' suffix |
| 19445 |
of encoding name in the coding magic comment, for Emacs |
| 19446 |
compatibility. |
| 19447 |
* src/number.c (Scm_PrintDouble): added API to use Burger&Dybvig |
| 19448 |
algorithm. |
| 19449 |
* ext/uvector/uvgen.scm: fixed to print values of f32 and f64 vectors |
| 19450 |
accurately. |
| 19451 |
|
| 19452 |
2004-12-01 Shiro Kawai <[email protected]> |
| 19453 |
|
| 19454 |
* src/port.c (coding_port_recognize_encoding): fixed a bug that |
| 19455 |
caused misbehavior of coding-aware ports with CRLF line terminators. |
| 19456 |
|
| 19457 |
2004-11-29 Shiro Kawai <[email protected]> |
| 19458 |
|
| 19459 |
* release 0.8.2 |
| 19460 |
|
| 19461 |
* src/error.c (porterror_cpl): added missing terminating NULL of CPA. |
| 19462 |
(porterror_allocate): added missing initialization of 'message slot. |
| 19463 |
* src/gauche/vm.h (SCM_SIGPENDING): recovered, for some extensions |
| 19464 |
use this macro. Should be considered deprecated. |
| 19465 |
* lib/gauche/exclib.stub (extract-condition): added slot-bound check. |
| 19466 |
|
| 19467 |
2004-11-28 Shiro Kawai <[email protected]> |
| 19468 |
|
| 19469 |
* lib/gauche/condutil.scm (define-condition-type): extended to |
| 19470 |
allow #f as predicate and omitting accessors. |
| 19471 |
|
| 19472 |
* lib/www/cgi.scm: added some condition types to be raised on |
| 19473 |
invalid requests. |
| 19474 |
|
| 19475 |
2004-11-27 Shiro Kawai <[email protected]> |
| 19476 |
|
| 19477 |
* ext/uvector/array.scm (share-array): fix to support uniform arrays |
| 19478 |
(pointed out by OGURISU Osamu). |
| 19479 |
|
| 19480 |
2004-11-25 Shiro Kawai <[email protected]> |
| 19481 |
|
| 19482 |
* src/core.c (Scm_Init): setting of GC_finalize_on_demand was |
| 19483 |
reversed. fixed. |
| 19484 |
|
| 19485 |
* lib/rfc/mime.scm (make-mime-port): fixed a bug that incorrectly |
| 19486 |
treated CR-CR-LF sequence just before a boundary. |
| 19487 |
|
| 19488 |
* lib/www/cgi.scm (cgi-parse-parameters): use limited-length-port |
| 19489 |
to read POST message body if content-length is specified. It is |
| 19490 |
necessary when the progam is communicating with persistent |
| 19491 |
connection, which doesn't delimit the message body by EOF. |
| 19492 |
|
| 19493 |
2004-11-24 Shiro Kawai <[email protected]> |
| 19494 |
|
| 19495 |
* ext/vport/vport.scm (open-input-limited-length-port): added |
| 19496 |
experimentally. |
| 19497 |
|
| 19498 |
* lib/www/cgi.scm (cgi-parse-parameters): better API to support |
| 19499 |
POST with multipart/form-data. |
| 19500 |
|
| 19501 |
2004-11-23 Shiro Kawai <[email protected]> |
| 19502 |
|
| 19503 |
* ext/charconv/charconv.scm (ces-convert): close temporary ports |
| 19504 |
properly to avoid unnecessary finalizer invocation. |
| 19505 |
|
| 19506 |
2004-11-22 Shiro Kawai <[email protected]> |
| 19507 |
|
| 19508 |
* src/write.c (write_ss): close temporary port to avoid unnecessary |
| 19509 |
finalizer call. |
| 19510 |
* src/vm.c (run_loop): fixed a bug that didn't save VM regs before |
| 19511 |
calling Scm_SigCheck, which sometimes caused SEGV after getting |
| 19512 |
signals. Also changed to check queued finalizer as well. |
| 19513 |
(process_queued_requests): handles queued signal handlers and |
| 19514 |
finalizers properly. |
| 19515 |
* src/core.c: implemented finalizer queue. |
| 19516 |
* src/signal.c: slightly changed data structure. |
| 19517 |
* src/gauche/vm.h: ditto |
| 19518 |
|
| 19519 |
* ext/uvector/array.scm (initialize): fixed write-object method |
| 19520 |
to avoid stale shared-structure output. |
| 19521 |
|
| 19522 |
2004-11-21 Shiro Kawai <[email protected]> |
| 19523 |
|
| 19524 |
* src/core.c (Scm_LibraryDirectory etc): made these API instead of |
| 19525 |
configure-time macro reference, to hide difference in MinGW. |
| 19526 |
* src/load.c (Scm__InitLoad): ditto |
| 19527 |
|
| 19528 |
* DIST, src/Makefile.in: tweaks to create MinGW binary distribution. |
| 19529 |
|
| 19530 |
2004-11-20 Shiro Kawai <[email protected]> |
| 19531 |
|
| 19532 |
* lib/rfc/mime.scm (make-mime-port): fixed a bug that didn't |
| 19533 |
consume '\n' following '\r' after the boundary. |
| 19534 |
|
| 19535 |
* lib/www/cgi.scm (get-mime-parts): supports file+name handler |
| 19536 |
action. |
| 19537 |
|
| 19538 |
2004-11-19 Shiro Kawai <[email protected]> |
| 19539 |
|
| 19540 |
* ext/vport/vport.c (Scm_Init_vport): added missing SCM_INIT_EXTENSION |
| 19541 |
|
| 19542 |
2004-11-13 Shiro Kawai <[email protected]> |
| 19543 |
|
| 19544 |
* ext/binary/test.scm: exclude denormalized 32-bit floating point |
| 19545 |
test on Alpha, since they're not precisely supported on that |
| 19546 |
architecture. |
| 19547 |
* src/number.c, ext/uvector/*: various fixed on LP64 architecture. |
| 19548 |
|
| 19549 |
2004-11-12 Shiro Kawai <[email protected]> |
| 19550 |
|
| 19551 |
* lib/rfc/mime.scm (mime-parse-message etc.): |
| 19552 |
INCOMPATIBLE CHANGE: Re-implemented MIME body parser to use |
| 19553 |
procedural port to recognize MIME boundary. The previous approach |
| 19554 |
turned not to work if the body contains raw binary data. |
| 19555 |
This change make the 'READER' argument for handlers unnecessary, |
| 19556 |
and the API has been changed accordingly. |
| 19557 |
* lib/www/cgi.scm : Adjusted to the above API change. |
| 19558 |
|
| 19559 |
2004-11-11 Shiro Kawai <[email protected]> |
| 19560 |
|
| 19561 |
* lib/gauche/procedure.scm (let-keywords*): fixed a bug that corrupts |
| 19562 |
expansion when used in r5rs macro. |
| 19563 |
|
| 19564 |
* src/builtin-syms.scm: added SCM_SYM_BIG_ENDIAN and |
| 19565 |
SCM_SYM_LITTLE_ENDIAN. |
| 19566 |
* ext/binary/binarylib.stub: changed accordingly. |
| 19567 |
|
| 19568 |
* ext/uvector: EXPERIMENTAL: added byte-swapping APIs |
| 19569 |
(TAGvector-byte-swap, TAGvector-byte-swap!, uvector-byte-swap, |
| 19570 |
uvector-byte-swap!), and added optional `endian' argument to |
| 19571 |
read-block! and write-block. Not completely sure if they have to |
| 19572 |
be here, so let's say they're experimental. |
| 19573 |
|
| 19574 |
* ext/vport: added open-input-uvector and open-output-uvector, |
| 19575 |
uvector backed-up ports. |
| 19576 |
|
| 19577 |
2004-11-10 Shiro Kawai <[email protected]> |
| 19578 |
|
| 19579 |
* src/class.c (Scm_DeleteMethod): fixed a bug that caused infinite |
| 19580 |
loop during class redefinition. |
| 19581 |
|
| 19582 |
* lib/text/csv.scm (make-csv-reader|writer): made quote-char |
| 19583 |
customizable (Patch from Alex Shinn). |
| 19584 |
|
| 19585 |
2004-11-09 Shiro Kawai <[email protected]> |
| 19586 |
|
| 19587 |
* lib/binary/pack.scm (read-one-packer): fixed a bug of '@' handling |
| 19588 |
in unpack. |
| 19589 |
|
| 19590 |
2004-11-04 Shiro Kawai <[email protected]> |
| 19591 |
|
| 19592 |
* src/number.c, src/bignum.c: fixed bugs in boundary cases of |
| 19593 |
integer conversions. changed API of Scm_GetInteger* to allow |
| 19594 |
more flexible handling of clamping behavior. See the comment |
| 19595 |
in src/gauche.h (`Converting a Scheme number to a C number' |
| 19596 |
for the details. |
| 19597 |
* src/gauche.h: changed accodringly. |
| 19598 |
* src/extlib.stub: changed acoodringly. |
| 19599 |
* src/test-arith.c : added test for integer conversion APIs. |
| 19600 |
* src/gauche/scmconst.h, src/number.c (SCM_2_64_MINUS_1): new constant. |
| 19601 |
|
| 19602 |
* ext/uvector/*: replaced the dreaded shell scripts for friendy |
| 19603 |
Scheme scripts (uvgen.scm) to generate C code. The API is |
| 19604 |
cleaned up a lot, particularly the humble task of conversions |
| 19605 |
and clamping between Scheme integers and 32/64-bit C integers |
| 19606 |
are integrated to the Gauche core. |
| 19607 |
- also added string->[su]8vector! |
| 19608 |
- also changed the API of TAGvector-copy! to be parallel with |
| 19609 |
srfi-13(string-copy!) and srfi-43(vector-copy!). The old API |
| 19610 |
is still supported, dispatched by the argument type, but will |
| 19611 |
be deprecated. |
| 19612 |
|
| 19613 |
* ext/mt-random/*: changed according to the modification of uvector. |
| 19614 |
|
| 19615 |
2004-11-03 Shiro Kawai <[email protected]> |
| 19616 |
|
| 19617 |
* src/portapi.c (Scm_Putb, Scm_Putc): size argument of the |
| 19618 |
bufport_flush call was not good, causing excess flusing of |
| 19619 |
buffer to make buffered output inefficient. |
| 19620 |
* ext/vport/* : supported bufferd-input|output-port. |
| 19621 |
|
| 19622 |
2004-11-01 Shiro Kawai <[email protected]> |
| 19623 |
|
| 19624 |
* lib/file/util.scm (directory-list): fix not to include "." and |
| 19625 |
".." even if :filter-add-path? is #t. |
| 19626 |
|
| 19627 |
* lib/srfi-19.scm (date->julian-day): fix a bug to honor tz-offset. |
| 19628 |
|
| 19629 |
* configure.ac, ext/Makefile.in : added ext/vport |
| 19630 |
* src/gauche.h : removed 'Getline' entry from ScmPortVTableRec; it |
| 19631 |
seems only to add extra complexity. Also changed the return value |
| 19632 |
of Scm_ClosePort to void, since the return value hasn't used at all. |
| 19633 |
* src/port.c : fixed accordingly. |
| 19634 |
* ext/vport/* : the first phase of supporting virtual ports. |
| 19635 |
|
| 19636 |
2004-10-31 Shiro Kawai <[email protected]> |
| 19637 |
|
| 19638 |
* src/extlib.stub (byte-ready?): added. |
| 19639 |
|
| 19640 |
2004-10-21 Shiro Kawai <[email protected]> |
| 19641 |
|
| 19642 |
* src/gauche.h, src/port.c : fixed return type of vtable entries. |
| 19643 |
|
| 19644 |
2004-10-17 Shiro Kawai <[email protected]> |
| 19645 |
|
| 19646 |
* src/error.c, src/gauche.h, src/gauche/exception.h: added |
| 19647 |
<io-unit-error>. |
| 19648 |
|
| 19649 |
* lib/gauche/parseopt.scm (let-args): fixed a bug of 'else' clause |
| 19650 |
formal parameter handling. |
| 19651 |
|
| 19652 |
2004-10-12 Shiro Kawai <[email protected]> |
| 19653 |
|
| 19654 |
* src/gauche.h: avoid using 'template' as an argument name. |
| 19655 |
|
| 19656 |
2004-10-10 Shiro Kawai <[email protected]> |
| 19657 |
|
| 19658 |
* lib/gauche/condutil.scm : added. defines miscellaneous srfi-35 |
| 19659 |
compatible APIs. autoloaded. |
| 19660 |
* lib/Makefile.in : added condutil.scm |
| 19661 |
* src/error.c : changed the name of 'conditions' slot of |
| 19662 |
<compound-condition> to '%conditions', to avoid name conflict |
| 19663 |
with its members. |
| 19664 |
|
| 19665 |
2004-10-09 Shiro Kawai <[email protected]> |
| 19666 |
|
| 19667 |
|
| 19668 |
* src/port.c, src/portapi.c : revised to use Scm_PortError instead |
| 19669 |
of Scm_Error when appropriate. |
| 19670 |
* src/read.c : replaced some Scm_Error by Scm_ReadError. |
| 19671 |
* src/class.c (Scm_InitStaticClassWithMeta): exported for tricky |
| 19672 |
use, if the builtin class wants to control both metaclasses and |
| 19673 |
superclasses. |
| 19674 |
(Scm_ObjectAllocate): expose object_allocate so that |
| 19675 |
other C-defined placeholding "base" class (i.e. classes only |
| 19676 |
introduced for inheritance, but does not introduce C-specific |
| 19677 |
slots) can be used as a a superclass of other C-defined classes. |
| 19678 |
* src/error.c (Scm_PortError): added utility function. |
| 19679 |
(Scm_PrintDefaultErrorHeading): use condition's class name to |
| 19680 |
display the error message heading. |
| 19681 |
(Scm_ConditionTypeName): for convenicne. |
| 19682 |
* src/exclib.stub : some srfi-35 procedures. |
| 19683 |
* src/vm.c (Scm_VMThrowException): changed the non-continuable |
| 19684 |
exception check according to the new condition hierarchy. |
| 19685 |
* test/exception.scm : modified according to the recent change. |
| 19686 |
|
| 19687 |
2004-10-08 Shiro Kawai <[email protected]> |
| 19688 |
|
| 19689 |
* src/class.c: revised class initialization API. Scm_InitBuiltinClass |
| 19690 |
is obsoleted; use Scm_InitStaticClass instead. |
| 19691 |
Also added Scm_InitStaticClassWithSupers for the builtin class |
| 19692 |
with multiple inheritance (used for condition hierarchy). |
| 19693 |
* src/error.c, src/gauche/exception.h : revised to support condition |
| 19694 |
hierarchy. Renamed ScmException -> ScmCondition, for the consistency |
| 19695 |
with srfi-35. |
| 19696 |
* src/gauche-init.scm : make <exception> a synonym of <condition>, |
| 19697 |
for backward compatibility. |
| 19698 |
* various files: modified according to the change of class |
| 19699 |
initialization API. |
| 19700 |
|
| 19701 |
2004-10-05 Shiro Kawai <[email protected]> |
| 19702 |
|
| 19703 |
* ext/charconv/guess.c: fixed initializer type mismatch. |
| 19704 |
|
| 19705 |
* lib/rfc/822.scm (rfc822-parse-date) : fix off-by-one error of |
| 19706 |
return value of month. |
| 19707 |
* test/rfc.scm : ditto |
| 19708 |
|
| 19709 |
* src/gauche.h, src/portapi.c : code clean up |
| 19710 |
|
| 19711 |
2004-10-03 Shiro Kawai <[email protected]> |
| 19712 |
|
| 19713 |
* src/port.c: removed dead code. |
| 19714 |
* test/dynwind.scm: added a few tests (Patch from Ueyama Rui) |
| 19715 |
|
| 19716 |
2004-09-20 Shiro Kawai <[email protected]> |
| 19717 |
|
| 19718 |
* src/portapi.c, src/gauche.h : changed ScmPortVTable.Ready to take |
| 19719 |
extra arg to distinguish between byte-ready? and char-ready?. |
| 19720 |
|
| 19721 |
2004-09-19 Shiro Kawai <[email protected]> |
| 19722 |
|
| 19723 |
* src/gauche.h : added missing prototypes of several number-related |
| 19724 |
APIs. (Thanks to OGURISU Osamu for pointing this out). |
| 19725 |
* src/number.c (roundeven): fixed a bug. |
| 19726 |
(Scm_PromoteToComplex): fixed a bug (Patch from OGURISU Osamu). |
| 19727 |
|
| 19728 |
2004-09-17 Shiro Kawai <[email protected]> |
| 19729 |
|
| 19730 |
* src/load.c (Scm_VMLoad): use coding-aware port to load source file |
| 19731 |
by default. Changed the API to take bitmask flags. |
| 19732 |
* src/port.c : changed some API to allow port subclasses. |
| 19733 |
* src/gauche.h : changed accordingly. |
| 19734 |
|
| 19735 |
* src/gauche.h (ScmPort): supports line counting feature in generic |
| 19736 |
port level, instead of only in buffered ports. |
| 19737 |
* src/port.c, src/portapi.c, src/read.c : changed accordingly. |
| 19738 |
|
| 19739 |
2004-09-16 Shiro Kawai <[email protected]> |
| 19740 |
|
| 19741 |
* src/port.c (Scm_MakeCodingAwarePort): preparation of enabling |
| 19742 |
'coding:' magic comment in the source file. |
| 19743 |
* src/gauche.h: ditto |
| 19744 |
* src/extlib.stub (open-coding-aware-port): ditto |
| 19745 |
* ext/charconv/charconv.c: ditto |
| 19746 |
* tests/io.scm, ext/charconv/test.scm: ditto. |
| 19747 |
* src/portapi.c (Scm_ByteReady): added |
| 19748 |
* src/gauche/char_sjis.h: added some more encoding aliases of sjis. |
| 19749 |
* src/char.c (Scm_SupportedCharacterEncodingP): compare the encoding |
| 19750 |
names case-insensitively. |
| 19751 |
|
| 19752 |
2004-09-14 Shiro Kawai <[email protected]> |
| 19753 |
|
| 19754 |
* ext/charconv/jconv.c (sjis2eucj): fix for sjis 2nd plane convesion |
| 19755 |
(patch from Kimura Fuyuki). |
| 19756 |
|
| 19757 |
* lib/www/cgi.scm (cgi-header): put :status first if specified. |
| 19758 |
|
| 19759 |
2004-09-13 Shiro Kawai <[email protected]> |
| 19760 |
|
| 19761 |
* gc/* : updated to gc6.3 |
| 19762 |
* src/Makefile.in : ditto |
| 19763 |
|
| 19764 |
* ext/uvector/array.scm (gauche.array): added exported symbols. |
| 19765 |
|
| 19766 |
2004-09-12 Shiro Kawai <[email protected]> |
| 19767 |
|
| 19768 |
* lib/gauche/regexp.scm (regexp-replace-all): detect the case when |
| 19769 |
regexp matched to null string, and raises an error to avoid infinite |
| 19770 |
loop. |
| 19771 |
* lib/dbm/fsdbm.scm : allow binary data to be stored. |
| 19772 |
|
| 19773 |
2004-09-11 Shiro Kawai <[email protected]> |
| 19774 |
|
| 19775 |
* ext/termios/* : Added support of termios.c_cc (Based on the patch |
| 19776 |
from Kogule, Ryo). |
| 19777 |
|
| 19778 |
2004-09-01 Shiro Kawai <[email protected]> |
| 19779 |
|
| 19780 |
* ext/fcntl/fcntl.c (Scm_SysFcntl): Supports F_GETOWN and F_SETOWN |
| 19781 |
if the system provides them. |
| 19782 |
* ext/fcntl/fcntl.scm, ext/fcntl/fcntlib.stub: ditto |
| 19783 |
|
| 19784 |
2004-08-28 Kimura Fuyuki <[email protected]> |
| 19785 |
|
| 19786 |
* src/bignum.c (Scm_BignumToUI64): Avoid using `a=a=1' style |
| 19787 |
assignment. Newer gcc versions don't like it and say that |
| 19788 |
operation "may be undefined". |
| 19789 |
|
| 19790 |
* ext/termios/gauche/termios.h, ext/uvector/uvlib.stub.sh, |
| 19791 |
src/bignum.c: Include more header files to suppress compiler |
| 19792 |
warnings such like "implicit declaration". |
| 19793 |
|
| 19794 |
2004-08-23 Shiro Kawai <[email protected]> |
| 19795 |
|
| 19796 |
* lib/util/match.scm (validate-pattern): fixed a bug in quasipattern. |
| 19797 |
|
| 19798 |
2004-08-19 Shiro Kawai <[email protected]> |
| 19799 |
|
| 19800 |
* src/compile.c, src/genstub, src/stlib.stub, src/gauche.h, |
| 19801 |
src/gauche/vm.h: got rid of Scm_CompileInliner. |
| 19802 |
|
| 19803 |
2004-08-18 Shiro Kawai <[email protected]> |
| 19804 |
|
| 19805 |
* configure.ac (SONAME_FLAG), src/Makefile.in : attach |
| 19806 |
SONAME to libgauche.so when the linker takes --soname flag. |
| 19807 |
|
| 19808 |
* src/compile.c, src/stdlib.stub, src/gauche/vm.h: |
| 19809 |
making an inliner into a generic compiler macro, stage 3. |
| 19810 |
Now the inliner is (Sexpr, Env, Context) -> (Sexpr), which is |
| 19811 |
the same as the macro transformer. |
| 19812 |
|
| 19813 |
2004-08-14 Shiro Kawai <[email protected]> |
| 19814 |
|
| 19815 |
* src/compile.c, src/macro.c, src/genstub, src/gauche.h: |
| 19816 |
making an inliner into a generic compiler macro, stage 2. |
| 19817 |
|
| 19818 |
2004-08-12 Shiro Kawai <[email protected]> |
| 19819 |
|
| 19820 |
* src/gauche.h (ScmSubr, ScmInliner), |
| 19821 |
src/compile.c (compile_int), |
| 19822 |
src/genstub, src/stdlib.stub: making an inliner into a generic |
| 19823 |
compiler macro, stage 1. |
| 19824 |
|
| 19825 |
2004-08-04 Shiro Kawai <[email protected]> |
| 19826 |
|
| 19827 |
* lib/Makefile.in (slibcat-in-place): fix. patch from Kogulé, Ryo. |
| 19828 |
* ltmain.sh (EGREP): fix. patch from Kogulé, Ryo. |
| 19829 |
|
| 19830 |
2004-08-02 Shiro Kawai <[email protected]> |
| 19831 |
|
| 19832 |
* release 0.8.1 |
| 19833 |
|
| 19834 |
* ext/net/net.h : moved to ext/net/gauche/net.h, for consistency. |
| 19835 |
* ext/net/*.c : adapted to the above change |
| 19836 |
* ext/Makefile.ext.in : fixed header installation. |
| 19837 |
|
| 19838 |
2004-08-01 Shiro Kawai <[email protected]> |
| 19839 |
|
| 19840 |
* configure.ac : disable using -rpath if --with-rpath=no is given. |
| 19841 |
disable using makeverslink on cygwin. |
| 19842 |
|
| 19843 |
* Makefile.in (install-pkg): make install under lib/ and ext/ before |
| 19844 |
src/. Since "make install" under lib and ext requires gosh, we want |
| 19845 |
to make sure we use just-built libgauche.so; thus we want to run them |
| 19846 |
before relinking with new -rpath. |
| 19847 |
|
| 19848 |
* ext/sxml/ssax.scm.in (sxml.ssax): extend srfi-11 and sxml.adaptor, |
| 19849 |
since the macro generated by ssax:make-parser will include references |
| 19850 |
to the symbols defined in them. This won't be a problem once |
| 19851 |
ssax is rewritten by R5RS macros, so this should be regarded as |
| 19852 |
a temporary fix. |
| 19853 |
|
| 19854 |
* src/link-hpux : fixed dynamic link search path problem. |
| 19855 |
* src/makeverslink : avoid creating links if they are already created. |
| 19856 |
* ext/Makefile.ext.in, src/charconv/Makefile.in, src/sxml/Makefile.in: |
| 19857 |
avoid using GNU make specific feature. |
| 19858 |
|
| 19859 |
2004-07-31 Shiro Kawai <[email protected]> |
| 19860 |
|
| 19861 |
* src/compile.c (Scm_UnwrapSyntax): expose this as an API. |
| 19862 |
* src/extlib.c (unwrap-syntax): made it a subr. |
| 19863 |
* lib/gauche/common-macros.scm (unwrap-syntax): made it a subr. |
| 19864 |
* src/error.c (Scm_ShowStackTrace): a bit of cleanup. |
| 19865 |
* src/gauche/char_euc_jp.h (SCM_CHAR_GET): tighten the rules to |
| 19866 |
accept euc-jp sequence. |
| 19867 |
|
| 19868 |
2004-07-29 Shiro Kawai <[email protected]> |
| 19869 |
|
| 19870 |
* lib/www/cgi.scm (cgi-add-temporary-file, cgi-main): added capability |
| 19871 |
to clean up temporary files upon exit of cgi-main. |
| 19872 |
|
| 19873 |
2004-07-28 Shiro Kawai <[email protected]> |
| 19874 |
|
| 19875 |
* lib/util/match.scm (gen) : fixed a bug that reused a temporary |
| 19876 |
variable for intermediate match, which confused the match optimizer. |
| 19877 |
(Pointed out by HIRAUCHI Hideyuki). |
| 19878 |
|
| 19879 |
2004-07-27 Shiro Kawai <[email protected]> |
| 19880 |
|
| 19881 |
* lib/srfi-0.scm: typo fix |
| 19882 |
* src/load.c: typo fix |
| 19883 |
|
| 19884 |
* src/system.c (Scm_GlobDirectory): fixed potential memory leak on |
| 19885 |
error of glob() call. |
| 19886 |
|
| 19887 |
2004-07-26 Shiro Kawai <[email protected]> |
| 19888 |
|
| 19889 |
* lib/www/cgi.scm (cgi-parse-parameters): added support for |
| 19890 |
multipart/form-data posting (e.g. file uploading). |
| 19891 |
* lib/file/util.scm (temporary-directory): added. |
| 19892 |
* src/module.c (Scm_FindBinding): fixed meaningless if-condition. |
| 19893 |
* lib/gauche/package/fetch.scm (gauche-package-ensure): typo fix. |
| 19894 |
|
| 19895 |
2004-07-25 Shiro Kawai <[email protected]> |
| 19896 |
|
| 19897 |
* lib/srfi-0.scm (cond-expand) : changed to a legacy macro, in order |
| 19898 |
to use different feature ids depending compiler options. |
| 19899 |
* src/load.c (Scm__InitLoad) : initialize *cond-features* list |
| 19900 |
with compiler-options specific values. |
| 19901 |
* src/buildin-syms.scm : added some symbols for pre-defined feature |
| 19902 |
ids for *cond-features*. |
| 19903 |
* test/srfi.scm : added more srfi-0 tests. |
| 19904 |
|
| 19905 |
2004-07-24 Shiro Kawai <[email protected]> |
| 19906 |
|
| 19907 |
* lib/file/util.scm (make-directory*) : remove trailing '/' if any, |
| 19908 |
for mkdir of some platforms complains on it. |
| 19909 |
|
| 19910 |
2004-07-20 Shiro Kawai <[email protected]> |
| 19911 |
|
| 19912 |
* src/makeverslink: fixed to follow the convention of symlinks, i.e. |
| 19913 |
it renames the real sofile to libgauche.so.$(VERSION), and make |
| 19914 |
libgauche.so a symlink to it, etc. |
| 19915 |
|
| 19916 |
* src/syslib.stub, src/system.c (Scm_SysMkstemp): provides alternative |
| 19917 |
of mkstemp() for platforms that don't have one (e.g. Win32). |
| 19918 |
* src/load.c : for MinGW, changed the default load path to look for |
| 19919 |
subdirectories. |
| 19920 |
* DIST: preparing MinGW packaging (not quite working yet). |
| 19921 |
|
| 19922 |
2004-07-20 Kimura Fuyuki <[email protected]> |
| 19923 |
|
| 19924 |
* ext/charconv/Makefile.in: Add three C files to the GENERATED |
| 19925 |
variable since they should be cleaned out by `make distclean'. |
| 19926 |
|
| 19927 |
2004-07-18 Shiro Kawai <[email protected]> |
| 19928 |
|
| 19929 |
* src/write.c (write_ss_rec): fixed a bug to avoid numbers from |
| 19930 |
begin written out by srfi-38 notation. |
| 19931 |
|
| 19932 |
2004-07-17 Kimura Fuyuki <[email protected]> |
| 19933 |
|
| 19934 |
* ext/dbm/test.scm: Some ndbm implementations create a single file |
| 19935 |
with the suffix .db and it needs to be cleaned up even though |
| 19936 |
that behavior is considered an XPG violation. |
| 19937 |
|
| 19938 |
2004-07-16 Shiro Kawai <[email protected]> |
| 19939 |
|
| 19940 |
* src/port.c (bufport_fill): somehow it called filler() with |
| 19941 |
minimum buffer size when the buffering mode is PORT_BUFFER_LINE. |
| 19942 |
It should be able to use maximum buffer size---only PORT_BUFFER_NONE |
| 19943 |
need to fetch minimum chunk at a time. |
| 19944 |
|
| 19945 |
* src/system.c (pipe): implemented via _pipe(). |
| 19946 |
(fork, kill, etc): sets windows error ERROR_CALL_NOT_IMPLEMENTED |
| 19947 |
before returning. |
| 19948 |
|
| 19949 |
* src/error.c (Scm_SysError): on MinGW, retrieve error message using |
| 19950 |
FormatMessage instead of strerr; the former covers wider range of |
| 19951 |
Windows errors. |
| 19952 |
* ext/net/net.c, ext/net/net.h: adapted to winsock on MinGW. |
| 19953 |
At least TCP connection seems working. |
| 19954 |
|
| 19955 |
2004-07-15 Shiro Kawai <[email protected]> |
| 19956 |
|
| 19957 |
* src/load.c (Scm__InitLoad): on MinGW, use the program path to resolve |
| 19958 |
library/dll directories, instead of embedding them at make time. |
| 19959 |
|
| 19960 |
* src/parameter.c (Scm_ParameterTableInit etc.): fixed a problem that |
| 19961 |
a thread may inadvertently refer to wrong parameter which the thread |
| 19962 |
does not have. |
| 19963 |
* lib/gauche/parameter.scm: ditto |
| 19964 |
* src/gauche/vm.h: ditto |
| 19965 |
* src/core.c: ditto |
| 19966 |
* ext/threads/test.scm: ditto |
| 19967 |
|
| 19968 |
2004-07-14 Shiro Kawai <[email protected]> |
| 19969 |
|
| 19970 |
* lib/srfi-19.scm (tm:time-difference): fixed bad args for error |
| 19971 |
procedure (pointed out by Michal Maruška) |
| 19972 |
|
| 19973 |
* src/gauche/mingw-compat.h: added for MinGW port. |
| 19974 |
* doc/mingw-memo.txt: added for MinGW port. |
| 19975 |
* DIST, configure.ac, src/system.c, src/syslib.stub, src/load.c, |
| 19976 |
src/dl_win.c, src/signal.c, src/main.c, ext/auxsys/auxsys.c, |
| 19977 |
ext/auxsys/auxsyslib.stub, ext/fcntl/fcntl.c, ext/net/net.c |
| 19978 |
ext/net/net.h, ext/termios/termiolib.stub, ext/termios/temios.c, |
| 19979 |
gc/gc.h: |
| 19980 |
added MinGW support (first stage; very rudimentatl). |
| 19981 |
|
| 19982 |
2004-07-13 Shiro Kawai <[email protected]> |
| 19983 |
|
| 19984 |
* src/compile.c (compile_body): fixed a bug that passes |
| 19985 |
(define (a) 1 (define b 2) b) |
| 19986 |
|
| 19987 |
2004-07-12 Shiro Kawai <[email protected]> |
| 19988 |
|
| 19989 |
* src/compile.c (compile_body): supports internal defines generated |
| 19990 |
by macro expansion. |
| 19991 |
* macro.c, compile.c, gauche.h, class.c : introduced ScmMacro structure |
| 19992 |
apart from ScmSyntax to represent macros. necessary to separate |
| 19993 |
the transform pass and the compile pass, in order to support |
| 19994 |
internal defines generated as a result of macro expansion. |
| 19995 |
|
| 19996 |
2004-07-10 Shiro Kawai <[email protected]> |
| 19997 |
|
| 19998 |
* examples/spigot/configure.in: removed AC_PROG_INSTALL and commented |
| 19999 |
out AC_CANONICAL_SYSTEM, since they are not really necessary. |
| 20000 |
|
| 20001 |
2004-07-09 Shiro Kawai <[email protected]> |
| 20002 |
|
| 20003 |
* lib/rfc/uri.scm (uri-parse): added. |
| 20004 |
(uri-decompose-hierarchical): accept #f as an argument for the |
| 20005 |
convenience. |
| 20006 |
(uri-decompose-authority): ditto. |
| 20007 |
|
| 20008 |
2004-07-05 Shiro Kawai <[email protected]> |
| 20009 |
|
| 20010 |
* src/load.c (Scm_MakeAutoload): fixed a bug of autoload that |
| 20011 |
fails assertion. (Reported from SEINO Katsuhiro). |
| 20012 |
* src/autoloads.scm : ditto |
| 20013 |
* src/gauche.h (Scm_MakeAutoload): ditto |
| 20014 |
* src/extlib.stub (%make-autoload): commented out since it isn't |
| 20015 |
(shouldn't) used. |
| 20016 |
|
| 20017 |
2004-06-27 Shiro Kawai <[email protected]> |
| 20018 |
|
| 20019 |
* src/macro.c (macro_autoload, Scm_MacroExpand): resolve autoloaded |
| 20020 |
macro in macroexpand as well. |
| 20021 |
|
| 20022 |
* lib/gauche/interactive.scm (%apropos): search ancestors of imported |
| 20023 |
modules as well. |
| 20024 |
|
| 20025 |
* src/gauche-cesconv.in (main): fixed --help. |
| 20026 |
|
| 20027 |
* src/number.c (Scm_Divide): fixed a bug when complex numbers |
| 20028 |
appear in more than 2 arg cases. |
| 20029 |
|
| 20030 |
2004-06-22 Shiro Kawai <[email protected]> |
| 20031 |
|
| 20032 |
* examples/spigot/Makefile.in (*_INSTALL_DIR): there shouldn't |
| 20033 |
be a '/' between $(DESTDIR) and the actual pathname. |
| 20034 |
|
| 20035 |
2004-06-17 Shiro Kawai <[email protected]> |
| 20036 |
|
| 20037 |
* src/compile.c (unwrap_identifier): fixed a bug when expanded |
| 20038 |
syntax has a quoted vector (patch by teranishi). |
| 20039 |
|
| 20040 |
* src/number.c (Scm_Divide): fixed a bug when '/' takes more than |
| 20041 |
two args and involves bignum. (patch by anonymous). |
| 20042 |
|
| 20043 |
* src/bignum.c (bignum_gdiv): fixed the problem of bignum division, |
| 20044 |
when the estimated quotient becomes greater than one digit value |
| 20045 |
(e.g. #x10001). Pointed out by 'hipster'. |
| 20046 |
|
| 20047 |
2004-06-04 Shiro Kawai <[email protected]> |
| 20048 |
|
| 20049 |
* src/compile.c (compile_cond_int): fixed a bug that 'case' didn't |
| 20050 |
work when it appeared in the macro-expanded form (Pointed out by |
| 20051 |
Grzegorz Chrupała). |
| 20052 |
|
| 20053 |
2004-05-31 Shiro Kawai <[email protected]> |
| 20054 |
|
| 20055 |
* src/regexp.c: enable regexps to be compared by equal?. |
| 20056 |
|
| 20057 |
* ext/net/net.ac: avoid checking getprotobyname_r etc on NetBSD, |
| 20058 |
since these are not supposed to be used by user programs on the |
| 20059 |
current NetBSD. (Patch from MINOURA Makoto) |
| 20060 |
* ext/net/netdb.c (Scm_GetHostByAddr): fix for referring a wrong |
| 20061 |
preprocessor symbol (Patch from MINOURA Makoto) |
| 20062 |
* doc/extract (filter pattern-in pattern-out): fix for breaking |
| 20063 |
dirs entry (Patch from MINOURA Makoto). |
| 20064 |
|
| 20065 |
* ext/Makefile.ext.in (install-std): use gauche-install to install |
| 20066 |
extension files instead of @INSTALL@. It can be |
| 20067 |
$(top_srcdir)/install-sh as a fallback, but $(top_srcdir) isn't |
| 20068 |
what we desired. Besides that, using gauche-install makes rules |
| 20069 |
simpler. |
| 20070 |
|
| 20071 |
* ext/net/net.scm (make-sockaddrs): check the return value of |
| 20072 |
sys-getservbyname and sys-gethostbyname for more comprehensive |
| 20073 |
error. |
| 20074 |
|
| 20075 |
2004-05-22 Shiro Kawai <[email protected]> |
| 20076 |
|
| 20077 |
* release 0.8 |
| 20078 |
|
| 20079 |
* lib/gauche/package/build.scm (gauche-package-build): clean builddir |
| 20080 |
before untar. |
| 20081 |
* src/gauche-cesconv.in: fixed command-line argument handling bug. |
| 20082 |
|
| 20083 |
2004-05-21 Shiro Kawai <[email protected]> |
| 20084 |
|
| 20085 |
* src/module.c (modules): make sure the global module name map is |
| 20086 |
placed in the data region instead of bss. |
| 20087 |
|
| 20088 |
* src/gauche.h, src/gauche/class.h : avoid using C++ reserved words |
| 20089 |
(pointed out by Laurent Marzullo). |
| 20090 |
|
| 20091 |
* src/extlib.stub (rxmatch-num-matches): added. |
| 20092 |
|
| 20093 |
* lib/gauche/object.scm: added 'ref' method specialized for hash-table. |
| 20094 |
|
| 20095 |
* doc/modgauche.texi (Low-level socket interface): added descrption |
| 20096 |
of socket-getsockname, socket-getpeername, socket-send, |
| 20097 |
socket-sendto, socket-recv, and socket-recvfrom. |
| 20098 |
(Array): added description of uniform numeric arrays. |
| 20099 |
|
| 20100 |
* src/compile.c (compile_define): added check to prevent non-toplevel |
| 20101 |
use of define family ('internal' defines should be resolved |
| 20102 |
elsewhere). |
| 20103 |
|
| 20104 |
* lib/text/html-lite.scm (frameset): added frame-related tags |
| 20105 |
(patch from Nekoie). |
| 20106 |
|
| 20107 |
* lib/file/util.scm (build-path): ignore empty string in the components |
| 20108 |
(patch from Grzegorz Chrupała). |
| 20109 |
|
| 20110 |
2004-05-20 Shiro Kawai <[email protected]> |
| 20111 |
|
| 20112 |
* src/vm.c (run_loop): fixed a problem of application of user-defined |
| 20113 |
<generic> subclass. |
| 20114 |
* src/class.c (class_cpl_set): set 'applicable' bit of the class if |
| 20115 |
it inherits applicable base class. |
| 20116 |
* lib/gauche/object.scm (define-generic): allow :class keyword argument |
| 20117 |
to specify the class of the generic fn. |
| 20118 |
|
| 20119 |
* src/keyword.c, src/extlib.stub : |
| 20120 |
added delete-keyword and delete-keyword!. |
| 20121 |
|
| 20122 |
* src/gauche-init.scm (add-load-path): reverted afterp optional |
| 20123 |
argument that was dropped inadvertently. |
| 20124 |
|
| 20125 |
* src/portapi.c (port-seek): invalidate ungotten character if |
| 20126 |
port position is moved. Pointed out by Alex Shinn. |
| 20127 |
|
| 20128 |
* src/gauche.h (ScmReadError): added <read-error> |
| 20129 |
* src/error.c: ditto |
| 20130 |
* src/read.c: ditto |
| 20131 |
|
| 20132 |
2004-05-19 Shiro Kawai <[email protected]> |
| 20133 |
|
| 20134 |
* lib/gauche/test.scm (write-object): fixed output of display. |
| 20135 |
|
| 20136 |
* lib/gauche/common-macro.scm (guard): added srfi-34 guard. |
| 20137 |
* src/autoloads.scm (guard): added guard as a autoloaded macro. |
| 20138 |
* test/exception.scm: added. |
| 20139 |
|
| 20140 |
* src/exclib.stub: |
| 20141 |
* src/error.scm: moved the definitions of exception classes from |
| 20142 |
exclib.stub to error.scm. Needed to allow user-defined error |
| 20143 |
types. |
| 20144 |
|
| 20145 |
2004-05-16 Shiro Kawai <[email protected]> |
| 20146 |
|
| 20147 |
* src/gauche-package.in: added --reconfigure option for install |
| 20148 |
and build. |
| 20149 |
* lib/gauche/package/build.scm (gauche-package-build): fetch older |
| 20150 |
verion's configure options if reconfigure is specified. |
| 20151 |
* lib/gauche/package.scm (call-with-iterator): avoid getting duplicate |
| 20152 |
gpd entries; only picks the most recent ones. |
| 20153 |
|
| 20154 |
2004-05-15 Shiro Kawai <[email protected]> |
| 20155 |
|
| 20156 |
* src/gauche-package.in: added --install-as option for install. |
| 20157 |
use :all-versions to search gpd files for reconfigure and list. |
| 20158 |
|
| 20159 |
* lib/gauche/package.scm (gauche-package-description-paths): added |
| 20160 |
:all-versions keyword argument to search library directories |
| 20161 |
of older Gauche versions. |
| 20162 |
|
| 20163 |
* lib/gauche/package/build.scm: allow sudo option to specify the |
| 20164 |
username. |
| 20165 |
|
| 20166 |
2004-05-14 Shiro Kawai <[email protected]> |
| 20167 |
|
| 20168 |
* lib/file/util.scm (file->string, file->string-list, file->ilst, |
| 20169 |
file->sexp-list): added convenience procedures. |
| 20170 |
|
| 20171 |
* lib/gauche/ioutil.scm, src/gauche-init.scm: moved contents of |
| 20172 |
ioutil to gauche-init.scm, and removed ioutil.scm. |
| 20173 |
* src/autoloads.scm: removed reference to ioutil. added autoload |
| 20174 |
of values-ref. |
| 20175 |
|
| 20176 |
2004-05-13 Shiro Kawai <[email protected]> |
| 20177 |
|
| 20178 |
* src/stdlib.stub : moved open-input-file and open-output-file to |
| 20179 |
the autoloaded file lib/gauche/with.scm |
| 20180 |
* lib/gauche/with.scm (open-input-file, open-output-file): defined |
| 20181 |
them here, and calls either internal %open-*-file or charconv's |
| 20182 |
%open-*-file/conv depending on :encoding keyword argument. |
| 20183 |
* src/extlib.stub (%open-input-file, %open-output-file): implements |
| 20184 |
core part of open-*-file here. |
| 20185 |
* ext/charconv/charconv.scm : removed open-input-file etc. Instead, |
| 20186 |
defines %open-*-file/conv, which is called from the system's |
| 20187 |
open-*-file when :encoding is given. Handles :if-does-not-exist #f |
| 20188 |
case, according to HIRAUCHI Hideyuki's patch. |
| 20189 |
* src/autoloads.scm: added autoloads for open-*-file and |
| 20190 |
%open-*-file/conv. |
| 20191 |
|
| 20192 |
* lib/util/match.scm (get-setter, get-getter): cleaned up by using |
| 20193 |
srfi-17 and srfi-26 mechanism. |
| 20194 |
|
| 20195 |
2004-05-12 Shiro Kawai <[email protected]> |
| 20196 |
|
| 20197 |
* lib/www/cgi.scm: export cgi-get-metavariables (alias of get-meta). |
| 20198 |
|
| 20199 |
* lib/util/match.scm: changed object pattern syntax. |
| 20200 |
|
| 20201 |
2004-05-11 Shiro Kawai <[email protected]> |
| 20202 |
|
| 20203 |
* lib/util/match.scm: added Andrew Wright's match macro, tailored |
| 20204 |
for Gauche. |
| 20205 |
* lib/Makefile.in: ditto |
| 20206 |
* test/match.scm: test for util.match |
| 20207 |
* test/TESTS: ditto |
| 20208 |
|
| 20209 |
* src/test.scm : added *test-report-error* variable to control |
| 20210 |
showing stack trace of captured errors. |
| 20211 |
|
| 20212 |
2004-05-07 Shiro Kawai <[email protected]> |
| 20213 |
|
| 20214 |
* src/Makefile.in : added dependency of symbol.o on builtin-syms.c |
| 20215 |
|
| 20216 |
2004-05-06 Shiro Kawai <[email protected]> |
| 20217 |
|
| 20218 |
* src/gauche-package.in : cleaned up the source a bit. |
| 20219 |
* src/Makefile.in : echo script generation. |
| 20220 |
|
| 20221 |
2004-05-05 Shiro Kawai <[email protected]> |
| 20222 |
|
| 20223 |
* lib/gauche/sortutil.scm (stable-sort, stable-sort!): added stable |
| 20224 |
sort API. |
| 20225 |
* src/autoloads.scm : added stable sort API. |
| 20226 |
|
| 20227 |
2004-05-04 Kimura Fuyuki <[email protected]> |
| 20228 |
|
| 20229 |
* doc/gosh.1.in: added the ENVIRONMENT section. |
| 20230 |
|
| 20231 |
* src/load.c (break_env_paths): Don't trust environment variables |
| 20232 |
only if setugid'd. This change allows the superuser to set his |
| 20233 |
own GAUCHE_LOAD_PATH or GAUCHE_DYNLOAD_PATH. |
| 20234 |
|
| 20235 |
2004-04-27 Shiro Kawai <[email protected]> |
| 20236 |
|
| 20237 |
* lib/gauche/process.scm (gauche.process): export process-command. |
| 20238 |
|
| 20239 |
2004-04-24 Shiro Kawai <[email protected]> |
| 20240 |
|
| 20241 |
* lib/gauche/package/build.scm, src/gauche-package: added --sudo |
| 20242 |
option for 'install' command. |
| 20243 |
|
| 20244 |
* src/system.c (Scm_SysExec): display program name as well when |
| 20245 |
failed (Patch from Kouhei Sutou). |
| 20246 |
|
| 20247 |
2004-04-23 Shiro Kawai <[email protected]> |
| 20248 |
|
| 20249 |
* src/module.c (Scm_FindBinding): avoid using cons and memq in |
| 20250 |
temporary data. It speeds up loading quite a bit. |
| 20251 |
(other fns): changed to use global lock instead of per-module |
| 20252 |
lock for module operations. It is faster. |
| 20253 |
* src/gauche.h (ScmModule) : dropped mutex according to above change. |
| 20254 |
|
| 20255 |
* src/port.c, src/gauche/port.h: added PORT_PRELOCK macro for |
| 20256 |
'pre-owned' private port, i.e. the ports that are known to be |
| 20257 |
used privately in a thread. It avoids call to pthread_mutex_lock. |
| 20258 |
|
| 20259 |
* src/write.c (write_ss_rec): integrated the non-shared-structure |
| 20260 |
writer inner loop and shared-structure write inner loop. |
| 20261 |
|
| 20262 |
2004-04-22 Shiro Kawai <[email protected]> |
| 20263 |
|
| 20264 |
* src/gauche-package.in, src/gauche-install.in : added. |
| 20265 |
* src/gauche-cesconv.in : renamed from cesconv. |
| 20266 |
* src/Makefile.in : installs gauche-* scripts to bindir. |
| 20267 |
|
| 20268 |
* examples/spigot/configure.in : adapted to the package manager |
| 20269 |
|
| 20270 |
* lib/gauche/package/build.scm : added |
| 20271 |
* lib/gauche/package/util.scm : added |
| 20272 |
* lib/gauche/package/fetch.scm : added |
| 20273 |
* acinclude.m4 (AC_GAUCHE_MAKE_GPD): a macro to create PACKAGE.gpd |
| 20274 |
file. |
| 20275 |
|
| 20276 |
2004-04-21 Shiro Kawai <[email protected]> |
| 20277 |
|
| 20278 |
* lib/gauche/package.scm : added (experiemntal; not completed). |
| 20279 |
|
| 20280 |
2004-04-20 Kimura Fuyuki <[email protected]> |
| 20281 |
|
| 20282 |
* config.guess, config.sub, install-sh, mkinstalldirs : updated |
| 20283 |
autotools' scripts. |
| 20284 |
|
| 20285 |
2004-04-16 Shiro Kawai <[email protected]> |
| 20286 |
|
| 20287 |
* lib/file/util.scm (file-is-symlink?): added. |
| 20288 |
|
| 20289 |
2004-04-13 Kimura Fuyuki <[email protected]> |
| 20290 |
|
| 20291 |
* doc/corelib.texi, doc/mapping.texi : enhanced documentation for |
| 20292 |
pathname normalizers. |
| 20293 |
|
| 20294 |
2004-04-11 Shiro Kawai <[email protected]> |
| 20295 |
|
| 20296 |
* lib/gauche/parseopt.scm (get-optargs, compose-entry): added support |
| 20297 |
for "optional option-argument". |
| 20298 |
|
| 20299 |
2004-04-10 Kimura Fuyuki <[email protected]> |
| 20300 |
|
| 20301 |
* configure.ac, ext/auxsys/*, src/autoloads.scm, |
| 20302 |
src/gauche/config.h.in : added sys-lchown and sys-realpath |
| 20303 |
|
| 20304 |
2004-04-01 Shiro Kawai <[email protected]> |
| 20305 |
|
| 20306 |
* src/read.c (read_internal): added #;expr style commend (a la Chez). |
| 20307 |
|
| 20308 |
* lib/gauche/common-macros.scm (let/cc): added let/cc (a la PLT). |
| 20309 |
* src/autoloads.scm: ditto. |
| 20310 |
|
| 20311 |
2004-03-15 Shiro Kawai <[email protected]> |
| 20312 |
|
| 20313 |
* src/vm.c (user_eval_inner): saves signal mask. it appears that |
| 20314 |
not saving mask here would cause hang on cygwin (Reported by |
| 20315 |
HIRAUCHI Hideyuki). |
| 20316 |
|
| 20317 |
2004-03-14 Shiro Kawai <[email protected]> |
| 20318 |
|
| 20319 |
* src/genstub (process-setter): fixed typo (Pointed by Michal Maruška) |
| 20320 |
|
| 20321 |
2004-03-13 Shiro Kawai <[email protected]> |
| 20322 |
|
| 20323 |
* ext/xlink : not to make a link when there's already a desired link. |
| 20324 |
|
| 20325 |
* ext/charconv/guess.c (guess_jp): returns IAEA-compliant CES name. |
| 20326 |
|
| 20327 |
* lib/srfi-13/searcher.scm (string-contains, string-contains-ci): |
| 20328 |
Return value was wrong when start1 is given (patch from |
| 20329 |
Grzegorz Chrupała). |
| 20330 |
|
| 20331 |
2004-03-04 Shiro Kawai <[email protected]> |
| 20332 |
|
| 20333 |
* src/gauche/vm.h, src/vm.c and src/regexp.c: make sigsetjmp not |
| 20334 |
to save signal mask. Those sigsetjmps were introduced around |
| 20335 |
release 0.5 when I implemented the signal stuff. But I cannot |
| 20336 |
recall why I needed to save a signal mask. (The initial version |
| 20337 |
of Scm_SigCheck did use SCM_UNWIND_PROTECT while it altered |
| 20338 |
signal mask, so it needed some handling. It is irrelevant for |
| 20339 |
the current version, however). Since sigsetjmp(_, TRUE) issues |
| 20340 |
a system call every time while sigsetjmp(_, FALSE) doesn't, |
| 20341 |
the latter has significant performance advantage. |
| 20342 |
|
| 20343 |
2004-02-29 Shiro Kawai <[email protected]> |
| 20344 |
|
| 20345 |
* src/read.c (skipws): fixed a bug that didn't increment line count |
| 20346 |
after comments. |
| 20347 |
|
| 20348 |
2004-02-26 Shiro Kawai <[email protected]> |
| 20349 |
|
| 20350 |
* release 0.7.4.2 |
| 20351 |
|
| 20352 |
2004-02-25 Shiro Kawai <[email protected]> |
| 20353 |
|
| 20354 |
* src/class.c (Scm_UpdateDirectMethod): updates the new class' |
| 20355 |
direct-method as well. This bug caused the re-redefined classes |
| 20356 |
to lose original methods. |
| 20357 |
|
| 20358 |
* ext/threads/threads.c (thread_entry): displays thread's stack trace |
| 20359 |
when non-handled error is thrown and the thread is about to die |
| 20360 |
(by unhandled-exception). It will help debugging, and won't be |
| 20361 |
a problem of apps that properly handles errors in threads. |
| 20362 |
|
| 20363 |
2004-02-24 Shiro Kawai <[email protected]> |
| 20364 |
|
| 20365 |
* lib/srfi-13/revapp.scm (string-concatenate-reverse): optional arg |
| 20366 |
handling was missing. |
| 20367 |
* lib/www/cgi.scm (cgi-get-query): fixed a funky behavior when used |
| 20368 |
interactively (Patch from Grzegorz Chrupała). |
| 20369 |
* lib/srfi-1/set.scm (lset-xor, lset-xor!): fixed bad call |
| 20370 |
of lset-difference (pointed out by Ueyama Rui). |
| 20371 |
|
| 20372 |
2004-02-23 Shiro Kawai <[email protected]> |
| 20373 |
|
| 20374 |
* src/read.c (skipws): comment may contain unexpected character |
| 20375 |
encoding, so using getb to skip the comment after semicolon. |
| 20376 |
(We can't do that for srfi-30 nested comment, since the second |
| 20377 |
byte of shift_jis code can be '|', so we can't determine the end |
| 20378 |
of the srfi-30 comment without knowing the encoding.) |
| 20379 |
|
| 20380 |
2004-02-20 Shiro Kawai <[email protected]> |
| 20381 |
|
| 20382 |
* src/hash.c (delete_entry): fixed a bug that didn't decrement |
| 20383 |
numEntries when an entry was deleted. |
| 20384 |
|
| 20385 |
2004-02-17 Shiro Kawai <[email protected]> |
| 20386 |
|
| 20387 |
* src/portapi.c (readline_body): fixed a line count problem |
| 20388 |
(Patch from HIRAUCHI Hideyuki). |
| 20389 |
|
| 20390 |
2004-02-08 Shiro Kawai <[email protected]> |
| 20391 |
|
| 20392 |
* ext/sxml/src/sxpath-ext.scm (sxml:equality-cmp): replaced |
| 20393 |
let-values* for let*-values (latter is srfi-11; the former was |
| 20394 |
used in the original sxml). |
| 20395 |
|
| 20396 |
2004-02-04 Shiro Kawai <[email protected]> |
| 20397 |
|
| 20398 |
* src/number.c (Scm_GetInteger32Clamp, Scm_GetIntegerU32Clamp): |
| 20399 |
APIs for routines sensitive to integer width. |
| 20400 |
* ext/binary/binary.c : adopted the above APIs. |
| 20401 |
|
| 20402 |
* release 0.7.4.1 |
| 20403 |
|
| 20404 |
* lib/dbm/fsdbm.scm (path->hash): avoid using string-hash, since |
| 20405 |
the current implementation doesn't produce a portable hash value. |
| 20406 |
Instead, I use Scheme-implemented version. |
| 20407 |
|
| 20408 |
2004-02-03 Shiro Kawai <[email protected]> |
| 20409 |
|
| 20410 |
* release 0.7.4 |
| 20411 |
|
| 20412 |
* src/link-dylib : avoid linking old library to gosh. |
| 20413 |
|
| 20414 |
* ext/net/netlib.stub : check existence of definitions of MSG_* |
| 20415 |
symbols. |
| 20416 |
|
| 20417 |
* configure.ac, gc/configure.in (LOCAL_INC, LOCAL_LIB): avoid |
| 20418 |
putting newlines in the command line when more than one paths |
| 20419 |
are given to --with-local. |
| 20420 |
(CFLAGS): when the architecture is alpha, add -mieee option to |
| 20421 |
avoid SIGFPE on denormalized/infinity numbers. |
| 20422 |
|
| 20423 |
* src/read.c (define-reader-ctor): Experimental feature to process |
| 20424 |
srfi-38 syntax in srfi-10 read-time constructor. define-reader-ctor |
| 20425 |
takes a optional procedure, which is responsible to fix up the |
| 20426 |
read reference objects. This API isn't official yet. |
| 20427 |
* src/write.c (Scm_Format, Scm_PrintfShared): added features |
| 20428 |
to handle shared structure writing. |
| 20429 |
* src/extlib.stub (read-reference? etc.) : added read-reference object |
| 20430 |
related API. These are not official yet. |
| 20431 |
(%format): now a part of 'format' is handled in Scheme. |
| 20432 |
* lib/gauche/ioutil.scm : added. definition of 'format' API etc. |
| 20433 |
* lib/gauche/vm/debugger.scm, lib/gauche/test.scm, src/error.c: |
| 20434 |
adapted to the changes. |
| 20435 |
|
| 20436 |
2004-02-02 Shiro Kawai <[email protected]> |
| 20437 |
|
| 20438 |
* src/system.c (Scm_SysExec): added a flag argument to enable |
| 20439 |
fork&exec. It is essential to do fork&exec atomically when |
| 20440 |
multiple thread is running. |
| 20441 |
* src/syslib.stub (sys-fork-and-exec): new API that does fork&exec |
| 20442 |
atomically. |
| 20443 |
* lib/gauche/process.scm : use sys-fork-and-exec. |
| 20444 |
|
| 20445 |
2004-02-01 Shiro Kawai <[email protected]> |
| 20446 |
|
| 20447 |
* src/gauche.h, src/port.c, src/write.c, src/gauche-init.scm : |
| 20448 |
first batch of proper srfi-38 support w/ user-defined writers. |
| 20449 |
|
| 20450 |
2004-01-30 Shiro Kawai <[email protected]> |
| 20451 |
|
| 20452 |
* src/gauche.h, src/port.c, ...: rearranged port structure. |
| 20453 |
dropped open-*-string/private, and used keyword arg :private? |
| 20454 |
instead. (NB: it is still an experimental feature and shouldn't |
| 20455 |
be relied on). some fixups. |
| 20456 |
|
| 20457 |
* lib/gauche/listener.scm (output-port): typo fix. |
| 20458 |
|
| 20459 |
2004-01-29 Shiro Kawai <[email protected]> |
| 20460 |
|
| 20461 |
* doc/modutil.texi : added text.gettext description. |
| 20462 |
|
| 20463 |
2004-01-28 Kimura Fuyuki <[email protected]> |
| 20464 |
|
| 20465 |
* ext/net/* : added socket-getsockname, socket-getpeername, |
| 20466 |
socket-send, socket-sendto, socket-recv, socket-recvfrom. |
| 20467 |
Note that these features aren't officially supported yet. |
| 20468 |
|
| 20469 |
2004-01-27 Shiro Kawai <[email protected]> |
| 20470 |
|
| 20471 |
* ext/binary/* : implemented primitive binary i/o in C. |
| 20472 |
NOTE: the API is likely to be changed when binary i/o srfi |
| 20473 |
is done. This module shouldn't be used directly unless you're |
| 20474 |
aware of it. Use binary.pack whenever possible. |
| 20475 |
* lib/binary/io.scm, test/binary.scm : moved to ext/binary. |
| 20476 |
|
| 20477 |
* src/read.c (read_escaped_symbol): recognize single escape '\' |
| 20478 |
within multiple escapes '|' while reading symbol name. This |
| 20479 |
is CL compatible. I haven't decided how to treat a single escape |
| 20480 |
outside of multipe escapes. |
| 20481 |
|
| 20482 |
* src/gauche.h, src/number.c, src/bignum.c, src/gauche/int64.h, |
| 20483 |
src/gauche/scmconst.h : fixup for 64bit integer support. |
| 20484 |
* ext/uvector/*, ext/digest/sha.* : changed accordingly. |
| 20485 |
uvector isn't rewritten to use the new API, but just renamed |
| 20486 |
some typedefs to avoid conflict. it will be revised to use |
| 20487 |
the new API soon. |
| 20488 |
|
| 20489 |
2004-01-26 Shiro Kawai <[email protected]> |
| 20490 |
|
| 20491 |
* lib/rfc/mime.scm (mime-decode-word): capture the error from |
| 20492 |
ces-convert so that illegal encoded sequence won't stop the |
| 20493 |
processing. |
| 20494 |
|
| 20495 |
* src/cesconv : added generally useful CES conversion script. |
| 20496 |
|
| 20497 |
* lib/text/gettext.scm : updated to the new version from Alex Shinn. |
| 20498 |
|
| 20499 |
* test/gettext.scm, test/data/Makefile, test/gettext.data.utf-8.scm, |
| 20500 |
test/data/locale/* : added test routines for gettext, written by |
| 20501 |
Alex Shinn. |
| 20502 |
|
| 20503 |
2004-01-25 Shiro Kawai <[email protected]> |
| 20504 |
|
| 20505 |
* lib/math/const.scm : added missing definition of 2pi. |
| 20506 |
|
| 20507 |
* lib/www/cgi-test.scm : documented officially. |
| 20508 |
|
| 20509 |
* src/gauche.h, src/number.c (Scm_GetIntegerCheck etc), src/bignum.c |
| 20510 |
(Scm_BignumToSICheck etc): added boundary-checking integer |
| 20511 |
extraction primitives. |
| 20512 |
|
| 20513 |
2004-01-23 Shiro Kawai <[email protected]> |
| 20514 |
|
| 20515 |
* doc/*.texi : reorganized a bit. Made each index to an individual |
| 20516 |
appendix, so texinfo-multiple-files-update won't mangle the toplevel |
| 20517 |
menu. |
| 20518 |
|
| 20519 |
* lib/srfi-7.scm (program) : added srfi-7 support |
| 20520 |
* lib/srfi-29.scm, lib/srfi-29/bundle.scm, lib/srfi-29/format.scm: |
| 20521 |
added srfi-29 support |
| 20522 |
* above two changes are based on the code form Alex Shinn. |
| 20523 |
* lib/srfi-0.scm : updated accordingly. |
| 20524 |
|
| 20525 |
* lib/srfi-13/revapp.scm (string-concatenate): made it robust for |
| 20526 |
long list. |
| 20527 |
* lib/rfc/mime.scm (mime-retrieve-body): use string-port for |
| 20528 |
intermediate buffer. |
| 20529 |
* above two changes are based on the patch from Tatsuya BIZENN. |
| 20530 |
|
| 20531 |
2004-01-19 Shiro Kawai <[email protected]> |
| 20532 |
|
| 20533 |
* src/read.c, src/gauche.h (Scm_ReadReference) : added support of |
| 20534 |
SRFI-38 reference syntax. For the time being, circular reference |
| 20535 |
is only supported for lists and vectors. |
| 20536 |
|
| 20537 |
* src/compile.c (compile_quote) : added a workaround so that |
| 20538 |
the quoted literal that contains circular reference won't cause |
| 20539 |
circular recursion during unwrap_identifier. |
| 20540 |
|
| 20541 |
* src/extlib.stub (hash-table-num-entries) : added. |
| 20542 |
|
| 20543 |
* src/hash.c (STRING_HASH, HASH2INDEX) : improved hash function. |
| 20544 |
the previous one isn't optimal for string keys. |
| 20545 |
|
| 20546 |
2004-01-18 Shiro Kawai <[email protected]> |
| 20547 |
|
| 20548 |
* src/extlib.stub (promise?): added promise?. |
| 20549 |
|
| 20550 |
* lib/gauche/procedure.scm (case-lambda): added case-lambda. |
| 20551 |
* lib/srfi-5.scm : added. |
| 20552 |
* lib/srfi-0.scm : updated to support new srfis. |
| 20553 |
|
| 20554 |
* doc/*.texi : removed module name from the node names, for the dot |
| 20555 |
in the module names interferes with some info browsers. Also |
| 20556 |
added detailmenu of index sections in the master menu, so that |
| 20557 |
'i' command works in the emacs info mode. |
| 20558 |
(Suggested by Katsuhiro Seino). |
| 20559 |
|
| 20560 |
2004-01-17 Shiro Kawai <[email protected]> |
| 20561 |
|
| 20562 |
* lib/gauche/cgen.scm : added experimentally. An internal utility |
| 20563 |
module for C code generators. |
| 20564 |
|
| 20565 |
* src/builtin-syms.scm : This generates the C files that |
| 20566 |
defines and creates builtin symbols. Replaces gauche/predef-syms. |
| 20567 |
* src/gauche/predef-syms.h : removed. |
| 20568 |
* src/symbol.c : changed to include C code generated by builtin-syms. |
| 20569 |
* src/*.c : includes builtin-syms.h necessary, and replaced the code |
| 20570 |
that creates symbols at init time for static references. |
| 20571 |
|
| 20572 |
* src/autoloads.scm : revised using gauche.cgen. |
| 20573 |
|
| 20574 |
2004-01-16 Shiro Kawai <[email protected]> |
| 20575 |
|
| 20576 |
* src/boolean.c (Scm_EqualP) : loop over list spine instead of |
| 20577 |
recursive call to CDR - it's more robust for very long lists. |
| 20578 |
* src/list.c (Scm_Length) : removed redundant code. |
| 20579 |
(Scm_Delete, Scm_AssocDelete) : loop over list spine instead of |
| 20580 |
recursive call to CDR. |
| 20581 |
* src/char.c (Scm_CharsetAddRange): removed redundant code. |
| 20582 |
* src/string.c (count_size_and_length): fixed a bug that potentially |
| 20583 |
access beyond a terminating char. |
| 20584 |
(Scm_ConstCStringArrayToList, Scm_CStringArrayToList): fixed bugs |
| 20585 |
that doesn't make intended result when size is given. |
| 20586 |
* src/system.c (Scm_SysGlob): handles the case when GLOB_NOMATCH |
| 20587 |
isn't defined. |
| 20588 |
* test/* : added some more tests. |
| 20589 |
* The above changes are based on a patch from Ueyama Rui. |
| 20590 |
|
| 20591 |
* src/vm.c (save_env): discarded the old sloppy code that took |
| 20592 |
too much time when recursion gets very deep. Rewritten with a |
| 20593 |
new code which runs proportional in the amount of stack-allocated |
| 20594 |
activation records, whose upper bound is not large. This change |
| 20595 |
improves performance of deep recursion code in order of magnitude. |
| 20596 |
|
| 20597 |
* src/extlib.stub (read-block) : allow 0 to be passed as nbytes. |
| 20598 |
read-block returns a null string in such a case. |
| 20599 |
|
| 20600 |
2004-01-12 Shiro Kawai <[email protected]> |
| 20601 |
|
| 20602 |
* lib/rfc/uri.scm (uri-decompose-authority): fixed regexp to exclude |
| 20603 |
the following '@' from userinfo. |
| 20604 |
|
| 20605 |
2004-01-08 Shiro Kawai <[email protected]> |
| 20606 |
|
| 20607 |
* src/gauche/char_euc_jp.h (Scm_CharBackwardEUC): made the algorithm |
| 20608 |
more permissive, so that it will be more robust when illegal |
| 20609 |
mbstring is passed accidentally. |
| 20610 |
|
| 20611 |
2004-01-06 Shiro Kawai <[email protected]> |
| 20612 |
|
| 20613 |
* src/syslib.stub (sys-truncate, sys-ftruncate): Added interface |
| 20614 |
to truncate(2) and ftruncate(2). |
| 20615 |
|
| 20616 |
2004-01-04 Shiro Kawai <[email protected]> |
| 20617 |
|
| 20618 |
* ext/net/netlib.stub (socket-output-port): fixed buffering keyword |
| 20619 |
argument handling. (Pointed by Yoshiharu Fujisawa). |
| 20620 |
|
| 20621 |
2004-01-02 Shiro Kawai <[email protected]> |
| 20622 |
|
| 20623 |
* src/main.c (sig_setup): fixed a problem that threads hang on |
| 20624 |
FreeBSD. SIGUSR[12] is used by GC on FreeBSD! |
| 20625 |
|
| 20626 |
2003-12-29 Shiro Kawai <[email protected]> |
| 20627 |
|
| 20628 |
* lib/rfc/822.scm (rfc822-header->list): changed to deal with |
| 20629 |
the cases that header field contains illegal character sequences |
| 20630 |
(thus the line reader yields incomplete strings). |
| 20631 |
|
| 20632 |
2003-12-26 Shiro Kawai <[email protected]> |
| 20633 |
|
| 20634 |
* lib/util/list.scm (util.list): it no longer inherits srfi-1. |
| 20635 |
inheriting srfi-1 causes a problem when this module is imported |
| 20636 |
after gauche.collection---then procedures like 'find' or 'map' |
| 20637 |
are resolved as srfi-1's, which is usually not the intended |
| 20638 |
behavior. |
| 20639 |
* src/system.c (Scm_GlobDirectory): fixed return value check |
| 20640 |
for portability (pointed by kou). |
| 20641 |
* src/main.c (sig_setup): exclude SIGPROF from Scheme-monitored |
| 20642 |
signals. |
| 20643 |
* src/module.c (Scm_ImportModules) : reorder multiply imported |
| 20644 |
modules, so that the last "import" supercedes the previous ones. |
| 20645 |
|
| 20646 |
2003-12-18 Shiro Kawai <[email protected]> |
| 20647 |
|
| 20648 |
* lib/www/cgi-test.scm : added. |
| 20649 |
* test/www.scm : added tests for www.cgi-test. |
| 20650 |
|
| 20651 |
2003-12-17 Shiro Kawai <[email protected]> |
| 20652 |
|
| 20653 |
* lib/slib.scm.in : let (require 'format) use slib's format. |
| 20654 |
|
| 20655 |
* configure.ac, src/link-hpux : fixed compilation problem on |
| 20656 |
HP-UX 11.11. |
| 20657 |
|
| 20658 |
* src/port.c (MIN, MAX): #undef before defining. Some platforms |
| 20659 |
defines them and warns the duplicate definition. |
| 20660 |
|
| 20661 |
2003-12-16 Shiro Kawai <[email protected]> |
| 20662 |
|
| 20663 |
* release 0.7.3 |
| 20664 |
|
| 20665 |
* src/boolean.c (Scm_EqualP): Experimentally put code that compares |
| 20666 |
identifiers by name in equal?. See the comment in the source. |
| 20667 |
|
| 20668 |
2003-12-15 Shiro Kawai <[email protected]> |
| 20669 |
|
| 20670 |
* Makefile.in (install-pkg): fix aclocal.m4 installation directory; |
| 20671 |
there shouldn't be a slash after $(DESTDIR); it would cause error |
| 20672 |
on cygwin. |
| 20673 |
|
| 20674 |
* src/core.c (Scm_Init), src/gauche.h, src/gauche/config.h.in, |
| 20675 |
src/main.c : API Change: Scm_Init now takes const char *signature |
| 20676 |
argument, in order to detect version mismatch between main |
| 20677 |
app and libgauche.so. |
| 20678 |
|
| 20679 |
* ext/charconv/jconv.c (jconv_open): conversion to/from "none" |
| 20680 |
should always be allowed, and it should be just pass-through. |
| 20681 |
|
| 20682 |
* src/autoloads.scm : added missing #define LIBGAUCHE_BODY --- it |
| 20683 |
matters on cygwin. |
| 20684 |
|
| 20685 |
* src/main.c, src/load.c : added ad-hoc support of legacy DOS |
| 20686 |
drive letter under __CYGWIN__. |
| 20687 |
|
| 20688 |
2003-12-14 Shiro Kawai <[email protected]> |
| 20689 |
|
| 20690 |
* lib/rfc/mime.scm (mime-parse-message, etc): revised API. |
| 20691 |
|
| 20692 |
2003-12-13 Shiro Kawai <[email protected]> |
| 20693 |
|
| 20694 |
* lib/gauche/redefutil.scm, lib/gauche/object.scm : Oops. |
| 20695 |
Yesterday's support of the optional slot specifier doesn't work |
| 20696 |
well with inheritance. I remove the feature for now. |
| 20697 |
|
| 20698 |
* src/macro.c (compile_rule1): Checks if template ellipsis level |
| 20699 |
matches pattern variables'. Without catching this error, such |
| 20700 |
erroneous macro would cause infinite loop at expansion time. |
| 20701 |
(add_pvar) : fixed wrong condition to check duplicated pattern |
| 20702 |
variables. |
| 20703 |
(These patches from teranishi) |
| 20704 |
|
| 20705 |
2003-12-12 Shiro Kawai <[email protected]> |
| 20706 |
|
| 20707 |
* lib/gauche/redefutil.scm (change-object-class): properly support |
| 20708 |
the optional slots argument. also made the default slot carry-over |
| 20709 |
routine handles class-allocated slots. |
| 20710 |
|
| 20711 |
* lib/gauche/mop/propagate.scm (compute-get-n-set): changed to |
| 20712 |
support bound?-protocol, and make it robust for class redefinition. |
| 20713 |
|
| 20714 |
* lib/gauche/object.scm (class-slot-bound?): added bound?-protocol |
| 20715 |
to the class slot accessor. |
| 20716 |
|
| 20717 |
* lib/slib.scm.in (home-vicinity): make sure it ends with directory |
| 20718 |
separator. |
| 20719 |
(slib:load): adjusted to SCM behavior. |
| 20720 |
|
| 20721 |
* lib/rfc/mime.scm : added experimentally. |
| 20722 |
|
| 20723 |
2003-12-11 Shiro Kawai <[email protected]> |
| 20724 |
|
| 20725 |
* lib/rfc/822.scm : added basic tokenizers. |
| 20726 |
|
| 20727 |
2003-12-09 Shiro Kawai <[email protected]> |
| 20728 |
|
| 20729 |
* src/autoloads.scm, src/gauche-init.scm, lib/gauche/fileutil.scm, |
| 20730 |
lib/gauche/modutil.scm : Moved autoload settings from gauche-init.scm |
| 20731 |
to autoloads.scm, which is compiled into the binary; this improve |
| 20732 |
start-up time of gosh quite a bit. |
| 20733 |
|
| 20734 |
* src/gauche.h, src/load.c (Scm_DefineAutoload), src/extlib.stub: |
| 20735 |
Implemented autoload feature in C. |
| 20736 |
|
| 20737 |
* src/gauche-init.scm, src/gauche/interactive.scm : moved the |
| 20738 |
feature to load ~/.gaucherc from gauche-init to gauche.interactive. |
| 20739 |
|
| 20740 |
2003-12-08 Shiro Kawai <[email protected]> |
| 20741 |
|
| 20742 |
* src/gauche.h (SCM_NEW_ARRAY), src/*.c : replaced most of SCM_NEW2 |
| 20743 |
to SCM_NEW_ARRAY for clearity. |
| 20744 |
|
| 20745 |
* src/parameter.c (Scm_ParameterTableInit): fixed a bug that corrupts |
| 20746 |
memory. |
| 20747 |
|
| 20748 |
2003-12-07 Shiro Kawai <[email protected]> |
| 20749 |
|
| 20750 |
* src/list.c (Scm_MonotonicMerge), src/class.c, src/module.c, |
| 20751 |
src/gauche.h, src/extlib.stub : Changed to use C3 linearization |
| 20752 |
instead of Dylan linearization. C3 is more intuitive. |
| 20753 |
|
| 20754 |
* ext/charconv/charconv.c (Scm_MakeInputConversionPort, |
| 20755 |
Scm_MakeOutputConversionPort) : fixed a bug that didn't |
| 20756 |
initialize all the members of ScmPortBuffer. |
| 20757 |
|
| 20758 |
2003-12-05 Shiro Kawai <[email protected]> |
| 20759 |
|
| 20760 |
* src/gauche.h (SCM_SYSCALL), src/system.c, src/syslib.stub, |
| 20761 |
src/port.c, ext/net/net.c, ext/fcntl/fcntl.c, |
| 20762 |
ext/auxsys/auxsyslib.stub: Wrapped system call by a macro |
| 20763 |
so that signal-interrupted system calls are restarted unless |
| 20764 |
signal handler throws an exception. The old wrappers, |
| 20765 |
Scm_SysCall and Scm_PreSysCall, which didn't restart syscall, |
| 20766 |
are obsoleted. |
| 20767 |
|
| 20768 |
2003-12-04 Shiro Kawai <[email protected]> |
| 20769 |
|
| 20770 |
* src/genstub : updated according to Scm_InitBuiltinClass change. |
| 20771 |
* lib/text/html-lite.scm (html-doctype): added missing dtd url. |
| 20772 |
handles XHTML doctypes as well. |
| 20773 |
* lib/slib.scm.in : added system -> sys-system alias (Patch from |
| 20774 |
KIMURA Fuyuki). |
| 20775 |
* src/error.c (Scm_SError) : allow non-string as a first arg. |
| 20776 |
This is only for supporting third-party code without obscuring |
| 20777 |
where an error occurred. New code should pass a string there |
| 20778 |
specified SRFI-23. Suggestion and patch from Kimura Fuyuki. |
| 20779 |
|
| 20780 |
2003-12-03 Shiro Kawai <[email protected]> |
| 20781 |
|
| 20782 |
* lib/text/tr.scm (build-transliterator) : changed it to |
| 20783 |
use current-i/o ports when the created transliterator is |
| 20784 |
called instead of the ones when the transliterator is created; |
| 20785 |
the former is more useful, since the latter can be achieved |
| 20786 |
by passing :input (current-input-port) etc., to build-transliterator. |
| 20787 |
Patch from Alex Shinn. |
| 20788 |
|
| 20789 |
* lib/text/html-lite.scm (html-escape-string): call x->string on |
| 20790 |
the argument so that it can handle non-string argument. |
| 20791 |
(Suggested by Kouhei Sutou). |
| 20792 |
|
| 20793 |
2003-11-27 Shiro Kawai <[email protected]> |
| 20794 |
|
| 20795 |
* src/class.c : cleaned up internal protocols. The fourth |
| 20796 |
argument of Scm_InitBuiltinClass is changed to a flag withMeta. |
| 20797 |
Treatment of ScmClass.coreSize is straighten up. |
| 20798 |
|
| 20799 |
* lib/gauche/object.scm, lib/gauche/redefutil.scm : splitted |
| 20800 |
class-redefinition implementation into an autoloaded file. |
| 20801 |
Fix instance update protocol so that only instance-allocated |
| 20802 |
slots (in the old instance) will be carried over. |
| 20803 |
|
| 20804 |
2003-11-24 Shiro Kawai <[email protected]> |
| 20805 |
|
| 20806 |
* lib/dbm.scm : added dbm-db-* to the export list. (Pointed out |
| 20807 |
by Hosaka Y). |
| 20808 |
|
| 20809 |
2003-11-22 Shiro Kawai <[email protected]> |
| 20810 |
|
| 20811 |
* src/port.c (Scm_GetRemainingInputString), src/extlib.stub, |
| 20812 |
src/gauche.h, test/string.scm : Added get-remaining-input-string. |
| 20813 |
|
| 20814 |
2003-11-21 Shiro Kawai <[email protected]> |
| 20815 |
|
| 20816 |
* acinclude.m4, aclocal.m4 : make sure OBJEXT and EXEEXT are |
| 20817 |
substituted. |
| 20818 |
* examples/spigot/Makefile.in : parameterize OBJEXT and DSOEXT. |
| 20819 |
|
| 20820 |
* src/number.c (read_uint): Now the number reader recognizes |
| 20821 |
'#'-padded numeric literal format. |
| 20822 |
|
| 20823 |
* src/portapi.c (Scm_ReadLine): |
| 20824 |
* src/extlib.stub (read-line): Added allow-byte-string parameter |
| 20825 |
so that read-line can be used for a port whose character encoding |
| 20826 |
is unknown. |
| 20827 |
|
| 20828 |
2003-11-20 Shiro Kawai <[email protected]> |
| 20829 |
|
| 20830 |
* lib/srfi-14.scm (ucs-range->char-set!) : this procedure didn't |
| 20831 |
work for large charset if gauche was compiled for other than utf-8. |
| 20832 |
|
| 20833 |
2003-11-19 Shiro Kawai <[email protected]> |
| 20834 |
|
| 20835 |
* src/hash.c (Scm_EqHash, Scm_EqvHash), src/extlib.stub : |
| 20836 |
experimentally added eq-hash and eqv-hash functions. |
| 20837 |
|
| 20838 |
2003-11-18 Shiro Kawai <[email protected]> |
| 20839 |
|
| 20840 |
* src/list.c (Scm_Assoc, Scm_AssocDelete, Scm_AssocDeleteX) : |
| 20841 |
added (fixed) checks of 'alist' argument. |
| 20842 |
|
| 20843 |
2003-11-18 Kimura Fuyuki <[email protected]> |
| 20844 |
|
| 20845 |
* ext/net/test.scm : Relax checking of (sockaddr-name v6addr). |
| 20846 |
The result string of inet_ntop() varies among implementations. |
| 20847 |
|
| 20848 |
2003-11-14 Shiro Kawai <[email protected]> |
| 20849 |
|
| 20850 |
* src/class.c (Scm_VMSlotSet) : fix calling slot-missing. |
| 20851 |
|
| 20852 |
* src/list.c (Scm_Assq, Scm_Assv) : check 'alist' argument if |
| 20853 |
it's a list. |
| 20854 |
|
| 20855 |
2003-11-11 Shiro Kawai <[email protected]> |
| 20856 |
|
| 20857 |
* lib/gauche/mop/validator.scm : make slot-bound? work on a slot |
| 20858 |
with validator, using new :slot-bound? protocol of virtual slots. |
| 20859 |
|
| 20860 |
* lib/gauche/object.scm (change-class) : exclude builtin slots |
| 20861 |
from processing. They are copied by %transplant-instance |
| 20862 |
anyway, and sometimes cause problems if we copy them in Scheme |
| 20863 |
level. |
| 20864 |
(compute-slot-accessor) : Changed according to <slot-accessor> |
| 20865 |
class change. Virtual slot now can have :slot-bound? option. |
| 20866 |
|
| 20867 |
* lib/gauche/mop/instance-pool.scm : export some accessors; without |
| 20868 |
them, weird things happen when other modules creates subclasses |
| 20869 |
of <instance-pool-meta>. This fix is just to dodge the real |
| 20870 |
problem, which is the interaction between generic function and |
| 20871 |
namespaces. |
| 20872 |
|
| 20873 |
* src/class.c : added missing delete-method! generic function |
| 20874 |
registration. Changed Scm_SlotAccessor structure to have |
| 20875 |
Scheme-defined bound? procedure, so that the virtual slot can |
| 20876 |
specify a way to determine whether the slot is bound or not. |
| 20877 |
|
| 20878 |
2003-11-10 Shiro Kawai <[email protected]> |
| 20879 |
|
| 20880 |
* src/class.c, lib/gauche/object.scm, src/moplib.stub, |
| 20881 |
src/gauche/class.h, src/gauche.h : implemented change-class |
| 20882 |
method, which completes class redefinition protocol. |
| 20883 |
|
| 20884 |
* ext/*/test.scm : removed kludge code that allowed to load modules |
| 20885 |
from the testing directory---now 'make' creates links so we |
| 20886 |
no longer need them. |
| 20887 |
|
| 20888 |
* lib/srfi-1.scm : added missing autoload fro list= (Patch from |
| 20889 |
Michal Maruška). |
| 20890 |
|
| 20891 |
2003-11-09 Shiro Kawai <[email protected]> |
| 20892 |
|
| 20893 |
* ext/sxml/adaptor.scm (make-char-quotator) : the signature didn't |
| 20894 |
match with usage. Patch from Nobuo YAMASHITA. |
| 20895 |
|
| 20896 |
2003-11-08 Shiro Kawai <[email protected]> |
| 20897 |
|
| 20898 |
* lib/gauche/process.scm (process-wait-any) : avoid calling |
| 20899 |
sys-waitpid unless there are child processes regsitered in |
| 20900 |
process-list; sys-waitpid raises an error when no child |
| 20901 |
process to wait. |
| 20902 |
|
| 20903 |
2003-11-07 Shiro Kawai <[email protected]> |
| 20904 |
|
| 20905 |
* example/oointro.scm, doc/object.texi : added "introduction to |
| 20906 |
the object system" section, and the code snippet of the |
| 20907 |
examples. |
| 20908 |
|
| 20909 |
2003-11-05 Shiro Kawai <[email protected]> |
| 20910 |
|
| 20911 |
* ext/sxml/sxpath.scm.in, ext/sxml/tools.scm.in : added missing |
| 20912 |
APIs to export list (sxml:id-alist, sxml:not-equal?, |
| 20913 |
sxml:string->xml) and corrected misspelling of exported fn |
| 20914 |
(sxml:attr-list-node). Pointed by Nobuo YAMASHITA. |
| 20915 |
|
| 20916 |
2003-11-02 Kimura Fuyuki <[email protected]> |
| 20917 |
|
| 20918 |
* aclocal.m4, acinclude.m4 : Add a description for GAUCHE_VERSION |
| 20919 |
to make autoheader happy. |
| 20920 |
|
| 20921 |
2003-10-30 Shiro Kawai <[email protected]> |
| 20922 |
|
| 20923 |
* lib/gauche/selector.scm (selector-delete!): fixed an error when |
| 20924 |
only procedure is specified. Also added unit test for selector. |
| 20925 |
|
| 20926 |
2003-10-29 Shiro Kawai <[email protected]> |
| 20927 |
|
| 20928 |
* lib/gauche/process.scm (process-wait, process-wait-any) : added |
| 20929 |
nohang optional arg to process-wait, so the user can just check |
| 20930 |
the exit status without suspending. Also added process-wait-any |
| 20931 |
for convenience. |
| 20932 |
|
| 20933 |
2003-10-28 Shiro Kawai <[email protected]> |
| 20934 |
|
| 20935 |
* lib/util/queue.scm (remove-from-queue!): fixed a bug that raises |
| 20936 |
an error when the only element in the queue is removed. |
| 20937 |
|
| 20938 |
2003-10-28 Kimura Fuyuki <[email protected]> |
| 20939 |
|
| 20940 |
* ext/mt-random/mt-random.c (genrand_int_small): Add a special |
| 20941 |
case for n==1. Now (random-integer 1) correctly returns 0. |
| 20942 |
|
| 20943 |
2003-10-27 Kimura Fuyuki <[email protected]> |
| 20944 |
|
| 20945 |
* configure.ac : Add a missing comma. |
| 20946 |
|
| 20947 |
2003-10-25 Shiro Kawai <[email protected]> |
| 20948 |
|
| 20949 |
* src/gauche.h, src/class.c, src/gauche/class.h, src/moplib.stub, |
| 20950 |
lib/gauche/object.scm : snapshot of class redefinition logic. |
| 20951 |
Not enabled yet, but closer to the final structure. |
| 20952 |
|
| 20953 |
* lib/dbm/fsdbm.scm (dbm-fold): fixed a bug that dbm-fold passes |
| 20954 |
a bogus key to the iteratee procedure. |
| 20955 |
|
| 20956 |
2003-10-25 Kimura Fuyuki <[email protected]> |
| 20957 |
|
| 20958 |
* examples/spigot/Makefile.in : Respect DESTDIR. |
| 20959 |
|
| 20960 |
2003-10-24 Shiro Kawai <[email protected]> |
| 20961 |
|
| 20962 |
* src/regexp.c : added non-greedy match (*?, +?, ??, {n,[m]}?). |
| 20963 |
|
| 20964 |
2003-10-24 Kimura Fuyuki <[email protected]> |
| 20965 |
|
| 20966 |
* Makefile.in, examples/spigot/Makefile.in : Add configure.lineno |
| 20967 |
to CONFIG_GENERATED. That file is automatically generated by the |
| 20968 |
configure script if /bin/sh does not support the LINENO |
| 20969 |
environment variable. (i.e. most Linux users never see it.) |
| 20970 |
|
| 20971 |
2003-10-23 Shiro Kawai <[email protected]> |
| 20972 |
|
| 20973 |
* src/extlib.stub (bufport_flusher): updated according to the |
| 20974 |
protocol change on 2003-10-20. Note that the Scheme buffered port |
| 20975 |
API itself is not final, and will probably be replaced. |
| 20976 |
|
| 20977 |
* src/gauche.h, src/class.c, src/genstub, src/moplib.stub, |
| 20978 |
src/gauche/class.h : fixed low-level mechanism for class |
| 20979 |
redefinition, still a snapshot. Cleaned up the meaning of |
| 20980 |
"flags" of class---now the role of class categories are well |
| 20981 |
defined and commented in gauche.h, and the class category is |
| 20982 |
visible from Scheme as well. |
| 20983 |
|
| 20984 |
* lib/gauche/object.scm : a snapshot of skeleton code for |
| 20985 |
class redefinition stuff. Not active yet. |
| 20986 |
|
| 20987 |
2003-10-22 Shiro Kawai <[email protected]> |
| 20988 |
|
| 20989 |
* ext/charconv/charconv.scm (with-input-conversion, |
| 20990 |
with-output-conversion): added. Manual entry is also created |
| 20991 |
accordingly. |
| 20992 |
|
| 20993 |
2003-10-23 Kimura Fuyuki <[email protected]> |
| 20994 |
|
| 20995 |
* ext/dbm/gdbm.scm, ext/dbm/ndbm.scm, ext/dbm/odbm.scm, |
| 20996 |
lib/dbm/fsdbm.scm, lib/rfc/cookie.scm, lib/srfi-19/format.scm : |
| 20997 |
Use "error" rather than "errorf" if not needed. |
| 20998 |
|
| 20999 |
2003-10-21 Shiro Kawai <[email protected]> |
| 21000 |
|
| 21001 |
* Makefile.in, Gauche.spec : installs acinclude.m4 as gauche.m4 under |
| 21002 |
$(datadir)/aclocal. Patch from Kimura Fuyuki. |
| 21003 |
|
| 21004 |
* src/Makefile.in : make uninstall remove libgauche.so. Patch from |
| 21005 |
Kimura Fuyuki. |
| 21006 |
|
| 21007 |
* src/gauche-init.scm : evaluates "~/.gaucherc" in the user module. |
| 21008 |
NB: this is still not an official feature, and might be moved to |
| 21009 |
gauche.interactive in future. |
| 21010 |
|
| 21011 |
2003-10-20 Shiro Kawai <[email protected]> |
| 21012 |
|
| 21013 |
* src/port.c, src/portapi.c, ext/charconv/charconv.c : changed the |
| 21014 |
internal protocol of flush routine of buffered port, so that it |
| 21015 |
can behave differently when the flush request is a final one or not. |
| 21016 |
See the comment at buffererd port implementation of port.c for |
| 21017 |
the detailed discussion. |
| 21018 |
|
| 21019 |
2003-10-20 Kimura Fuyuki <[email protected]> |
| 21020 |
|
| 21021 |
* ext/net/*, doc/modgauche.texi : added sockaddr-addr and |
| 21022 |
sockaddr-port. |
| 21023 |
|
| 21024 |
* lib/srfi-37.scm : Fixed a typo in the export list. We seem to |
| 21025 |
need some sort of "duplication checker". |
| 21026 |
|
| 21027 |
2003-10-18 Shiro Kawai <[email protected]> |
| 21028 |
|
| 21029 |
* ext/charconv/jconv.c : fixed a bug in utf8->eucjp conversion routine |
| 21030 |
that incorrectly rejected 2-byte utf8 sequences which end with 0xbf |
| 21031 |
(Thanks to Kimura Fuyuki for identifying the problem). |
| 21032 |
|
| 21033 |
2003-10-17 Shiro Kawai <[email protected]> |
| 21034 |
|
| 21035 |
* src/class.c, src/gauche.h, src/moplib.stub, lib/gauche/object.scm : |
| 21036 |
Checked in the preparation of class-redefinition support. |
| 21037 |
Instance slots are now stored in an array separately allocated |
| 21038 |
from the object itself (so the number of instance slots can be |
| 21039 |
changed). Some bookkeeping routines are added to the ScmClass. |
| 21040 |
Class flags has been changed, but not fixed its meanings. |
| 21041 |
|
| 21042 |
* src/vm.c, src/gauche/vminsn.h : added some code to support |
| 21043 |
instruction vectorization. Not yet finalized. |
| 21044 |
|
| 21045 |
* lib/dbm.scm (dbm-open): fixed a bug when a custom accessor |
| 21046 |
specification is given (Patch from Grzegorz Chrupała). |
| 21047 |
|
| 21048 |
2003-10-08 Shiro Kawai <[email protected]> |
| 21049 |
|
| 21050 |
* lib/Makefile.in (slibcat-in-place): use $(top_builddir) |
| 21051 |
instead of $(exec_prefix), since at this moment gosh isn't |
| 21052 |
installed there yet. |
| 21053 |
|
| 21054 |
2003-10-07 Shiro Kawai <[email protected]> |
| 21055 |
|
| 21056 |
* src/regexp.c (is_distinct): fixed a bug in the optimizer, which |
| 21057 |
makes a regexp that contains "a repeat of complemented charset |
| 21058 |
followed by something except a char or a charset" fails. |
| 21059 |
|
| 21060 |
2003-10-07 Kimura Fuyuki <[email protected]> |
| 21061 |
|
| 21062 |
* lib/dbm/fsdbm.scm: typo fix |
| 21063 |
|
| 21064 |
2003-10-05 Shiro Kawai <[email protected]> |
| 21065 |
|
| 21066 |
* configure.ac, ext/auxsys/auxsys.scm, ext/auxsys/auxsyslib.stub : |
| 21067 |
added sys-setenv and sys-unsetenv (Patch from Kimura Fuyuki). |
| 21068 |
|
| 21069 |
* src/gauche/config.h.in, ext/auxsys/auxsysconf.h.in : moved |
| 21070 |
#defines that only used in auxsys into auxsysconf.h.in. |
| 21071 |
|
| 21072 |
* lib/util/lcs.scm (lcs-with-positions) : fixed an error in |
| 21073 |
the edge case, when both sequences are empty. |
| 21074 |
|
| 21075 |
2003-10-04 Shiro Kawai <[email protected]> |
| 21076 |
|
| 21077 |
* release 0.7.2 |
| 21078 |
|
| 21079 |
* src/gauche-config.in : records OBJEXT and EXEEXT. |
| 21080 |
|
| 21081 |
* aclocal.m4, acinclude.m4 : added adjustment of OBJEXT, EXEEXT, |
| 21082 |
SOEXT and DYLIBEXT in AC_GAUCHE_CC macro. |
| 21083 |
|
| 21084 |
* ext/Makefile.ext.in : expose BIN_INSTALL_DIR etc. |
| 21085 |
|
| 21086 |
2003-10-03 Shiro Kawai <[email protected]> |
| 21087 |
|
| 21088 |
* ext/fcntl/fcntl.scm: added missing F_SETFD to the export list |
| 21089 |
(patch from Kimura Fuyuki). |
| 21090 |
|
| 21091 |
* src/compare.c, lib/gauche/sortutil.scm, src/extlib.stub, |
| 21092 |
src/gauche.h : |
| 21093 |
use the internal sort function when a compare fn is not given. |
| 21094 |
|
| 21095 |
* lib/gauche/stringutil.scm (string-split) : raises an error when |
| 21096 |
splitter matches a null string. |
| 21097 |
|
| 21098 |
2003-10-02 Shiro Kawai <[email protected]> |
| 21099 |
|
| 21100 |
* lib/gauche/process.scm (run-process): make sure the fds opened for |
| 21101 |
redirection are closed in the parent process side. |
| 21102 |
|
| 21103 |
* src/gauche/extend.h (SCM_INIT_EXTENSION): under __CYGWIN__, add |
| 21104 |
a region between _bss_start__ and _bss_end__ to the root set, |
| 21105 |
instead of Scm__bssstart/end. The new ld reorders bss area, |
| 21106 |
so the latter doesn't work. (It may be the case with other |
| 21107 |
lds. Need to investigate). |
| 21108 |
|
| 21109 |
2003-09-29 Shiro Kawai <[email protected]> |
| 21110 |
|
| 21111 |
* ext/net/net.scm, example/scheme-server.scm : added 'proto' optional |
| 21112 |
argument to make-sockaddrs, and refactored make-server|client-socket |
| 21113 |
using make-sockaddrs (Patch provided by Kimura Fuyuki). |
| 21114 |
|
| 21115 |
2003-09-28 Shiro Kawai <[email protected]> |
| 21116 |
|
| 21117 |
* ext/mt-random/mt-random.c : fixed a bug that |
| 21118 |
(random-integer (expt 2 16)) generates a value larger than 2^16. |
| 21119 |
Patch provided by Alex Shinn. |
| 21120 |
|
| 21121 |
2003-09-27 Shiro Kawai <[email protected]> |
| 21122 |
|
| 21123 |
* ext/net/net.scm : added make-server-sockets and make-sockaddrs |
| 21124 |
in order to open multiple server sockets (esp., when the host |
| 21125 |
has both ipv4 and ipv6 interface). Patch provided by Kimura Fuyuki. |
| 21126 |
|
| 21127 |
* ext/charconv/charconv.scm : added call-with-input|output-conversion. |
| 21128 |
|
| 21129 |
* src/macro.c (compile_rule1): fixed the problem of macro-defining |
| 21130 |
macro. |
| 21131 |
|
| 21132 |
* ext/net/net.c (Scm_SocketClose) : do not shutdown the connection |
| 21133 |
when a socket is closed; other forked process may still be using |
| 21134 |
it. Also fixed a socket's finalizer not to refer to the ports |
| 21135 |
(it is not guaranteed that they are valid when the finalizer is |
| 21136 |
called). |
| 21137 |
|
| 21138 |
2003-09-24 Shiro Kawai <[email protected]> |
| 21139 |
|
| 21140 |
* ext/sxml/sxpath.scm.in : fixed typo in the export list (pointed out |
| 21141 |
by Makoto Satoh). |
| 21142 |
|
| 21143 |
2003-09-22 Shiro Kawai <[email protected]> |
| 21144 |
|
| 21145 |
* src/srfi-1/filter.scm : fixed typo, and changed (not (pair? ...)) |
| 21146 |
to (null-list? ...). The latter change makes the code check an |
| 21147 |
improper list more strictly, and the original srfi-1 reference |
| 21148 |
implmentation uses null-list? consistently, but "not pair?" sneaked |
| 21149 |
in when I tuned some procedures. (Patch from Grzegorz Chrupała). |
| 21150 |
|
| 21151 |
2003-09-18 Shiro Kawai <[email protected]> |
| 21152 |
|
| 21153 |
* src/number.c (Scm_Quotient, Scm_Modulo): fixed a bug that yielded |
| 21154 |
wrong error message when the first arg wasn't a number. |
| 21155 |
|
| 21156 |
2003-09-15 Shiro Kawai <[email protected]> |
| 21157 |
|
| 21158 |
* lib/dbm/fsdbm.scm : added. |
| 21159 |
|
| 21160 |
2003-09-14 Shiro Kawai <[email protected]> |
| 21161 |
|
| 21162 |
* src/extlib.stub : added gauche-dso-suffix to query dlopen()-able |
| 21163 |
suffix of the system. |
| 21164 |
|
| 21165 |
* src/compare.c, lib/gauche/sortutil.scm, src/extlib.stub : |
| 21166 |
replaced sort and sort! implementation with Scheme version |
| 21167 |
(by Richard A. O'Keefe, based on the code by D.H.D.Warren). |
| 21168 |
The C version performs terribly when compare function is |
| 21169 |
provided from Scheme; more than 15 times slower than Scheme |
| 21170 |
version. |
| 21171 |
* src/gauche-init.scm : sets autoload to sort and sort!. |
| 21172 |
|
| 21173 |
2003-09-13 Shiro Kawai <[email protected]> |
| 21174 |
|
| 21175 |
* ext/*/Makefile.in : added missing $(LIBS) in the link rule. |
| 21176 |
This caused hang in the test of ext/threads during pthrad_cond_wait |
| 21177 |
(see http://sources.redhat.com/ml/libc-hacker/2003-09/msg00002.html) |
| 21178 |
|
| 21179 |
* lib/gauche/libutil.scm, lib/gauche/reload.scm : added libutuil. |
| 21180 |
* src/gauche-init.scm : set autoloads for gauche.libutil. |
| 21181 |
|
| 21182 |
2003-09-12 Shiro Kawai <[email protected]> |
| 21183 |
|
| 21184 |
* ext/charconv/jconv.c : fixed a bug that caused buffer overflow |
| 21185 |
and/or premature conversion output under certain condition. |
| 21186 |
Also added test cases (jp4.*) that particularly tests the condition. |
| 21187 |
|
| 21188 |
* lib/gauche/interactive.scm : added autoloads for gauche.reload, |
| 21189 |
so that `reload' would be available in interactive development |
| 21190 |
by default. It's useful enough to do so. |
| 21191 |
|
| 21192 |
2003-09-08 Shiro Kawai <[email protected]> |
| 21193 |
|
| 21194 |
* src/hash.c, src/class.c, src/gauche.h, src/extlib.stub : Exposed |
| 21195 |
hash procedure to Scheme. Added object-hash generic function |
| 21196 |
so that the user-defined class can be used in hash table with |
| 21197 |
its own hash function. |
| 21198 |
|
| 21199 |
2003-09-07 Shiro Kawai <[email protected]> |
| 21200 |
|
| 21201 |
* lib/dbm.scm, lib/dbm/* : moved abstract dbm implementation under lib. |
| 21202 |
|
| 21203 |
2003-09-06 Shiro Kawai <[email protected]> |
| 21204 |
|
| 21205 |
* src/module.c, src/gauche-init.scm : incorporate module-name->path |
| 21206 |
in the core binary, so that the future extension can add |
| 21207 |
nontrivial translations between module names and pathnames. |
| 21208 |
From now on, any interface that needs to translate module name |
| 21209 |
to pathname or vice versa must go through this API (they shouldn't |
| 21210 |
assume replacing '.' to '/' is enough). |
| 21211 |
|
| 21212 |
* lib/gauche/common-macros.scm : moved check-arg and get-keyword* |
| 21213 |
to here from gauche-init.scm, as autoloaded macros. |
| 21214 |
|
| 21215 |
2003-09-04 Shiro Kawai <[email protected]> |
| 21216 |
|
| 21217 |
* lib/gauche/process.scm : Added various keyword arguments to |
| 21218 |
process ports to allow redirection and character encoding conversion. |
| 21219 |
Also extended the command syntax so that it can take a list of |
| 21220 |
argv and call exec directly. |
| 21221 |
(INCOMPATIBLE CHANGE) open-{input|output}-process-port now return |
| 21222 |
two values, the port and the process object. I found they are pretty |
| 21223 |
useless without getting process object. |
| 21224 |
|
| 21225 |
2003-09-03 Shiro Kawai <[email protected]> |
| 21226 |
|
| 21227 |
* lib/util/lcs.scm (lcs-with-positions) : rewrote to use Eugene Myers' |
| 21228 |
O(ND) algorithm which performs much better in typical case, |
| 21229 |
then the previous DP algorithm that requires O(NM). |
| 21230 |
|
| 21231 |
2003-09-01 Shiro Kawai <[email protected]> |
| 21232 |
|
| 21233 |
* lib/www/cgi.scm (cgi-parse-parameters) : accept ';' as well as '&' |
| 21234 |
as a parameter separator. (Support of ';' is recommended in the |
| 21235 |
B.2.2 of HTML4.01 specification). |
| 21236 |
|
| 21237 |
2003-08-30 Shiro Kawai <[email protected]> |
| 21238 |
|
| 21239 |
* src/list.c (Scm_ListTail): fixed error message when arg is out |
| 21240 |
of range. |
| 21241 |
|
| 21242 |
2003-08-29 Shiro Kawai <[email protected]> |
| 21243 |
|
| 21244 |
* ext/sxml/sxpath.scm.in: added missing txpath.scm (Patch from |
| 21245 |
Hisazumi Kenji). |
| 21246 |
|
| 21247 |
2003-08-25 Shiro Kawai <[email protected]> |
| 21248 |
|
| 21249 |
* ext/Makefile.ext.in, ext/xlink : let each 'make' in exit/$dir |
| 21250 |
to create appropriate links in the source tree, so that the |
| 21251 |
newly built gosh can run without installation. |
| 21252 |
|
| 21253 |
2003-08-17 Shiro Kawai <[email protected]> |
| 21254 |
|
| 21255 |
* src/compile.c (Scm__InitCompiler): moved with-module and |
| 21256 |
select-module from 'null' module to gauche module. This makes |
| 21257 |
'null' and 'scheme' module pure R5RS. Side-effect: once |
| 21258 |
you enter these modules, there will be no way to get out from them. |
| 21259 |
|
| 21260 |
2003-08-16 Shiro Kawai <[email protected]> |
| 21261 |
|
| 21262 |
* ext/net/test.scm : adapted to ipv6 |
| 21263 |
|
| 21264 |
2003-08-09 Shiro Kawai <[email protected]> |
| 21265 |
|
| 21266 |
* src/portapi.c (Scm_ReadLine): removed the big overhead of |
| 21267 |
read-line related to port locking. |
| 21268 |
|
| 21269 |
2003-08-08 Shiro Kawai <[email protected]> |
| 21270 |
|
| 21271 |
* ext/fcntl/fcntl.c, ext/net/addr.c, ext/termios/termios.c : |
| 21272 |
corrected usage of memset() (Pointed by NISHIO Yasuhiro) |
| 21273 |
|
| 21274 |
* ext/charconv/Makefile.in : changed LDFLAGS so that @ICONV_LDFLAGS@ |
| 21275 |
will be added before $LDFLAGS. Patch from Kogule, Ryo. |
| 21276 |
|
| 21277 |
2003-08-07 Shiro Kawai <[email protected]> |
| 21278 |
|
| 21279 |
* lib/slib.scm.in : provides substitute of slib's "byte" module--- |
| 21280 |
the original one uses a string for a byte-string, which doesn't |
| 21281 |
work on Gauche. |
| 21282 |
|
| 21283 |
* aclocal.m4, ext/net/net.ac, src/gauche/config.h : added test for |
| 21284 |
socklen_t, which appears to be necessary on MacOS X when using |
| 21285 |
ipv6. (Patch from Hisazumi Kenji). |
| 21286 |
|
| 21287 |
* Makefile.in, lib/Makefile.in, lib/mklibcat : added 'slibcat-in-place' |
| 21288 |
make target which creates 'slibcat' within the source tree before |
| 21289 |
installing gauche. This is useful to make a package of the |
| 21290 |
system that doesn't allow to run a postinstall script. |
| 21291 |
|
| 21292 |
2003-08-05 Shiro Kawai <[email protected]> |
| 21293 |
|
| 21294 |
* lib/util/record.scm : added SCM compatible make-record-type |
| 21295 |
and other stuff, built on top of srfi-9. This is derived from |
| 21296 |
the patch provided by Alex Shinn. |
| 21297 |
|
| 21298 |
2003-07-23 Shiro Kawai <[email protected]> |
| 21299 |
|
| 21300 |
* lib/rfc/uri.scm (uri-decode): handle gracefully the case that |
| 21301 |
input string ends with '%'. |
| 21302 |
|
| 21303 |
* release 0.7.1 |
| 21304 |
|
| 21305 |
2003-07-22 Shiro Kawai <[email protected]> |
| 21306 |
|
| 21307 |
* configure.ac, src/Makefile.in, src/link-dylib, src/makeverslink: |
| 21308 |
fixed link and installation process. Introduced a couple of |
| 21309 |
helper script to keep configure.ac and Makefile.in simple. |
| 21310 |
|
| 21311 |
* ext/sxml/adaptor.scm : added cerr, cout and nl for sxml-tools |
| 21312 |
* ext/sxml/sxpath.scm.in : use srfi-2 and srfi-11. |
| 21313 |
|
| 21314 |
2003-07-21 Shiro Kawai <[email protected]> |
| 21315 |
|
| 21316 |
* src/Makefile.in : On Cygwin, installs libgauche.dll to bindir |
| 21317 |
as well as libdir, or it won't be found by the shell. |
| 21318 |
|
| 21319 |
* doc/Makefile.in : honors DESTDIR for installation. |
| 21320 |
|
| 21321 |
* ext/sxml : updated SXPath to the newer version in sxml-tools |
| 21322 |
by Kirill Lisovsky and Dmitry Lizorkin. Also added sxml.tools. |
| 21323 |
|
| 21324 |
2003-07-20 Shiro Kawai <[email protected]> |
| 21325 |
|
| 21326 |
* ext/sxml/sxpath.scm, ext/sxml/trans.scm : incorporated Alex Shinn's |
| 21327 |
patch for sxpath support, and Kiyoka Nishiyama's patch on it. |
| 21328 |
|
| 21329 |
* ext/sxml/src/SSAX.scm : updated to the newest CVS version of SSAX.scm |
| 21330 |
|
| 21331 |
2003-07-19 Shiro Kawai <[email protected]> |
| 21332 |
|
| 21333 |
* ext/dbm/dbmconf.h.in : splitted dbm-specific configure settings |
| 21334 |
to this file from the main config.h.in. |
| 21335 |
|
| 21336 |
* configure.ac, src/Makefile.in : run relink before installing |
| 21337 |
gosh with --relink option, so that the installed gosh dynamically |
| 21338 |
links the proper libgauche.so. |
| 21339 |
|
| 21340 |
2003-07-18 Shiro Kawai <[email protected]> |
| 21341 |
|
| 21342 |
* configure.ac, src/gauche-config.in, ext/Makefile.ext.in : |
| 21343 |
revised some compiler options. removed spurious -lgauche-uvector |
| 21344 |
flag from gauche-config. |
| 21345 |
|
| 21346 |
2003-07-16 Shiro Kawai <[email protected]> |
| 21347 |
|
| 21348 |
* ext/sxml : integrated Oleg Kiselyov's SXML. Just incorporated |
| 21349 |
sxml-gauche 0.9 sources with minor modifications; need to catch |
| 21350 |
up the current SXML versions. |
| 21351 |
|
| 21352 |
2003-07-15 Shiro Kawai <[email protected]> |
| 21353 |
|
| 21354 |
* gc/*, src/gauche/memory.h : upgraded to Boehm GC 6.2 |
| 21355 |
|
| 21356 |
2003-07-14 Shiro Kawai <[email protected]> |
| 21357 |
|
| 21358 |
* ext/Makefile.ext.in : Added $(DESTDIR) to the install |
| 21359 |
destination (Thanks to Kogule Ryo for a patch). |
| 21360 |
|
| 21361 |
2003-07-09 Shiro Kawai <[email protected]> |
| 21362 |
|
| 21363 |
* src/gauche/char_none.h (SCM_CHAR_GET): make sure retrieval of |
| 21364 |
char is not sign-extended. |
| 21365 |
|
| 21366 |
2003-07-08 Shiro Kawai <[email protected]> |
| 21367 |
|
| 21368 |
* configure.in, configure.ac, ext/charconv/charconv.ac, |
| 21369 |
ext/dbm/dbm.ac, ext/net/net.ac : renamed configure.in to |
| 21370 |
configure.ac. Splitted out the extension-specific tests |
| 21371 |
into ext/*/*.ac files. |
| 21372 |
|
| 21373 |
* src/main.c (main): changed to set up *program-name* and *argv* |
| 21374 |
before evaluating -u, -l, and -e options, so that the files |
| 21375 |
loaded by these options can refer to the proper *program-name* |
| 21376 |
and *argv*. |
| 21377 |
|
| 21378 |
* ext/dbm/gdbm.scm (dbm-fold): fixed to use %dbm-s2v to convert |
| 21379 |
value field (it was %dbm-s2k). Thanks to Alex Shinn for pointing |
| 21380 |
this out. |
| 21381 |
|
| 21382 |
2003-07-05 Shiro Kawai <[email protected]> |
| 21383 |
|
| 21384 |
* lib/www/cgi.scm : allow cgi-header to accept arbitrary keyword |
| 21385 |
argument to add extra headers. :location argument no longer |
| 21386 |
suppresses set-cookie header. |
| 21387 |
|
| 21388 |
2003-07-04 Shiro Kawai <[email protected]> |
| 21389 |
|
| 21390 |
* lib/text/html-lite.scm : generate "<tag />" for empty element. |
| 21391 |
|
| 21392 |
2003-06-25 Shiro Kawai <[email protected]> |
| 21393 |
|
| 21394 |
* configure.in, Makefiles : de-libtool-ized. Tested on Cygwin, |
| 21395 |
possibly breaking build process on other platforms. |
| 21396 |
On cygwin, you need to add $(libdir) to PATH in order to |
| 21397 |
run gosh after installation. |
| 21398 |
|
| 21399 |
2003-06-20 Shiro Kawai <[email protected]> |
| 21400 |
|
| 21401 |
* doc/extract : fixed a problem of @include when Gauche is compiled |
| 21402 |
other than euc-jp as a native encoding. |
| 21403 |
|
| 21404 |
2003-06-19 Shiro Kawai <[email protected]> |
| 21405 |
|
| 21406 |
* src/stdlib.stub (char-ready?) : made char-ready?'s argument optional |
| 21407 |
to comply R5RS. |
| 21408 |
|
| 21409 |
2003-06-16 Shiro Kawai <[email protected]> |
| 21410 |
|
| 21411 |
* lib/rfc/http.scm (receive-body) : added fallback case when neither |
| 21412 |
content-length nor transfer-encoding is provided by the server. |
| 21413 |
|
| 21414 |
2003-06-11 Shiro Kawai <[email protected]> |
| 21415 |
|
| 21416 |
* doc/gauche-ref.texi : splitted chapters into separate texi files. |
| 21417 |
|
| 21418 |
2003-06-10 Shiro Kawai <[email protected]> |
| 21419 |
|
| 21420 |
* example/spigot/* : added example of an extension module. |
| 21421 |
|
| 21422 |
2003-06-08 Shiro Kawai <[email protected]> |
| 21423 |
|
| 21424 |
* src/gauche-init.scm, lib/gauche/common-macros.scm : added fluid-let |
| 21425 |
macro provided by Dorai Sitaram. |
| 21426 |
|
| 21427 |
2003-06-04 Shiro Kawai <[email protected]> |
| 21428 |
|
| 21429 |
* Makefile.in, lib/Makefile.in : recover the rule to create slibcat |
| 21430 |
after installation; it was inadvertently dropped sometime |
| 21431 |
since 0.6.8. |
| 21432 |
|
| 21433 |
2003-06-03 Shiro Kawai <[email protected]> |
| 21434 |
|
| 21435 |
* src/gauche.h (ScmPortRec): renamed a member 'private' to 'priv', |
| 21436 |
to be C++ friendly. |
| 21437 |
|
| 21438 |
2003-05-31 Shiro Kawai <[email protected]> |
| 21439 |
|
| 21440 |
* src/number.c (read_number), src/stdlib.stub (make-polar): changed |
| 21441 |
to use a common function Scm_MakeComplexPolar, to avoid the |
| 21442 |
difference of the result due to compiler's optimization. |
| 21443 |
|
| 21444 |
2003-05-30 Shiro Kawai <[email protected]> |
| 21445 |
|
| 21446 |
* release 0.7 |
| 21447 |
|
| 21448 |
* src/gauche.h (SCM_CHAR_MAX), src/extlib.stub (%char-set-add-range!): |
| 21449 |
fixed the range check bug that prevents |
| 21450 |
(char-set-delete char-set:full #\;) from running. |
| 21451 |
|
| 21452 |
* src/syslib.stub (sys-access): the last change didn't work. |
| 21453 |
Reverted to the original code, but kept the check if we're |
| 21454 |
running suid/sgid code. |
| 21455 |
|
| 21456 |
* ext/uvector/Makefile.in : changed again the name of the DSO to |
| 21457 |
libgauche-uvector.la; some extension modules depended on the name. |
| 21458 |
|
| 21459 |
2003-05-29 Shiro Kawai <[email protected]> |
| 21460 |
|
| 21461 |
* src/syslib.stub (sys-access): let it signal an error if real |
| 21462 |
uid/gid differs from effective uid/gid. Sys-access should never |
| 21463 |
be used in suid/sgid program anyway. And if we exclude that, |
| 21464 |
there's no difference between access() and stat(), so I changed |
| 21465 |
it to use stat() on all platforms. |
| 21466 |
|
| 21467 |
* src/Makefile.in (install): avoid using -m 444 to install |
| 21468 |
libgauche.la, for on some platforms libtool tries to run ranlib |
| 21469 |
on the installed libgauche.a and fails if it is not writable. |
| 21470 |
libtool then changes its permission to 644; it is hardcoded in |
| 21471 |
the AC_PROG_LIBTOOL macro. |
| 21472 |
|
| 21473 |
* mkinstalldirs, src/Makefile.in, ext/Makefile.ext.in, lib/Makefile.in, |
| 21474 |
doc/Makefile.in : changed to use mkinstalldirs instead of |
| 21475 |
"install -d", for some system's install doesn't understand -d option. |
| 21476 |
|
| 21477 |
* ext/*/Makefile.in : added explicit dependency between *.stub and *.c |
| 21478 |
files, for some 'make' can't infer how to make .lo from .stub |
| 21479 |
only by the inference rules. |
| 21480 |
|
| 21481 |
* ext/syslog/syslog.scm : exported LOG_* constants only when they |
| 21482 |
are defined. |
| 21483 |
|
| 21484 |
* configure.in : bypasses the test for select(2) on HP-UX; it doesn't |
| 21485 |
like the way autoconf tests the select's existence. Also replaced |
| 21486 |
reference of $host for $target, for better support of |
| 21487 |
cross-compiling. |
| 21488 |
|
| 21489 |
2003-05-28 Shiro Kawai <[email protected]> |
| 21490 |
|
| 21491 |
* src/syslib.stub : exclude sys-fdset and sys-select if select(2) is |
| 21492 |
not available on the system. |
| 21493 |
|
| 21494 |
* Makefile.in, src/Makefile.in, ext/Makefile.in, ext/Makefile.ext.in, |
| 21495 |
test/*, ext/*/test.scm : created install-check target, which runs |
| 21496 |
tests with installed gosh. |
| 21497 |
|
| 21498 |
* src/load.c (Scm_DynLoad): reports dynamic loading if -fload-verbose |
| 21499 |
flag is set. |
| 21500 |
|
| 21501 |
2003-05-27 Shiro Kawai <[email protected]> |
| 21502 |
|
| 21503 |
* ext/net/net.scm : made make-client-socket and make-server-socket |
| 21504 |
take a <sockaddr> instance as well. |
| 21505 |
|
| 21506 |
* lib/text/diff.scm : changed API. |
| 21507 |
|
| 21508 |
* INSTALL.esc : added description of --enable-ipv6 |
| 21509 |
|
| 21510 |
* ext/uvector/ : changed to create libuvector.la instead of uvector.la, |
| 21511 |
for linking by -luvector is required by ext/mt-random. |
| 21512 |
|
| 21513 |
2003-05-25 Shiro Kawai <[email protected]> |
| 21514 |
|
| 21515 |
* lib/gauche/vm/debugger.scm : removed dependency on gauche.thread |
| 21516 |
|
| 21517 |
* lib/util/lcs.scm : added lcs-fold and lcs-edit-list. |
| 21518 |
|
| 21519 |
2003-05-23 Shiro Kawai <[email protected]> |
| 21520 |
|
| 21521 |
* ext/threads/thrlib.stub, src/extlib.stub : moved current-thread |
| 21522 |
back to the main library. It is handy to have it even if we're |
| 21523 |
not using threads. |
| 21524 |
|
| 21525 |
2003-05-20 Shiro Kawai <[email protected]> |
| 21526 |
|
| 21527 |
* lib/binary/pack.scm, lib/binary/io.scm, test/binary.scm : |
| 21528 |
incorporated Alex Shinn's binary.pack module. |
| 21529 |
|
| 21530 |
2003-05-18 Shiro Kawai <[email protected]> |
| 21531 |
|
| 21532 |
* configure.in, */Makefile.in's : tweaks to make them work on Cygwin. |
| 21533 |
|
| 21534 |
2003-05-17 Shiro Kawai <[email protected]> |
| 21535 |
|
| 21536 |
* ext/net/net.scm : export some constants of socket options |
| 21537 |
conditionally by export-if-defined. |
| 21538 |
|
| 21539 |
2003-05-16 Shiro Kawai <[email protected]> |
| 21540 |
|
| 21541 |
* configure.in, ext/Makefile.ext.in, ext/mt-random/Makefile.in, |
| 21542 |
src/Makefile.in : more support for compiling on MacOSX |
| 21543 |
|
| 21544 |
2003-05-15 Shiro Kawai <[email protected]> |
| 21545 |
|
| 21546 |
* gc/include/private/gcconfig.h: undef MPROTECT_VDB on MACOSX, for |
| 21547 |
it caused 'make check' to stall. This flag is undefined in newer |
| 21548 |
boehm gc anyway. |
| 21549 |
|
| 21550 |
* src/dl_darwin.c: include <mach-o/dyld.h> |
| 21551 |
|
| 21552 |
* src/load.c : changed DynLoad stuff so that the platform-dependent |
| 21553 |
code are in separate files and #included in src/load.c conditionally. |
| 21554 |
* src/dl_dlopen.c, src/dl_dummy.c, src/dl_win.c, src/dl_darwin.c : |
| 21555 |
platform-dependent dynload stubs. Not tested yet except dl_dlopen. |
| 21556 |
|
| 21557 |
2003-05-10 Shiro Kawai <[email protected]> |
| 21558 |
|
| 21559 |
* lib/util/lcs.scm, lib/text/diff.scm, lib/Makefile.in : added |
| 21560 |
Alex Shinn's LCS finding utility. |
| 21561 |
|
| 21562 |
* lib/net/netlib.stub, lib/net/net.scm : made 'flags' argument of |
| 21563 |
sys-getnameinfo optional, and export a bunch of IPPROTO_* enums. |
| 21564 |
(Patch from Kimura Fuyuki) |
| 21565 |
|
| 21566 |
* lib/util/list.scm : incorporated Alex Shinn's associative list |
| 21567 |
library. |
| 21568 |
|
| 21569 |
* src/bignum.c (Scm_BignumCmp3U): fixed a bug that caused the last |
| 21570 |
digit of certain floating point numbers to be printed incorrectly. |
| 21571 |
(Thanks to OGURISU Osamu for finding this bug). |
| 21572 |
|
| 21573 |
2003-05-02 Shiro Kawai <[email protected]> |
| 21574 |
|
| 21575 |
* ext/net/addr.c, ext/net/net.scm, ext/net/netdb.c, |
| 21576 |
ext/net/netlib.stub: added seamless ipv6 support in |
| 21577 |
make-{server|client}-socket, and sys-getnameinfo support. |
| 21578 |
(Patch from Kimura Fuyuki). |
| 21579 |
|
| 21580 |
* configure.in, src/gauche/config.h.in : checks if sin_len is in |
| 21581 |
sockaddr_in (and sin6_len in sockaddr_in6). It is reported that |
| 21582 |
FreeBSD has them, and needs them to be set up for getnameinfo |
| 21583 |
to work correctly. |
| 21584 |
|
| 21585 |
* src/Makefile: ensure BIN_INSTALL_DIR's existence at the installation |
| 21586 |
time. |
| 21587 |
|
| 21588 |
2003-05-01 Shiro Kawai <[email protected]> |
| 21589 |
|
| 21590 |
* src/configure.in, src/gauche/config.h.in (HAVE_IPV6), |
| 21591 |
ext/net/addr.c, ext/net/net.scm, ext/net/netdb.c, |
| 21592 |
ext/net/netlib.stub, ext/net/net.h : applied experimental IPv6 |
| 21593 |
support patch from Kimura Fuyuki. The support can be turned on |
| 21594 |
by giving --enable-ipv6 to configure (and your OS supports it, |
| 21595 |
of course). |
| 21596 |
|
| 21597 |
2003-04-30 Shiro Kawai <[email protected]> |
| 21598 |
|
| 21599 |
* src/gauche-init.scm (export-if-defined): added. This macro |
| 21600 |
is to overcome the difficulty to keep exported symbol list |
| 21601 |
consistent when some of module's external APIs are defined |
| 21602 |
conditionally. The implementation is a kludge, though. |
| 21603 |
Should be used with care. |
| 21604 |
|
| 21605 |
* src/genstub (define-cclass): fixed a bug that #if directive was |
| 21606 |
ineffective for define-cclass. |
| 21607 |
|
| 21608 |
* src/*.c: avoid having uninitialized variables. On some platforms, |
| 21609 |
gc doesn't scan bss area of DSO modules, which causes a problem |
| 21610 |
when libgauche is used as a DSO. (Note that in dlopen-ed |
| 21611 |
extensions gc is properly informed to scan bss area, by |
| 21612 |
SCM_INIT_EXTENSION). |
| 21613 |
|
| 21614 |
* src/load.c (Scm_DynLoad): use requested library name to derive |
| 21615 |
init function name, instead of the one given in libtool .la library |
| 21616 |
when the requested name is libtool library. On some platforms |
| 21617 |
(e.g. cygwin) a different name is used for actual DLL and |
| 21618 |
libtool library). |
| 21619 |
|
| 21620 |
* ext/mt-random/* : enabled functinality that uses uvector on cygwin, |
| 21621 |
which has been disabled because of link problem on cygwin. |
| 21622 |
|
| 21623 |
2003-04-29 Shiro Kawai <[email protected]> |
| 21624 |
|
| 21625 |
* ext/uvector/Makefile.in, ext/mt-random/Makefile.in : avoid |
| 21626 |
making separate libgauche-uvector - this causes libtool |
| 21627 |
to issue warning, but the separate library doesn't work well |
| 21628 |
on cygwin. |
| 21629 |
|
| 21630 |
* configure.in: fixes to support cygwin and darwin |
| 21631 |
|
| 21632 |
* gc/configure.in: let the toplevel --with-local argument propagate |
| 21633 |
to gc compilation. Define GC_PTHREADS to 1 on darwin to make |
| 21634 |
it parallel with toplevel config.h. |
| 21635 |
|
| 21636 |
2003-04-25 Shiro Kawai <[email protected]> |
| 21637 |
|
| 21638 |
* ext/Makefile.ext.in (check): make 'check' depend on 'all' (Patch |
| 21639 |
from Kimura Fuyuki) |
| 21640 |
|
| 21641 |
2003-04-24 Shiro Kawai <[email protected]> |
| 21642 |
|
| 21643 |
* src/system.c, doc/gauche-ref.texi: typo fix |
| 21644 |
(Patch from Kimura Fuyuki) |
| 21645 |
|
| 21646 |
2003-04-21 Shiro Kawai <[email protected]> |
| 21647 |
|
| 21648 |
* Makefile.in, acinclude.m4, aclocal.m4, configure.in, |
| 21649 |
gc/configure.in, ltmain.sh, gc/Makefile.am, src/Makefile.in, |
| 21650 |
src/core.c : snapshot to make things work on cygwin (not quite, yet). |
| 21651 |
|
| 21652 |
* doc/gauche-ref.texi : fix in srfi-37 description |
| 21653 |
(patch from Grzegorz Chrupała). |
| 21654 |
|
| 21655 |
* Makefile.am's, Makefile.in's, ext/Makefile.ext.in, DIST: |
| 21656 |
Removed automake dependency. |
| 21657 |
* ltmain.sh, config.guess, config.sub, aclocal.m4 : added to |
| 21658 |
CVS, so that the developer can build from CVS without having |
| 21659 |
the same version of libtool on his/her machine. Requires |
| 21660 |
autoconf 2.54 or higher, though. |
| 21661 |
* src/load.c : removed libltdl dependency. libltdl is nice, |
| 21662 |
but it has a subtle problem when libgauche is linked with other |
| 21663 |
libraries that embeds libltdl. |
| 21664 |
* src/gauche-config.in : added -lgauche-uvector -lgauche to |
| 21665 |
"gauche-config -l" output. |
| 21666 |
|
| 21667 |
2003-04-16 Shiro Kawai <[email protected]> |
| 21668 |
|
| 21669 |
* lib/gauche/parseopt.scm (let-args): added Alex Shinn's let-args |
| 21670 |
macro. |
| 21671 |
|
| 21672 |
2003-04-14 Shiro Kawai <[email protected]> |
| 21673 |
|
| 21674 |
* various Makefile.am's and configure.in: made "make install" work. |
| 21675 |
|
| 21676 |
* various files: revised build process of built-in extensions (ext/*). |
| 21677 |
They no longer have separate configure.in; the toplevel configure.in |
| 21678 |
takes care of all the Makefiles. All of them uses Makefile.am now. |
| 21679 |
Removed ext/example, for the example of extension must be shown |
| 21680 |
elsewhere. This check-in passes "make check", but not tested |
| 21681 |
for installation. |
| 21682 |
* Replace src/gauche/config.h for src/gauche-config.h, because |
| 21683 |
automake adds -I flag for config.h.in location automatically |
| 21684 |
even I don't want that. |
| 21685 |
* In ext/uvector, arranged the Makefile so that libuvector.so is |
| 21686 |
created as a shared library which is used by a dlopen module |
| 21687 |
uvector.so. This should help to solve the DLL problem on cygwin |
| 21688 |
but not tested. |
| 21689 |
|
| 21690 |
2003-04-11 Shiro Kawai <[email protected]> |
| 21691 |
|
| 21692 |
* various files: automake+libtoolized, based on a patch from |
| 21693 |
Yokota Hiroshi. |
| 21694 |
The building process from CVS tree has been siginificantly changed; |
| 21695 |
see HACKING file for the details. |
| 21696 |
This check-in is a kind of working snapshot; it builds and passes |
| 21697 |
tests, but haven't yet checked if it can be properly packaged and |
| 21698 |
installed. |
| 21699 |
|
| 21700 |
2003-03-31 Shiro Kawai <[email protected]> |
| 21701 |
|
| 21702 |
* ext/uvector/array.scm (tabulate-array): referred to non-existent |
| 21703 |
procedure. (Patch from Alex Shinn). |
| 21704 |
|
| 21705 |
2003-03-30 Shiro Kawai <[email protected]> |
| 21706 |
|
| 21707 |
* release 0.6.8 |
| 21708 |
|
| 21709 |
2003-03-29 Shiro Kawai <[email protected]> |
| 21710 |
|
| 21711 |
* src/char.c, src/regexp.c : #[\w] to include underscore (following |
| 21712 |
the convention of Perl's). |
| 21713 |
|
| 21714 |
2003-03-28 Shiro Kawai <[email protected]> |
| 21715 |
|
| 21716 |
* configure.in, gc/configure.in, gc/include/gc.h, |
| 21717 |
gc/include/private/gc_priv.h, gc/linux_threads.c, |
| 21718 |
src/gauche/config.h.in : applied a patch from HISAZUMI Kenji |
| 21719 |
to make pthreads work on Darwin. |
| 21720 |
|
| 21721 |
2003-03-23 Shiro Kawai <[email protected]> |
| 21722 |
|
| 21723 |
* src/charset.c (Scm_CharSetLE): implemented two-arg char-set<= in C, |
| 21724 |
for it is used in regexp optimizer. Available as %char-set<=? |
| 21725 |
from Scheme. |
| 21726 |
* lib/srfi-14.scm (char-set<=): revised to use the native %char-set<=?. |
| 21727 |
* src/regexp.c (Scm_RegOptimizeAST, rex_rec): added regexp optimizer |
| 21728 |
that works on AST. Added regexp byte-code instructions that |
| 21729 |
works on the special optimized paths. |
| 21730 |
* lib/slib.scm : provided object->string and object->limited-string. |
| 21731 |
|
| 21732 |
2003-03-22 Shiro Kawai <[email protected]> |
| 21733 |
* src/regexp.c : Total rewrite. The compilation paths are divided |
| 21734 |
more clearly. Pass 1 and pass 2 are available individually from |
| 21735 |
Scheme, as regexp-parse and regexp-compile. Added bounded repetition |
| 21736 |
"{n,m}", non-capturing group "(?:...)", scoped case sensitivity |
| 21737 |
control "(?i:...)" and "(?-i:...)". |
| 21738 |
|
| 21739 |
2003-03-03 Shiro Kawai <[email protected]> |
| 21740 |
|
| 21741 |
* lib/rfc/822.scm (rfc822-parse-date): fixed behavior to conform |
| 21742 |
RFC2822 more closely (Patch provided from OGURISU Osamu). |
| 21743 |
|
| 21744 |
2003-03-01 Shiro Kawai <[email protected]> |
| 21745 |
|
| 21746 |
* src/gauche.h, src/bignum.c: takes more bits for bignum size, |
| 21747 |
and checks vailidity of bignum size in make_bignum. |
| 21748 |
|
| 21749 |
2003-02-28 Shiro Kawai <[email protected]> |
| 21750 |
|
| 21751 |
* src/vm.c (Scm_VMEval): resets numVals before evaluating the |
| 21752 |
compiled code, in order to prevent wrong numVals from propagating. |
| 21753 |
|
| 21754 |
2003-02-27 Shiro Kawai <[email protected]> |
| 21755 |
|
| 21756 |
* lib/util/list.scm : extends srfi-1, instead of uses it. |
| 21757 |
* src/regexp.c (Scm_RegExec): fixed a bug regarding multibyte |
| 21758 |
regexp match. |
| 21759 |
* src/char.c (Scm_CharSetCaseFold): fixed a bug that case folding |
| 21760 |
charset didn't consider 'z' and 'Z'. |
| 21761 |
|
| 21762 |
2003-02-26 Shiro Kawai <[email protected]> |
| 21763 |
|
| 21764 |
* lib/gauche/common-macros.scm (values-ref): added values-ref |
| 21765 |
experimentally. |
| 21766 |
* lib/util/list.scm (intersperse): added intersperse |
| 21767 |
|
| 21768 |
2003-02-17 Shiro Kawai <[email protected]> |
| 21769 |
|
| 21770 |
* lib/srfi-19.scm (make-time): Fix the order of argument to match |
| 21771 |
SRFI specification. This whould break existing code that depends |
| 21772 |
on the wrong definition of make-time. |
| 21773 |
|
| 21774 |
2003-02-15 Shiro Kawai <[email protected]> |
| 21775 |
|
| 21776 |
* src/gauche.h (SCM_CHECK_START_END): pass through start==end case. |
| 21777 |
* src/load.c, src/gauche.h : made autoload MT-safe. |
| 21778 |
* src/vm.c, src/gauche/vm.h : renamed PCTYPE to SCM_PCTYPE to avoid |
| 21779 |
namespace pollution. |
| 21780 |
|
| 21781 |
2003-02-14 Shiro Kawai <[email protected]> |
| 21782 |
|
| 21783 |
* ext/net/netdb.c (Scm_GetHostByName etc.): made the fallback code |
| 21784 |
(when no reentrant version of gethostbyaddr_r etc. are found) |
| 21785 |
thread-safe, using global lock. |
| 21786 |
* ext/net/addr.c (sockaddr_in_allocate): made address lookup |
| 21787 |
thread-safe. |
| 21788 |
|
| 21789 |
2003-02-10 Shiro Kawai <[email protected]> |
| 21790 |
|
| 21791 |
* lib/text/parse.scm (next-token) : fixed error message handling |
| 21792 |
(Patch from Grzegorz Chrupała). |
| 21793 |
|
| 21794 |
2003-02-09 Shiro Kawai <[email protected]> |
| 21795 |
|
| 21796 |
* src/compile.c (compile_define): check the module existence in |
| 21797 |
define-in-module (Patch from Kimura Fuyuki). |
| 21798 |
* lib/gauche/collection.scm : fixed hash table's call-with-iterator |
| 21799 |
which wasn't updated for the new hash table iterator. |
| 21800 |
(Patch from Kimura Fuyuki). |
| 21801 |
|
| 21802 |
2003-02-08 Shiro Kawai <[email protected]> |
| 21803 |
|
| 21804 |
* src/gauche/char_euc_jp.h (Scm_CharBackwardEUC): made string pointer |
| 21805 |
backward operation work more precisely so that it won't be confused |
| 21806 |
with ASCII/Kanji mixed situation. |
| 21807 |
|
| 21808 |
2003-02-07 Shiro Kawai <[email protected]> |
| 21809 |
|
| 21810 |
* release 0.6.7.1 |
| 21811 |
* lib/gauche/portutil.scm : fixed typo (%do-copy/limitN). |
| 21812 |
* ext/charconv/charconv.c : fixed a bug that caused ces-convert |
| 21813 |
returns null string when it tried to convert one kanji character |
| 21814 |
string in EUCJP or SJIS to UTF8. The cause was that the allocated |
| 21815 |
buffer was too small in that case. I set minimum size of buffer. |
| 21816 |
|
| 21817 |
2003-02-06 Shiro Kawai <[email protected]> |
| 21818 |
|
| 21819 |
* release 0.6.7 |
| 21820 |
* lib/charconv/charconv.scm : fixed bug in wrap-* (keyword typo) |
| 21821 |
* doc/extract : fixed extract script so that it can deal with the |
| 21822 |
euc-jp document under gosh with any internal encodings. |
| 21823 |
* src/gauche/char_none.h : add "NONE" to the compatible encoding names. |
| 21824 |
* src/compile.c, src/macro.c : added some code to support NVM (not |
| 21825 |
yet completed). |
| 21826 |
* lib/text/html-lite.scm : inserting newlines before closing tags |
| 21827 |
instead of after, to prevent extra whitespaces appear in the rendered |
| 21828 |
output. |
| 21829 |
|
| 21830 |
2003-02-05 Shiro Kawai <[email protected]> |
| 21831 |
|
| 21832 |
* lib/www/cgi.scm : allow character encoding conversion of CGI output |
| 21833 |
via cgi-output-character-encoding parameter. Added output-proc |
| 21834 |
keyword arg to cgi-main. |
| 21835 |
* ext/charconv/charconv.c : allows a symbol as a CES name, as well |
| 21836 |
as a string. Supports a special CES name "none". |
| 21837 |
Also added ces-equivalent?, ces-upper-compatible?, |
| 21838 |
wrap-with-{input|output}-conversion. |
| 21839 |
* lib/file/util.scm (directory-list) : added :filter-add-path? |
| 21840 |
keyword argument. refactored using cond-list and every-pred. |
| 21841 |
|
| 21842 |
2003-02-04 Shiro Kawai <[email protected]> |
| 21843 |
|
| 21844 |
* src/port.c : added privatep flag to Scm_MakeInputStringPort and |
| 21845 |
Scm_MakeOutputStringPort, which pre-locks the created string port |
| 21846 |
so that mutex will be omitted. Various files that uses those |
| 21847 |
functions are revised. |
| 21848 |
* src/portapi.c, src/stdlib.stub, src/extlib.stub : added peek-byte, |
| 21849 |
and incorporated Scm_Peek* functions into the core from stub files. |
| 21850 |
* lib/util/combinations.scm : revised to support duplicated entries. |
| 21851 |
* lib/util/list.scm : added. additional list library. |
| 21852 |
* lib/gauche/sequence.scm : added fold-with-index, map-with-index, |
| 21853 |
map-to-with-index, for-each-with-index, find-index, |
| 21854 |
and find-with-index. |
| 21855 |
|
| 21856 |
2003-02-03 Shiro Kawai <[email protected]> |
| 21857 |
|
| 21858 |
* src/extlib.stub (sort, sort!): allowed sorting vectors as well. |
| 21859 |
|
| 21860 |
2003-01-31 Shiro Kawai <[email protected]> |
| 21861 |
|
| 21862 |
* ext/charconv/charconv.scm: adjust semantics of replaced call-with* |
| 21863 |
and with-*-file functions to close ports only when escaping |
| 21864 |
condition occurs. |
| 21865 |
|
| 21866 |
2003-01-30 Shiro Kawai <[email protected]> |
| 21867 |
|
| 21868 |
* src/portapi.c, src/extlib.stub, lib/gauche/portutil.scm : |
| 21869 |
formerly supported with-port-locking. made I/O primitives |
| 21870 |
skip port locking if the port is already locked by the calling |
| 21871 |
thread (this eliminates the need of undocumented %-unsafe version |
| 21872 |
of I/O primitives). |
| 21873 |
* src/error.c : clear ERROR_BEING_REPORTED flag after normal exit |
| 21874 |
of Scm_ReportError. |
| 21875 |
* ext/net/net.c : keep a back reference to the socket in its |
| 21876 |
input/output stream, so that the socket won't be GCed when |
| 21877 |
the application only grabs the reference of the streams. |
| 21878 |
|
| 21879 |
2003-01-29 Shiro Kawai <[email protected]> |
| 21880 |
|
| 21881 |
* lib/text/gettext.scm : updated to Alex's new version. |
| 21882 |
* lib/util/combinations.scm : added. |
| 21883 |
|
| 21884 |
2003-01-20 Shiro Kawai <[email protected]> |
| 21885 |
|
| 21886 |
* src/class.c (Scm__InitClass) : initialization of <boolean> and |
| 21887 |
<character> to follow standard convention, i.e. defines |
| 21888 |
<boolean-meta> and <character-meta>. |
| 21889 |
|
| 21890 |
2003-01-16 Shiro Kawai <[email protected]> |
| 21891 |
|
| 21892 |
* ext/auxsys/auxsyslib.stub (sys-putenv) : use system malloc to |
| 21893 |
allocate string to be passed to putenv(), to avoid the string |
| 21894 |
from being GCed. |
| 21895 |
|
| 21896 |
2003-01-15 Shiro Kawai <[email protected]> |
| 21897 |
|
| 21898 |
* lib/srfi-37.scm : added. |
| 21899 |
|
| 21900 |
2003-01-14 Shiro Kawai <[email protected]> |
| 21901 |
|
| 21902 |
* lib/text/gettext.scm : added text.gettext contributed from |
| 21903 |
Alex Shinn. |
| 21904 |
* src/genstub : fix in :base qualified define-cclass, which used |
| 21905 |
to pass wrong C type to calculate C object size. |
| 21906 |
* src/gauche/class.h : fixed a bug in the default value of |
| 21907 |
slotNumber of static slot accessors, which created invalid |
| 21908 |
setter access when the slot is read-only. |
| 21909 |
|
| 21910 |
2003-01-11 Shiro Kawai <[email protected]> |
| 21911 |
|
| 21912 |
* src/vm.c : added experimental runtime flag that disables mutation |
| 21913 |
of binding from outside of the definining module. |
| 21914 |
|
| 21915 |
2003-01-10 Shiro Kawai <[email protected]> |
| 21916 |
|
| 21917 |
* src/module.c, src/extlib.stub : added make-module, and allow |
| 21918 |
anonymous modules. |
| 21919 |
|
| 21920 |
2003-01-08 Shiro Kawai <[email protected]> |
| 21921 |
|
| 21922 |
* lib/srfi-13.scm : fixed autoload typos. Patch from Kimura Fuyuki. |
| 21923 |
* lib/gauche/test.scm : added test-module procedure, which tests |
| 21924 |
autoloads and exported symbol bindings of the module, hopefully |
| 21925 |
to catch careless typos. |
| 21926 |
|
| 21927 |
2003-01-07 Shiro Kawai <[email protected]> |
| 21928 |
|
| 21929 |
* lib/srfi-1.scm : added some missing autoloads. Patch provided |
| 21930 |
by Kimura Fuyuki. |
| 21931 |
|
| 21932 |
2003-01-06 Shiro Kawai <[email protected]> |
| 21933 |
|
| 21934 |
* src/gauche/test.scm : Made default 'test' procedure catch an error. |
| 21935 |
The *test-error* variable is introduced to hold the "error value". |
| 21936 |
Introduced test* macro. The original primitive 'test' is renamed |
| 21937 |
to 'prim-test', and used to test primitive syntaxes before |
| 21938 |
error handler is tested. |
| 21939 |
|
| 21940 |
2003-01-05 Shiro Kawai <[email protected]> |
| 21941 |
|
| 21942 |
* src/extlib.stub, lib/gauche/hashutil.scm : fixed the problem that |
| 21943 |
#<eof> in hash key stopped iteration. Also added hash-table |
| 21944 |
and hash-table-fold. |
| 21945 |
|
| 21946 |
2003-01-04 Shiro Kawai <[email protected]> |
| 21947 |
|
| 21948 |
* ext/net/net.[ch]: applied a patch from John Kilburg to support |
| 21949 |
datagram socket. |
| 21950 |
|
| 21951 |
2003-01-03 Shiro Kawai <[email protected]> |
| 21952 |
|
| 21953 |
* src/boolean.c (Scm_EqualP): check eq?-ness first. |
| 21954 |
* lib/gauche/mop/instance-pool.scm : renamed *-remove methods to |
| 21955 |
*-remove!. added map fns. |
| 21956 |
|
| 21957 |
2003-01-01 Shiro Kawai <[email protected]> |
| 21958 |
|
| 21959 |
* src/vm.c : fixed Scm_VMEval to set the module to the specified |
| 21960 |
one during _executing_ the code, not only _compiling_ the code. |
| 21961 |
It involves dynamic-wind to restore the original module when |
| 21962 |
and error occurs. If the given module is the current module, |
| 21963 |
however, we skip the dynamic-wind (the previous version pushed |
| 21964 |
extra continuation, but it seems we don't need it). |
| 21965 |
* src/load.c : added :environment keyword argument to load and |
| 21966 |
load-from-port; this is necessary to force a specific file to |
| 21967 |
be loaded in the environment specified by the caller. (Since |
| 21968 |
'load' form itself is evaluated at run time, even |
| 21969 |
(eval '(load "foo") module) doesn't work, for the module |
| 21970 |
given to 'eval' is only effective during compiling the form |
| 21971 |
(load "foo").) |
| 21972 |
|
| 21973 |
2002-12-29 Shiro Kawai <[email protected]> |
| 21974 |
|
| 21975 |
* src/load.c, src/read.c, ext/uvector/uvector.c.sh : added |
| 21976 |
read-context flag to control whether literal structure should |
| 21977 |
be immutable or not. The default ScmRead reads as mutable |
| 21978 |
object, while ScmLoad reads as immutable object. |
| 21979 |
Currently this only affects literal uvectors. (It's debatable |
| 21980 |
that string should obey this flag). |
| 21981 |
|
| 21982 |
2002-12-26 Shiro Kawai <[email protected]> |
| 21983 |
|
| 21984 |
* lib/rfc/uri.scm (uri-encode): process byte-wise, instead of |
| 21985 |
character-wise, to avoid complexity of different character |
| 21986 |
encodings. Suggested by Fumitoshi UKAI. |
| 21987 |
|
| 21988 |
2002-12-25 Shiro Kawai <[email protected]> |
| 21989 |
|
| 21990 |
* ext/uvector/* : added immutability check for all destructive ops. |
| 21991 |
made literal uvectors immutable. |
| 21992 |
* doc/gauche-ref.texi : added japanese translation of rfc.http etc. |
| 21993 |
provided by Makoto Satoh. |
| 21994 |
|
| 21995 |
2002-12-24 Shiro Kawai <[email protected]> |
| 21996 |
|
| 21997 |
* ext/uvector/uvector.[ch].sh : added immutable and owner field |
| 21998 |
to uvector (preparation of immutable uvectors, and uvectors |
| 21999 |
pointing to somebody else's memory). |
| 22000 |
|
| 22001 |
2002-12-23 Shiro Kawai <[email protected]> |
| 22002 |
|
| 22003 |
* ext/digest/sha.h : removed dependency on sys/cdefs.h |
| 22004 |
* src/genstub : added support of direct-supers specifier in |
| 22005 |
define-cclass. NB: this is an ad hoc kludge. Define-cclass |
| 22006 |
need to be redesigned. |
| 22007 |
|
| 22008 |
2002-12-22 Shiro Kawai <[email protected]> |
| 22009 |
|
| 22010 |
* src/string.c : made string equality be tested by separate function |
| 22011 |
from comparison, so that a complete string and incomplete string |
| 22012 |
can be tested. |
| 22013 |
* src/class.c, src/gauche/class.h : made generic allocation macro |
| 22014 |
SCM_ALLOCATE to call Scm_AllocateInstance, which initializes |
| 22015 |
Scheme-slots defined in Scheme subclasses safely. The task used |
| 22016 |
to be a responsibility of *_allocate method, which was error-prone. |
| 22017 |
|
| 22018 |
2002-12-21 Shiro Kawai <[email protected]> |
| 22019 |
|
| 22020 |
* src/genstub : supports :base qualifier in define-cclass to allow |
| 22021 |
to define base class in stub file. |
| 22022 |
* lib/text/csv.scm : provisional fix for the problem that the |
| 22023 |
consecutive tabs are ignored even if the separator is a tab. |
| 22024 |
The real fix should be to add the flag to csv-reader to |
| 22025 |
tell whether the reader should strip whitespaces surrounding |
| 22026 |
field data. |
| 22027 |
* ext/mt-random/mt-lib.stub : fixed a bug the mt-set-random-seed! |
| 22028 |
always sets the same value if a bignum is given. |
| 22029 |
|
| 22030 |
2002-12-19 Shiro Kawai <[email protected]> |
| 22031 |
|
| 22032 |
* lib/gauche/regexp.scm (rxmatch-case): catch the case that caused |
| 22033 |
infinite loop (patch from Kimura Fuyuki) |
| 22034 |
|
| 22035 |
2002-12-17 Shiro Kawai <[email protected]> |
| 22036 |
|
| 22037 |
* lib/srfi-0.scm : added srfi-31 and some missing feature ids. |
| 22038 |
|
| 22039 |
2002-12-14 Shiro Kawai <[email protected]> |
| 22040 |
|
| 22041 |
* release 0.6.6 |
| 22042 |
* ext/digest/{configure.in,md5.h,sha.h} : slight fix for portability. |
| 22043 |
* src/vm.c : added Scm_VMApply3 |
| 22044 |
|
| 22045 |
2002-12-13 Shiro Kawai <[email protected]> |
| 22046 |
|
| 22047 |
* ext/auxsys/* : moved sys-getgroups, sys-getlogin and sys-localeconv |
| 22048 |
here. |
| 22049 |
* src/genstub : have been generating a redundant type checking code |
| 22050 |
for scheme object. fixed. |
| 22051 |
|
| 22052 |
2002-12-12 Shiro Kawai <[email protected]> |
| 22053 |
|
| 22054 |
* lib/gauche/test.scm, test/* : added test-error API, and rewrote |
| 22055 |
some tests with it. |
| 22056 |
* src/port.c, src/portapi.c : added Scm_PortSeek() API. |
| 22057 |
* src/stdlib.stub : allow :if-exists :overwrite option in |
| 22058 |
open-output-file. |
| 22059 |
|
| 22060 |
2002-12-11 Shiro Kawai <[email protected]> |
| 22061 |
|
| 22062 |
* ext/digest/*.scm, lib/util/digest.scm : define digest-string |
| 22063 |
in util.digest (patch from Kimura Fuyuki). |
| 22064 |
* src/list.c, src/stdlib.stub, lib/gauche/listutil.scm : made |
| 22065 |
caar..cddr be inlined. got rid of less-frequently used |
| 22066 |
caaar...cddddr from gosh core and defines them in autoloaded |
| 22067 |
Scheme file. |
| 22068 |
|
| 22069 |
2002-12-10 Shiro Kawai <[email protected]> |
| 22070 |
|
| 22071 |
* src/regexp.c : made regexp printed as #/.../ |
| 22072 |
* lib/gauche/collection.scm (call-with-iterator): fixed a bug |
| 22073 |
(patch provided from Kimura Fuyuki). |
| 22074 |
* ext/digest/*, lib/util/digest.scm : revise some APIs. |
| 22075 |
|
| 22076 |
2002-12-09 Shiro Kawai <[email protected]> |
| 22077 |
|
| 22078 |
* lib/gauche/hook.scm : added gauche.hook. |
| 22079 |
* src/port.c, src/vm.c, src/extlib.stub : allow with-*-to-port and |
| 22080 |
dynamic-wind to take non-procedure objects, enables object-apply |
| 22081 |
hook. |
| 22082 |
* src/gauche/vm.h, src/vm.c, src/parameter.c : added per-thread |
| 22083 |
parameter support. |
| 22084 |
|
| 22085 |
2002-12-08 Shiro Kawai <[email protected]> |
| 22086 |
|
| 22087 |
* lib/gauche/mop/validator.scm (compute-get-n-set): added |
| 22088 |
:post-validator slot option. |
| 22089 |
|
| 22090 |
2002-12-06 Shiro Kawai <[email protected]> |
| 22091 |
|
| 22092 |
* lib/srfi-14.scm : made ucs-range->char-set work on non-ASCII chars. |
| 22093 |
* src/string.c : added string-pointer-ref. |
| 22094 |
* lib/gauche/stringutil.scm, src/extlib.stub, src/gauche-init.scm: |
| 22095 |
now string-split can accept not only a character but also a char-set, |
| 22096 |
a string, a regexp or a predicate. The character case is handled |
| 22097 |
by built-in (Scm_StringSplitByChar, %string-split-by-char), and |
| 22098 |
the other cases are handled by autoloaded module gauche.stringutil. |
| 22099 |
* src/extlib.stub :added make-byte-string. |
| 22100 |
* lib/util/digest.scm, lib/rfc/hmac.scm, ext/digest/* : renamed |
| 22101 |
*-update and *-final for *-update! and *-final!, respectively. |
| 22102 |
* lib/srfi-31.scm : added srfi-31. |
| 22103 |
* src/object.scm : fixed the default method of slot-unbound and |
| 22104 |
slot-missin to avoid infinite loop in formatting the error message |
| 22105 |
via write-object. |
| 22106 |
|
| 22107 |
2002-12-05 Shiro Kawai <[email protected]> |
| 22108 |
|
| 22109 |
* lib/gauche/regexp.c (regexp-quote): added regexp-quote, |
| 22110 |
contributed by Alex Shinn |
| 22111 |
* src/regexp.c : fixed a bug that didn't treat escaped '$' at |
| 22112 |
the end of expr as a literal character. |
| 22113 |
* lib/gauche/time.scm : fixed misspelling of slot name (patch from |
| 22114 |
Kimura Fuyuki). |
| 22115 |
|
| 22116 |
2002-12-04 Shiro Kawai <[email protected]> |
| 22117 |
|
| 22118 |
* src/proc.c, src/extlib.stub : added has-setter? |
| 22119 |
* lib/gauche/mop/propagate.scm : added <propagate-mixin>. |
| 22120 |
|
| 22121 |
2002-12-03 Shiro Kawai <[email protected]> |
| 22122 |
|
| 22123 |
* src/gauche/arith_i386.h (UADD): modified to avoid a "register |
| 22124 |
spilling error" on some processors. |
| 22125 |
* lib/gauche/procedure.scm (let-keywords*): take care of syntactic |
| 22126 |
unwrapping in case when let-keywords* appear in the expanded |
| 22127 |
form of R5RS macro. |
| 22128 |
* src/list.c : let <list> inherit <sequence> for clearity. |
| 22129 |
|
| 22130 |
2002-12-02 Shiro Kawai <[email protected]> |
| 22131 |
|
| 22132 |
* lib/srfi-19/format.scm : fixed a bug in locale-dependent date |
| 22133 |
reader (Thanks to Shin-ichi Hirata for a patch). |
| 22134 |
* ext/digest/*, lib/util/digest.scm, lib/rfc/hmac.scm : integrated |
| 22135 |
Kimura Fuyuki's message digesting packages. |
| 22136 |
|
| 22137 |
2002-12-01 Shiro Kawai <[email protected]> |
| 22138 |
|
| 22139 |
* lib/gauche/logger.scm : added lock-policy slot to <log-drain> |
| 22140 |
class to specify the file lock policy. This allows logger to |
| 22141 |
be used in MacOSX. |
| 22142 |
* lib/file/util.scm (define-time-comparer): fixed a bug that caused |
| 22143 |
file-mtime<? etc. to fail if filename is given. |
| 22144 |
|
| 22145 |
2002-11-29 Shiro Kawai <[email protected]> |
| 22146 |
|
| 22147 |
* ext/net/addr.c (Scm_MakeSockAddr): fixed a nasty bug that |
| 22148 |
potentially clobbers heap area. (Thanks to KIMURA Shigenobu |
| 22149 |
for helping to identify the bug). |
| 22150 |
* doc/Makefile.in : put a sed line in generating html docs to fix |
| 22151 |
LANG attribute, as suggested by Kimura Fuyuki. |
| 22152 |
|
| 22153 |
2002-11-28 Shiro Kawai <[email protected]> |
| 22154 |
|
| 22155 |
* src/read.c : fixed SRFI-30 syntax reader (Thanks to KIMURA |
| 22156 |
Shigenobu for pointing out this bug). |
| 22157 |
* src/compile.c, src/vm.c : dropped TAILBIND instruction, for it |
| 22158 |
doesn't work when the constructing argument frame is moved |
| 22159 |
to the heap by call/cc. I can't come up a nice way to fix that |
| 22160 |
without performance penalty. Instead, the do form is expanded |
| 22161 |
into letrec form in the compiler. And believe it or not, the |
| 22162 |
performance is actually better. |
| 22163 |
The compiler is also modified to keep hygienity on some |
| 22164 |
compiler-inserted symbols. |
| 22165 |
* src/regexp.c (re_exec_rec): fixed a bug in matching multibyte |
| 22166 |
char against RE_NSET1. (Thanks to Alex Shinn for reporting this). |
| 22167 |
|
| 22168 |
2002-11-25 Shiro Kawai <[email protected]> |
| 22169 |
|
| 22170 |
* doc/gauche-ref.texi : applied patch from Kimura Fuyuki and |
| 22171 |
Jiro KANAYAMA. Added descriptions about SRFI-10 syntax as well. |
| 22172 |
|
| 22173 |
2002-11-24 Shiro Kawai <[email protected]> |
| 22174 |
|
| 22175 |
* lib/rfc/cookie.scm, doc/gauche-ref.texi : applied patch from |
| 22176 |
KIMURA Shigenobu. |
| 22177 |
|
| 22178 |
2002-11-20 Shiro Kawai <[email protected]> |
| 22179 |
|
| 22180 |
* src/read.c, src/gauche-init.scm, lib/gauche/interpolate.scm : |
| 22181 |
made string interpolation syntax is expanded in reader instead |
| 22182 |
of in macro; if it is done in macro, the read symbols do not |
| 22183 |
properly "see" their surrounding environment, and fail to work |
| 22184 |
if the referenced symbols are introduced by R5RS macro. |
| 22185 |
For example: (define-syntax foo (syntax-rules () ((_ a) #`",a"))) |
| 22186 |
fails in the previous version. |
| 22187 |
* src/main.c : removed the special treatment of argv[0]=="./gosh" |
| 22188 |
for in-place test; instead, added -ftest option to do the job. |
| 22189 |
|
| 22190 |
2002-11-19 Shiro Kawai <[email protected]> |
| 22191 |
|
| 22192 |
* lib/rfc/822.scm : deal with empty header (patch from Kimura |
| 22193 |
Shigenobu) |
| 22194 |
|
| 22195 |
2002-11-17 Shiro Kawai <[email protected]> |
| 22196 |
|
| 22197 |
* src/string.c (Scm_MakeFillString): added arg range check (pointed |
| 22198 |
out by Kimura Fuyuki). |
| 22199 |
|
| 22200 |
2002-11-15 Shiro Kawai <[email protected]> |
| 22201 |
|
| 22202 |
* release 0.6.5 |
| 22203 |
|
| 22204 |
2002-11-15 Shiro Kawai <[email protected]> |
| 22205 |
|
| 22206 |
* lib/gauche/reload.scm : updated to the Alex's newest version. |
| 22207 |
|
| 22208 |
2002-11-13 Shiro Kawai <[email protected]> |
| 22209 |
|
| 22210 |
* lib/port/* -> lib/compat/* : moved. port.* is obsoleted. |
| 22211 |
* lib/japanize-euc.scm : moved to test/japanize-euc.scm |
| 22212 |
* lib/rfc/http.scm : added |
| 22213 |
|
| 22214 |
2002-11-12 Shiro Kawai <[email protected]> |
| 22215 |
|
| 22216 |
* lib/rfc/uri.scm (uri-compose) : added uri-compose. |
| 22217 |
* src/read.c (read_internal): Finally, make old incomplete syntax |
| 22218 |
#"..." obsolete. The reader signals an error. |
| 22219 |
* lib/gauche/portutil.scm, src/gauche/extlib.stub : Renamed |
| 22220 |
gauche/port.scm to gauche/portutil.scm. Implemented copy-port |
| 22221 |
in Scheme instead of C (actually, it became faster by |
| 22222 |
locking the port during copying). |
| 22223 |
|
| 22224 |
2002-11-10 Shiro Kawai <[email protected]> |
| 22225 |
|
| 22226 |
* ext/charconv/charconv.c (conv_input_filler): fixed a bug |
| 22227 |
of attempting to read from closed remote port. (pointed out |
| 22228 |
by Kimura Fuyuki). |
| 22229 |
* lib/srfi-19.scm : added missing exports (pointed out by |
| 22230 |
Kimura Fuyuki). |
| 22231 |
|
| 22232 |
2002-11-09 Shiro Kawai <[email protected]> |
| 22233 |
|
| 22234 |
* gc/* : updated to Boehm GC 6.1 |
| 22235 |
* lib/gauche/reload.scm : added module reloading utility |
| 22236 |
contributed by Alex Shinn. |
| 22237 |
|
| 22238 |
2002-11-08 Shiro Kawai <[email protected]> |
| 22239 |
|
| 22240 |
* src/vm.c (Scm_VMApply): check if the length of argument list is |
| 22241 |
smaller than the VM stack size; otherwise VM can't handle it. |
| 22242 |
This fixes SEGV problem reported in bug #634598. |
| 22243 |
* src/genstub : typo fix (patch from Kimura Fuyuki). |
| 22244 |
* various files: started nvm-experiment branch for next VM |
| 22245 |
experiments. |
| 22246 |
|
| 22247 |
2002-11-01 Shiro Kawai <[email protected]> |
| 22248 |
|
| 22249 |
* src/string.c (Scm_DStringAdd): fixed a bug that didn't handle |
| 22250 |
complete-string addition to DString. |
| 22251 |
* src/write.c : fixed a format problem that counts # of characters |
| 22252 |
incorrectly when maxcol argument is given to the ~a or ~s directive |
| 22253 |
(a bug pointed out by Kimura Shigenobu). Test cases for this is |
| 22254 |
also added. |
| 22255 |
|
| 22256 |
2002-10-30 Shiro Kawai <[email protected]> |
| 22257 |
|
| 22258 |
* src/vm.c, src/gauche/vm.h : start adding experimental new VM |
| 22259 |
code under USE_NVM cpp flag. not working yet. |
| 22260 |
|
| 22261 |
2002-10-25 Shiro Kawai <[email protected]> |
| 22262 |
|
| 22263 |
* various files: removed obsoleted macro l_ and reference to |
| 22264 |
gauche.get-opt. rewrote some procedures using new macros. |
| 22265 |
* lib/gauche/procedure.scm : moved let-optionals* here, with new |
| 22266 |
macros get-optional and let-keyword*. These are "official" |
| 22267 |
autoloaded macros now. Also added procedures any-pred and |
| 22268 |
every-pred. |
| 22269 |
* src/gauche-init.scm : added get-keyword* macro |
| 22270 |
|
| 22271 |
2002-10-24 Shiro Kawai <[email protected]> |
| 22272 |
|
| 22273 |
* lib/gauche/listener.scm : fixed a bug around error handling. |
| 22274 |
The read buffer is cleared on error, and make prompt printed |
| 22275 |
correctly. |
| 22276 |
|
| 22277 |
2002-10-23 Shiro Kawai <[email protected]> |
| 22278 |
|
| 22279 |
* lib/gauche/interactive/info.scm : use gauche.config module to |
| 22280 |
get info file path. |
| 22281 |
* lib/gauche/config.scm : added |
| 22282 |
|
| 22283 |
2002-10-21 Shiro Kawai <[email protected]> |
| 22284 |
|
| 22285 |
* src/exclib.stub (report-error): exposed Scm_ReportError to Scheme. |
| 22286 |
* lib/gauche/mop/* : added <singleton-mixin> and <validator-mixin> |
| 22287 |
classes, to use the features of <singleton-meta> and |
| 22288 |
<validator-meta> conveniently. |
| 22289 |
* lib/gauche/listener.scm : added. working, but error handling |
| 22290 |
is not completed. |
| 22291 |
|
| 22292 |
2002-10-20 Shiro Kawai <[email protected]> |
| 22293 |
|
| 22294 |
* src/genstub : renamed ulong -> u_long etc. in the generated |
| 22295 |
code. (a bug pointed out by Kimura Fuyuki) |
| 22296 |
|
| 22297 |
2002-10-19 Shiro Kawai <[email protected]> |
| 22298 |
|
| 22299 |
* src/class.c (method_initialize): allow methods without required |
| 22300 |
arguments. (a bug pointed out by Kimura Fuyuki) |
| 22301 |
|
| 22302 |
2002-10-17 Shiro Kawai <[email protected]> |
| 22303 |
|
| 22304 |
* lib/gauche/procedure.scm (arity-at-least-value): fixed a bug |
| 22305 |
(Thanks to Kimura Fuyuki). |
| 22306 |
* ext/auxsys/auxsyslib.stub (sys-times): fixed a bug that caused |
| 22307 |
sys-times fails on some platforms (Thanks to Kimura Fuyuki). |
| 22308 |
|
| 22309 |
2002-10-16 Shiro Kawai <[email protected]> |
| 22310 |
|
| 22311 |
* ext/uvector/uvlib.stub.sh : fixed a bug that prevents uvlib.c |
| 22312 |
from compiling under some platforms. |
| 22313 |
* doc/gauche-ref.texi : applied a patch to fix many of erroneous |
| 22314 |
examples. (Thanks to Kimura Fuyuki for providing the patch). |
| 22315 |
* src/gauche-config.in : added --mandir and --infodir |
| 22316 |
|
| 22317 |
2002-10-14 Shiro Kawai <[email protected]> |
| 22318 |
|
| 22319 |
* release 0.6.4 |
| 22320 |
* doc/Makefile.in : reverted to use autoconf's default mandir and |
| 22321 |
infodir. For rpm files, let spec file override them. (Suggested |
| 22322 |
by MINOURA Makoto). |
| 22323 |
* ext/uvector/* : added read-block!, write-block, and uvector-alias. |
| 22324 |
* lib/gauche/singleton.scm : moved to lib/gauche/mop/singleton, |
| 22325 |
keeping the old file for compatibility. |
| 22326 |
* lib/gauche/propagated-slot.scm : renamed to propagate.scm. |
| 22327 |
|
| 22328 |
2002-10-13 Shiro Kawai <[email protected]> |
| 22329 |
|
| 22330 |
* src/bignum.c (Scm_MakeBignumFromUIArray): accepts 2's complement |
| 22331 |
representation if sign == 0. |
| 22332 |
* ext/uvector/* : store true 64bit integer in s64 and u64 vector |
| 22333 |
on 32-bit architecture. |
| 22334 |
* lib/file/util.scm : added home-directory |
| 22335 |
* src/main.c : added -A and -E option. makes -A, -I, -E, -e, -l, -u |
| 22336 |
options be processed in the order of appearance. |
| 22337 |
* doc/gauche.ref.texi : added @direntry (suggested by MINOURA Makoto). |
| 22338 |
|
| 22339 |
2002-10-12 Shiro Kawai <[email protected]> |
| 22340 |
|
| 22341 |
* lib/srfi-1/* : replaced several non-tail-recursive calls for |
| 22342 |
tail-recursive calls, since tail-recursion + reverse! is faster |
| 22343 |
in Gauche than simple non-tail-recursive calls. |
| 22344 |
* lib/gauche/time.scm : added |
| 22345 |
|
| 22346 |
2002-10-11 Shiro Kawai <[email protected]> |
| 22347 |
|
| 22348 |
* src/port.c, lib/gauche/port.scm, src/extlib.stub : exposed 'unsafe' |
| 22349 |
port operations as well as %with-port-locking, for efficient port |
| 22350 |
handling. Removed redundant C-version of port->string (it hasn't |
| 22351 |
been used anyway). |
| 22352 |
|
| 22353 |
2002-10-06 Shiro Kawai <[email protected]> |
| 22354 |
|
| 22355 |
* lib/gauche/mop/propagate-slot.scm : added |
| 22356 |
* lib/gauche/validator.scm, lib/gauche/mop/validator.scm : |
| 22357 |
moved gauche.validator to gauche.mop.validator. |
| 22358 |
keep gauche.validator as an alias of gauche.mop.validator. |
| 22359 |
* test/logger.scm ("log-open"): fixed test case that failed when |
| 22360 |
the day of month was between 1 and 9. |
| 22361 |
|
| 22362 |
2002-09-26 Shiro Kawai <[email protected]> |
| 22363 |
|
| 22364 |
* ext/uvector/uvlib.stub.sh : added conversion routines between |
| 22365 |
string and uvectors (u8, s8, u32, s32). These are convenient to |
| 22366 |
manipulate strings in low-level. |
| 22367 |
* ext/uvector/uvector.[ch].sh : changed uvector struture to have |
| 22368 |
separate data area from the object header. This increases the |
| 22369 |
cost of allocation, but enables the future extensions to share |
| 22370 |
the vector storage. |
| 22371 |
* ext/charconv/jconv.c : use internal conversion routine for |
| 22372 |
"iso-2022-jp" as well. |
| 22373 |
|
| 22374 |
2002-09-25 Shiro Kawai <[email protected]> |
| 22375 |
|
| 22376 |
* ext/charconv/jconv.c (jconv_iconv_reset): fixed a bug that caused |
| 22377 |
infinite loop when iconv is used and the output encoding is |
| 22378 |
stateful. A bug reported by Satoru Takabayashi. |
| 22379 |
|
| 22380 |
2002-09-24 Shiro Kawai <[email protected]> |
| 22381 |
|
| 22382 |
* lib/gauche/sequence.scm : make gauche.sequence inherit |
| 22383 |
gauche.collection. Added (setter subseq). |
| 22384 |
|
| 22385 |
2002-09-21 Shiro Kawai <[email protected]> |
| 22386 |
|
| 22387 |
* release 0.6.3 |
| 22388 |
* ext/syslog/* : added syslog(3) interface. |
| 22389 |
* lib/gauche/logger.scm : allow a procedure for log prefix generator. |
| 22390 |
Also integrated to the syslog feature. |
| 22391 |
|
| 22392 |
2002-09-20 Shiro Kawai <[email protected]> |
| 22393 |
|
| 22394 |
* src/read.c, src/string.c : changed incomplete string syntax |
| 22395 |
from #"..." to #*"...". The old syntax is still recognized, |
| 22396 |
but the written representation is switched to the new syntax. |
| 22397 |
This is a preparation for string interpolation to take #"..." syntax. |
| 22398 |
* lib/gauche/object.scm : added object-apply definitions for |
| 22399 |
<regexp> and <regmatch>. |
| 22400 |
* src/char.c (Scm_CharSetRead): support POSIX character class |
| 22401 |
notation such as '[:alpha:]'. |
| 22402 |
* src/regexp.c, src/char.c, src/read.c, src/extlib.stub : added |
| 22403 |
case-fold regexp match. New syntax #/.../i for it. |
| 22404 |
|
| 22405 |
2002-09-19 Shiro Kawai <[email protected]> |
| 22406 |
|
| 22407 |
* src/vm.c, src/compile.c, src/gauche/vminsn.h : implemented |
| 22408 |
"combined push" instructions, like LREF-PUSH and PUSHI. |
| 22409 |
* src/compile.c : fixed a bug that didn't add bind-info of |
| 22410 |
internal defines properly. |
| 22411 |
|
| 22412 |
2002-09-18 Shiro Kawai <[email protected]> |
| 22413 |
|
| 22414 |
* src/proc.c, src/vm.c, src/class.c : extend object-apply mechanism |
| 22415 |
to setter, i.e. defining (setter object-apply) allows non-procedural |
| 22416 |
object to be used as (set! (obj arg ...) arg ...). |
| 22417 |
* ext/mt-random/mt-random.scm, ext/threads/threads.scm : make symbols |
| 22418 |
in *.so exported. (Based on the discussion in gauche-devel). |
| 22419 |
|
| 22420 |
2002-09-17 Shiro Kawai <[email protected]> |
| 22421 |
|
| 22422 |
* src/vm.c, src/compile.c, src/proc.c : changed VM_LAMBDA instruction |
| 22423 |
as well, to keep binding information in 'bind-info' pair attribute. |
| 22424 |
cleaned up stack dump and debug code to use the new bind-info |
| 22425 |
attribute. |
| 22426 |
|
| 22427 |
2002-09-16 Shiro Kawai <[email protected]> |
| 22428 |
|
| 22429 |
* src/vm.c, src/compile.c : changed VM_LET, VM_VALUES_BIND and |
| 22430 |
VM_TAILBIND not to take extra debug info word after the instruction. |
| 22431 |
This shortens instruction stream and makes execution slightly faster. |
| 22432 |
The debug information is kept in the pair attribute 'bind-info' |
| 22433 |
of the instruction stream. |
| 22434 |
* src/vm.c : fixed a problem of inlined procedures being confused |
| 22435 |
if they passed multiple values. |
| 22436 |
|
| 22437 |
2002-09-15 Shiro Kawai <[email protected]> |
| 22438 |
|
| 22439 |
* lib/rfc/quoted-printable.scm : fixed several bugs using test cases. |
| 22440 |
|
| 22441 |
2002-09-12 Shiro Kawai <[email protected]> |
| 22442 |
|
| 22443 |
* lib/file/util.scm : fixed a problem in directory-fold etc. that |
| 22444 |
failed when there was a dangling symlink. |
| 22445 |
* src/promise.c : fixed a bug in force. |
| 22446 |
* src/core.c : added Scm_RegisterFinalizer |
| 22447 |
* configure.in, src/gauche/config.h.in : added GAUCHE_MAJOR_VERSION et al. |
| 22448 |
* src/gauche.h : added SCM_DECL_{BEGIN|END} macro |
| 22449 |
|
| 22450 |
2002-09-11 Shiro Kawai <[email protected]> |
| 22451 |
|
| 22452 |
* src/compile.c, src/gauche/vm.h : changed the compiler to |
| 22453 |
generate local frame referencer and modifier counting from the end |
| 22454 |
of the frame, and modified ENV_DATA macro accordingly. |
| 22455 |
* src/vm.c : further optimization, and fixed a bug in the last change |
| 22456 |
that left env ptr invalid after tail call argument shifting. |
| 22457 |
* src/compile.c, src/vm.c : further optimization of omitting an empty |
| 22458 |
environment frames. |
| 22459 |
|
| 22460 |
2002-09-10 Shiro Kawai <[email protected]> |
| 22461 |
|
| 22462 |
* src/stdlib.stub, src/proc.c : let map and for-each accept non-procedure |
| 22463 |
object as the 1st arg so that object-apply hook can work. |
| 22464 |
* src/vm.c : optimized subr call by omitting environment frame header. |
| 22465 |
* src/vm.c, src/class.c : added object-apply hook. If non-procedure |
| 22466 |
object is applied, like ("abc" 1), a method object-apply is |
| 22467 |
called as (object-apply "abc" 1). |
| 22468 |
|
| 22469 |
2002-09-09 Shiro Kawai <[email protected]> |
| 22470 |
|
| 22471 |
* src/vm.c, src/gauche/vm.h : changed environment frame layout. see |
| 22472 |
the comment of vm.h. |
| 22473 |
* src/vm.c, src/gauche/vminsn.h, src/stdlib.stub : inline apply to |
| 22474 |
use SCM_VM_APPLY instruction. |
| 22475 |
|
| 22476 |
2002-09-08 Shiro Kawai <[email protected]> |
| 22477 |
|
| 22478 |
* src/genstub (get-c-name): changed to preserve case of the input |
| 22479 |
scheme name. |
| 22480 |
* src/gauche/arith_i386.h, configure.in, src/gauche/config.h.in : |
| 22481 |
use some inline asm for primitive ops of bignum arithmetic. |
| 22482 |
|
| 22483 |
2002-09-07 Shiro Kawai <[email protected]> |
| 22484 |
|
| 22485 |
* configure.in, doc/Makefile.in : changed autoconf variable GZIP to |
| 22486 |
GZIP_PROGRAM, for it interferes gzip's operation. |
| 22487 |
|
| 22488 |
2002-09-06 Shiro Kawai <[email protected]> |
| 22489 |
|
| 22490 |
* src/genstub : fixed a bug that generates bad C predicate for <uint32> |
| 22491 |
stub type. |
| 22492 |
|
| 22493 |
2002-09-02 Shiro Kawai <[email protected]> |
| 22494 |
|
| 22495 |
* release 0.6.2 |
| 22496 |
* src/module.c : fixed for cygwin. |
| 22497 |
* src/syslib.stub : dropped sys-usleep, for the prototype of usleep(3) |
| 22498 |
doesn't agree among BSD and SysV, and it's obsolete anyway. |
| 22499 |
Instead, added sys-nanosleep. |
| 22500 |
|
| 22501 |
2002-09-01 Shiro Kawai <[email protected]> |
| 22502 |
|
| 22503 |
* src/regexp.c : fixed a bug that compiled a regexp like #/a|(b)|c/ |
| 22504 |
incorrectly. (Thanks to Alex Shinn for pointing it out). |
| 22505 |
* src/repl.c : changed API of read-eval-print-loop. |
| 22506 |
* src/main.c (usage): added explanation of -l and -e options. |
| 22507 |
|
| 22508 |
2002-08-29 Shiro Kawai <[email protected]> |
| 22509 |
|
| 22510 |
* src/module.c (Scm_FindBinding): searches parent modules of imported |
| 22511 |
modules as well. |
| 22512 |
* src/gauche-init.scm (extend) : if specified module is not found, |
| 22513 |
try %require. |
| 22514 |
* src/repl.c (repl_proc): fixed a bug that didn't treat arguments |
| 22515 |
correctly. |
| 22516 |
|
| 22517 |
2002-08-28 Shiro Kawai <[email protected]> |
| 22518 |
|
| 22519 |
* genstub : renamed the stub directive define-const to define-constant |
| 22520 |
for consistency, and allow boolean value for it. |
| 22521 |
* src/signal.c : changed the default handler behavior for SIGHUP, |
| 22522 |
SIGQUIT and SIGTERM to call Scm_Exit() instead of raise an error. |
| 22523 |
(This fixes the problem of remaining process under Emacs). |
| 22524 |
* src/write.c (Scm_Vprintf): added check if argument for %s is NULL. |
| 22525 |
|
| 22526 |
2002-08-27 Shiro Kawai <[email protected]> |
| 22527 |
|
| 22528 |
* src/class.c (initialize_builtin_class) : made it recognize inherited |
| 22529 |
slots properly. |
| 22530 |
* ext/threads/thrlib.stub : adapted to the above fix of class.c. |
| 22531 |
* lib/gauche/mop/instance-pool.scm : added expreimentally. |
| 22532 |
|
| 22533 |
2002-08-26 Shiro Kawai <[email protected]> |
| 22534 |
|
| 22535 |
* lib/util/queue.scm : added queue-length, list->queue, queue->list, |
| 22536 |
find-in-queue, remove-from-queue!. |
| 22537 |
* src/genstub : fixed a bug in string literal handling. |
| 22538 |
|
| 22539 |
2002-08-25 Shiro Kawai <[email protected]> |
| 22540 |
|
| 22541 |
* src/genstub : snapshot of new architecture. Old syntax of |
| 22542 |
define-symbol (with initialization) is obsoleted and replaced by |
| 22543 |
define-variable. |
| 22544 |
* src/extlib.stub : added keyword->string |
| 22545 |
|
| 22546 |
2002-08-24 Shiro Kawai <[email protected]> |
| 22547 |
|
| 22548 |
* src/genstub : reorganizing code. |
| 22549 |
* lib/gauche/interactive.scm (apropos): adapted to the new module |
| 22550 |
inheitance mechanism. |
| 22551 |
|
| 22552 |
2002-08-23 Shiro Kawai <[email protected]> |
| 22553 |
|
| 22554 |
* src/extlib.stub : added fixnum? and bignum? |
| 22555 |
* src/string.c, src/extlib.stub : added string-pointer-copy, |
| 22556 |
string-pointer-byte-index and string-pointer-dump (under |
| 22557 |
SCM_DEBUG_HELPER), as suggested by Alex Shinn. |
| 22558 |
|
| 22559 |
2002-08-22 Shiro Kawai <[email protected]> |
| 22560 |
|
| 22561 |
* src/gauche-init.scm, src/module.c : made them more robust for |
| 22562 |
invalid arguments. |
| 22563 |
* ext/uvector/srfi-4.scm : adapted to extend syntax. |
| 22564 |
|
| 22565 |
2002-08-20 Shiro Kawai <[email protected]> |
| 22566 |
|
| 22567 |
* src/module.c, src/extlib.stub, src/gauche-init.scm : implements |
| 22568 |
module inheritance by extend syntax. |
| 22569 |
|
| 22570 |
2002-08-19 Shiro Kawai <[email protected]> |
| 22571 |
|
| 22572 |
* src/gauche.h : added SCM_SIGPENDING macro (needed in gauche-gtk) |
| 22573 |
|
| 22574 |
2002-08-18 Shiro Kawai <[email protected]> |
| 22575 |
|
| 22576 |
* src/read.c : added SRFI-30 nested multiline comment (#|...|#). |
| 22577 |
|
| 22578 |
2002-08-17 Shiro Kawai <[email protected]> |
| 22579 |
|
| 22580 |
* lib/gauche/vm/debugger.scm : fixed an error in enable-debug |
| 22581 |
(was using obsolete 'current-vm' procedure). |
| 22582 |
* src/genstub : recognize <short>, <ushort> as stub types. |
| 22583 |
|
| 22584 |
2002-08-16 Shiro Kawai <[email protected]> |
| 22585 |
|
| 22586 |
* src/module.c (Scm_DefineConst): don't issue warning if the redefined |
| 22587 |
constant has the same value (in the sense of equal?) to the old one. |
| 22588 |
* src/port.c (file_filler): fixed a bug that file_filler returned 0 |
| 22589 |
when read(2) was interrupted by a signal, causing Scm_Read to |
| 22590 |
return EOF in such case. (Thanks to Julian Fondren for pointing |
| 22591 |
out the bug.) |
| 22592 |
|
| 22593 |
2002-08-10 Shiro Kawai <[email protected]> |
| 22594 |
|
| 22595 |
* src/read.c: protect read ctor table by mutex. |
| 22596 |
|
| 22597 |
2002-08-08 Shiro Kawai <[email protected]> |
| 22598 |
|
| 22599 |
* ext/uvector/uvector.scm : defines object-[+-*/] methods for uvectors. |
| 22600 |
* src/number.c : adding generic arithmetic mechanism: operations such |
| 22601 |
as '+' calls a generic function (object-+ for '+') when the |
| 22602 |
argument is not a built-in numeric type. |
| 22603 |
|
| 22604 |
2002-07-31 Shiro Kawai <[email protected]> |
| 22605 |
|
| 22606 |
* release 0.6.1 |
| 22607 |
* src/main.c : warn if pre-0.5 compatible mode is used. |
| 22608 |
* src/gauche/vm.h, src/error.c, src/vm.c : prevent an infinite loop |
| 22609 |
when an uncaptured erorr occurs inside the error reporter. |
| 22610 |
Introduced SCM_ERROR_BEING_REPORTED runtime flag to keep the |
| 22611 |
dynamic context of error handling; see the comment of Scm_ReportError |
| 22612 |
and Scm_VMWithErrorHandler. |
| 22613 |
|
| 22614 |
2002-07-30 Shiro Kawai <[email protected]> |
| 22615 |
|
| 22616 |
* src/genstub : changed suffixes of autogenerated auxiliary C |
| 22617 |
variable names to avoid potential name collision. For example, |
| 22618 |
"__NAME" was used for C variable to keep the name of symbols, |
| 22619 |
instead of "_NAME". |
| 22620 |
* ext/dbm/gdbm.stub, ext/dbm/ndbm.stub : changed C predicate name |
| 22621 |
to follow the convention (SCM_GDBM_P -> SCM_GDBMP, etc). |
| 22622 |
|
| 22623 |
2002-07-28 Shiro Kawai <[email protected]> |
| 22624 |
|
| 22625 |
* src/vm.c (Scm_VMDefaultExceptionHandler): fix the problem that |
| 22626 |
user-defined error handler can't get a proper stack trace. |
| 22627 |
* gc/configure.in: enable DONT_ADD_BYTE_AT_END option. Otherwise, |
| 22628 |
pair attribute field of cons wasn't scanned properly, losing |
| 22629 |
source-code information after GC. |
| 22630 |
|
| 22631 |
2002-07-23 Shiro Kawai <[email protected]> |
| 22632 |
|
| 22633 |
* src/genstub : obsoleted 'assert' form, replacing it for bigloo-like |
| 22634 |
argument type annotations. revised stub type system management. |
| 22635 |
* various *.stub : rewrote according to the above change. |
| 22636 |
|
| 22637 |
2002-07-22 Shiro Kawai <[email protected]> |
| 22638 |
|
| 22639 |
* src/genstub : added include, define-const, define-enum and return |
| 22640 |
forms. |
| 22641 |
* various *.stub : rewrote C-enum stuff by define-enum form, |
| 22642 |
and many SCM_RETURNs by return form. |
| 22643 |
|
| 22644 |
2002-07-21 Shiro Kawai <[email protected]> |
| 22645 |
|
| 22646 |
* src/Makefile (INSTALL_SUBHEADERS): gauche/class.h to be installed. |
| 22647 |
|
| 22648 |
2002-07-18 Shiro Kawai <[email protected]> |
| 22649 |
|
| 22650 |
* release 0.6 |
| 22651 |
* DIST : includes pre-extracted info files in the distribution; |
| 22652 |
'extract' script doesn't work unless gosh is compiled with euc-jp |
| 22653 |
support. |
| 22654 |
* doc/Makefile.in : fixed info file installation when info directory |
| 22655 |
doesn't exist. |
| 22656 |
* aclocal.m4, configure.in, src/gauche-config.in : save the default |
| 22657 |
CFLAGS in gauche-config. includes AC_GAUCHE_OPTFLAGS in |
| 22658 |
AC_GAUCHE_FLAGS. |
| 22659 |
|
| 22660 |
2002-07-17 Shiro Kawai <[email protected]> |
| 22661 |
|
| 22662 |
* src/main.c (main): fixed a bug that didn't flush buffered ports |
| 22663 |
after Scheme main procedure returns. (Thanks to Fujii-san for |
| 22664 |
pointing this out). |
| 22665 |
* all configure.in's and Makefile.in's : set OPTFLAGS on some |
| 22666 |
platforms by default. propagates it to submodules. |
| 22667 |
* src/port.c, src/write.c, src/gauche/port.h : inlined port lock |
| 22668 |
primitives in write.c. |
| 22669 |
* gc/configure.in: disabled THREAD_LOCAL_ALLOC for now, since it |
| 22670 |
caused significant performance loss on Linux/x86 when gosh is |
| 22671 |
compiled with pthreads but not using threads. The difference |
| 22672 |
of GC lock implementation may be the cause. Disabling local alloc |
| 22673 |
may damage multithreaded app, but at least on gosh, MT is more |
| 22674 |
for asynchronous event handling than performance benefit, I think. |
| 22675 |
|
| 22676 |
2002-07-16 Shiro Kawai <[email protected]> |
| 22677 |
|
| 22678 |
* src/load.c (break_env_paths): fixed a bug (thanks to Alex Shinn). |
| 22679 |
* configure.in, src/gauche/config.h.in : check existence of sched_yield |
| 22680 |
and the library that includes it. |
| 22681 |
* src/core.c : refer to GC_pthread_create so that the GC thread |
| 22682 |
module will be linked in the gosh body. |
| 22683 |
* src/syslib.stub : avoid calling pause() from sys-pause; it won't |
| 22684 |
work in race conditions. sys-pause now uses sigsuspend instead. |
| 22685 |
also added sys-sigsuspend. |
| 22686 |
* src/signal.c, src/main.c : fixed a bug that messed up threads' |
| 22687 |
signal mask. Also add Scheme level support of sigsuspend. |
| 22688 |
|
| 22689 |
2002-07-15 Shiro Kawai <[email protected]> |
| 22690 |
|
| 22691 |
* src/exclib.stub, src/extlib.stub, ext/threads/thrlib.stub : moved |
| 22692 |
the thread-exception stuff from core interpreter to ext/threads. |
| 22693 |
moved back the vm debugging support procs from ext/threads to |
| 22694 |
src/extlib. |
| 22695 |
|
| 22696 |
2002-07-14 Shiro Kawai <[email protected]> |
| 22697 |
|
| 22698 |
* src/write.c (Scm_Vprintf): fixed to retrieve varargs before calling |
| 22699 |
a closure function, so that we can avoid fiddling va_list around. |
| 22700 |
* src/gauche.h, ext/threads/* : fixed some declarations for cygwin. |
| 22701 |
|
| 22702 |
2002-07-13 Shiro Kawai <[email protected]> |
| 22703 |
|
| 22704 |
* src/thread.c, src/mutex.c, ext/threads/* : moved Scheme-level |
| 22705 |
thread support to ext/threads (module gauche.threads). This keeps |
| 22706 |
gosh core small, and also explicitly specifying (use gauche.threads) |
| 22707 |
may be a good idea for readers to be aware of the use of threads. |
| 22708 |
* src/read.c, src/write.c : let Scm_Read and Scm_Write (and likes) |
| 22709 |
to hold the port lock so that they can call faster version of |
| 22710 |
port primitives. |
| 22711 |
* src/port.c (PORT_UNLOCK): fixed a bug that didn't unlock mutex |
| 22712 |
properly inside recursive lock. |
| 22713 |
|
| 22714 |
2002-07-12 Shiro Kawai <[email protected]> |
| 22715 |
|
| 22716 |
* gc/configure.in : undefine GC_GCJ_SUPPORT. |
| 22717 |
* ext/net/net.c (Scm_SocketGetOpt): fixed a bug that may returned |
| 22718 |
smaller data. |
| 22719 |
* ext/uvector/uvector.c.sh, ext/uvector/uvectorP.h : fixed a bug |
| 22720 |
that caused s64/u64 vector code crash. SCM_NEW2 should be used |
| 22721 |
instead of SCM_NEW_ATOMIC2 for these vectors on ILP32 architecture. |
| 22722 |
* configure.in, src/gauche/config.h.in : set proper thread-supporting |
| 22723 |
#defines accodring to the platform. |
| 22724 |
|
| 22725 |
2002-07-11 Shiro Kawai <[email protected]> |
| 22726 |
|
| 22727 |
* src/port.c : added error flag to ScmPort and mark the port that |
| 22728 |
raised an error. Avoid calling flush to close such ports. |
| 22729 |
* lib/gauche/process.cm (call-with-input-process) : avoid sending |
| 22730 |
SIGTERM in call-with-input-process, for it may not succeed. |
| 22731 |
Instead, it counts on that closing pipe causes termination of |
| 22732 |
the source process. |
| 22733 |
* configure.in : check -lpthread by AC_CHECK_LIB. For FreeBSD, |
| 22734 |
check -lc_r as well. |
| 22735 |
* doc/Makefile.in : |
| 22736 |
* lib/gauche/interactive/info.scm : added gauche.interactive.info, |
| 22737 |
on-line info viewer (experimental). |
| 22738 |
* lib/file/util.scm (find-file-in-paths) : fixed keyword argument |
| 22739 |
spec to match the document. |
| 22740 |
|
| 22741 |
2002-07-10 Shiro Kawai <[email protected]> |
| 22742 |
|
| 22743 |
* doc/Makefile.in : added rule to create gzipped info files |
| 22744 |
* src/main.c (version): the output of gosh -V shows pthreads |
| 22745 |
availability. |
| 22746 |
* lib/text/info.scm : added text.info module that can read and |
| 22747 |
parse info files. |
| 22748 |
* lib/gauche/interpolate.scm (%string-interpolate): fixed a bug |
| 22749 |
that doesn't interpolate variables starting with 'f' properly. |
| 22750 |
|
| 22751 |
2002-07-09 Shiro Kawai <[email protected]> |
| 22752 |
|
| 22753 |
* src/gauche.h, src/char.c, src/regexp.c, src/read.c : consolidated |
| 22754 |
\x, \u and \U escape sequence reader of literal string, regexp and |
| 22755 |
char-set. |
| 22756 |
* various files: changed macro GAUCHE_USE_PTHREAD to |
| 22757 |
GAUCHE_USE_PTHREADS. |
| 22758 |
|
| 22759 |
2002-07-08 Shiro Kawai <[email protected]> |
| 22760 |
|
| 22761 |
* src/thread.c (Scm_ThreadStart): made all signals blocked for newly |
| 22762 |
created thread by default. |
| 22763 |
* src/main.c (sig_setup): enable SIGCHLD and SIGWINCH to be handled |
| 22764 |
in Scheme. They are ignored by default, but a handler can be set. |
| 22765 |
* src/signal.c, src/syslib.stub : added get-signal-handlers, |
| 22766 |
sys-sigset-fill!, sys-sigset-empty!, sys-sigmask. |
| 22767 |
* lib/gauche/signal.scm : made with-signal-handlers work with the |
| 22768 |
new signal handling mechanism |
| 22769 |
|
| 22770 |
2002-07-07 Shiro Kawai <[email protected]> |
| 22771 |
|
| 22772 |
* src/signal.c, src/gauche.h, src/vm.c, src/extlib.stub: revised |
| 22773 |
signal handling mechanism. Now the signal handler vector is |
| 22774 |
shared by all threads. This check-in breaks backward compatibility |
| 22775 |
of the signal handling mechanism---the compatible |
| 22776 |
with-signal-handlers interface should be written later. |
| 22777 |
|
| 22778 |
2002-07-06 Shiro Kawai <[email protected]> |
| 22779 |
|
| 22780 |
* src/exclib.stub : fix slot name of uncaught-exception. |
| 22781 |
* ext/net/net.c (Scm_SocketBind): call getsockaddr to get the actual |
| 22782 |
address after binding. (Thanks to ODA Hideo for a patch). |
| 22783 |
* src/vm.c, src/thread.c : separated Scheme thread API-related |
| 22784 |
routines from vm.c to thread.c. Fixed thread cleanup routine; |
| 22785 |
now it's called by pthread_cleanup_push mechanism. |
| 22786 |
Scm_ThreadTerminate is implemented. |
| 22787 |
|
| 22788 |
2002-07-05 Shiro Kawai <[email protected]> |
| 22789 |
|
| 22790 |
* src/port.c: added mutex protection to getc, getz and readline. |
| 22791 |
separated duplicated code of 'safe' and 'unsafe' version of |
| 22792 |
generic interface into portapi.c, and include it twice. |
| 22793 |
|
| 22794 |
2002-07-04 Shiro Kawai <[email protected]> |
| 22795 |
|
| 22796 |
* src/repl.c : rewrote to use trampoline instead of C-level loop. |
| 22797 |
This avoids extra C-stack overhead, and makes captured toplevel |
| 22798 |
continuation valid throughout the entire session. |
| 22799 |
* src/error.c : added Scm_ReportError() formerly defined in vm.c as |
| 22800 |
report_error. |
| 22801 |
* src/vm.c : fixed a bug that caused run_loop() to return prematurely. |
| 22802 |
|
| 22803 |
2002-07-02 Shiro Kawai <[email protected]> |
| 22804 |
|
| 22805 |
* src/port.c, src/gauche.h : first attempt of protecting port access |
| 22806 |
in threaded env. Finished for putb, putc, puts and putz. |
| 22807 |
* src/vm.c (Scm_VMCallCC): fixed to take a procedure with variable- |
| 22808 |
length arguments. |
| 22809 |
* configure.in: changed thread option from --with-thread to |
| 22810 |
--enable-threads to match the same configuration option in GC. |
| 22811 |
|
| 22812 |
2002-07-01 Shiro Kawai <[email protected]> |
| 22813 |
|
| 22814 |
* ext/uvector/test.scm : fixed test cases accodring to the fix |
| 22815 |
of eqv? and equal? |
| 22816 |
* src/boolean.c (Scm_EqvP, Scm_EqualP): fixed a bug that made |
| 22817 |
(eqv? 1 1.0) ==> #t and (equal? 1 1.0) ==> #t, which |
| 22818 |
should return #f. |
| 22819 |
|
| 22820 |
2002-06-30 Shiro Kawai <[email protected]> |
| 22821 |
|
| 22822 |
* src/class.c, src/boolean.c, src/compare.c, src/extlib.stub : added |
| 22823 |
compare procedure and object-compare generic function. Changed |
| 22824 |
the signature of ScmClass.compare so that it can be called both |
| 22825 |
equality test (delegates to object-equal?) and comparison (object- |
| 22826 |
compare). |
| 22827 |
|
| 22828 |
* release 0.5.7 |
| 22829 |
* src/class.c : added object-equal? generic function to extend equal?. |
| 22830 |
* ext/uvector/array.scm (generate-amap): fixed a bug in the boundary |
| 22831 |
check that passes an index equal to the array-end. |
| 22832 |
|
| 22833 |
2002-06-28 Shiro Kawai <[email protected]> |
| 22834 |
|
| 22835 |
* ext/uvector/array.scm : more array utils, and array reader/write |
| 22836 |
method. |
| 22837 |
|
| 22838 |
2002-06-27 Shiro Kawai <[email protected]> |
| 22839 |
|
| 22840 |
* lib/gauche/array.scm : moved to ext/uvector. added some more |
| 22841 |
array utilities. |
| 22842 |
* ext/uvector/*, src/read.c : uniform vector is now supported in |
| 22843 |
gauche.uvector module instead of srfi-4. srfi-4 module is kept |
| 22844 |
for compatibility. |
| 22845 |
|
| 22846 |
2002-06-26 Shiro Kawai <[email protected]> |
| 22847 |
|
| 22848 |
* lib/srfi-26.scm, test/srfi.scm, src/gauche-init.scm : added SRFI-26 |
| 22849 |
and its test, and set cut and cute to be autoloaded. |
| 22850 |
* src/extlib.stub (format): allow to omit the port argument, so that |
| 22851 |
it conforms SRFI-28 (basic format strings). |
| 22852 |
|
| 22853 |
2002-06-25 Shiro Kawai <[email protected]> |
| 22854 |
|
| 22855 |
* ext/uvector/* : allow a list and a vector as the second operand |
| 22856 |
of most vector arithmetic procedures. |
| 22857 |
|
| 22858 |
2002-06-24 Shiro Kawai <[email protected]> |
| 22859 |
|
| 22860 |
* ext/uvector/* : added TAGvector-range-check, TAGvector-clamp, |
| 22861 |
and TAGvector-clamp!. |
| 22862 |
* src/vector.c, src/extlib.stub : added start/end optional argument |
| 22863 |
for vector->list (consistency with SRFI-13 string->list), and |
| 22864 |
added vector-copy. |
| 22865 |
|
| 22866 |
2002-06-23 Shiro Kawai <[email protected]> |
| 22867 |
|
| 22868 |
* lib/gauche/array.scm : added. right now, it is just a prototype. |
| 22869 |
|
| 22870 |
2002-06-22 Shiro Kawai <[email protected]> |
| 22871 |
|
| 22872 |
* src/gauche/arith.h : added macros that checks integer arithmetic |
| 22873 |
overflow. |
| 22874 |
* ext/uvector/uvutil.c.sh : added TAGvector-dot, dot product operator. |
| 22875 |
|
| 22876 |
2002-06-21 Shiro Kawai <[email protected]> |
| 22877 |
|
| 22878 |
* ext/uvector/uvectorP.h : fixed bugs on LP64 architecture |
| 22879 |
* missing, ltmain.sh : moved from gc/* to here, so that other |
| 22880 |
autoconf scripts (config.sub, config.guess and install-sh) can |
| 22881 |
be shared by gc and libgauche. |
| 22882 |
|
| 22883 |
2002-06-20 Shiro Kawai <[email protected]> |
| 22884 |
|
| 22885 |
* gc/* : upgraded to BoehmGC 6.1alpha5. |
| 22886 |
* src/core.c : moved GC registration code for dynamic-loadable |
| 22887 |
extensions (used to be GC_register_dlopen_data) here, renaming to |
| 22888 |
Scm_RegisterDL, so that I don't need to touch gc sources. |
| 22889 |
* configure.in, Makefile.in, src/Makefile.in : changed for new |
| 22890 |
gc build process. |
| 22891 |
|
| 22892 |
2002-06-19 Shiro Kawai <[email protected]> |
| 22893 |
|
| 22894 |
* ext/uvector/* : revised macro strategy of uvutil.c. Adding tests |
| 22895 |
for arithmetic functions. |
| 22896 |
|
| 22897 |
2002-06-18 Shiro Kawai <[email protected]> |
| 22898 |
|
| 22899 |
* ext/uvector/* : finishing uniform vector utility functions. |
| 22900 |
|
| 22901 |
2002-06-17 Shiro Kawai <[email protected]> |
| 22902 |
|
| 22903 |
* ext/uvector/* : adding uniform vector utility functions (not |
| 22904 |
finished yet) |
| 22905 |
* src/bignum.c, src/gauche/arith.h, src/test-arith.c : separated |
| 22906 |
basic integer arithmetic macros to arith.h, for there will be |
| 22907 |
machine-dependent optimizations. Added C test program for |
| 22908 |
arith.h macros. |
| 22909 |
* src/read.c : added reader syntax for UCS characters: #\uXXXX |
| 22910 |
for character literal, and \uXXXX escape sequence in string literal. |
| 22911 |
|
| 22912 |
2002-06-16 Shiro Kawai <[email protected]> |
| 22913 |
|
| 22914 |
* src/char.c, src/extlib.stub : added ucs<->char conversion routine |
| 22915 |
scheme: ucs->char, char->ucs, c: Scm_UcsToChar, Scm_CharToUcs. |
| 22916 |
* ext/charconv/cvt.scm (generate-utf8->eucj): bug fix: the table for |
| 22917 |
utf8 [d0 xx] and [d1 xx] sequence was missing in utf8->eucjp table. |
| 22918 |
* ext/xlink : avoid calling sys-symlink when there's already a link. |
| 22919 |
* src/read.c (maybe_uvector): use Scm_Require instead of Scm_Load |
| 22920 |
to initialize Scm_ReadUvectorHook. |
| 22921 |
|
| 22922 |
2002-06-14 Shiro Kawai <[email protected]> |
| 22923 |
|
| 22924 |
* release 0.5.6 |
| 22925 |
|
| 22926 |
2002-06-13 Shiro Kawai <[email protected]> |
| 22927 |
|
| 22928 |
* ext/charconv.c : fixed int* and size_t* discrepancy |
| 22929 |
* src/port.c (Scm_Getc): fixed a bug that getc didn't work when |
| 22930 |
the size of character was bigger than the size of the buffer |
| 22931 |
(pretty rare case, but bug is bug). |
| 22932 |
* src/error.c, src/extlib.stub : fixed a bug in Scm_Warn. Added |
| 22933 |
Scheme-level interface (warn). |
| 22934 |
|
| 22935 |
2002-06-12 Shiro Kawai <[email protected]> |
| 22936 |
|
| 22937 |
* lib/file/util.scm : experimentally added file->string, file->list, |
| 22938 |
file->string-list and file->sexp-list. |
| 22939 |
* src/gauche/char_euc_jp.h: adapted to 3-byte sequence (8F xx xx). |
| 22940 |
* ext/charconv/guess.scm, ext/charconv/guess.c : improved automatic |
| 22941 |
character encoding detection, by using probabilistic DFA. |
| 22942 |
|
| 22943 |
2002-06-11 Shiro Kawai <[email protected]> |
| 22944 |
|
| 22945 |
* lib/gauche/object.scm : insert the binding of |setter of ref| into |
| 22946 |
gauche module, or it doesn't work well with gauche.sequence module. |
| 22947 |
* src/moplib.stub (slot-ref): set setter of slot-ref to slot-set!. |
| 22948 |
|
| 22949 |
2002-06-10 Shiro Kawai <[email protected]> |
| 22950 |
|
| 22951 |
* src/module.c: fixed a bug that Scm_Import added imported module |
| 22952 |
to the imported list multiple times. Also added proper mutex for |
| 22953 |
module access. |
| 22954 |
* src/core.c (Scm_Warn) : added Scm_Warn. |
| 22955 |
* src/vector.c (Scm_VectorFill), src/extlib.stub (vector-fill!) : |
| 22956 |
allow to take optional start and end argument (parallel to |
| 22957 |
SRFI-13 string-fill!). |
| 22958 |
|
| 22959 |
2002-06-09 Shiro Kawai <[email protected]> |
| 22960 |
|
| 22961 |
* gc/dyn_load.c (GC_register_dlopen_data), src/gauche/extend.h, |
| 22962 |
aclocal.m4 : fixed a GC problem that the bss data in the dlopened |
| 22963 |
module was not added to the GC root. This caused memory fault |
| 22964 |
on Cygwin etc. |
| 22965 |
* ext/charconv/jconv.c : added #ifdef's to compile without iconv. |
| 22966 |
|
| 22967 |
2002-06-08 Shiro Kawai <[email protected]> |
| 22968 |
|
| 22969 |
* src/main.c : fixed usage message. disabled SIGWINCH by default. |
| 22970 |
* ext/charconv/jconv.c : added iso2022jp support and cleanup routine. |
| 22971 |
added more tests. |
| 22972 |
|
| 22973 |
2002-06-07 Shiro Kawai <[email protected]> |
| 22974 |
|
| 22975 |
* src/gauche.h, src/string.c : fixed a problem of signed/unsigned |
| 22976 |
char inconsistency (bug pointed out by Sven Hartrumpf). |
| 22977 |
|
| 22978 |
2002-06-05 Shiro Kawai <[email protected]> |
| 22979 |
|
| 22980 |
* ext/charconv/jconv.c : wrapping up. passes the current tests. |
| 22981 |
* lib/srfi-27.scm : added srfi-27 support. |
| 22982 |
* src/vm.c (report_error): limit the depth of stack dump of the |
| 22983 |
default error reporter. |
| 22984 |
|
| 22985 |
2002-06-04 Shiro Kawai <[email protected]> |
| 22986 |
|
| 22987 |
* ext/charconv/* : reorganized to make jconv intercept iconv (but |
| 22988 |
jconv itself is inactivated yet). |
| 22989 |
|
| 22990 |
2002-06-03 Shiro Kawai <[email protected]> |
| 22991 |
|
| 22992 |
* src/gauche-init.scm, lib/gauche/common-macros.scm : added dolist |
| 22993 |
* src/write.c (Scm_Format): fixed a problem that raises a "too many |
| 22994 |
argument" error when ~:* is used. |
| 22995 |
|
| 22996 |
2002-05-28 Shiro Kawai <[email protected]> |
| 22997 |
|
| 22998 |
* ext/charconv/jconv.c, ext/charconv/cvt.scm : added for japanese |
| 22999 |
characte encoding conversions. |
| 23000 |
|
| 23001 |
2002-05-27 Shiro Kawai <[email protected]> |
| 23002 |
|
| 23003 |
* release 0.5.5 |
| 23004 |
* ext/mt-random : more fix for cygwin. right now, some procedures that |
| 23005 |
refer to uvector don't work on cygwin, because of DLL problem. |
| 23006 |
* src/compare.c : further improvement. |
| 23007 |
|
| 23008 |
2002-05-26 Shiro Kawai <[email protected]> |
| 23009 |
|
| 23010 |
* ext/mt-random : fixed missing initialization code. |
| 23011 |
* src/compare.c : changed sort algorithm from simple quicksort to |
| 23012 |
the hybrid of quicksort and heapsort. |
| 23013 |
|
| 23014 |
2002-05-25 Shiro Kawai <[email protected]> |
| 23015 |
|
| 23016 |
* ext/mt-random/mt-random.c (genrand_int_small): fixed a bug in LP64 |
| 23017 |
architecture. |
| 23018 |
* src/number.c (Scm_InexactToExact): fixed a bug in 64bit architecture |
| 23019 |
|
| 23020 |
2002-05-24 Shiro Kawai <[email protected]> |
| 23021 |
|
| 23022 |
* src/load.c : finished the routine to detect require dependency loop. |
| 23023 |
* lib/srfi-1* : added partial-application version of some list |
| 23024 |
procedures: count$, fold$, fold-right$, reduce$, reduce-right$, |
| 23025 |
filter$, partition$, remove$, member$, find$, find-tail$, |
| 23026 |
any$, every$, delete$, assoc$. |
| 23027 |
* src/gauche.h : fixed a bug of uninitialized ScmProcedure field. |
| 23028 |
* lib/gauche/procedure.scm, lib/gauche/collection.scm : added map$, |
| 23029 |
for-each$, apply$. |
| 23030 |
* lib/math/const.scm : added. |
| 23031 |
|
| 23032 |
2002-05-23 Shiro Kawai <[email protected]> |
| 23033 |
|
| 23034 |
* src/srfi-19.scm, src/srfi-19/format.scm : fixes bugs. |
| 23035 |
* test/srfi.scm : added tests for srfi-19. |
| 23036 |
* src/system.c : allowed negative value in Scm_Time slots; required |
| 23037 |
to represent negative time duration. |
| 23038 |
* src/proc.c (proc_print): prints closure info. |
| 23039 |
|
| 23040 |
2002-05-22 Shiro Kawai <[email protected]> |
| 23041 |
|
| 23042 |
* ext/auxsys/auxsyslib.stub (sys-times): fixed the way to find out |
| 23043 |
clock ticks. |
| 23044 |
* ext/charconv/configure.in : add proper include path when --with-iconv |
| 23045 |
is specified. |
| 23046 |
|
| 23047 |
2002-05-21 Shiro Kawai <[email protected]> |
| 23048 |
|
| 23049 |
* src/load.c : protecting some system-wide static states by mutexes. |
| 23050 |
* src/stdlib.stub, src/extlib.stub : moved definitions of Scheme |
| 23051 |
subrs load and load-from-port to load.c. |
| 23052 |
|
| 23053 |
2002-05-20 Shiro Kawai <[email protected]> |
| 23054 |
|
| 23055 |
* src/genstub : define-cclass starts working. The interface may |
| 23056 |
change. |
| 23057 |
* src/exclib.stub, src/error.c : moved exception class hierarchy |
| 23058 |
definition to exclib.stub from error.c |
| 23059 |
* src/thrlib.stub, src/mutex.c, lib/gauche/thread.scm : made basic |
| 23060 |
thread primitives as builtin classes, and autoload SRFI-18 |
| 23061 |
procedural APIs. |
| 23062 |
|
| 23063 |
2002-05-19 Shiro Kawai <[email protected]> |
| 23064 |
|
| 23065 |
* src/write.c (Scm_Format): added ~* directive. |
| 23066 |
* src/genstub : reorganized <type> class to handle types more |
| 23067 |
generally. |
| 23068 |
|
| 23069 |
2002-05-18 Shiro Kawai <[email protected]> |
| 23070 |
|
| 23071 |
* src/genstub : removed obsolete definition of print and println, and |
| 23072 |
rewrote to use new print. some code to support define-cclass is |
| 23073 |
added, but not finished. |
| 23074 |
* src/gauche/exception.h : added |
| 23075 |
* src/error.c : adding exception hieararchy support; not finished yet. |
| 23076 |
|
| 23077 |
2002-05-17 Shiro Kawai <[email protected]> |
| 23078 |
|
| 23079 |
* src/write.c (Scm_Vprintf): the precision parameter of %S directive |
| 23080 |
now specifies the minimum padding width; e.g. %50.20S prints at |
| 23081 |
least 20 chars and at most 50 chars. |
| 23082 |
|
| 23083 |
2002-05-16 Shiro Kawai <[email protected]> |
| 23084 |
|
| 23085 |
* src/mutex.c (Scm_GetTimeSpec): fixed according to SRFI-18 spec |
| 23086 |
(real number for relative time from now). |
| 23087 |
* src/system.c : moved Scm_GetTimeSpec here. |
| 23088 |
* src/vm.c : more thread interface. made Scm_ThreadJoin take |
| 23089 |
timeout arg. |
| 23090 |
* test/thread.scm : more tests. |
| 23091 |
|
| 23092 |
2002-05-15 Shiro Kawai <[email protected]> |
| 23093 |
|
| 23094 |
* src/mutex.c : fixed mutex-unlock! to handle timeout and condition |
| 23095 |
variable. |
| 23096 |
|
| 23097 |
2002-05-14 Shiro Kawai <[email protected]> |
| 23098 |
|
| 23099 |
* src/mutex.c : fixed mutex-lock! to handle timeout and owner-thread |
| 23100 |
properly. Added condition variable. |
| 23101 |
* ext/mt-random/test.scm : make test work without installing srfi-4 |
| 23102 |
* configure.in, src/gauche/config.h.in : moved check of gettimeofday |
| 23103 |
here |
| 23104 |
* src/gauche.h, src/system.c, src/syslib.stub : added <time> object |
| 23105 |
* lib/gauche/time.scm, lib/srfi-19.scm : removed time.scm |
| 23106 |
|
| 23107 |
2002-05-13 Shiro Kawai <[email protected]> |
| 23108 |
|
| 23109 |
* src/gauche.h, src/mutex.c, etc. : rewriting Scheme-level mutex |
| 23110 |
* test/thread.scm : added basic thread API tests |
| 23111 |
|
| 23112 |
2002-05-12 Shiro Kawai <[email protected]> |
| 23113 |
|
| 23114 |
* ext/mt-random/test.scm : added some tests |
| 23115 |
|
| 23116 |
2002-05-11 Shiro Kawai <[email protected]> |
| 23117 |
|
| 23118 |
* ext/mt-random/* : added mt-random-real0 |
| 23119 |
* src/symbol.c, src/module.c, src/vm.c, etc. : added setter/getter |
| 23120 |
hook to gloc. added define-constant syntax. |
| 23121 |
* src/compile.c : inline constant reference defined by define-constant. |
| 23122 |
|
| 23123 |
2002-05-10 Shiro Kawai <[email protected]> |
| 23124 |
|
| 23125 |
* lib/file/util.scm : added find-file-in-paths and move-file. |
| 23126 |
* ext/mt-random/* : added mt-random-integer with arbitrary range. |
| 23127 |
|
| 23128 |
2002-05-09 Shiro Kawai <[email protected]> |
| 23129 |
|
| 23130 |
* ext/mt-random/* : added math.mt-random. |
| 23131 |
|
| 23132 |
2002-05-08 Shiro Kawai <[email protected]> |
| 23133 |
|
| 23134 |
* lib/file/util.scm : added touch-file and copy-file. |
| 23135 |
* lib/gauche/defvalues.scm : moved define-values here, and added |
| 23136 |
set!-values. |
| 23137 |
* ext/auxsys/auxsyslib.stub : added sys-utime. |
| 23138 |
|
| 23139 |
2002-05-06 Shiro Kawai <[email protected]> |
| 23140 |
|
| 23141 |
* lib/gauche/procedure.scm : added. |
| 23142 |
* src/proc.c : exposed procedure information as slots of <procecure> |
| 23143 |
object. |
| 23144 |
* lib/gauche/object.scm : added default ref and (setter ref) method |
| 23145 |
for slot reference. |
| 23146 |
|
| 23147 |
2002-05-04 Shiro Kawai <[email protected]> |
| 23148 |
|
| 23149 |
* release 0.5.4 |
| 23150 |
* src/gauche.h, src/system.c : rename some tokens to avoid name |
| 23151 |
conflicts to macros in Darwin. |
| 23152 |
* lib/file/util.scm : more procedures. |
| 23153 |
|
| 23154 |
2002-05-02 Shiro Kawai <[email protected]> |
| 23155 |
|
| 23156 |
* src/repl.c : clears VM val0 register after evaluating prompt |
| 23157 |
string; it showed up when (begin) was evaluated at the toplevel |
| 23158 |
and was ugly. |
| 23159 |
* src/gauche-init.scm : added compose |
| 23160 |
* lib/file/util.scm : more procedures. |
| 23161 |
|
| 23162 |
2002-05-01 Shiro Kawai <[email protected]> |
| 23163 |
|
| 23164 |
* src/port.c : fixed a memory-overwriting bug in bufport_read. |
| 23165 |
* lib/file/util.scm : more procedures. |
| 23166 |
|
| 23167 |
2002-04-30 Shiro Kawai <[email protected]> |
| 23168 |
|
| 23169 |
* lib/file/util.scm : added. |
| 23170 |
|
| 23171 |
2002-04-29 Shiro Kawai <[email protected]> |
| 23172 |
|
| 23173 |
* src/extlib.stub : added open-input-fd-port and open-output-fd-port. |
| 23174 |
* src/port.c, src/stdlib.stub, src/extlib.stub : refactored port |
| 23175 |
buffering mode check routine. |
| 23176 |
* ext/termios/* : added pty interface (openpty and forkpty). |
| 23177 |
* src/system.c, ext/extlib.stub : made system object information |
| 23178 |
accessible as slots. |
| 23179 |
|
| 23180 |
2002-04-28 Shiro Kawai <[email protected]> |
| 23181 |
|
| 23182 |
* src/port.c, src/extlib.stub : added buffering mode keyword argument |
| 23183 |
to open-input-port and open-output-port. added Scheme-level API |
| 23184 |
to get/set port buffering mode. |
| 23185 |
* ext/net/* : adapted to the new port buffering mode API. |
| 23186 |
|
| 23187 |
2002-04-27 Shiro Kawai <[email protected]> |
| 23188 |
|
| 23189 |
* lib/gauche/common-macros.scm, src/gauche-init.scm : experimentally |
| 23190 |
added utility macros let1, pa, let_, l_, if_, when_ and while_. |
| 23191 |
See how it's useful. |
| 23192 |
|
| 23193 |
2002-04-26 Shiro Kawai <[email protected]> |
| 23194 |
|
| 23195 |
* src/port.c, src/extlib.stub : getc, getb and getz can now work |
| 23196 |
interchangebly on the same port. |
| 23197 |
|
| 23198 |
2002-04-25 Shiro Kawai <[email protected]> |
| 23199 |
|
| 23200 |
* src/port.c, src/gauche.h, src/extlib.stub, ext/charconv/charconv.c, |
| 23201 |
ext/net/net.c : Changed file port API. |
| 23202 |
* src/stdlib.stub : added port? |
| 23203 |
* src/extlib.stub : added weak-vector-length |
| 23204 |
* lib/gauche/collection.scm, lib/gauche/sequence.scm : added a |
| 23205 |
weak vector to the collection and sequence framework. |
| 23206 |
|
| 23207 |
2002-04-24 Shiro Kawai <[email protected]> |
| 23208 |
|
| 23209 |
* ext/charconv/charconv.c : adapted to the new port API. |
| 23210 |
* src/port.c, src/gauche.h, src/extlib.stub : completely rewritten |
| 23211 |
the file I/O code; now Gauche does its own buffering instead of |
| 23212 |
using FILE*. Implemented proper char-ready?. |
| 23213 |
|
| 23214 |
2002-04-23 Shiro Kawai <[email protected]> |
| 23215 |
|
| 23216 |
* src/weak.c, src/gauche.h, src/class.c, src/extlib.stub : added |
| 23217 |
weak vector which is needed for Gauche's own buffering port |
| 23218 |
implementation. |
| 23219 |
|
| 23220 |
2002-04-21 Shiro Kawai <[email protected]> |
| 23221 |
|
| 23222 |
* src/compile.c : eliminated the "merger" NOP instruction at the |
| 23223 |
tail position; that prevented proper tail recursion in some cases. |
| 23224 |
* src/gauche-init.scm (define-values): added define-values. |
| 23225 |
* lib/www.cgi.scm : checks CONTENT_TYPE and CONTENT_LENGTH. |
| 23226 |
Introduced cgi-metavariables parameter for better customizability. |
| 23227 |
|
| 23228 |
2002-04-19 Shiro Kawai <[email protected]> |
| 23229 |
|
| 23230 |
* lib/gauche/parameter.scm : added. |
| 23231 |
* src/genstub, *.stub : changed the way to handle C preprocessor |
| 23232 |
symbols; instead of read C headers and parse them, genstub just |
| 23233 |
emits cpp directives to the C source and let cpp handle them. |
| 23234 |
Stub files are modified accordingly. |
| 23235 |
* src/gauche.h src/bignum.c, src/string.c, src/regexp.c, src/char.c : |
| 23236 |
Introduced SCM_DEBUG_HELPER cpp symbol to exclude debug-only |
| 23237 |
routines from the release code. |
| 23238 |
|
| 23239 |
2002-04-17 Shiro Kawai <[email protected]> |
| 23240 |
|
| 23241 |
* src/class.c (scheme_slot_index) : damn it! this routine has |
| 23242 |
returned bogus index that causes illegal memory access. It's |
| 23243 |
a wonder that it hasn't revealed until now. This was the reason |
| 23244 |
of the bug described in the entry below. |
| 23245 |
* src/string.c, src/gauche.h: a snapshot of improving dynamic string |
| 23246 |
handling by avoiding realloc. NB: this version contains a nasty |
| 23247 |
memory bug. |
| 23248 |
|
| 23249 |
2002-04-16 Shiro Kawai <[email protected]> |
| 23250 |
|
| 23251 |
* src/main.c : adds "." and "../lib" to the *load-path* if gosh is |
| 23252 |
invoked from the source tree, for the convenience of testing. |
| 23253 |
Checks are performed to see if we're really in the source tree. |
| 23254 |
* Makefile.in, ext/xlink, ext/*/Makefile.in: added make target to |
| 23255 |
create some symlinks for the convenience of development. |
| 23256 |
|
| 23257 |
2002-04-15 Shiro Kawai <[email protected]> |
| 23258 |
|
| 23259 |
* release 0.5.3 |
| 23260 |
* various files : fixes to LP64 architecture. |
| 23261 |
* Makefile.in, lib/Makefile.in : run slib initialization routine after |
| 23262 |
installation to generate slibcat. |
| 23263 |
* Gauche.spec : added post script to generate slibcat. |
| 23264 |
|
| 23265 |
2002-04-14 Shiro Kawai <[email protected]> |
| 23266 |
|
| 23267 |
* src/compile.c (lookup_env): fixed the variable reference algorithm |
| 23268 |
so that it can handle the case when a frame contains more than |
| 23269 |
one variable with the same name, in the case like |
| 23270 |
'(let* ((x 1) (x 2)) ...)'. A bug pointed out by Paul Stodghill. |
| 23271 |
* src/bignum.c : further optimization. |
| 23272 |
|
| 23273 |
2002-04-13 Shiro Kawai <[email protected]> |
| 23274 |
|
| 23275 |
* src/number.c (double_print): switched back to the MP version |
| 23276 |
of Burger&Dybvig, for it was difficult to get the consistent |
| 23277 |
result by flonum version on multiple platforms. |
| 23278 |
* src/bignum.c : fixed a bug in bignum_gdiv that missed a carry |
| 23279 |
in some occasion. |
| 23280 |
|
| 23281 |
2002-04-12 Shiro Kawai <[email protected]> |
| 23282 |
|
| 23283 |
* configure.in, src/gauche/config.h.in : added a test for alloca(). |
| 23284 |
* src/bignum.c, src/number.c : adding denormalized bignum APIs. |
| 23285 |
* src/number.c : changed Scm_MinMax interface. canonicalize |
| 23286 |
complex return (imag==0.0 coerced to flonum). |
| 23287 |
* src/extlib.stub : added min&max. |
| 23288 |
|
| 23289 |
2002-04-10 Shiro Kawai <[email protected]> |
| 23290 |
|
| 23291 |
* src/number.c : number reader/writer passes r4rstest. |
| 23292 |
|
| 23293 |
2002-04-08 Shiro Kawai <[email protected]> |
| 23294 |
|
| 23295 |
* src/write.c: fixed a bug that produced bogus output for |
| 23296 |
(write* '#()). Thanks for HAbe to point this out. |
| 23297 |
|
| 23298 |
2002-04-07 Shiro Kawai <[email protected]> |
| 23299 |
|
| 23300 |
* src/number.c : modified Burger&Dybvig algorithm to use floating- |
| 23301 |
point arithmetic instead of multiple-precision integer arithmetic. |
| 23302 |
The routine doesn't work for very small numbers yet. |
| 23303 |
|
| 23304 |
2002-04-05 Shiro Kawai <[email protected]> |
| 23305 |
|
| 23306 |
* src/number.c : naively implemented Burger&Dybvig printing algorithm. |
| 23307 |
This is just an experiment to see how it works. |
| 23308 |
|
| 23309 |
2002-04-04 Shiro Kawai <[email protected]> |
| 23310 |
|
| 23311 |
* src/number.c : fixed read_real to avoid underflow of reading |
| 23312 |
very small numbers. still needs to work on denormalized flonum |
| 23313 |
case. |
| 23314 |
* src/number.c, src/bignum.c, src/extlib.stub : added floating |
| 23315 |
number decode routine. |
| 23316 |
|
| 23317 |
2002-04-03 Shiro Kawai <[email protected]> |
| 23318 |
|
| 23319 |
* src/number.c : improved integer reader to do bignum calculation |
| 23320 |
with chunk of digits, instead of every digits. |
| 23321 |
* src/number.c, src/stdlib.stub : integrated Scm_Min and Scm_Max. |
| 23322 |
|
| 23323 |
2002-04-02 Shiro Kawai <[email protected]> |
| 23324 |
|
| 23325 |
* src/number.c, src/read.c : rewrote number reader to handle |
| 23326 |
properly exactness, rational representation, and "#e#x" etc. |
| 23327 |
* lib/gauche/numerical.scm, src/gauche-init.scm, src/stlib.stub : |
| 23328 |
changed 'make-polar' to a subr from a Scheme-defined function, |
| 23329 |
since the result of make-polar didn't exactly match the |
| 23330 |
result of polar representation (<real>@<real>) on x86, because of |
| 23331 |
the Intel's 80-bit floating-point arithmetic, and which was |
| 23332 |
confusing. |
| 23333 |
|
| 23334 |
2002-04-01 Shiro Kawai <[email protected]> |
| 23335 |
|
| 23336 |
* configure.in : search slib from /usr/share/slib first, for |
| 23337 |
it appears to be the default location of slib installation. |
| 23338 |
* lib/slib.scm.in : incorporated the changes of the slib2d3's |
| 23339 |
Template.scm |
| 23340 |
|
| 23341 |
2002-03-30 Shiro Kawai <[email protected]> |
| 23342 |
|
| 23343 |
* src/gauche-init.scm, lib/slib.scm.in : fixed a problem with |
| 23344 |
slib2d3 which was caused because cond-expand in slib's |
| 23345 |
require.scm expanded to a form that referred slib's require |
| 23346 |
instead of gauche's. |
| 23347 |
|
| 23348 |
2002-03-27 Shiro Kawai <[email protected]> |
| 23349 |
|
| 23350 |
* src/vm.c, src/vm.h : adding more thread support. |
| 23351 |
* src/mutex.c : added. |
| 23352 |
* configure.in, Makefile.in, gc/Makefile.in : compile GC with |
| 23353 |
pthred support when requested. It was the cause of hang |
| 23354 |
problem found in 3/13. |
| 23355 |
|
| 23356 |
2002-03-13 Shiro Kawai <[email protected]> |
| 23357 |
|
| 23358 |
* src/vm.c, src/vm.h : added initial code for make-thread and |
| 23359 |
thread-start!. There's a problem that main thread hangs at |
| 23360 |
sigsuspend in exit(). |
| 23361 |
|
| 23362 |
2002-03-12 Shiro Kawai <[email protected]> |
| 23363 |
|
| 23364 |
* configure.in, src/gauche/config.h.in : added --with-pthread. |
| 23365 |
* src/vm.c, src/vm.h : adding pthread support. |
| 23366 |
|
| 23367 |
2002-03-10 Shiro Kawai <[email protected]> |
| 23368 |
|
| 23369 |
* aclocal.m4 (AC_GAUCHE_INIT_EXT) : substitute GAUCHE_VERSION as well. |
| 23370 |
* src/gauche-init.scm : added print. |
| 23371 |
* Gauche.spec : ensure the build install destination is clean. |
| 23372 |
|
| 23373 |
2002-03-09 Shiro Kawai <[email protected]> |
| 23374 |
|
| 23375 |
* lib/srfi-19.scm, lib/srfi-19/* : added srfi-19 support (not |
| 23376 |
finished yet). |
| 23377 |
* lib/gauche/common-macros.scm : added update! (experimentally). |
| 23378 |
|
| 23379 |
2002-03-08 Shiro Kawai <[email protected]> |
| 23380 |
|
| 23381 |
* src/number.c (read_integer): allow ratinal number syntax (when read, |
| 23382 |
it is converted to real number). Still it doesn't accept |
| 23383 |
complex number with rational coefficients. |
| 23384 |
|
| 23385 |
2002-03-07 Shiro Kawai <[email protected]> |
| 23386 |
|
| 23387 |
* release 0.5.2 |
| 23388 |
* Gauche.spec : added. |
| 23389 |
* src/Makefile.in, src/gauche-config.in : changed the installaion |
| 23390 |
directory of header files from share to lib --- header files contain |
| 23391 |
configured information that may be architecture specific. |
| 23392 |
* aclocal.m4: further workaround for cygwin. |
| 23393 |
"rm -f foo; echo ... > foo" still sometimes failed, so removed rm. |
| 23394 |
|
| 23395 |
2002-03-06 Shiro Kawai <[email protected]> |
| 23396 |
|
| 23397 |
* ext/auxsyslib.stub : removed sys-setpgrp, for the function |
| 23398 |
prototype differs among platforms. it is redundant anyways. |
| 23399 |
* Makefile.in, doc/Makefile.in : makes realclean really clean. |
| 23400 |
* doc/gosh.1.in, doc/gauche-config.1.in : added manpages. |
| 23401 |
|
| 23402 |
2002-03-05 Shiro Kawai <[email protected]> |
| 23403 |
|
| 23404 |
* src/extlib.stub, src/gauche/predef-syms.h : changed macro-expand |
| 23405 |
-> macroexpand etc. |
| 23406 |
* ext/auxsys: added sys-gettimeofday. moved sys-ctermid here. |
| 23407 |
* lib/gauche/time.scm : added <time> class, commonly used by |
| 23408 |
SRFI-18 and SRFI-19. |
| 23409 |
|
| 23410 |
2002-03-03 Shiro Kawai <[email protected]> |
| 23411 |
|
| 23412 |
* ext/auxsys: added wrappters for functions that are not POSIx. |
| 23413 |
* src/gauche-init.scm : added autoload for auxsys functions |
| 23414 |
* src/gauche.h, src/gauche/pthread.h, src/gauche/uthread.h : |
| 23415 |
start adding thread-related structures. |
| 23416 |
|
| 23417 |
2002-03-01 Shiro Kawai <[email protected]> |
| 23418 |
|
| 23419 |
* lib/text/html-lite.scm (make-html-element): fixed a bug that escapes |
| 23420 |
backslash in parameters illegaly. |
| 23421 |
|
| 23422 |
2002-02-25 Shiro Kawai <[email protected]> |
| 23423 |
|
| 23424 |
* src/compile.c (compile_define): added define-in-module syntax. |
| 23425 |
* src/gauche-init.scm, lib/gauche/with.scm, lib/gauche/numerical.scm : |
| 23426 |
adapted to define-in-module. |
| 23427 |
* lib/gauche/with.scm : fixed semantics of closing file ports. |
| 23428 |
* lib/port/stk.scm: added posix-* compatibility functions. |
| 23429 |
|
| 23430 |
2002-02-22 Shiro Kawai <[email protected]> |
| 23431 |
|
| 23432 |
* src/compile.c : it turned out select-module has to be visible |
| 23433 |
from the scheme module for autoload to work. |
| 23434 |
* lib/Makefile.in : fixed installation of file/filter.scm and |
| 23435 |
gauche/interpolate.scm. |
| 23436 |
|
| 23437 |
2002-02-21 Shiro Kawai <[email protected]> |
| 23438 |
|
| 23439 |
* lib/file/filter.scm : added. |
| 23440 |
* src/syslib.stub : fixed sys-mkstemp that wasn't working. |
| 23441 |
|
| 23442 |
2002-02-20 Shiro Kawai <[email protected]> |
| 23443 |
|
| 23444 |
* ext/auxsys/*, src/syslib.stub : added auxiliary system function |
| 23445 |
extension. sys-putenv, sys-uname and sys-times are moved from |
| 23446 |
gosh body to auxsys.so. |
| 23447 |
|
| 23448 |
2002-02-18 Shiro Kawai <[email protected]> |
| 23449 |
|
| 23450 |
* lib/gauche/interpolate.scm : fixed the interpolation syntax. |
| 23451 |
* src/ldwrap.sh.in : fix for cygwin (remove -lsomething from command |
| 23452 |
line for dlltool). |
| 23453 |
* src/macro.c, src/extlib.stub : added procedure version of |
| 23454 |
macro-expand and macro-expand-1. |
| 23455 |
|
| 23456 |
2002-02-17 Shiro Kawai <[email protected]> |
| 23457 |
|
| 23458 |
* src/macro.c (compile_macro_expand) : bug fix for expanding |
| 23459 |
traditional macros. |
| 23460 |
* src/read.c, lib/gauche/interpolate.scm : added special syntax |
| 23461 |
#`"..." for string interpolation. |
| 23462 |
* src/extlib.stub : added read-list. |
| 23463 |
|
| 23464 |
2002-02-16 Shiro Kawai <[email protected]> |
| 23465 |
|
| 23466 |
* gc/dyn_load.c, src/core.c : fix required to link dyn_load.o |
| 23467 |
on MacOS X. |
| 23468 |
* src/syslib.stub : use stat(2) for sys-access on MacOS X as well. |
| 23469 |
|
| 23470 |
2002-02-15 Shiro Kawai <[email protected]> |
| 23471 |
|
| 23472 |
* aclocal.m4 : the rule to generate *_head.c and *_tail.c in |
| 23473 |
configure sometimes fails on cygwin, where the timing of |
| 23474 |
"rm" and following "echo" seems to create a race condition. |
| 23475 |
Fixed to guarantee "rm" is executed before "echo". |
| 23476 |
|
| 23477 |
2002-02-14 Shiro Kawai <[email protected]> |
| 23478 |
|
| 23479 |
* release 0.5.1 |
| 23480 |
|
| 23481 |
2002-02-13 Shiro Kawai <[email protected]> |
| 23482 |
|
| 23483 |
* src/gauche-init.scm : fixed the definition of use to accept |
| 23484 |
identifier; needed to make cond-expand work. |
| 23485 |
* lib/srfi-0.scm : added SRFI-22 to the feature set, and fixed |
| 23486 |
a bug that prevents cond-expand from working. |
| 23487 |
* src/main.c : INCOMPATIBLE CHANGE - fix the convention to pass |
| 23488 |
the list of arguments to 'main' according to the final SRFI-22. |
| 23489 |
Now the argument list includes the script name itself. For |
| 23490 |
backward compatibility, -fcompat-0.5 command-line option is |
| 23491 |
added. |
| 23492 |
* src/genstub : adapted to the change of main.c |
| 23493 |
* lib/gauche/test.scm (test-end) : reports descrepancies in the |
| 23494 |
order of tests (instead of reverse order). |
| 23495 |
* lib/gauche/version.scm : added. |
| 23496 |
|
| 23497 |
2002-02-12 Shiro Kawai <[email protected]> |
| 23498 |
|
| 23499 |
* ext/net/test.scm : allow sys-stat->file-type to return 'fifo |
| 23500 |
instead of 'socket, for some OSes doesn't distinguish them. |
| 23501 |
* src/read.c : change debug-print shorthand syntax from #? to #?= |
| 23502 |
* src/vm.c (arrange_application), src/gauche/vminsn.h : fix a bug |
| 23503 |
that confused Scm_VMApply when VM instruction is given to arguments. |
| 23504 |
(patch from Abe Hiroshi). |
| 23505 |
* src/load.c : patch to compile on FreeBSD 2.x (from Abe Hiroshi) |
| 23506 |
* src/gauche/portmacros.h (SCM__ISTR_GETB): fixed a bug that returned |
| 23507 |
EOF on some platforms when read-byte reads char > 0x80. |
| 23508 |
(patch from Abe Hiroshi). |
| 23509 |
* gc/dyn_load.c : the previous fix isn't enough for the platforms |
| 23510 |
such as FreeBSD 2.x. |
| 23511 |
|
| 23512 |
2002-02-11 Shiro Kawai <[email protected]> |
| 23513 |
|
| 23514 |
* src/number.c (Scm_InexactToExact): fixed the case when an inexact |
| 23515 |
number is passed. |
| 23516 |
* src/main.c (main): if the script file name is given in relative |
| 23517 |
path, search it from the current directory even "." is not in the |
| 23518 |
load path. |
| 23519 |
* configure.in : recovered GOSH_USE_SHLIB substitution that was |
| 23520 |
accidentally dropped. |
| 23521 |
* lib/rfc/cookie.scm : avoid using %T in strftime, for it's not POSIX. |
| 23522 |
|
| 23523 |
2002-02-10 Shiro Kawai <[email protected]> |
| 23524 |
|
| 23525 |
* aclocal.m4 (AC_GAUCHE_EXT_FIXUP): allow optional second arg. |
| 23526 |
* Makefile.in, src/gauche-config.in : install aclocal.m4. |
| 23527 |
* src/read.c : fixed a bug in the character reader so that it |
| 23528 |
recognizes character name in case-insensitive way. |
| 23529 |
* src/syslib.stub : for freebsd, sys-access uses stat(2) instead |
| 23530 |
of somewhat unreliable access(2). |
| 23531 |
* src/gauche-config.h : autoloads srfi-0 (cond-expand). |
| 23532 |
* ext/net/configure.in, ext/net/netconfig.h.in, ext/net/net.h : |
| 23533 |
includes rpc/types.h if the system has it. (Suggested by |
| 23534 |
Abe Hiroshi). |
| 23535 |
* src/number.c, src/bignum.c, ext/uvector/uvectorP.h : applied |
| 23536 |
patch from Abe Hiroshi to make it work on HP_UX. |
| 23537 |
|
| 23538 |
2002-02-09 Shiro Kawai <[email protected]> |
| 23539 |
|
| 23540 |
* ext/*/configure.in : modified to use aclocal.m4 |
| 23541 |
* aclocal.m4, gc/dyn_load.c, src/gauche/extend.c: for the platforms |
| 23542 |
that GC doesn't support dlopened object, added the way of explicit |
| 23543 |
registration of the data section. (Thanks for this idea from |
| 23544 |
Abe Hiroshi). |
| 23545 |
|
| 23546 |
2002-02-08 Shiro Kawai <[email protected]> |
| 23547 |
|
| 23548 |
* src/genstub, src/class.c : fixed to compile extensions under cygwin. |
| 23549 |
* aclocal.m4 : added |
| 23550 |
|
| 23551 |
2002-02-07 Shiro Kawai <[email protected]> |
| 23552 |
|
| 23553 |
* various files: snapshot of further modification for cygwin. |
| 23554 |
the core part is working. works on other platforms. |
| 23555 |
need more work for extensions. |
| 23556 |
|
| 23557 |
2002-02-06 Shiro Kawai <[email protected]> |
| 23558 |
|
| 23559 |
* various files: snapshot of further modification for cygwin. |
| 23560 |
not finished yet. this check-in doesn't work for other |
| 23561 |
platforms, since gosh fails to load libgauche.so. |
| 23562 |
|
| 23563 |
2002-02-02 Shiro Kawai <[email protected]> |
| 23564 |
|
| 23565 |
* various files: added support for cygwin (not finished yet). |
| 23566 |
gosh is now built using libgauche.so, instead of statically |
| 23567 |
linking libgauche.a. The link is done in a shell script |
| 23568 |
src/ldwrap.sh. |
| 23569 |
|
| 23570 |
2002-01-30 Shiro Kawai <[email protected]> |
| 23571 |
|
| 23572 |
* release 0.5 |
| 23573 |
|
| 23574 |
2002-01-29 Shiro Kawai <[email protected]> |
| 23575 |
|
| 23576 |
* src/core.c : unwind dynamic handlers upon exit(). this is a |
| 23577 |
temporary solution and has to be rewritten for MT support. |
| 23578 |
|
| 23579 |
2002-01-28 Shiro Kawai <[email protected]> |
| 23580 |
|
| 23581 |
* src/read.c : added support for back-reference reader syntax |
| 23582 |
(#digit= and #digit#). It doesn't work well yet for recursive |
| 23583 |
structures. |
| 23584 |
|
| 23585 |
2002-01-24 Shiro Kawai <[email protected]> |
| 23586 |
|
| 23587 |
* configure.in, gc/include/private/gc_priv.h : applied patch from |
| 23588 |
ABE Hiroshi to fix configuration under FreeBSD 2.x and HP-UX. |
| 23589 |
* src/signal.c, src/syslib.stub : fix signal masking (temporary). |
| 23590 |
added sys-signal-name. |
| 23591 |
|
| 23592 |
2002-01-23 Shiro Kawai <[email protected]> |
| 23593 |
|
| 23594 |
* configure.in, src/gauche-config.in : experimentally added |
| 23595 |
--reconfigure option to gauche-config script. |
| 23596 |
* src/syslib.stub : added sys-alarm |
| 23597 |
* src/*.c : added checks for interrupted system calls. |
| 23598 |
|
| 23599 |
2002-01-22 Shiro Kawai <[email protected]> |
| 23600 |
|
| 23601 |
* src/signal.c : added default signal handler, and make signal queue |
| 23602 |
calling routine work |
| 23603 |
* lib/gauche/signal.scm : added with-signal-handlers. |
| 23604 |
|
| 23605 |
2002-01-21 Shiro Kawai <[email protected]> |
| 23606 |
|
| 23607 |
* src/vm.c, src/regexp.c, src/gauche/vm.h : use sig{set|long}jmp |
| 23608 |
instead of {set|long}jmp. |
| 23609 |
* src/signal.c : added master signal handling mechanism. |
| 23610 |
|
| 23611 |
2002-01-20 Shiro Kawai <[email protected]> |
| 23612 |
|
| 23613 |
* src/stdlib.stub : fix a bug in the code generator of |
| 23614 |
immediate_integer_inliner (thanks for Nobuo YAMASHITA to |
| 23615 |
point this out). |
| 23616 |
|
| 23617 |
2002-01-15 Shiro Kawai <[email protected]> |
| 23618 |
|
| 23619 |
* src/signal.c : added sys-sigset class. |
| 23620 |
|
| 23621 |
2002-01-14 Shiro Kawai <[email protected]> |
| 23622 |
|
| 23623 |
* src/load.c : make Scm_Load() return a boolean value as |
| 23624 |
Scheme's load. |
| 23625 |
|
| 23626 |
2002-01-13 Shiro Kawai <[email protected]> |
| 23627 |
|
| 23628 |
* src/load.c, src/extlib.stub : added paths keyword arg to load. |
| 23629 |
fix load_next feature. |
| 23630 |
* lib/gauche/with.scm : fixed a bug in call-with-*-file and |
| 23631 |
with-*-file when used with :if-does-not-exist #f. |
| 23632 |
|
| 23633 |
2002-01-11 Shiro Kawai <[email protected]> |
| 23634 |
|
| 23635 |
* src/number.c (Scm_Sign): fixed to conform its comment (thanks for |
| 23636 |
Iwao KIMURA). |
| 23637 |
* src/gauche-config.in : -l option includes -lgauche (thanks for |
| 23638 |
Iwao KIMURA). |
| 23639 |
* ext/charconv/charconv.scm : experimentally overloaded open-*-file |
| 23640 |
functions to accept :encoding keyword argument. |
| 23641 |
* src/write.c, src/symbol.c : support writer in case-sensitive mode |
| 23642 |
* src/Makefile.in, test/symcase.scm : added tests for |
| 23643 |
case (in)sensitive mode |
| 23644 |
|
| 23645 |
2002-01-10 Shiro Kawai <[email protected]> |
| 23646 |
|
| 23647 |
* src/read.c : implemented case-sensitive reader. |
| 23648 |
* src/main.c : added -fcase-fold flag to turn on the case-insensitive |
| 23649 |
(R5RS-comformant) reader. The default is case-sensitive. |
| 23650 |
|
| 23651 |
2002-01-09 Shiro Kawai <[email protected]> |
| 23652 |
|
| 23653 |
* src/Makefile.in : fixed install action on creating |
| 23654 |
{BIN|LIB}_INSTALL_DIR when they don't exist (Thanks for Mr. Ogawa |
| 23655 |
to point this out). |
| 23656 |
|
| 23657 |
|
| 23658 |
2002-01-07 Shiro Kawai <[email protected]> |
| 23659 |
|
| 23660 |
* release 0.4.12 |
| 23661 |
* ext/charconv/* : made the name of iconv.h header file configurable |
| 23662 |
as well as the library name through --with-iconv-lib |
| 23663 |
configuration option. |
| 23664 |
charconv.h is now generated from charconv.h.in. |
| 23665 |
* src/main.c : display internal encoding name for gosh -V |
| 23666 |
* INSTALL.esc : added notes on FreeBSD iconv problem. |
| 23667 |
|
| 23668 |
2002-01-06 Shiro Kawai <[email protected]> |
| 23669 |
|
| 23670 |
* src/vm.c, src/repl.c : fixed the bug of VM stack rewinding problem. |
| 23671 |
* src/extlib.stub : added port-type |
| 23672 |
* lib/srfi-0.scm : added module stuff |
| 23673 |
|
| 23674 |
2002-01-05 Shiro Kawai <[email protected]> |
| 23675 |
|
| 23676 |
* src/macro.c : fixed the traditional macro transformer spec. |
| 23677 |
In the form like (define-macro foo (lambda args ...)), args was |
| 23678 |
bound to the entire form (including foo) but it was |
| 23679 |
inconsisntent with tranditional Scheme implementation and also |
| 23680 |
with (define-macro (foo . args) ...) form. Now args receives |
| 23681 |
the arguments of foo, as expected. |
| 23682 |
|
| 23683 |
2002-01-04 Shiro Kawai <[email protected]> |
| 23684 |
|
| 23685 |
* src/read.c : made Scm_ReadError public. improve the error message |
| 23686 |
of "EOF inside list" error. |
| 23687 |
* lib/gauche/vm/debugger.scm : avoid error on the form that doesn't |
| 23688 |
have source-info. |
| 23689 |
|
| 23690 |
2002-01-03 Shiro Kawai <[email protected]> |
| 23691 |
|
| 23692 |
* src/signal.c : added. |
| 23693 |
|
| 23694 |
2002-01-02 Shiro Kawai <[email protected]> |
| 23695 |
|
| 23696 |
* src/gauche/class.h, src/class.c, src/error.c, src/system.c : |
| 23697 |
defined SCM_ALLOCATE macro for cliche in the *_allocate methods. |
| 23698 |
* ext/charconv/configure.in : fixed a bug that didn't find iconv.h |
| 23699 |
even --with-iconv is given. |
| 23700 |
* test/TESTS, src/Makefile.in : list tests in a separate file. |
| 23701 |
|
| 23702 |
2002-01-01 Shiro Kawai <[email protected]> |
| 23703 |
|
| 23704 |
* src/error.c : added some error classes. |
| 23705 |
|
| 23706 |
2001-12-22 Shiro Kawai <[email protected]> |
| 23707 |
|
| 23708 |
* src/compile.c, src/macro.c : intern syntactic bindings to the |
| 23709 |
appropriate modules (either null or gauche). |
| 23710 |
* src/vm.c : added code to honor the second argument of eval |
| 23711 |
* src/extlib.stub : fix a bug that null-environment didn't take |
| 23712 |
version argument. |
| 23713 |
* src/gauche/char_sjis.h : fixed broken Shift-JIS support. |
| 23714 |
* src/gauche/char_utf_8.h : fixed a bug. |
| 23715 |
* src/string.c : fixed count_length that works incorrectly on |
| 23716 |
the encodings other than EUC-JP. |
| 23717 |
* ext/charconv : fixed bugs that appears in the encodings |
| 23718 |
other than EUC-JP. |
| 23719 |
|
| 23720 |
2001-12-21 Shiro Kawai <[email protected]> |
| 23721 |
|
| 23722 |
* src/repl.c : quick bug fix for the problem of VM stack rewinding |
| 23723 |
on error. |
| 23724 |
* INSTALL.esc : added note for ISO8859 encoding users |
| 23725 |
|
| 23726 |
2001-12-20 Shiro Kawai <[email protected]> |
| 23727 |
|
| 23728 |
* release 0.4.11 |
| 23729 |
* src/vm.c : make the default exception handler not capture |
| 23730 |
non-fatal exception when user-defined exception handler is |
| 23731 |
active. Tests are added accordingly. |
| 23732 |
* gc/dyn_load.c, gc/include/private/gcconfig.h : enabled |
| 23733 |
DYNAMIC_LOADING for FREEBSD. I'm not sure it is the right |
| 23734 |
thing and work on all cases, though. |
| 23735 |
|
| 23736 |
2001-12-19 Shiro Kawai <[email protected]> |
| 23737 |
|
| 23738 |
* src/vm.c : dynamic-wind properly returns multiple values. |
| 23739 |
Fixed bad continuation frame handling in user_eval_inner and |
| 23740 |
Scm_VMDefaultErrorHandler. Fixed bad order of thunk to be |
| 23741 |
called in the nested dynamic wind. |
| 23742 |
|
| 23743 |
2001-12-18 Shiro Kawai <[email protected]> |
| 23744 |
|
| 23745 |
* src/vm.c : reorganized exception handling scheme. merged SRFI-18 |
| 23746 |
compatible with-exception-handler. |
| 23747 |
|
| 23748 |
2001-12-15 Shiro Kawai <[email protected]> |
| 23749 |
|
| 23750 |
* src/read.c : added convenience function Scm_ReadFromString and |
| 23751 |
Scm_ReadFromCString. |
| 23752 |
* src/main.c : added command line options -l (load) and -e (eval). |
| 23753 |
|
| 23754 |
2001-12-14 Shiro Kawai <[email protected]> |
| 23755 |
|
| 23756 |
* src/vm.c : improved default stack trace display to include source |
| 23757 |
file info. |
| 23758 |
* src/load.c, src/gauche-init.scm, src/extlib.stub : made autoloading |
| 23759 |
modules work. |
| 23760 |
* lib/gauche/vm/debugger.scm : added further features. |
| 23761 |
|
| 23762 |
2001-12-13 Shiro Kawai <[email protected]> |
| 23763 |
|
| 23764 |
* src/write.c : added maxcol parameter to ~A and ~S format directive |
| 23765 |
to limit the length of formatted string |
| 23766 |
* src/Makefile.in : ensure the binary installation directory |
| 23767 |
(pointed out by Bengt Kleberg). |
| 23768 |
|
| 23769 |
2001-12-09 Shiro Kawai <[email protected]> |
| 23770 |
|
| 23771 |
* src/extlib.stub: added GC interface, gc and gc-stat (experimentally) |
| 23772 |
* src/vm.c, src/load.c : made loading program info (*load-history* |
| 23773 |
etc.) VM-local. |
| 23774 |
|
| 23775 |
2001-12-08 Shiro Kawai <[email protected]> |
| 23776 |
|
| 23777 |
* src/read.c, src/gauche.h : added the read context to the internal |
| 23778 |
reader, although it doesn't do anything now. |
| 23779 |
|
| 23780 |
2001-12-07 Shiro Kawai <[email protected]> |
| 23781 |
|
| 23782 |
* src/main.c : removed -fin-place option, for its usage is very |
| 23783 |
limited. |
| 23784 |
|
| 23785 |
2001-12-06 Shiro Kawai <[email protected]> |
| 23786 |
|
| 23787 |
* src/macro.c : enable autoloading macros. define-macro can now |
| 23788 |
take either transformer or autoload object. fixed define-macro |
| 23789 |
to check valid transformer. |
| 23790 |
* src/gauche-init.scm : made common-macros.scm be autoloaded. |
| 23791 |
* src/load.c, src/main.c, src/gauche/vm.h : added LOAD_VERBOSE flag. |
| 23792 |
* src/main.c, various Makefile.in's : INCOMPATIBLE CHANGE: excluded |
| 23793 |
the current directory from the load-path by default. changed |
| 23794 |
test target of Makefiles to include the current dir explicitly. |
| 23795 |
|
| 23796 |
2001-12-04 Shiro Kawai <[email protected]> |
| 23797 |
|
| 23798 |
* src/macro.c : fixed a bug that didn't expand a template (x ... . y) |
| 23799 |
when x ... is empty. |
| 23800 |
|
| 23801 |
2001-12-02 Shiro Kawai <[email protected]> |
| 23802 |
|
| 23803 |
* release 0.4.10 |
| 23804 |
|
| 23805 |
2001-12-01 Shiro Kawai <[email protected]> |
| 23806 |
|
| 23807 |
* lib/gauche/common-macros.scm (dotimes): fixed a bug that sneaked |
| 23808 |
in by the last change. |
| 23809 |
* src/class.c, lib/gauche/object.scm : cleaned up the SlotAccessor |
| 23810 |
initialization code. Added initializable flag to SlotAccessor |
| 23811 |
to indicate whether :init-value/:init-keyword should be honored |
| 23812 |
or not; this allows procedural slot to be initialized. |
| 23813 |
* src/gauche/sequence.scm : finalizing API of sequence framework. |
| 23814 |
* src/module.c (Scm_ImportModules): fixed the order of imported |
| 23815 |
modules. The last imported module should be searched first. |
| 23816 |
* ext/uvector/srfi-4.scm : added collection and sequence API. |
| 23817 |
|
| 23818 |
2001-11-30 Shiro Kawai <[email protected]> |
| 23819 |
|
| 23820 |
* src/class.c : Correctly initialize implicit metaclass hierarchy |
| 23821 |
when the builtin class has hierarchy. |
| 23822 |
* lib/gauche/common-macros.scm : added while and until experimentally |
| 23823 |
to see how usable they are. |
| 23824 |
* lib/gauche/collection.scm : finalizing API of collection framework. |
| 23825 |
|
| 23826 |
2001-11-28 Shiro Kawai <[email protected]> |
| 23827 |
|
| 23828 |
* src/list.c (Scm_ListRef) : fixed a bug that caused SEGV. |
| 23829 |
* src/class.c : experimentally added a feature that inserts |
| 23830 |
implicit metaclass for builtin classes, which allows to define |
| 23831 |
``class-method''. |
| 23832 |
* src/moplib.stub : fixed a bug in is-a? that rejects a descendant |
| 23833 |
of <class> in the second argument. |
| 23834 |
|
| 23835 |
2001-11-23 Shiro Kawai <[email protected]> |
| 23836 |
|
| 23837 |
* lib/srfi-1.scm : fixed a bug in alist-delete! |
| 23838 |
|
| 23839 |
2001-11-22 Shiro Kawai <[email protected]> |
| 23840 |
|
| 23841 |
* lib/gauche/object.scm : added a customizable method |
| 23842 |
compute-slot-accessor |
| 23843 |
* lib/gauche/validator.scm : added |
| 23844 |
|
| 23845 |
2001-11-21 Shiro Kawai <[email protected]> |
| 23846 |
|
| 23847 |
* lib/www/cgi.scm : fixed a bug in the default error method of |
| 23848 |
cgi-main that used old interface of text.html-lite. |
| 23849 |
|
| 23850 |
2001-11-20 Shiro Kawai <[email protected]> |
| 23851 |
|
| 23852 |
* lib/port/jfilter.scm : fixed a bug in cv-file. |
| 23853 |
* lib/gauche/object.scm : changed the protocol of compute-get-n-set |
| 23854 |
so that it returns a _list_ of getter and setter procedure (as |
| 23855 |
opposed to a cons). The new behavior is compatible to STklos. |
| 23856 |
|
| 23857 |
2001-11-19 Shiro Kawai <[email protected]> |
| 23858 |
|
| 23859 |
* src/write.c : write 'a instead of (quote a), etc. |
| 23860 |
* lib/text/tree.scm : handles dotted list as well. |
| 23861 |
* ext/charconv.c : fixed a bug that didn't allow to open an empty |
| 23862 |
port for automatic conversion. |
| 23863 |
|
| 23864 |
2001-11-18 Shiro Kawai <[email protected]> |
| 23865 |
|
| 23866 |
* src/hash.c : fixed a bug in MakeHashTable that sets incorrect type |
| 23867 |
for eqv? hash. removed smallint_hash stuff, for eqv?-hash covers it. |
| 23868 |
* src/extlib.stub: added hash-table-type |
| 23869 |
|
| 23870 |
2001-11-16 Shiro Kawai <[email protected]> |
| 23871 |
|
| 23872 |
* ext/dbm/bsddb.[ch] : added (not quite finished). |
| 23873 |
|
| 23874 |
2001-11-15 Shiro Kawai <[email protected]> |
| 23875 |
|
| 23876 |
* lib/gauche/logical.scm : made bit-field and copy-bit-field |
| 23877 |
work even if start >= end. |
| 23878 |
* src/extlib.stub : added hash-table-delete! |
| 23879 |
* src/main.c : fixed typo (thanks for Sven Hartrumpf). |
| 23880 |
|
| 23881 |
2001-11-14 Shiro Kawai <[email protected]> |
| 23882 |
|
| 23883 |
* release 0.4.9 |
| 23884 |
* src/syslib.stub (sys-symlink) : typo fix |
| 23885 |
* lib/gauche/logical.scm, src/gauche-init.scm : added a bunch of |
| 23886 |
bitwise operations. |
| 23887 |
|
| 23888 |
2001-11-13 Shiro Kawai <[email protected]> |
| 23889 |
|
| 23890 |
* configure.in : fixed the support of --with-local. added support |
| 23891 |
for Darwin1.3 and later. |
| 23892 |
* lib/gauche/object.scm : allow '(setter foo)' style method definition |
| 23893 |
* src/extlib.stub, src/gauche-init.scm : moved hash table mappers |
| 23894 |
to the Scheme code. |
| 23895 |
|
| 23896 |
2001-11-12 Shiro Kawai <[email protected]> |
| 23897 |
|
| 23898 |
* ext/dbm/configure.in : more robust support on the systems that |
| 23899 |
has both gdbm and ndbm. |
| 23900 |
|
| 23901 |
2001-11-11 Shiro Kawai <[email protected]> |
| 23902 |
|
| 23903 |
* lib/www/cgi.scm : fixed more bugs. |
| 23904 |
* lib/text/html-lite.stm : changed tag procedure names from |
| 23905 |
html-<element> to html:<element> |
| 23906 |
* src/port.c : read-line recognizes various line terminators |
| 23907 |
(\r, \n, and \r\n) |
| 23908 |
|
| 23909 |
2001-11-10 Shiro Kawai <[email protected]> |
| 23910 |
|
| 23911 |
* ext/dbm/dbm.scm : introduced <dbm-meta>, metaclass for all <dbm> |
| 23912 |
instances. |
| 23913 |
* lib/www/cgi.scm : fixed a bug in cgi-parse-parameters that returned |
| 23914 |
a redundant result for a null query string. added cgi-main. |
| 23915 |
|
| 23916 |
2001-11-09 Shiro Kawai <[email protected]> |
| 23917 |
|
| 23918 |
* src/regexp.c : fixed a bug that estimated the bytecode size |
| 23919 |
incorrectly for the patterns like #/(x|y)+/. |
| 23920 |
* lib/www/cgi.scm : added cgi-header |
| 23921 |
* lib/text/html-lite.scm : changed passing convention of the |
| 23922 |
parameters. added html-doctype. |
| 23923 |
|
| 23924 |
2001-11-08 Shiro Kawai <[email protected]> |
| 23925 |
|
| 23926 |
* lib/text/html-lite.scm : experimentally added. |
| 23927 |
* configure.in : added --with-local flag to allow to use site-local |
| 23928 |
libraries throught the compilation process. |
| 23929 |
* src/extlib.stub : added hash-table-push! and hash-table-pop! |
| 23930 |
|
| 23931 |
2001-11-07 Shiro Kawai <[email protected]> |
| 23932 |
|
| 23933 |
* lib/slib.scm.in : fixed a bug that made building a new catalog |
| 23934 |
fail. Thanks to Hiroshi INAMURA for the patch. |
| 23935 |
* lib/gauche/singleton.scm : experimentally added. |
| 23936 |
|
| 23937 |
2001-11-06 Shiro Kawai <[email protected]> |
| 23938 |
|
| 23939 |
* various files : fixed a bug that didn't instantiate metaobjects |
| 23940 |
correctly when defined in Scheme sublassing a C-defined class. |
| 23941 |
This fix changed the interface of Scm_InitBuiltinClass, and |
| 23942 |
several files were updated accordingly. |
| 23943 |
|
| 23944 |
2001-11-05 Shiro Kawai <[email protected]> |
| 23945 |
|
| 23946 |
* ext/fcntl : added some test methods. |
| 23947 |
|
| 23948 |
2001-11-03 Shiro Kawai <[email protected]> |
| 23949 |
|
| 23950 |
* src/load.c : guaranteed to return #t on successful load |
| 23951 |
* src/char.c, src/read.c, src/regexp.c : fixed charset reader. |
| 23952 |
#[] is read an empty charset. In regexp, however, the closing |
| 23953 |
bracket at the beginning of charset is interpreted as the character |
| 23954 |
itself, for compatibility to the POSIX regexp. That is, |
| 23955 |
#/[]]/ is valid. |
| 23956 |
|
| 23957 |
2001-11-02 Shiro Kawai <[email protected]> |
| 23958 |
|
| 23959 |
* lib/util/queue.scm : added dequeue-all! |
| 23960 |
* src/io.c, src/port.c, src/gauche-init.scm, lib/gauche/with.scm : |
| 23961 |
defined call-with-*-file and with-*-file procedures in Scheme |
| 23962 |
instead of C. io.c is removed. |
| 23963 |
|
| 23964 |
2001-11-01 Shiro Kawai <[email protected]> |
| 23965 |
|
| 23966 |
* lib/util/queue.scm : added |
| 23967 |
|
| 23968 |
2001-10-31 Shiro Kawai <[email protected]> |
| 23969 |
|
| 23970 |
* release 0.4.8 |
| 23971 |
* doc/gauche-ref.texi : wrapping up the document. |
| 23972 |
|
| 23973 |
2001-10-29 Shiro Kawai <[email protected]> |
| 23974 |
|
| 23975 |
* various files: adapted to LP64 architecture. |
| 23976 |
|
| 23977 |
2001-10-28 Shiro Kawai <[email protected]> |
| 23978 |
|
| 23979 |
* configure.in's and Makefile.in's : made it work on more |
| 23980 |
configurations. |
| 23981 |
* src/string.c, lib/srfi-13/* : fixed the buf of string-index with |
| 23982 |
start/end args. added make-string-pointer start/end optional |
| 23983 |
args, and optimized srfi-13 functions to it. |
| 23984 |
* src/string.c (string_substitute) : fixed an evil bug that |
| 23985 |
overwritten the out-of-range memory area. |
| 23986 |
* src/load.c, src/vm.c : fixed autoload bug that doesn't load |
| 23987 |
the file when autoload symbol is referenced as a variable. |
| 23988 |
* ext/dbm/* : made it pass through the test. |
| 23989 |
|
| 23990 |
2001-10-27 Shiro Kawai <[email protected]> |
| 23991 |
|
| 23992 |
* gc : upgraded Boehm GC package from 5.3 to 6.0. |
| 23993 |
* ext/dbm : made the basic functions work. |
| 23994 |
|
| 23995 |
2001-10-26 Shiro Kawai <[email protected]> |
| 23996 |
|
| 23997 |
* lib/gauche/with.scm : added read-from-string and write-to-string |
| 23998 |
to be autoloaded. |
| 23999 |
|
| 24000 |
2001-10-23 Shiro Kawai <[email protected]> |
| 24001 |
|
| 24002 |
* lib/text/tree.scm : added. fast concatenation and rendering of text. |
| 24003 |
* lib/gauche/object.scm : packaged in gauche.object, hiding auxiliary |
| 24004 |
procedures in it. This change prevents genstub from running with |
| 24005 |
gosh 0.4.7; compile.c has to be rev 1.66. |
| 24006 |
* src/compile.c : fixed with-module to work when generated by macros. |
| 24007 |
* src/class.c, src/gauche/class.h, src/moplib.stub : overhauled |
| 24008 |
slot accessing protocol. Slot accessor object becomes more robust, |
| 24009 |
and can be utilized in metaprogram easily. Several internal |
| 24010 |
functions are exposed for metaprograming. |
| 24011 |
|
| 24012 |
2001-10-22 Shiro Kawai <[email protected]> |
| 24013 |
|
| 24014 |
* test/algorithm.scm : testing algorithm.* modules. |
| 24015 |
* src/gauche-init.scm : added use-version macro. removed compatibility |
| 24016 |
stuff for r_ok etc. |
| 24017 |
|
| 24018 |
2001-10-21 Shiro Kawai <[email protected]> |
| 24019 |
|
| 24020 |
* src/extlib.stub : added clamp |
| 24021 |
* lib/gauche/object.scm : made coercion functions work for characters. |
| 24022 |
|
| 24023 |
2001-10-20 Shiro Kawai <[email protected]> |
| 24024 |
|
| 24025 |
* src/genstub : prevent generated code from calling SCM_MAKE_KEYWORD |
| 24026 |
at the subr application time; keywords are now created at setup time. |
| 24027 |
Also added initcode form. |
| 24028 |
* ext/dbm : made it compile. |
| 24029 |
|
| 24030 |
2001-10-19 Shiro Kawai <[email protected]> |
| 24031 |
|
| 24032 |
* lib/gauche/object.scm : added generic coercion methods, |
| 24033 |
x->string, x->integer and x->number. |
| 24034 |
* ext/dbm : added. not working yet. |
| 24035 |
|
| 24036 |
2001-10-18 Shiro Kawai <[email protected]> |
| 24037 |
|
| 24038 |
* lib/algorithm/isomorph.scm : added |
| 24039 |
* lib/algorithm/toposort.scm : added |
| 24040 |
|
| 24041 |
2001-10-17 Shiro Kawai <[email protected]> |
| 24042 |
|
| 24043 |
* lib/w3c/cgi.scm : renamed to lib/www/cgi.scm |
| 24044 |
|
| 24045 |
2001-10-16 Shiro Kawai <[email protected]> |
| 24046 |
|
| 24047 |
* lib/port/stk.scm : added. |
| 24048 |
* lib/rfc/quoted-printable.scm : added quoted-printable-encode |
| 24049 |
* DIST : fixed `doc' target. |
| 24050 |
|
| 24051 |
2001-10-15 Shiro Kawai <[email protected]> |
| 24052 |
|
| 24053 |
* src/hash.c : fixed equal?-hash. |
| 24054 |
* INSTALL.esc : added description about --with-rpath option. |
| 24055 |
|
| 24056 |
2001-10-14 Shiro Kawai <[email protected]> |
| 24057 |
|
| 24058 |
* release 0.4.7 |
| 24059 |
* lib/gauche/interactive.scm : disable debugger by default. |
| 24060 |
* doc/* : cleaned up. Stopped including HTML version in dist. |
| 24061 |
|
| 24062 |
2001-10-12 Shiro Kawai <[email protected]> |
| 24063 |
|
| 24064 |
* doc/extract : added a feature to substitute node names and |
| 24065 |
reference with japanese one. |
| 24066 |
* src/regexp.c (re_exec_rec): fixed a bug of interpretation of NSET1 |
| 24067 |
in multi-byte case. |
| 24068 |
* src/hash.c, src/extlib.stub : allow Scheme code to specify |
| 24069 |
hash type among predefined types. |
| 24070 |
|
| 24071 |
2001-10-10 Shiro Kawai <[email protected]> |
| 24072 |
|
| 24073 |
* src/number.c (Scm_Expt): fixed a bug that (expt 0.0 1) returned |
| 24074 |
1.0 (Thanks to TAGA Yoshitaka). |
| 24075 |
* src/class.c : fixed a bug in method_more_specific comparing |
| 24076 |
methods with optional arg (Thanks to TAGA Yoshitaka). |
| 24077 |
* src/vm.c, lib/gauche/vm/debugger.c : fixed a problem that the |
| 24078 |
debugger printed only the innermost environment. |
| 24079 |
* lib/gauche/collection.scm : added experimentally. |
| 24080 |
|
| 24081 |
2001-10-09 Shiro Kawai <[email protected]> |
| 24082 |
|
| 24083 |
* src/number.c : fixed a number class hierarchy bug. |
| 24084 |
* ext/uvlib.stub.sh : added setter definition to the *-ref. |
| 24085 |
|
| 24086 |
2001-10-08 Shiro Kawai <[email protected]> |
| 24087 |
|
| 24088 |
* lib/gauche/common-macros.scm : added inc! and dec!. |
| 24089 |
|
| 24090 |
2001-10-07 Shiro Kawai <[email protected]> |
| 24091 |
|
| 24092 |
* doc/gauche-ref.texi : more translations. |
| 24093 |
|
| 24094 |
2001-10-05 Shiro Kawai <[email protected]> |
| 24095 |
|
| 24096 |
* lib/text/parse.scm : extended functions to be more orthogonal, |
| 24097 |
i.e. those which take char-list also take predicate. |
| 24098 |
* src/compile.c, src/genstub : made auto-generated inliner code |
| 24099 |
a bit more compact. |
| 24100 |
|
| 24101 |
2001-10-04 Shiro Kawai <[email protected]> |
| 24102 |
|
| 24103 |
* src/syslib.stub : added sys-mkstemp. |
| 24104 |
* lib/text/parse.scm : implements the input stream parsing |
| 24105 |
primitives compatible with Oleg Kiselyov. |
| 24106 |
* lib/gauche/port.scm : added port-position-prefix. |
| 24107 |
* doc/gauche-ref.texi : making bilingual. |
| 24108 |
|
| 24109 |
2001-10-03 Shiro Kawai <[email protected]> |
| 24110 |
|
| 24111 |
* src/list.c, etc. : merged safe version of accessors (*-ref+) |
| 24112 |
to the normal version (*-ref). Now normal version takes an |
| 24113 |
optinal argument. |
| 24114 |
* src/extlib.stub : added standard-input-port, standard-output-port |
| 24115 |
and standard-error-port. |
| 24116 |
* lib/gauche/port.scm : added. implements several useful |
| 24117 |
utilities for port input to be autoloaded. some functions are |
| 24118 |
moved from with.scm. |
| 24119 |
|
| 24120 |
2001-10-02 Shiro Kawai <[email protected]> |
| 24121 |
|
| 24122 |
* lib/gauche/common-macros.scm : added several useful macros, |
| 24123 |
such as push! and dotimes. They are ugly, but sometimes its |
| 24124 |
so convenient that I couldn't resist adding them. It also |
| 24125 |
has the convenient macro syntax-error. |
| 24126 |
* src/list.c, src/vector.c, src/string.c, src/extlib.stub : |
| 24127 |
added safe version of accessors: list-ref+, vector-ref+ and |
| 24128 |
string-ref+. |
| 24129 |
|
| 24130 |
2001-10-01 Shiro Kawai <[email protected]> |
| 24131 |
|
| 24132 |
* src/main.c : inhibit argument permutation of getopt, so that the |
| 24133 |
options after script file name can be passed to the users' script. |
| 24134 |
|
| 24135 |
2001-09-30 Shiro Kawai <[email protected]> |
| 24136 |
|
| 24137 |
* src/extlib.stub : make logand, logior and logxor take more than |
| 24138 |
two args. |
| 24139 |
|
| 24140 |
2001-09-29 Shiro Kawai <[email protected]> |
| 24141 |
|
| 24142 |
* release 0.4.6 |
| 24143 |
* src/compiler.c : changed to emit meaningful information for env. |
| 24144 |
* lib/gauche/vm/debugger.scm : added minimal debugging commands. |
| 24145 |
* src/genstub : added real? type assertion. |
| 24146 |
|
| 24147 |
2001-09-28 Shiro Kawai <[email protected]> |
| 24148 |
|
| 24149 |
* ext/net : INCOMPATIBLE CHANGE: made system constants upper case |
| 24150 |
(e.g. |AF_INET|). |
| 24151 |
|
| 24152 |
2001-09-27 Shiro Kawai <[email protected]> |
| 24153 |
|
| 24154 |
* src/vm.c, src/extlib.stub, src/gauche/vm.h : added Scm_VMGetStack |
| 24155 |
and its Scheme interface. added a hook function in VM for |
| 24156 |
debugger. |
| 24157 |
* lib/gauche/vm/debugger.scm: added |
| 24158 |
|
| 24159 |
2001-09-26 Shiro Kawai <[email protected]> |
| 24160 |
|
| 24161 |
* src/syslib.stub, src/gauche-init.scm : INCOMPATIBLE CHANGE: |
| 24162 |
use uppercase for all system symbols, such as |R_OK| (for |
| 24163 |
sys-access) or |SIGINT|. |
| 24164 |
* src/vm.c : fixed continuation stack trace in the default error |
| 24165 |
handler. |
| 24166 |
|
| 24167 |
2001-09-25 Shiro Kawai <[email protected]> |
| 24168 |
|
| 24169 |
* src/gauche-init.scm : added file-exists?, file-is-directory? and |
| 24170 |
file-is-regular?. |
| 24171 |
* lib/gauche/vm/disasm.scm : fixed TAILBIND |
| 24172 |
|
| 24173 |
2001-09-24 Shiro Kawai <[email protected]> |
| 24174 |
|
| 24175 |
* src/vm.c : added one word to the continuation frame for debug |
| 24176 |
info. This impacts performance (<2% in rudimental tests). |
| 24177 |
* configure.in : added --with-rpath experimentally. |
| 24178 |
* configure.in, src/gauche/config.h.in, src/main.c : applied a fix |
| 24179 |
from Hiroshi INAMURA for cygwin. Added -i (force interactive) |
| 24180 |
option to main.c. |
| 24181 |
|
| 24182 |
2001-09-23 Shiro Kawai <[email protected]> |
| 24183 |
|
| 24184 |
* lib/rfc/cookie.scm : added construct-cookie-string |
| 24185 |
* lib/gauche/regexp.scm : allow user-specified procedure to be |
| 24186 |
called in regexp-replace[-all]. |
| 24187 |
* lib/text/tr.scm, lib/text/cvs.scm, lib/w3c/cgi.scm : added |
| 24188 |
more features. |
| 24189 |
* src/vm.c : fixed a bug that exception handler didn't get a |
| 24190 |
proper stack trace. |
| 24191 |
* src/*.c : removed source-info stuff. |
| 24192 |
* lib/gauche/vm/disasm.scm : adapted to new LET-family insns. |
| 24193 |
|
| 24194 |
2001-09-22 Shiro Kawai <[email protected]> |
| 24195 |
|
| 24196 |
* lib/rfc/cookie.scm : added |
| 24197 |
* src/string.c, src/extlib.stub : made string-scan in place of |
| 24198 |
the broken string-contains. |
| 24199 |
* lib/gauche/regexp.scm : added regexp-replace and |
| 24200 |
regexp-replace-all. |
| 24201 |
|
| 24202 |
2001-09-21 Shiro Kawai <[email protected]> |
| 24203 |
|
| 24204 |
* src/syslib.stub : added sys-putenv if the system has putenv(). |
| 24205 |
* lib/text/tr.scm : finished. |
| 24206 |
|
| 24207 |
2001-09-20 Shiro Kawai <[email protected]> |
| 24208 |
|
| 24209 |
* lib/slib.scm (defmacro) : fixed a bug. |
| 24210 |
* lib/w3c/cgi.scm : moved under w3c. |
| 24211 |
* lib/text/csv.scm : added. |
| 24212 |
* src/stdlib.stub (open-output-string) : allow #f to :if-exists |
| 24213 |
|
| 24214 |
2001-09-19 Shiro Kawai <[email protected]> |
| 24215 |
|
| 24216 |
* src/write.c : fixed a bug in format (thanks to Abe Hiroshi) |
| 24217 |
* src/bignum.c : fixed BignumLogXor |
| 24218 |
* lib/text/tr.scm : made basic function work |
| 24219 |
|
| 24220 |
2001-09-18 Shiro Kawai <[email protected]> |
| 24221 |
|
| 24222 |
* src/char.c, src/extlib.stub : added digit->integer and |
| 24223 |
integer->digit, for converting digit char <-> number. |
| 24224 |
* lib/cgi.scm : added |
| 24225 |
* lib/text/tr.scm : added |
| 24226 |
|
| 24227 |
2001-09-17 Shiro Kawai <[email protected]> |
| 24228 |
|
| 24229 |
* release 0.4.5 |
| 24230 |
* src/regexp.c : fixed two bugs. Jump offset overflowed in the large |
| 24231 |
regexp. Top level `?' didn't compiled correctly. |
| 24232 |
* lib/gauche/logger.scm : added. |
| 24233 |
* src/system.c : made members of struct tm visible from Scheme. |
| 24234 |
* src/bignum.c, src/char.c, src/port.c : applied a patch from |
| 24235 |
Abe Hiroshi to fix bugs on LP64 architecture. |
| 24236 |
* src/gauche.h : fixed SCM_CHAR_MAX on LP64 architecture. |
| 24237 |
|
| 24238 |
2001-09-16 Shiro Kawai <[email protected]> |
| 24239 |
|
| 24240 |
* src/stdlib.stub, src/port.c : added :if-exists, :if-does-not-exist |
| 24241 |
and :element-type flags to open-input-file and open-output-file to |
| 24242 |
control file operations precisely. |
| 24243 |
* src/read.c : added SRFI-10 sharp-comma reader extension. |
| 24244 |
|
| 24245 |
2001-09-15 Shiro Kawai <[email protected]> |
| 24246 |
|
| 24247 |
* src/vm.c : fixed a bug that caused assertion failed when an |
| 24248 |
unhandled error is thrown from non-interactive script. |
| 24249 |
* src/class.c and other files: changed built-in class initialization |
| 24250 |
routines. |
| 24251 |
* src/system.c : added Scm_GetPortFd to eliminate duplicated code |
| 24252 |
on several files. |
| 24253 |
* ext/fcntl : added fcntl interface module. |
| 24254 |
|
| 24255 |
2001-09-12 Shiro Kawai <[email protected]> |
| 24256 |
|
| 24257 |
* release 0.4.4 |
| 24258 |
* src/repl.c, src/vm.c : cleaned up default exception handling. |
| 24259 |
* lib/gauche/process.scm : added process-output->string |
| 24260 |
|
| 24261 |
2001-09-11 Shiro Kawai <[email protected]> |
| 24262 |
|
| 24263 |
* src/error.c : implemented exception class hierarchy. |
| 24264 |
|
| 24265 |
2001-09-10 Shiro Kawai <[email protected]> |
| 24266 |
|
| 24267 |
* src/vm.c, src/extlib.stub : added error handling mechanism, |
| 24268 |
with-error-handler. |
| 24269 |
* test/error.scm : added to test error handler mechanism. |
| 24270 |
|
| 24271 |
2001-09-07 Shiro Kawai <[email protected]> |
| 24272 |
|
| 24273 |
* src/vm.c, src/gauche/vm.h : fixed continuations thrown across |
| 24274 |
C stack boundary. |
| 24275 |
* ext/termios : added cf[gs]et[io]speed. use #ifdef's for non-POSIX |
| 24276 |
constants. |
| 24277 |
|
| 24278 |
2001-09-06 Shiro Kawai <[email protected]> |
| 24279 |
|
| 24280 |
* ext/termios : added termios support. |
| 24281 |
|
| 24282 |
2001-09-05 Shiro Kawai <[email protected]> |
| 24283 |
|
| 24284 |
* lib/gauche/selector.scm : added |
| 24285 |
* lib/gauche/interactive.scm : added describe |
| 24286 |
* ext/net : added socket-fd |
| 24287 |
* src/genstub : added a feature to read config.h and to generate |
| 24288 |
stubs conditionally depending on the defined preprocessor symbols. |
| 24289 |
* src/syslib.stub : added sys-ctermid and sys-readlink. Adapted |
| 24290 |
to the new genstub. |
| 24291 |
* doc/gauche-ref.texi : added a chapter of describing mappings |
| 24292 |
from C library functions to Scheme functions. |
| 24293 |
* src/vm.c (use_eval_inner) : cleaned up interaction between C |
| 24294 |
stack and Scheme stack. |
| 24295 |
|
| 24296 |
2001-09-04 Shiro Kawai <[email protected]> |
| 24297 |
|
| 24298 |
* src/vm.c and other files: realized that stack-gc won't improve |
| 24299 |
performance unless I implement a special marking method in the |
| 24300 |
stack area. Reverted stack handling to the previous way. |
| 24301 |
|
| 24302 |
2001-09-01 Shiro Kawai <[email protected]> |
| 24303 |
|
| 24304 |
* src/vm.c and other files: implemented stack garbage collector. |
| 24305 |
however, somehow it slows down things significantly; need to |
| 24306 |
redesign. |
| 24307 |
|
| 24308 |
2001-08-05 Shiro Kawai <[email protected]> |
| 24309 |
|
| 24310 |
* release 0.4.3 |
| 24311 |
* */configure.in : adapted to autoconf-2.52 |
| 24312 |
* lib/gauche/interactive.scm : added. defines useful functions |
| 24313 |
for the interactive session. |
| 24314 |
* src/main.c : loads gauche.interactive when in the interactive |
| 24315 |
mode. |
| 24316 |
|
| 24317 |
2001-08-04 Shiro Kawai <[email protected]> |
| 24318 |
|
| 24319 |
* src/symbol.c : removed Scm_Apropos - it'll be implemented in Scheme. |
| 24320 |
* src/extlib.stub : added hash-table-map |
| 24321 |
|
| 24322 |
2001-08-03 Shiro Kawai <[email protected]> |
| 24323 |
|
| 24324 |
* src/vm.c : prevent a continuation from being thrown across C |
| 24325 |
stack boundary for now. Supporting it requires lots of VM |
| 24326 |
modification. |
| 24327 |
* src/read.c : arrow more flexible symbol syntax. |
| 24328 |
|
| 24329 |
2001-07-24 Shiro Kawai <[email protected]> |
| 24330 |
|
| 24331 |
* src/compile.c (compile_do): fixed a bug that reported an error |
| 24332 |
on a valid do form (thanks to KIMURA Shigenobu). |
| 24333 |
* src/read.c : allow numbers to begin with dot, e.g. ``.12'' |
| 24334 |
* ext/uvector/* : generate uvector.h under the subdirectory 'gauche', |
| 24335 |
so that other extension module can use #include "gauche/uvector.h". |
| 24336 |
* test/primsyn.scm : added tricky case tests of "case" and "do". |
| 24337 |
|
| 24338 |
2001-07-14 Shiro Kawai <[email protected]> |
| 24339 |
|
| 24340 |
* release 0.4.2 |
| 24341 |
|
| 24342 |
2001-07-13 Shiro Kawai <[email protected]> |
| 24343 |
|
| 24344 |
* various files: applied a patch for MacOS X provided from |
| 24345 |
KIMURA Shigenobu. |
| 24346 |
|
| 24347 |
2001-07-10 Shiro Kawai <[email protected]> |
| 24348 |
|
| 24349 |
* src/compile.c (compile_case): fixed a bug that reported an error |
| 24350 |
on a valid case form (thanks to KIMURA Shigenobu). |
| 24351 |
|
| 24352 |
2001-07-08 Shiro Kawai <[email protected]> |
| 24353 |
|
| 24354 |
* src/macro.c : fixed a bug that couldn't handle pattern variables |
| 24355 |
appear in the higher level than its defined level. |
| 24356 |
* lib/srfi-9.scm : added SRFI-9, record types. |
| 24357 |
* src/read.c (read_char): recognize #\xXXX type character name. |
| 24358 |
* src/number.c (Scm_NumberToString): fixed a bug that didn't print |
| 24359 |
negative small integer correctly in radix 8 and 16. |
| 24360 |
* src/write.c (Scm_Forat): extended format to take parameters and |
| 24361 |
flags for the format directives, and to handle format directive |
| 24362 |
~d, ~b, ~o and ~x. |
| 24363 |
* test/io.scm : added to test format. |
| 24364 |
|
| 24365 |
2001-07-07 Shiro Kawai <[email protected]> |
| 24366 |
|
| 24367 |
* release 0.4.1 |
| 24368 |
* src/vm.c, src/compile.c, src/gauche/vm.h : refined and tested |
| 24369 |
stack overflow handling. |
| 24370 |
* configure.in, src/gauche/config.h.in, src/gauche-config.in, |
| 24371 |
ext/net/net.h : added checks for sysint.h, and removed spaces |
| 24372 |
after -I and -L options, in order to make MacOS X happy |
| 24373 |
(thanks to Shigenobu KIMURA skimu @ mac.com for pointing |
| 24374 |
this out.) |
| 24375 |
|
| 24376 |
2001-07-04 Shiro Kawai <[email protected]> |
| 24377 |
|
| 24378 |
* src/compile.c, src/vm.c : modified the compiler to add CHECK_STACK |
| 24379 |
instructions to appropriate places. |
| 24380 |
|
| 24381 |
2001-07-02 Shiro Kawai <[email protected]> |
| 24382 |
|
| 24383 |
* ext/net/configure.in : added check for -lnsl on Solaris |
| 24384 |
* ext/net/net.scm (make-server-socket): fixed bug about |
| 24385 |
:reuse-addr? keyword argument. |
| 24386 |
|
| 24387 |
2001-07-01 Shiro Kawai <[email protected]> |
| 24388 |
|
| 24389 |
* src/load.c : added :export-symbols argument to dynamic-load. |
| 24390 |
* lib/gauche/parseopt.scm : added yet another command-line option |
| 24391 |
parser. |
| 24392 |
|
| 24393 |
2001-06-30 Shiro Kawai <[email protected]> |
| 24394 |
|
| 24395 |
* release 0.4 |
| 24396 |
* src/gauche/vm.h (SCM_VM_VALUES): fixed a bug in assertion. |
| 24397 |
* doc/gauche-ref.texi : added description of "error" and some more. |
| 24398 |
|
| 24399 |
2001-06-29 Shiro Kawai <[email protected]> |
| 24400 |
|
| 24401 |
* src/error.c and most *.scm : INCOMPATIBLE CHANGE: made "error" |
| 24402 |
procedure SRFI-23 compliant, i.e. the first argument is just |
| 24403 |
a string, and "format" is not called. The former version which |
| 24404 |
uses format is renamed to "errorf". |
| 24405 |
* ext/net/netlib.stub : INCOMPATIBLE CHANGE: sockaddr-family now |
| 24406 |
returns a symbol, rather than a keyword. |
| 24407 |
* src/Makefile.in, src/gauche-config.in : changed install location |
| 24408 |
of site-specific DSOs; includes version number in the path. |
| 24409 |
* src/main.c : use main's return value for exit code in script mode. |
| 24410 |
* src/vm.c : remove reference to sysexits.h - it causes a duplicate |
| 24411 |
definition warning of EX_OK on IRIX, and we don't really need it. |
| 24412 |
|
| 24413 |
2001-06-28 Shiro Kawai <[email protected]> |
| 24414 |
|
| 24415 |
* doc/gauche-ref.texi: added docs of sys-random and sys-srandom, |
| 24416 |
and some more. |
| 24417 |
|
| 24418 |
2001-06-25 Shiro Kawai <[email protected]> |
| 24419 |
|
| 24420 |
* lib/gauche/process.scm: changed call-with-io-process to |
| 24421 |
call-with-process-io |
| 24422 |
* lib/gauche/with.scm : added call-with-string-io and |
| 24423 |
with-string-io |
| 24424 |
* src/syslib.stub : added sys-random and sys-srandom. |
| 24425 |
|
| 24426 |
2001-06-24 Shiro Kawai <[email protected]> |
| 24427 |
|
| 24428 |
* src/syslib.stub (sys-pipe): INCOMPATIBLE CHANGE: sys-pipe now |
| 24429 |
returns two values, instead of one value of a list of two ports. |
| 24430 |
Other files are fixed accordingly. |
| 24431 |
* src/syslib.stub (sys-wait): INCOMPATIBLE CHANGE: sys-wait |
| 24432 |
and sys-waitpid now returns two values, pid and exit code, |
| 24433 |
instead of cons of them. |
| 24434 |
Other files are fixed accordingly. |
| 24435 |
* src/vm.c, src/gauche/vminsn.h, src/stdlib.stub: added instructions |
| 24436 |
for values, char?, pair?, string?,... and make them inline. |
| 24437 |
* ext/net/net.scm : fixed bugs. |
| 24438 |
|
| 24439 |
2001-06-23 Shiro Kawai <[email protected]> |
| 24440 |
|
| 24441 |
* ext/net/configure.in : check existence of get*by*_r functions |
| 24442 |
before checking their synopsys. Suggested by MINOURA Makoto. |
| 24443 |
* release 0.3.15 |
| 24444 |
* doc/gauche-ref.texi : added description of process ports. |
| 24445 |
|
| 24446 |
2001-06-22 Shiro Kawai <[email protected]> |
| 24447 |
|
| 24448 |
* ext/net/net.scm : cleaned up the API of make-client-socket and |
| 24449 |
make-server-socket. |
| 24450 |
* ext/* : fixed installation location of extension modules. |
| 24451 |
* lib/gauche/process.scm : added process ports. |
| 24452 |
* src/main.c : fixed the calling scheme of ``main'' procedure, |
| 24453 |
according to the change of SRFI-22 draft. |
| 24454 |
|
| 24455 |
2001-06-21 Shiro Kawai <[email protected]> |
| 24456 |
|
| 24457 |
* sys/class.c : changed API of Scm_InitBuiltinClass to allow |
| 24458 |
hardcoded slots. |
| 24459 |
* ext/net/netdb.c : added netdb interface (hostent, protoent |
| 24460 |
and servent). |
| 24461 |
|
| 24462 |
2001-06-20 Shiro Kawai <[email protected]> |
| 24463 |
|
| 24464 |
* src/Makefile.in : added system test |
| 24465 |
* src/syslib.stub, src/system.c: various bug fixes |
| 24466 |
|
| 24467 |
2001-06-19 Shiro Kawai <[email protected]> |
| 24468 |
|
| 24469 |
* src/syslib.stuc, src/system.c : added sys-select[!], the select(2) |
| 24470 |
interface. added sys-mkdir, sys-umask and sys-chmod as well. |
| 24471 |
* doc/gauche-ref.texi : enhanced description. |
| 24472 |
* test/system.scm : added test for the system library. |
| 24473 |
|
| 24474 |
2001-06-18 Shiro Kawai <[email protected]> |
| 24475 |
|
| 24476 |
* src/syslib.stub: added fdset operations |
| 24477 |
|
| 24478 |
2001-06-17 Shiro Kawai <[email protected]> |
| 24479 |
|
| 24480 |
* src/proc.c, src/compile.c, src/vm.c, src/gauche/vminsn.c : |
| 24481 |
support generalized setter natively. |
| 24482 |
* lib/srfi-17.scm : removed. |
| 24483 |
* src/genstub : added 'setter' directive to define generalized |
| 24484 |
setter in C code. |
| 24485 |
|
| 24486 |
2001-06-16 Shiro Kawai <[email protected]> |
| 24487 |
|
| 24488 |
* src/gauche.h, src/genstub : changed to use macros rather than |
| 24489 |
bare static initializer in generated code |
| 24490 |
|
| 24491 |
2001-06-14 Shiro Kawai <[email protected]> |
| 24492 |
|
| 24493 |
* src/genstub : reorganized the structure in more object-oriented |
| 24494 |
way. |
| 24495 |
|
| 24496 |
2001-06-13 Shiro Kawai <[email protected]> |
| 24497 |
|
| 24498 |
* configure.in : made work with Solaris |
| 24499 |
* ext/net/configure.in : made work with IRIX and Solaris |
| 24500 |
* src/* : changed SCM_DEFINE_BUILTIN_CLASS macro to allow to set |
| 24501 |
allocation routine. |
| 24502 |
|
| 24503 |
2001-06-12 Shiro Kawai <[email protected]> |
| 24504 |
|
| 24505 |
* ext/net/* : added more functions. |
| 24506 |
* doc/gauche-ref.texi : added gauche.net description |
| 24507 |
* src/main.c : when invoked with a script file, call "main" procedure |
| 24508 |
if defined. proposed SRFi-22 behavior. |
| 24509 |
|
| 24510 |
2001-06-11 Shiro Kawai <[email protected]> |
| 24511 |
|
| 24512 |
* ext/net/* : made low-level functions work |
| 24513 |
|
| 24514 |
2001-06-10 Shiro Kawai <[email protected]> |
| 24515 |
|
| 24516 |
* ext/net/addr.c : added |
| 24517 |
|
| 24518 |
2001-06-07 Shiro Kawai <[email protected]> |
| 24519 |
|
| 24520 |
* release 0.3.14 |
| 24521 |
* gc/dyn_load.c : fixed a bug that failed to find data segments |
| 24522 |
in dynamically loaded module on IRIX 6.5. |
| 24523 |
* ext/charconv/* : fixed small bugs around compilation and |
| 24524 |
installation. |
| 24525 |
* lib/port/jfilter.scm : added this compatibility module. |
| 24526 |
* lib/Makefile.in : fixed a bug that some modules were not installed |
| 24527 |
properly. |
| 24528 |
|
| 24529 |
2001-06-06 Shiro Kawai <[email protected]> |
| 24530 |
|
| 24531 |
* ext/charconv/* : made it work with Bruno Haible's libiconv as well. |
| 24532 |
Added automatic character detection routine. |
| 24533 |
* src/regexp.c : fixed a bug with unused submatches. added |
| 24534 |
Scm_RegMatchBefore and Scm_RegMatchAfter |
| 24535 |
* src/extlib.stub : added rxmatch-before and rxmatch-after |
| 24536 |
|
| 24537 |
2001-06-05 Shiro Kawai <[email protected]> |
| 24538 |
|
| 24539 |
* ext/charconv/* : added workaround for glibc-2.1 iconv() bug in |
| 24540 |
Shift-JIS handling. added concept of ownership in the conversion |
| 24541 |
port to control whether the conversion port should close the remote |
| 24542 |
port. changed Scheme API to use keyword arguments to specify |
| 24543 |
various parameters. |
| 24544 |
|
| 24545 |
2001-06-04 Shiro Kawai <[email protected]> |
| 24546 |
|
| 24547 |
* src/port.c : allow bufport's flusher to flush less bytes than |
| 24548 |
specified. unflushed bytes are shifted by the bufport routine. |
| 24549 |
|
| 24550 |
2001-06-03 Shiro Kawai <[email protected]> |
| 24551 |
|
| 24552 |
* src/extlib.stub : added port->string, port->byte-string |
| 24553 |
* ext/charconv/* : made it work. |
| 24554 |
|
| 24555 |
2001-06-02 Shiro Kawai <[email protected]> |
| 24556 |
|
| 24557 |
* src/extlib.stub : added copy-port |
| 24558 |
|
| 24559 |
2001-06-01 Shiro Kawai <[email protected]> |
| 24560 |
|
| 24561 |
* src/gauche.h, src/gauche/portmacros.h, src/*.c : changed API of |
| 24562 |
Scm_Getz to be consisntent with C's fgets (port comes last), and |
| 24563 |
added len parameter to Scm_Putz. |
| 24564 |
* src/port.c : fixed bugs in bufport_putz. |
| 24565 |
* src/extlib.stub : added open-output-buffered-port. |
| 24566 |
* lib/rfc/822.scm : added. |
| 24567 |
* lib/gauche/regexp.scm, test/regexp.scm : added test and changed |
| 24568 |
semantics of rxmatch-case. |
| 24569 |
|
| 24570 |
2001-05-31 Shiro Kawai <[email protected]> |
| 24571 |
|
| 24572 |
* src/port.c, test/euc-jp.scm : more tests and bug fixes for the |
| 24573 |
buffered port. |
| 24574 |
* src/Makefile.in, test/mb-chars.scm : included a multibyte character |
| 24575 |
test to the standard tests. mb-chars.scm loads tests specific |
| 24576 |
to the native character encoding. |
| 24577 |
|
| 24578 |
2001-05-30 Shiro Kawai <[email protected]> |
| 24579 |
|
| 24580 |
* src/port.c, src/extlib.stub: added open-input-buffered-port. |
| 24581 |
fixed some bugs in buffered port implementation. |
| 24582 |
|
| 24583 |
2001-05-29 Shiro Kawai <[email protected]> |
| 24584 |
|
| 24585 |
* release 0.3.13 |
| 24586 |
* configure.in, ext/charconv/* : check existence of iconv() to avoid |
| 24587 |
compilation error. Added a new configure option --with-iconv |
| 24588 |
to tell if iconv is installed in a non-trivial location. |
| 24589 |
* ext/uvector/* : added a test suite, and fixed bugs found by it. |
| 24590 |
* src/load.c : use RTLD_NOW for dlopen() to avoid segfault when |
| 24591 |
loaded DSO has unresolved reference. |
| 24592 |
* src/bignum.c : fixed a bug in Scm_MakeBignumFromSI that made wrong |
| 24593 |
result if the argument was LONG_MIN. |
| 24594 |
* src/main.c : added batch mode, i.e. to evaluate input without |
| 24595 |
prompting and printing the result. Useful for filter programs. |
| 24596 |
|
| 24597 |
2001-05-28 Shiro Kawai <[email protected]> |
| 24598 |
|
| 24599 |
* release 0.3.12 |
| 24600 |
* configure.in, lib/slib.scm.in : let configure.in to find the slib |
| 24601 |
location. the user can specify it by --with-slib=PATH, |
| 24602 |
alternatively. |
| 24603 |
|
| 24604 |
2001-05-26 Shiro Kawai <[email protected]> |
| 24605 |
|
| 24606 |
* src/system.c, src/syslib.stub, configure.in, src/gauche/config.h.in: |
| 24607 |
Convert time_t to a number in Scheme world, instead of <sys-time> |
| 24608 |
object. Since time_t need not be an integer, a new configure test |
| 24609 |
is added to check how to convert between time_t and Scheme number. |
| 24610 |
|
| 24611 |
2001-05-25 Shiro Kawai <[email protected]> |
| 24612 |
|
| 24613 |
* src/port.c : finished buffered ports. |
| 24614 |
* ext/charconv/* : adding more |
| 24615 |
|
| 24616 |
2001-05-24 Shiro Kawai <[email protected]> |
| 24617 |
|
| 24618 |
* src/port.c : added buffered ports (not finished). |
| 24619 |
* ext/net/* : fixed configuration strategy. |
| 24620 |
|
| 24621 |
2001-05-22 Shiro Kawai <[email protected]> |
| 24622 |
|
| 24623 |
* configure.in, src/*: applied a patch by MINOURA Makoto |
| 24624 |
([email protected]) to run on various NetBSD platforms. |
| 24625 |
* doc/gauche-ref.texi: more docs. |
| 24626 |
|
| 24627 |
2001-05-21 Shiro Kawai <[email protected]> |
| 24628 |
|
| 24629 |
* lib/slib.scm : added SLIB initialization file for Gauche. |
| 24630 |
Say (require "slib") and you can use slib. |
| 24631 |
* src/string.c (count_length): fixed a bug that didn't recognize |
| 24632 |
an incomplete character at the end of a string. |
| 24633 |
|
| 24634 |
2001-05-20 Shiro Kawai <[email protected]> |
| 24635 |
|
| 24636 |
* release 0.3.11 |
| 24637 |
* src/port.c, src/gauche/portmacros.h : added code to input string |
| 24638 |
port to handle the case that rest bytes consist an incomplete |
| 24639 |
character. |
| 24640 |
* src/string.c : disallow string-ref on an incomplete string. |
| 24641 |
* test/euc-jp.scm : added tests for incomplete strings |
| 24642 |
|
| 24643 |
2001-05-19 Shiro Kawai <[email protected]> |
| 24644 |
|
| 24645 |
* src/string.c : revised for handling of incomplete string. |
| 24646 |
* src/symbol.c (Scm_Intern): make symbol name immutable string. |
| 24647 |
* src/* : renamed <something>CStr, <something>Cstr and <something>CSTR |
| 24648 |
to <something>z or <something>Z, for consistency. This made |
| 24649 |
incompatible change in API. |
| 24650 |
|
| 24651 |
2001-05-18 Shiro Kawai <[email protected]> |
| 24652 |
|
| 24653 |
* src/string.c, src/gauche.h and other files : changed ScmString |
| 24654 |
structure to handle incomplete and/or immutable string in |
| 24655 |
better way. API of string construction is changed in incompatible |
| 24656 |
way. |
| 24657 |
|
| 24658 |
2001-05-17 Shiro Kawai <[email protected]> |
| 24659 |
|
| 24660 |
* src/bignum.c, src/extlib.stub, test/number.scm : finished logand |
| 24661 |
and logior |
| 24662 |
|
| 24663 |
2001-05-16 Shiro Kawai <[email protected]> |
| 24664 |
|
| 24665 |
* src/number.c, src/extlib.stub : added lognot. |
| 24666 |
|
| 24667 |
2001-05-15 Shiro Kawai <[email protected]> |
| 24668 |
|
| 24669 |
* src/extlib.stub: removed some subrs that are defined somewhere |
| 24670 |
else. |
| 24671 |
* doc/gauche-ref.texi: start writing this. |
| 24672 |
|
| 24673 |
2001-05-14 Shiro Kawai <[email protected]> |
| 24674 |
|
| 24675 |
* src/gauche.h, src/gauche/portmacros.h, src/port.c : separated |
| 24676 |
port macros (SCM_GETC, etc.) to a subheader. added fill function |
| 24677 |
pointer to the input string port, so that it can be a general |
| 24678 |
buffered input port. |
| 24679 |
* src/bignum.c, src/number.c : start adding logical operations. |
| 24680 |
finished ash. |
| 24681 |
* src/number.c (exact_expt): fixed a bug in the shortcut of -1^y. |
| 24682 |
|
| 24683 |
2001-05-12 Shiro Kawai <[email protected]> |
| 24684 |
|
| 24685 |
* release 0.3.10 |
| 24686 |
* src/number.c (Scm_Expt): properly handles fraction power of |
| 24687 |
negative real numbers, and exact powers. |
| 24688 |
* src/vm.c: added Scm_Values2 and Scm_Values3, C-interfaces to |
| 24689 |
return multiple values. |
| 24690 |
* src/stdlib.stub, lib/gauche/numerical.scm: made |
| 24691 |
%complex->real/imag to return multiple values, avoiding consing. |
| 24692 |
|
| 24693 |
2001-05-11 Shiro Kawai <[email protected]> |
| 24694 |
|
| 24695 |
* lib/gauche/numerical.scm : fixed more numeric instability of |
| 24696 |
acos, asinh, acosh. Finally Gauche can plot the fascinating |
| 24697 |
pictures shown in the "Numbers" section of "Common Lisp, the |
| 24698 |
Language, 2nd edition". |
| 24699 |
|
| 24700 |
2001-05-10 Shiro Kawai <[email protected]> |
| 24701 |
|
| 24702 |
* lib/gauche/numeric.c: fixed asin and acos to avoid numeric |
| 24703 |
instabilities. |
| 24704 |
* src/number.c: fixed wrong definition of SCM_IS_NAN when |
| 24705 |
HAVE_ISNAN is not defined. |
| 24706 |
* src/stdlib.stub: allow to pass 0.0 to %log, letting the system |
| 24707 |
log() to yield NaN. |
| 24708 |
|
| 24709 |
2001-05-09 Shiro Kawai <[email protected]> |
| 24710 |
|
| 24711 |
* lib/gauche/numeric.c: fixed some bugs in the definition of |
| 24712 |
complex trigonometric functions. |
| 24713 |
* src/number.c (Scm_NumberToString): prints #<nan> and #<inf>. |
| 24714 |
extended # of digits of flonum to 20 so that it is properly |
| 24715 |
read back. prints small int with arbitrary radix. |
| 24716 |
* src/number.c (Scm_Max): still had a bug in treating inexactness. |
| 24717 |
|
| 24718 |
2001-05-08 Shiro Kawai <[email protected]> |
| 24719 |
|
| 24720 |
* src/gauche-init.scm: fixed a bug in the definition of atan. |
| 24721 |
* src/stdlib.stub: fixed a bug in =, which made it fail for |
| 24722 |
complex numbers. |
| 24723 |
* src/vm.c (run_loop): fixed a bug that caused SEGV when the error |
| 24724 |
handler tries to obtain stack trace. fixed a bug in NUMEQ2 |
| 24725 |
instruction. |
| 24726 |
* src/stdlib.stub (symbol->string): fixed a bug that didn't check |
| 24727 |
if arg is symbol (Thanks to Yuuichi Teranishi). |
| 24728 |
|
| 24729 |
2001-05-07 Shiro Kawai <[email protected]> |
| 24730 |
|
| 24731 |
* test/cmpplane.scm : a port of the program shown in CLtL2 to plot |
| 24732 |
complex functions in complex plane. it seems that this reveals |
| 24733 |
a serious bug in VM... |
| 24734 |
|
| 24735 |
2001-05-06 Shiro Kawai <[email protected]> |
| 24736 |
|
| 24737 |
* src/number.c (read_complex) : fixed a bug that read +0i and -0i |
| 24738 |
as a complex number, instead of flonum 0.0. |
| 24739 |
* src/hash.c, src/extlib.stub, lib/srfi-13/hash.scm: added %hash-string |
| 24740 |
which exposes internal string hash function, and implemented |
| 24741 |
string-hash (SRFI-13) on top of it. |
| 24742 |
|
| 24743 |
2001-05-05 Shiro Kawai <[email protected]> |
| 24744 |
|
| 24745 |
* src/number.c : fixed number reader to recognize x+0i as x (real |
| 24746 |
number). added Scm_OddP to deal with inexact numbers. re-added |
| 24747 |
Scm_NumEq, for Scm_NumCmp doesn't handle complex numbers. |
| 24748 |
Moved most of transcendental functions to stdlib.stub. |
| 24749 |
* src/stdlib.stub : fixed several domain bugs in numeric predicates. |
| 24750 |
Implemented most of real transcendental functions here. |
| 24751 |
* src/gauche-init.scm, lib/gauche/numerical.scm : Implemented |
| 24752 |
transcendental functions for complex domain. |
| 24753 |
* src/boolean.c : use Scm_NumEq instead of Scm_NumCmp. |
| 24754 |
* test/number.scm : added tests for numeric predicates, complex |
| 24755 |
readers, and arithmetic functions. |
| 24756 |
|
| 24757 |
2001-05-04 Shiro Kawai <[email protected]> |
| 24758 |
|
| 24759 |
* src/number.c : fixed Scm_Max and Scm_Min to treat exactness |
| 24760 |
correctly (at least one arg is inexact, result is always inexact). |
| 24761 |
* src/string.c : Scm_ListToString and Scm_MakeStringFromList were |
| 24762 |
using the same routines. Integrated them to one function. |
| 24763 |
|
| 24764 |
2001-05-03 Shiro Kawai <[email protected]> |
| 24765 |
|
| 24766 |
* release 0.3.9 |
| 24767 |
* INSTALL: added explanation about --enable-multibyte option. |
| 24768 |
* test/euc-jp.scm: added Japanese tests of string-library. |
| 24769 |
|
| 24770 |
2001-05-02 Shiro Kawai <[email protected]> |
| 24771 |
|
| 24772 |
* lib/srfi-13/*.scm : fixed number of bugs |
| 24773 |
* src/string.c, src/extlib.stub : removed redundant 'end' parameter |
| 24774 |
from Scm_StringSubstitute and string-substitute! |
| 24775 |
* test/srfi.scm : finished tests for SRFI-13 |
| 24776 |
|
| 24777 |
2001-05-01 Shiro Kawai <[email protected]> |
| 24778 |
|
| 24779 |
* test/string.scm : added more tests for builtin string ops |
| 24780 |
* test/srfi.scm : start adding SRFI-13 functions |
| 24781 |
* lib/srfi-13/*.scm : fixing bugs |
| 24782 |
|
| 24783 |
2001-04-30 Shiro Kawai <[email protected]> |
| 24784 |
|
| 24785 |
* src/gauche.h, src/string.c, src/extlib.stub: added 'grammer' |
| 24786 |
argument to Scm_StringJoin and string-join, so that it will be |
| 24787 |
compatible to SRFI-13. |
| 24788 |
* lib/srfi-13/*.scm: added some more srfi-13 stuff. |
| 24789 |
|
| 24790 |
2001-04-26 Shiro Kawai <[email protected]> |
| 24791 |
|
| 24792 |
* src/srfi-13/*: added some more. |
| 24793 |
* src/string.c, src/gauche.h, src/extlib.stub: added string-pointer |
| 24794 |
object. removed StringTake stuff which are moved to srfi-13. |
| 24795 |
* test/string.scm, test/euc-jp.scm: added test for string-pointer |
| 24796 |
object. |
| 24797 |
* src/gauche/char_euc_jp.h, src/gauche/char_utf_8.h: improved |
| 24798 |
CHAR_BACKWARD macros. |
| 24799 |
|
| 24800 |
2001-04-25 Shiro Kawai <[email protected]> |
| 24801 |
|
| 24802 |
* configure.in, src/gauche/config.h.in, src/gauche/char_*.h: added |
| 24803 |
--enable-multibyte=ENCODING option so that the user can choose |
| 24804 |
native encoding system. |
| 24805 |
* many files: changed SCM_STR_{GET|PUT}C to SCM_CHAR_{GET|PUT} for |
| 24806 |
consistency. |
| 24807 |
* src/string.c : start adding StringPointer object. |
| 24808 |
|
| 24809 |
2001-04-24 Shiro Kawai <[email protected]> |
| 24810 |
|
| 24811 |
* lib/srfi-14/query.scm, lib/srfi-14/set.scm: splitted srfi-14. |
| 24812 |
|
| 24813 |
2001-04-23 Shiro Kawai <[email protected]> |
| 24814 |
|
| 24815 |
* lib/srfi-13/generator.scm, lib/srfi-13/pred.scm, |
| 24816 |
lib/srfi-13/selector.scm: added some srfi-13 functions. |
| 24817 |
|
| 24818 |
2001-04-22 Shiro Kawai <[email protected]> |
| 24819 |
|
| 24820 |
* release 0.3.8 |
| 24821 |
* lib/srfi-13.scm: began to implement this. |
| 24822 |
* src/string.c, src/stdlib.stub: modified string-fill!, string->list |
| 24823 |
and string-copy to take optional start/end arguments as in SRFI-13. |
| 24824 |
* src/gauche-init.scm, lib/gauche/numerical.scm: implemented some |
| 24825 |
R5RS numerical functions (e.g. gcd and lcm) in Scheme, and set |
| 24826 |
autoload for it. |
| 24827 |
* src/bignum.c: further debugging for the infrequent path of the |
| 24828 |
division code. |
| 24829 |
|
| 24830 |
2001-04-21 Shiro Kawai <[email protected]> |
| 24831 |
|
| 24832 |
* src/bignum.c, src/number.c, test/number.scm: fixed integer |
| 24833 |
division/remainer/modulo routines. |
| 24834 |
* src/Makefile.in: added test/number.scm for test targets. |
| 24835 |
|
| 24836 |
2001-04-19 Shiro Kawai <[email protected]> |
| 24837 |
|
| 24838 |
* release 0.3.7 |
| 24839 |
* src/read.c (read_charset): added #[...] extension for literal |
| 24840 |
charset syntax. |
| 24841 |
* src/char.c: adapted print syntax to the literal charset syntax. |
| 24842 |
added charset reading function (Scm_CharSetRead). |
| 24843 |
added predefined charsets. |
| 24844 |
* src/extlib.stub, lib/srfi-14.scm: adapted predefined charset. |
| 24845 |
* src/regexp.c: added \s, \S, \w, \W, \d and \D character |
| 24846 |
classes. Added stack boundary check to protect from too deep |
| 24847 |
recursive calls. |
| 24848 |
* configure.in, gc/mach_dep.c: applied a patch from Shigenobu |
| 24849 |
Kimura ([email protected]) in order to compile under NetBSD. |
| 24850 |
|
| 24851 |
2001-04-18 Shiro Kawai <[email protected]> |
| 24852 |
|
| 24853 |
* test/number.scm: added. |
| 24854 |
* src/vm.c: fixed a bug that related to NUMADDI, NUMSUBI. |
| 24855 |
* src/number.c, src/bignum.c: fixed number of bugs related to |
| 24856 |
bignum reader and bignum addition/subtraction. |
| 24857 |
|
| 24858 |
2001-04-17 Shiro Kawai <[email protected]> |
| 24859 |
|
| 24860 |
* release 0.3.6 |
| 24861 |
* src/bignum.c: added Scm_BignumDivSI, and a conversion routine |
| 24862 |
from bignum to string; not debugged well. |
| 24863 |
* src/number.c (read_complex): fixed a bug that caused segfault. |
| 24864 |
* src/regexp.c: correctly recognize ']' at the beginning of the |
| 24865 |
character range. |
| 24866 |
|
| 24867 |
2001-04-16 Shiro Kawai <[email protected]> |
| 24868 |
|
| 24869 |
* src/regexp.c: added BOL/EOL anchors (^ and $). Fixed some bugs |
| 24870 |
in character range operator. |
| 24871 |
* test/regexp.scm: more tests. |
| 24872 |
|
| 24873 |
2001-04-15 Shiro Kawai <[email protected]> |
| 24874 |
|
| 24875 |
* release 0.3.5 |
| 24876 |
* src/read.c: added #/.../ extension to embed literal regexp. |
| 24877 |
* src/regexp.c: the first version of regexp starts working. |
| 24878 |
|
| 24879 |
2001-04-14 Shiro Kawai <[email protected]> |
| 24880 |
|
| 24881 |
* ext/uvector/*: finished the first version of uvector module. |
| 24882 |
* src/read.c (Scm_Read): added a hook function for srfi-4 extended |
| 24883 |
syntax when uvector module is loaded. |
| 24884 |
* src/load.c (Scm_Load): added a second parameter that specifies |
| 24885 |
whether an error should be signalled when the file is not found. |
| 24886 |
* ext/example/*.in: for "in-place" configuration, automatically |
| 24887 |
give appropriate -I option to gosh. |
| 24888 |
* ext/Makefile: added uvector |
| 24889 |
|
| 24890 |
2001-04-12 Shiro Kawai <[email protected]> |
| 24891 |
|
| 24892 |
* release 0.3.4 |
| 24893 |
* src/regexp.c: started to write this one. |
| 24894 |
|
| 24895 |
2001-04-09 Shiro Kawai <[email protected]> |
| 24896 |
|
| 24897 |
* src/list.c, src/extlib.c, lib/srfi-1.scm: added %assoc-delete[!] |
| 24898 |
and rewrite assoc-delete[!] to use them if possible. |
| 24899 |
|
| 24900 |
2001-04-08 Shiro Kawai <[email protected]> |
| 24901 |
|
| 24902 |
* src/compile.c (compile_body): body of "begin" is correctly spliced |
| 24903 |
into it's surrounding body. |
| 24904 |
|
| 24905 |
2001-04-07 Shiro Kawai <[email protected]> |
| 24906 |
|
| 24907 |
* release 0.3.3 |
| 24908 |
* lib/Makefile.in: oops, forgot to install with.scm |
| 24909 |
* test/srfi.scm: more tests for srfi-1 functions. |
| 24910 |
|
| 24911 |
2001-04-06 Shiro Kawai <[email protected]> |
| 24912 |
|
| 24913 |
* release 0.3.2 |
| 24914 |
* src/gauche-init.scm: moved some functions into library, and |
| 24915 |
define autoload for them. |
| 24916 |
* src/char.c, src/extlib.stub: added gauche-char-encoding |
| 24917 |
* src/vm.c: support multi-value continuation. fixed a bug for |
| 24918 |
multiple value handling. |
| 24919 |
* test/srfi.scm: added tests for srfi-1 functions. |
| 24920 |
|
| 24921 |
2001-04-05 Shiro Kawai <[email protected]> |
| 24922 |
|
| 24923 |
* release 0.3.1 |
| 24924 |
* lib/srfi-1.scm, lib/srfi-1/*: splitted srfi-1.scm into a bunch of |
| 24925 |
small files that will be autoloaded on demand. |
| 24926 |
* src/list.c, src/extlib.stub: added %delete[!], %delete-duplicates[!] |
| 24927 |
* src/load.c: use stat() instead of access() to check existence of |
| 24928 |
the file, in order to rule out a directory with the same name. |
| 24929 |
|
| 24930 |
2001-04-04 Shiro Kawai <[email protected]> |
| 24931 |
|
| 24932 |
* release 0.3 |
| 24933 |
* src/*.[ch]: changed object write protocol. Object writers receive |
| 24934 |
ScmWriteContext that encapsulates various information instead of |
| 24935 |
an simple interger. Further enhancement will be done, without |
| 24936 |
breaking the protocol. |
| 24937 |
* lib/srfi-14.scm, src/char.c: finished working version of char-set |
| 24938 |
srfi (although the UCS support is limited). |
| 24939 |
|
| 24940 |
2001-04-03 Shiro Kawai <[email protected]> |
| 24941 |
|
| 24942 |
* release 0.2.20: |
| 24943 |
* src/char.c, src/extlib.stub: added more charset stuff. |
| 24944 |
* src/syslib.stub (sys-tmpnam): use mkstemp() instead of tmpnam() |
| 24945 |
if possible. |
| 24946 |
|
| 24947 |
2001-04-02 Shiro Kawai <[email protected]> |
| 24948 |
|
| 24949 |
* release 0.2.19: |
| 24950 |
* gauche/serializer.scm, gauche/serializer/aserializer.scm: ports |
| 24951 |
from the modules written for STk. This is an experimental code |
| 24952 |
and its API may change later. |
| 24953 |
* test/object.scm: more test for metaclass. |
| 24954 |
* src/class.c: fixed a bug to set a appropriate allocator. added |
| 24955 |
consistency checks in native slot setters. |
| 24956 |
* src/vm.c (run_loop): fixed a bug that didn't adjust argument |
| 24957 |
frame size upon calling a method. |
| 24958 |
|
| 24959 |
2001-04-01 Shiro Kawai <[email protected]> |
| 24960 |
|
| 24961 |
* release 0.2.18 |
| 24962 |
* lib/gauche/object.scm: finishing metaclass stuff (not well tested |
| 24963 |
yet). |
| 24964 |
* src/char.c: start adding character set stuff. |
| 24965 |
* src/boolean.c (Scm_EqualP): added a hook for class compare routine. |
| 24966 |
* lib/gauche/object.scm, src/vm.c: generic function application |
| 24967 |
metaobject protocol implemented (not tested, though). |
| 24968 |
* src/moplib.stub: added %make-next-method |
| 24969 |
* src/list.c: added Scm_ListToArray. |
| 24970 |
* src/compare.c, src/extlib.stub: added sorting-related routines |
| 24971 |
and Scheme functions sort and sort!. |
| 24972 |
* src/number.c (Scm_NumCmp): fixed a bug that didn't work properly |
| 24973 |
for flonums. |
| 24974 |
|
| 24975 |
2001-03-31 Shiro Kawai <[email protected]> |
| 24976 |
|
| 24977 |
* release 0.2.17 |
| 24978 |
* src/class.c: implement default method of compute-applicable-methods |
| 24979 |
and method-more-specific? |
| 24980 |
* src/string.c, src/stdlib.stub: consolidated string comparison |
| 24981 |
routines to Scm_StringCmp and Scm_StringCiCmp. |
| 24982 |
* src/number.c, src/stdlib.stub, src/vm.c: consolidated number |
| 24983 |
comparison routines to a single function, Scm_NumCmp. |
| 24984 |
* lib/srfi-17.scm, lib/gauche/object.scm: srfi-17 (generalized set!) |
| 24985 |
is now a part of Gauche module. No need to say "(use srfi-17)" |
| 24986 |
anymore. |
| 24987 |
* src/load.c: allow filename without default suffix. |
| 24988 |
* lib/rfc/base64.scm: added. Base64 encode/decode routine. |
| 24989 |
* src/gauche.h: fixed a bug in SCM_GETB. |
| 24990 |
* src/stdlib.stub, src/vm.c, src/gauche/vminsn.h : inline |
| 24991 |
read-char and write-char. |
| 24992 |
* src/genstub (emit-inliner-header): fixed a bug in the case of |
| 24993 |
optional arg. Start using the object system. |
| 24994 |
|
| 24995 |
2001-03-30 Shiro Kawai <[email protected]> |
| 24996 |
|
| 24997 |
* release 0.2.16 |
| 24998 |
* src/vm.c, src/compile.c, src/gauche/vminsn.h, src/stdlib.stub: |
| 24999 |
added SCM_VM_LREF1[0-5] instructions. inline memq, assq, assv. |
| 25000 |
* src/extlib.stub: added read-byte |
| 25001 |
* src/symbol.c: escape illegal charcters in a symbol when wrote. |
| 25002 |
* src/class.c: added slot-bound? and slot-bound-using-class? |
| 25003 |
* src/compile.c: fixed a bug that didn't compile SCM_VM_LSET[0-5] |
| 25004 |
properly. |
| 25005 |
* lib/gauche/object.scm: added slot-exists? and |
| 25006 |
slot-exists-using-class? |
| 25007 |
|
| 25008 |
2001-03-29 Shiro Kawai <[email protected]> |
| 25009 |
|
| 25010 |
* release 0.2.15 |
| 25011 |
* src/*.c: removed "equal" protocol from class definition. clean up |
| 25012 |
builtin class definition macros. |
| 25013 |
* src/class.c, src/write.c: moved write-object stuff from class.c |
| 25014 |
to write.c |
| 25015 |
* lib/gauche/process.scm: added. mostly STk-compatible process |
| 25016 |
module, but implemented as an object. |
| 25017 |
* src/system.c, src/syslib.stub: added Scm_SysExec, that calls |
| 25018 |
execvp() with taking care of file discriptors. Changed sys-exec |
| 25019 |
accordingly. |
| 25020 |
|
| 25021 |
2001-03-28 Shiro Kawai <[email protected]> |
| 25022 |
|
| 25023 |
* release 0.2.14 |
| 25024 |
* src/class.c: added generic function write-object. |
| 25025 |
* src/error.c, src/vm.c, src/gauche/vm.h: added vm->errorFlags, |
| 25026 |
and use SCM_ERROR_BEING_HANDLED flag to avoid infinite loop |
| 25027 |
of calling error function. |
| 25028 |
|
| 25029 |
2001-03-27 Shiro Kawai <[email protected]> |
| 25030 |
|
| 25031 |
* release 0.2.13 |
| 25032 |
* src/vm.c, src/compile.c: finally deals with let-family, do and |
| 25033 |
receive properly tail recursive way. |
| 25034 |
consolidate compiler flags. |
| 25035 |
* src/main.c: added -fno-source-info option. it disables inserting |
| 25036 |
debug information into the final code, and improves performance |
| 25037 |
considerably. |
| 25038 |
* lib/gauche/vm/disasm.scm: more reasonable output format. |
| 25039 |
* lib/gauche/object.scm: added class-slot-ref and class-slot-set! |
| 25040 |
|
| 25041 |
2001-03-26 Shiro Kawai <[email protected]> |
| 25042 |
|
| 25043 |
* release 0.2.12 |
| 25044 |
* lib/gauche/object.scm (compute-get-n-set): implemented class, |
| 25045 |
each-subclass and virtual slot allocation. |
| 25046 |
* src/class.c: if a slot accessor returns UNDEFINED, regard it |
| 25047 |
as an unbound slot and call slot-missing. Necessary for virtual |
| 25048 |
slots to tell the system that slot is unbound. |
| 25049 |
* src/class.c (method_more_specific): fixed a bug. |
| 25050 |
* src/class.c (Scm_AddMethod): check for method redefinition of |
| 25051 |
the same signature. |
| 25052 |
* src/extlib.stub: added undefined and undefined? to treat undefined |
| 25053 |
value explicitly in Scheme. |
| 25054 |
* src/vm.c: fixed a bug with inlined slot-ref and slot-set!, that |
| 25055 |
broke VM stack when Scm_VMApply was called internally. |
| 25056 |
|
| 25057 |
2001-03-25 Shiro Kawai <[email protected]> |
| 25058 |
|
| 25059 |
* release 0.2.11 |
| 25060 |
* lib/gauche/object.scm: support :getter, :setter and :accessor |
| 25061 |
slot options. |
| 25062 |
* src/class.c: implemented SortMethod. |
| 25063 |
* src/vm.c, src/moplib.stub: made slot-ref and slot-set! inlinable. |
| 25064 |
* src/vm.c (ADJUST_ARGUMENT_FRAME): fixed a bug that didn't saved |
| 25065 |
VM regs before calling Scm_Error. |
| 25066 |
|
| 25067 |
2001-03-24 Shiro Kawai <[email protected]> |
| 25068 |
|
| 25069 |
* release 0.2.10 |
| 25070 |
* test/object.scm: test file for object system. |
| 25071 |
* src/moplib.stub: added %ensure-generic-function. |
| 25072 |
* src/class.c: finished slot initialization protocol. implemented |
| 25073 |
code to deal with Scheme-defined slots. |
| 25074 |
* src/class.c (Scm_MakeBaseGeneric): added for C code to create |
| 25075 |
a generic fucntion. |
| 25076 |
* src/gauche-init.scm: load object system as well. |
| 25077 |
* src/main.c: adapted to the changes of load.c and core.c. |
| 25078 |
redesigned command-line options. |
| 25079 |
* src/load.c: current dir is not added to the load-path by default. |
| 25080 |
it's also up to the application. |
| 25081 |
* src/core.c (Scm_Init): it no longer loads initfile. loading |
| 25082 |
initfile is up to the application. |
| 25083 |
* src/list.c: Scm_Delete added. |
| 25084 |
|
| 25085 |
2001-03-23 Shiro Kawai <[email protected]> |
| 25086 |
|
| 25087 |
* release 0.2.9 |
| 25088 |
* lib/*: reorganized library structure. gauche-specific stuff |
| 25089 |
go into gauche/ subdirectory, and can be used by |
| 25090 |
"(use gauche.something)". |
| 25091 |
* src/class.c, src/gauche/class.h: changed ScmClassAccessor to |
| 25092 |
ScmSlotAccessor and made it have more information for slot |
| 25093 |
initialization and access. Basic features such as defining |
| 25094 |
class in Scheme, instancing it, and accessing slots, start |
| 25095 |
working---a lot has to be done for completeness. |
| 25096 |
* src/compile.c (compile_qq_list): fixed a bug that messed up |
| 25097 |
the stack by quasiquoted forms with unquote and unquote-splicing |
| 25098 |
intertwined. |
| 25099 |
|
| 25100 |
2001-03-21 Shiro Kawai <[email protected]> |
| 25101 |
|
| 25102 |
* release 0.2.8 |
| 25103 |
* src/class.c, lib/object.scm: (initialize <method> <list>) is |
| 25104 |
finished. (make <class> . initargs) works. define-generic |
| 25105 |
and define-method written. still working on slot construction |
| 25106 |
in the class initializer. |
| 25107 |
* src/macro.c: fixed a bug to treat dotted pattern. |
| 25108 |
|
| 25109 |
* release 0.2.7 |
| 25110 |
* src/gauche.h, src/class.c, src/moplib.stub: finished protocol |
| 25111 |
to define generic functions and methods only in C. removed some |
| 25112 |
stub functions from moplib.stub that are implemented genuine |
| 25113 |
generic functions / methods. |
| 25114 |
* src/vm.c: integration of method invocation. |
| 25115 |
|
| 25116 |
2001-03-19 Shiro Kawai <[email protected]> |
| 25117 |
|
| 25118 |
* release 0.2.6 |
| 25119 |
* src/gauche.h, src/proc.c, src/class.c: changed procedure |
| 25120 |
structure. there's no longer separate classes for closure and |
| 25121 |
subr; they're <procuedure>. "type" field in ScmProcedure structure |
| 25122 |
discriminates closures, subrs, and other applicable metaobjects. |
| 25123 |
* src/vm.c: method dispatching code is embedded in VM loop. Not |
| 25124 |
quite working, but it's on the way. |
| 25125 |
* src/gauche-init.scm: added code to load ~/.gaucherc if exists. |
| 25126 |
* src/list.c: added Scm_ArrayToList. |
| 25127 |
* src/vector.c: rewrote Scm_VectorToList using Scm_ArrayToList. |
| 25128 |
* src/system.c (Scm_NormalizePathname): fix bug in expanding "~". |
| 25129 |
|
| 25130 |
2001-03-18 Shiro Kawai <[email protected]> |
| 25131 |
|
| 25132 |
* release 0.2.5 |
| 25133 |
* src/gauche.h, src/proc.c: applicable objects (including subrs |
| 25134 |
and closures) are marked so in its class structure. SCM_PROCEDUREP |
| 25135 |
is changed accordingly. |
| 25136 |
* src/class.c, src/moplib.stub: further code for mop support. |
| 25137 |
* src/vm.c, src/compile.c, src/gauche/vminsn.h: optimization by |
| 25138 |
adding shortcut operation of LREF/LSET. |
| 25139 |
|
| 25140 |
2001-03-17 Shiro Kawai <[email protected]> |
| 25141 |
|
| 25142 |
* doc/Makefile: added. |
| 25143 |
* src/gauche.h, src/gauche/class.h: ScmGeneric and ScmMethod |
| 25144 |
is now inherits ScmProcedure, for they share the common part |
| 25145 |
as applicable objects. |
| 25146 |
* src/vm.c: a bit of optimization. |
| 25147 |
|
| 25148 |
2001-03-16 Shiro Kawai <[email protected]> |
| 25149 |
|
| 25150 |
* release 0.2.4 |
| 25151 |
* src/*: restructured defining scheme of builtin classes. Macro |
| 25152 |
SCM_DEFINE_BUILTIN_CLASS is introduced instead of SCM_DEFCLASS. |
| 25153 |
Now builtin class requires to be initialized by |
| 25154 |
Scm_InitBuiltinClass. |
| 25155 |
* src/string.c, src/extlib.c: added string-contains (srfi-13). |
| 25156 |
* src/symbol.c, src/extlib.c: added apropos. |
| 25157 |
* src/hash.c: fixed bug in string hash function. added |
| 25158 |
hash-table-stat. |
| 25159 |
|
| 25160 |
2001-03-15 Shiro Kawai <[email protected]> |
| 25161 |
|
| 25162 |
* release 0.2.3 |
| 25163 |
* src/class.c, src/gauche/class.h, src/moplib.stub, lib/object.scm: |
| 25164 |
gradually developing class allocation protocol and slot access |
| 25165 |
protocol. |
| 25166 |
* src/repl.c: fixed a bug that didn't let repl exit when EOF read. |
| 25167 |
|
| 25168 |
2001-03-14 Shiro Kawai <[email protected]> |
| 25169 |
|
| 25170 |
* release 0.2.2 |
| 25171 |
* COPYING: clearify the copyright and distributing condition. |
| 25172 |
* src/class.c, src/moplib.stub: added some OO stuff. not quite |
| 25173 |
working. |
| 25174 |
* src/hash.c, src/extlib.stub: added Scm_HashTableKeys and |
| 25175 |
Scm_HashTableValues. hash-table-keys and hash-table-values |
| 25176 |
in Scheme. |
| 25177 |
* src/main.c: expose argv[0] to Scheme as *program-name*. |
| 25178 |
* configure.in, src/system.c, src/syslib.stub: include time.h and |
| 25179 |
sys/time.h, depending on the system configuration. |
| 25180 |
|
| 25181 |
2001-03-13 Shiro Kawai <[email protected]> |
| 25182 |
|
| 25183 |
* release 0.2.1 |
| 25184 |
* src/gauche.h, src/class.c: further designing. not much code yet. |
| 25185 |
* configure.in: made to work on sparc-sun-solaris2.6 |
| 25186 |
* ext/example/Makefile.in: install rule was broken. fixed. |
| 25187 |
|
| 25188 |
2001-03-12 Shiro Kawai <[email protected]> |
| 25189 |
|
| 25190 |
* release 0.2 |
| 25191 |
* src/class.c: start implementing core protocol of metaobjects. |
| 25192 |
* ext/example: fixed configure.in and Makefile.in to handle |
| 25193 |
installation process as well. |
| 25194 |
* src/syslib.stub: added a part of signal stuff and exec(). |
| 25195 |
|
| 25196 |
2001-03-11 Shiro Kawai <[email protected]> |
| 25197 |
|
| 25198 |
* release 0.1.8 |
| 25199 |
* src/srfi-2.scm: rewrote completely using define-syntax. |
| 25200 |
* src/macro.c (compile_define_macro): fixed a bug that called |
| 25201 |
Scm_MakeClosure with env argument pointing to VM stack. The env |
| 25202 |
should be saved to the heap. |
| 25203 |
* src/genstub, src/syslib.stub: added define-type stub directive, |
| 25204 |
which allows stub files to include type parameters. |
| 25205 |
* src/syslib.stub: added interface for setlocale and localeconv |
| 25206 |
by Yuuki Takahashi ([email protected]). |
| 25207 |
* src/port.c, src/syslib.stub: complete procedural port protocol. |
| 25208 |
added "port over file descriptor" as a class of procedural port, |
| 25209 |
and implement sys-pipe using it. |
| 25210 |
* src/port.c, src/extlib.stub: Added read-line. |
| 25211 |
|
| 25212 |
2001-03-10 Shiro Kawai <[email protected]> |
| 25213 |
|
| 25214 |
* release 0.1.7 |
| 25215 |
* src/genstub: Now the stub generator runs under gosh itself; no need |
| 25216 |
for external scheme system. |
| 25217 |
* src/stdlib.stub (integer?): fixed bug that caused an error when |
| 25218 |
non-number was given. |
| 25219 |
* src/compile.c (compile_int): fixed a bug that didn't recognize |
| 25220 |
syntactic binding inserted in different module. |
| 25221 |
* src/main.c: invoked as a script, command line arguments are |
| 25222 |
available in the variable *argv*. |
| 25223 |
* src/io.c, src/extlib.stub: with-{output-to|input-from}-{port|string} |
| 25224 |
* lib/srfi-17.scm: added srfi-17, generalized set! |
| 25225 |
* test/srfi.scm: test file for srfi's. not completed yet. |
| 25226 |
|
| 25227 |
2001-03-09 Shiro Kawai <[email protected]> |
| 25228 |
|
| 25229 |
* release 0.1.6 |
| 25230 |
* configure.in etc.: revised configuration process. fixed protocol |
| 25231 |
of build, test and call extension modules. |
| 25232 |
* ext/example: example of dynamic loadable extension. |
| 25233 |
* src/port.c: implement procedural port protocol. |
| 25234 |
* src/load.c: looks environment variable GAUCHE_LOAD_PATH for |
| 25235 |
initial *load-path* (in addition to the system default) |
| 25236 |
* src/gauche-init.scm: added USE macro, which combines function of |
| 25237 |
require and import. Changed library and test files accordingly. |
| 25238 |
* src/genstub: added define-symbol directive to pre-create symbols. |
| 25239 |
|
| 25240 |
2001-03-08 Shiro Kawai <[email protected]> |
| 25241 |
|
| 25242 |
* release 0.1.5 |
| 25243 |
* configure.in, src/Makefile.in: start putting configuration stuff |
| 25244 |
for dynamic linking. Far from complete yet. |
| 25245 |
* src/genstub, src/core.c: initialization function generated by |
| 25246 |
the stub generator now takes a module as an arg. |
| 25247 |
* src/load.c, src/extlib.stub, src/gauche-init.scm: require, provide |
| 25248 |
and provided? are supported in C level. Require and add-load-path |
| 25249 |
are processed at compile time. |
| 25250 |
* src/syslib.stub: added sys/time.h related system interface functions |
| 25251 |
by Yuuki Takahashi ([email protected]). |
| 25252 |
* src/vm.c (user_eval_inner): didn't restore VM registers properly; |
| 25253 |
fixed. |
| 25254 |
* lib/srfi-11.scm: srfi-11 support added. |
| 25255 |
|
| 25256 |
2001-03-07 Shiro Kawai <[email protected]> |
| 25257 |
|
| 25258 |
* release 0.1.4 |
| 25259 |
* configure.in: changed installation directory of architecture |
| 25260 |
dependent files. Compiled DSO files should go under exec_prefix, |
| 25261 |
while Scheme files go under prefix. |
| 25262 |
* src/port.c: line count starts from 1. |
| 25263 |
* src/gauche/config.h.in, configure.in: added check for members |
| 25264 |
of struct group and struct passwd. |
| 25265 |
* src/system.c, src/syslib.stub: complete group and password interface. |
| 25266 |
added stat interface. added times interface. added class |
| 25267 |
definitions for time_t and struct tm. |
| 25268 |
added crypt interface by Yuuki Takahashi ([email protected]). |
| 25269 |
* src/load.c: changed *load-filename* to *load-port*, since it's more |
| 25270 |
general. implemented *load-history*. |
| 25271 |
|
| 25272 |
2001-03-06 Shiro Kawai <[email protected]> |
| 25273 |
|
| 25274 |
* release 0.1.3 |
| 25275 |
* various files: clean up the testing and installation scheme. Now |
| 25276 |
the architecture dependent files go to the directory designated |
| 25277 |
by the architecture name. Add INSTALL file to describe the process |
| 25278 |
shortly. See lib/tester/tester.scm for testing method. |
| 25279 |
* src/load.c: dynamic loading now uses *dynamic-load-path* instead of |
| 25280 |
*load-path*. When add-load-path is used, it tries to find an |
| 25281 |
architecture dependent counterparts of the specified directory and |
| 25282 |
add it to *dynamic-load-path*. |
| 25283 |
* lib/japanize-euc.scm: for fun. |
| 25284 |
* src/system.c, src/syslib.stub: Add getpwuid and getpwnam interface |
| 25285 |
provided by Yuuki Takahashi ([email protected]). |
| 25286 |
* src/syslib.stub: Add convenient routine to convert |
| 25287 |
between gid/pid and group/user name. |
| 25288 |
* configure.in, src/syslib.stub: added check for existence of symlink. |
| 25289 |
|
| 25290 |
2001-03-05 Shiro Kawai <[email protected]> |
| 25291 |
|
| 25292 |
* release 0.1.2 |
| 25293 |
* src/macro.c, src/gauche-init.scm: define-macro and define-syntax |
| 25294 |
is moved from gauche-init.scm into macro.c, since global syntactic |
| 25295 |
binding should be visible at compile time. |
| 25296 |
* src/load.c: added dynamic handler to restore the current module, |
| 25297 |
and properly close the port. |
| 25298 |
* src/vm.c (Scm_VMThrowExcpeption): throwing fatal exception shouldn't |
| 25299 |
return! Fixed. |
| 25300 |
* configure.in, src/number.c, src/gauche/config.h.in: applied a patch |
| 25301 |
from Yuuki Takahashi ([email protected]) to check existence |
| 25302 |
of trunc() and rint(). |
| 25303 |
|
| 25304 |
2001-03-04 Shiro Kawai <[email protected]> |
| 25305 |
|
| 25306 |
* release 0.1.1 |
| 25307 |
* src/module.c, src/compile.c: implemented module selection |
| 25308 |
mechanism. Module binding is resolved during compile time, |
| 25309 |
so the Scheme interface such as with-module, select-module and |
| 25310 |
current-module are implemented as a built-in syntax. |
| 25311 |
* src/core.c (Scm_Init): initialize builtin functions within |
| 25312 |
appropriate modules. |
| 25313 |
* src/boolean.c etc.: equivalent preicate C API now returns C boolean |
| 25314 |
instead of Scheme boolean; easier for C programs. |
| 25315 |
* src/list.c: added topological sort function and some more list |
| 25316 |
manipulaton functions, generally useful from C. |
| 25317 |
|
| 25318 |
2001-03-03 Shiro Kawai <[email protected]> |
| 25319 |
|
| 25320 |
* release 0.1: almost covered R5RS |
| 25321 |
* src/compile.c: fixed lookup_env to lookup identifiers with |
| 25322 |
local environment. fixed a problem in nested quasiquotes. |
| 25323 |
* src/macro.c: implemented let-syntax and letrec-syntax. make |
| 25324 |
vector pattern and template work correctly. |
| 25325 |
* src/macrotest.c: more tests |
| 25326 |
* src/boolean.c (Scm_EqualP): fixed a bug. |
| 25327 |
* src/write.c (write_internal): fixed a bug which didn't print |
| 25328 |
a character in "display" mode. |
| 25329 |
* src/symbol.c (Scm_Intern): fixed a bug which inserted given string |
| 25330 |
into obtable without copying. |
| 25331 |
* src/number.c: revised string->number algorithm |
| 25332 |
|
| 25333 |
2001-03-02 Shiro Kawai <[email protected]> |
| 25334 |
|
| 25335 |
* release 0.0.20 |
| 25336 |
* src/macro.c: fixed problem with nested repeat patterns. |
| 25337 |
* test/macrotest.scm: added more tests to cover various cases. |
| 25338 |
|
| 25339 |
2001-02-28 Shiro Kawai <[email protected]> |
| 25340 |
|
| 25341 |
* release 0.0.19 |
| 25342 |
* src/macro.c: fixed to handle templates like (?a ... ?b ...) |
| 25343 |
correctly. |
| 25344 |
* lib/srfi-0.scm: srfi-0 added. |
| 25345 |
|
| 25346 |
2001-02-27 Shiro Kawai <[email protected]> |
| 25347 |
|
| 25348 |
* src/extlib.stub: added some nonstandard procedures (identifier?, |
| 25349 |
identifier->symbol, flush) |
| 25350 |
* lib/test.scm: added to support simple self-testing. |
| 25351 |
* test/macrotest.scm: more tests. |
| 25352 |
|
| 25353 |
2001-02-26 Shiro Kawai <[email protected]> |
| 25354 |
|
| 25355 |
* release 0.0.18 |
| 25356 |
* src/macro.c: almost finished implementing syntax-rules. not tested |
| 25357 |
well yet. |
| 25358 |
* src/vm.c: added immediate integer arithmetic instructions |
| 25359 |
(NUMADDI and NUMSUBI) |
| 25360 |
* src/genstub, src/stdlib.stub: experimentally added a feature |
| 25361 |
to write arbitrary inliner function in C. Inliner functions |
| 25362 |
for immediate integer addition/subtraction is added to stdlib.stub. |
| 25363 |
|
| 25364 |
2001-02-23 Shiro Kawai <[email protected]> |
| 25365 |
|
| 25366 |
* release 0.0.17 |
| 25367 |
* src/macro.c, src/gauche/macro.h: pattern language compiler and |
| 25368 |
matcher test code. |
| 25369 |
|
| 25370 |
2001-02-21 Shiro Kawai <[email protected]> |
| 25371 |
|
| 25372 |
* release 0.0.16 |
| 25373 |
* src/macro.c, src/compile.c: more code for r5rs macro system (not |
| 25374 |
finished yet) |
| 25375 |
* src/vm.c: fix error message of "unbound variables" to show |
| 25376 |
symbols instead of identifiers. |
| 25377 |
* src/list.c, src/extlib.stub: added acons |
| 25378 |
|
| 25379 |
2001-02-20 Shiro Kawai <[email protected]> |
| 25380 |
|
| 25381 |
* release 0.0.15 |
| 25382 |
* src/compile.c, src/gauche/vm.h: changed the compile-time |
| 25383 |
environment structure so that it can handle locally defined macros. |
| 25384 |
ScmIdentifier object is introduced to realize hygienic macros. |
| 25385 |
* src/vm.c: changed to use ScmIdentifier objects for global variable |
| 25386 |
reference instead of bare symbols. fixed a bug in VALUES_BIND |
| 25387 |
which messed up argp. |
| 25388 |
|
| 25389 |
2001-02-19 Shiro Kawai <[email protected]> |
| 25390 |
|
| 25391 |
* release 0.0.14 |
| 25392 |
* configure.in, src/gauche/config.h.in: start using config.h instead |
| 25393 |
of long $(DEFS). |
| 25394 |
* src/load.c, src/gauche-init.scm: autoload feature implemented |
| 25395 |
* src/compile.c: compile toplevel begin properly. fix bug in |
| 25396 |
compile_receive to handle an improper list as a binding list. |
| 25397 |
|
| 25398 |
2001-02-18 Shiro Kawai <[email protected]> |
| 25399 |
|
| 25400 |
* release 0.0.13 |
| 25401 |
* src/bignum.c, src/number.c: bignum support added (partly) |
| 25402 |
* src/load.c: dynamic link loader starts working |
| 25403 |
* ext/uvector/*: uvector extention module added (not working yet) |
| 25404 |
|
| 25405 |
2001-02-16 Shiro Kawai <[email protected]> |
| 25406 |
|
| 25407 |
* src/system.c: fix bug in Scm_NormalizePathname for "~user" expansion |
| 25408 |
* src/proc.c: added Scm_NullProc. |
| 25409 |
* src/vm.c: added Scm_VMDynamicWindC, a C-friendly interface of |
| 25410 |
dynamic-wind. |
| 25411 |
* src/module.c: Scm_Define returns Gloc object instead of symbol |
| 25412 |
|
| 25413 |
2001-02-15 Shiro Kawai <[email protected]> |
| 25414 |
|
| 25415 |
* release 0.0.12 |
| 25416 |
* src/vm.c, src/compile.c: implemented receive and values. |
| 25417 |
* src/extlib.stub: added string port functions. |
| 25418 |
* src/load.c: added some code to support dynamic linking |
| 25419 |
|
| 25420 |
2001-02-14 Shiro Kawai <[email protected]> |
| 25421 |
|
| 25422 |
* release 0.0.11 |
| 25423 |
* src/vm.c: Fix problem of user_eval_inner. Complete call/cc |
| 25424 |
implementation. Added multiple values support (not finished yet). |
| 25425 |
* src/gauche.h, src/gauche/vm.h, src/stdlib.stub, src/comple.c: |
| 25426 |
Added multiple values support (not finished yet). |
| 25427 |
* lib/srfi-1.scm: SRFI-1 support added. Not working completely |
| 25428 |
because of lack of multiple values. |
| 25429 |
* lib/srfi-2.scm: SRFI-2 support added. |
| 25430 |
|
| 25431 |
2001-02-13 Shiro Kawai <[email protected]> |
| 25432 |
|
| 25433 |
* release 0.0.10 |
| 25434 |
* src/vm.c: added REVERSE instruction. added code to support |
| 25435 |
call/cc (but not working yet---call/cc crashes in the current |
| 25436 |
version) |
| 25437 |
* src/system.c, src/syslib.stub: avoid using PATH_MAX |
| 25438 |
* src/string.c, src/extlib.stub: added string-split |
| 25439 |
|
| 25440 |
2001-02-12 Shiro Kawai <[email protected]> |
| 25441 |
|
| 25442 |
* release 0.0.9 |
| 25443 |
* src/file.c: removed. pathname functions are moved to system.c |
| 25444 |
* src/system.c: added pathname functions (dirname, basename, |
| 25445 |
normalize-pathname) |
| 25446 |
|
| 25447 |
2001-02-11 Shiro Kawai <[email protected]> |
| 25448 |
|
| 25449 |
* sys/string.c: fix to handle the case that c-string's length is |
| 25450 |
unknown but size is given. |
| 25451 |
|
| 25452 |
2001-02-10 Shiro Kawai <[email protected]> |
| 25453 |
|
| 25454 |
* src/genstub: allow &keyword args |
| 25455 |
* src/system.c, src/syslib.stub: added system interface. |
| 25456 |
|
| 25457 |
2001-02-09 Shiro Kawai <[email protected]> |
| 25458 |
|
| 25459 |
* src/gauche/vm.h: fix bug in SCM_PROPAGATE_ERROR |
| 25460 |
|
| 25461 |
2001-02-08 Shiro Kawai <[email protected]> |
| 25462 |
|
| 25463 |
* src/vm.c: use label address feature of gcc to dispatch instructions |
| 25464 |
* src/read.c: allow "#!"-line in the script file |
| 25465 |
|
| 25466 |
2001-02-06 Shiro Kawai <[email protected]> |
| 25467 |
|
| 25468 |
* release 0.0.6 |
| 25469 |
* src/string.c: added a few new functions following SRFI-13. |
| 25470 |
* src/repl.c: the caller can specify the prompt now. |
| 25471 |
|
| 25472 |
2001-02-05 Shiro Kawai <[email protected]> |
| 25473 |
|
| 25474 |
* release 0.0.5 |
| 25475 |
* src/core.c, src/main.c, src/gauche-init.scm: now Scm_Init() takes |
| 25476 |
a name of Scheme file for initialization. gauche-init.scm is |
| 25477 |
the default one for gosh. |
| 25478 |
* src/vm.c, src/compile.c: fix compilation of case, and clean up |
| 25479 |
the code related to compile_if_family. |
| 25480 |
* src/load.c: added *load-path* |
| 25481 |
* src/keyword.c: added |
| 25482 |
|
| 25483 |
2001-02-04 Shiro Kawai <[email protected]> |
| 25484 |
|
| 25485 |
* release 0.0.4 |
| 25486 |
* src/vm.c: clearify interaction between user-level eval/apply and |
| 25487 |
exception handlers. |
| 25488 |
* src/compile.c: added traditional macro system. |
| 25489 |
* src/class.c, et.al.: code cleanup around statically defined |
| 25490 |
built-in classes |
| 25491 |
|
| 25492 |
2001-02-02 Shiro Kawai <[email protected]> |
| 25493 |
|
| 25494 |
* release 0.0.3 |
| 25495 |
* src/vm.c, src/gauche/vminsn.h, src/stdlib.stub: inline several |
| 25496 |
numeric operations. |
| 25497 |
* src/compile.c: fix quasiquote code and clean up. |
| 25498 |
* make installation procedure clearer. |
| 25499 |
* src/gauche-config.in: added |
| 25500 |
|
| 25501 |
2001-02-01 Shiro Kawai <[email protected]> |
| 25502 |
|
| 25503 |
* release 0.0.2 |
| 25504 |
* src/class.c: added Scm_MakeBuiltinClass. |
| 25505 |
* src/string.c, extlib.stub: added string-append, string-join |
| 25506 |
* src/file.c: added |
| 25507 |
|
| 25508 |
2001-01-31 Shiro Kawai <[email protected]> |
| 25509 |
|
| 25510 |
* internal release 0.0.1 |
| 25511 |
|
| 25512 |
;; Local Variables: |
| 25513 |
;; coding: utf-8 |
| 25514 |
;; End: |