summaryrefslogtreecommitdiff
path: root/libguile/script.c
AgeCommit message (Collapse)AuthorFilesLines
2000-09-22* Replaced SCM_CHARS with SCM_STRING_CHARS or SCM_SYMBOL_CHARS.Dirk Herrmann1-1/+1
2000-08-11* script.c (scm_shell): Pass scm_the_root_module () as second argMikael Djurfeldt1-1/+2
to new scm_eval_x.
2000-06-12Updated copyrightsMikael Djurfeldt1-2/+2
2000-04-21* Makefile.am (DEFS): Added. automake adds -I options to DEFS,Mikael Djurfeldt1-6/+6
and we don't want that. (INCLUDES): Removed all -I options except for the root source directory and the root build directory. * *.*: Change includes so that they always use the "prefixes" libguile/, qt/, guile-readline/, or libltdl/. (Thanks to Tim Mooney.)
2000-04-18* script.c (scm_compile_shell_switches): Also enableMikael Djurfeldt1-0/+1
record-positions when given the --debug option. (Thanks to Diego Dainese.)
2000-04-16* script.c (scm_compile_shell_switches): Added --debug option.Mikael Djurfeldt1-0/+8
2000-04-03Lots of fixes to make guile (at some time) compile with strict typing.Dirk Herrmann1-4/+4
2000-03-19 * *.[hc]: add Emacs magic at the end of file, to ensure GNUMichael Livshin1-0/+6
indentation style.
2000-01-31 * strings.h: don't use SCM_P. don't include <string.h>.Gary Houston1-0/+4
* error.c, gh_data.c, ports.c, script.c, strop.c: include <string.h>. * strings.c (scm_string_ref): make the 2nd argument compulsory. previously it defaulted to zero for no good reason that I can see. use a local variable for SCM_INUM (k). replace SCM_VALIDATE_INUM_DEF with SCM_VALIDATE_INUM_COPY. (scm_makfromstr): cosmetic changes. (scm_string): Accept only chars in the list, not strings, for conformance to R5RS (particularly for list->string, which is supposed to be the inverse of string->list.) remove SCM_DEFER_INTS/SCM_ALLOW_INTS, which is unnecessary since scm_makstr handles the cell allocation. when reporting wrong-type arg, don't report the position as 1. * posix.c (scm_init_posix): intern PIPE_BUF if it's defined. * boot-9.scm (find-and-link-dynamic-module): pass strings, not symbols, to string-append.
1999-12-12* *.c: Finish replacing K&R style prototypes with ANSI CGreg J. Badros1-25/+13
prototypes. * eval.c: Make scm_m_mody's 3rd argument be a const char *, not a char *. ANSI prototypes caught this. * strorder.c: Use GUILE_PROC1 for the couple SCM_PROC1 expansions that I missed. * scm_validate.h: Use SCM_BOOLP for validating bools. Do not expand macros if SCM_DOCSTRING_SNARF.
1999-12-12* *.c, srcprop.h: Use SCM_BOOL(f) instead of (f? SCM_BOOL_T:Greg J. Badros1-1/+1
SCM_BOOL_F) and use SCM_NEGATE_BOOL(f) instead of (f? SCM_BOOL_F: SCM_BOOL_T).
1998-10-19* __scm.h, alist.c, async.c, async.h, backtrace.h, chars.c,Jim Blandy1-1/+1
continuations.c, debug.c, debug.h, dynl-dl.c, dynl.c, dynl.h, dynwind.c, dynwind.h, eq.c, error.c, error.h, eval.c, eval.h, feature.c, filesys.c, filesys.h, fports.c, fports.h, gc.c, gc.h, genio.c, genio.h, gh.h, gh_data.c, gsubr.c, gsubr.h, hash.c, hashtab.c, init.c, init.h, ioext.c, ioext.h, kw.c, libguile.h, list.c, list.h, load.c, load.h, mallocs.c, markers.c, mit-pthreads.c, net_db.c, numbers.c, numbers.h, options.c, ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c, procprop.h, procs.c, procs.h, ramap.c, ramap.h, regex-posix.c, regex-posix.h, root.c, root.h, scmsigs.c, scmsigs.h, script.c, script.h, simpos.c, simpos.h, smob.c, smob.h, snarf.h, socket.c, srcprop.c, stackchk.c, stackchk.h, stacks.c, stime.c, stime.h, strings.c, strings.h, strports.c, struct.c, struct.h, symbols.c, symbols.h, tags.h, threads.c, throw.h, unif.c, variable.c, vectors.c, vectors.h, version.h, vports.c, weaks.c: Update copyright years.
1998-10-19* script.c (scm_compile_shell_switches): DefineJim Blandy1-2/+4
use-emacs-interface in the root module, so the repl code can see it. See today's change to top-repl in ice-9/boot-9.scm.
1998-10-17* script.c (scm_compile_shell_switches): Add handling of -q switchMikael Djurfeldt1-4/+17
(inhibit loading of user init file). (scm_shell_usage): Add usage text for -q switch. (scm_compile_shell_switches): Always load user init file first if it is loaded at all.
1998-10-12* script.c (scm_find_executable): Don't test if unix is #definedJim Blandy1-18/+0
here; first, NetBSD doesn't #define it, and second, it's the wrong way to go about these things. (dld_find_executable): Delete this MSDOS support code. This isn't the way we want to support this; it needs to be rethunk at a larger scale.
1998-10-03* init.c (invoke_main_func): Load the startup files (boot-9.scm)Jim Blandy1-21/+1
from here, not from scm_compile_shell_switches (which is a pretty dumb place to do it). (scm_load_startup_files): New function. (scm_ice_9_already_loaded): Variable moved to here from script.c. * script.c (scm_compile_shell_switches): Don't load the startup files here. (scm_ice_9_already_loaded): Variable moved. * init.c (scm_load_startup_files): Prototype for new function. * gh_init.c (gh_enter): Doc fix.
1998-04-18* script.c (scm_compile_shell_switches): Bugfix: Don't discount iMikael Djurfeldt1-1/+1
from argc if argc was 0 initially.
1998-04-10* script.c (scm_compile_shell_switches): Use "guile" as defaultMikael Djurfeldt1-2/+4
zero arg if argc is NULL.
1998-04-02* script.c (scm_compile_shell_switches): Allow NULL argv if argcMikael Djurfeldt1-1/+2
is zero. (Thanks to Dirk Herrmann.)
1997-10-25* load.c (scm_init_load_path): Check GUILE_LOAD_PATH environmentJim Blandy1-1/+1
variable first; then SCHEME_LOAD_PATH, with a warning message. (scm_parse_path): New function. * script.c: Doc fixes.
1997-09-28* script.c (scm_compile_shell_switches): If we hit the -c or --Jim Blandy1-2/+1
arguments, don't set the car of (command-line) to scm_usage_name, the prettified name of the guile executable; give it the full path, the way shells usually handle $0.
1997-09-15* list.h (SCM_LISTn): New macros. Make list creation in C codeMikael Djurfeldt1-1/+1
prettier. The idea comes from STk. * sequences.h, sequences.c, append.h, append.c: Removed. These files implemented non-R4RS operations which would encourage non-portable programming style and less easy-to-read code. * Makefile.am (sequences.h, sequences.c, append.h, append.c): Removed. * libguile.h, eval.c, init.c, stime.c, unif.c: Removed #include sequences.h, #include append.h. * gh.h, gh_list.c: Renamed gh_list_length --> gh_length. * list.h, list.c: Renamed scm_list_length --> scm_length, scm
1997-06-24* script.c (scm_compile_shell_switches): Add 1997 to copyrightJim Blandy1-1/+1
years in usage message.
1997-06-22Try to detect when people are using one version of libguile and aJim Blandy1-1/+2
different version of ice-9. People have been skewing things and sending in bug reports. * Makefile.am (versiondat.h): New file to generate. * version.c: #include "versiondat.h", to get version info. (scm_libguile_config_stamp): New function. * script.c: #include "version.h". (scm_compile_switches): Call scm_version to get version number. * scmconfig.h.in, Makefile.in: Regenerated. * Makefile.in: Regenerated. * Makefile.am (ETAGS_ARGS): Catch SCM_PROC, etc. so we can find primitive definitions under their Scheme names. * Makefile.am (libguile_la_LDFLAGS): Update library version to 1:2. Helps avoid confusion between installed and uninstalled libs.
1997-05-31* scmsigs.h, async.h: updated.Gary Houston1-0/+2
* _scm.h: if HAVE_RESTARTS is defined then don't use a SYSCALL loop. * posix.c (scm_uname): interpret only negative values as an error. Solaris normally returns a positive value. * script.c (scm_compile_shell_switches): if we are not going into an interactive repl, set scm_mask_ints to zero so that asyncs can run. * simpos.c (scm_system): don't ignore/unignore signals around the "system" call. * posix.c (scm_open_pipe): don't ignore/unignore signals around the "popen" call. * init.c (scm_boot_guile_1): don't call scm_init_signals, it's done in boot-9.scm instead. * scmsigs.c, async.c: Major rewriting of signal handling code. (scm_sigaction): new procedure. (scm_sleep): don't wrap sleep in SCM_SYSCALL, it would mess up the timing. (scm_raise): return unspecified, throw error on failure. * boot-9.scm: signal-handler, alarm-thunk: removed. don't define ticks-interrupt etc. top-repl: install signal handlers for SIGINT, SIGFPE, SIGSEGV, SIGBUS during call to scm-style-repl. * acconfig.h: mention HAVE_RESTARTS. * configure.in: check for sigaction and restartable system calls.
1997-05-26* Lots of files: New address for FSF.Jim Blandy1-3/+3
1997-05-26* script.c (scm_find_executable): Use prototype-style definitionJim Blandy1-157/+3
here; apparently it's not quite right to have const in a prototype and then use a K&R declaration. I wonder if stuff like this will go away if we compile with -Wrequire-prototypes, or whatever that is...
1997-05-16* script.c (scm_shell_usage): Pass FATAL to exit. There's noJim Blandy1-1/+1
reason not to give the user the option.
1997-05-13Doc fixJim Blandy1-2/+3
1997-05-13* script.c (scm_compile_shell_switches): don't append (quit) ifGary Houston1-6/+7
interactive. (scm_shell): call scm_exit_status and exit on the result of the evaluation.
1997-05-08* script.c (scm_ice_9_already_loaded): New variable.Marius Vollmer1-2/+8
(scm_compile_shell_switches): Use it.
1997-04-24* script.c (scm_compile_shell_switches): Dyke out debugging outputJim Blandy1-0/+2
code.
1997-04-20Move most of the guts of shell command processing into libguile,Jim Blandy1-0/+816
so guile.c can be very small (and eventuallly auto-generated. (I mean, generated mechanically, not self-generated. Hmm.)) * guile.c, script.c, script.h: New source files. * init.c (scm_boot_guile_1): Call scm_init_script. * libguile.h: #include "script.h". * Makefile.am (bin_PROGRAMS, guile_SOURCES, guile_LDADD): New targets, for new executable. (libguile_la_SOURCES): Mention script.c. (modinclude_HEADERS): Add script.h. * configure.in: Always check for -lm, -lsocket, -lnsl, whether or not dynamic linking is enabled. This is because we're generating executables now. Move CY_AC_WITH_THREADS call after those, so the values of cy_cv_threads_libs captures the libs chosen above. * Makefile.in, configure, aclocal.m4: Regenerated.