1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00
guile/module
Ludovic Courtès e06972410a Implement fancy format string analysis.
* module/language/tree-il/analyze.scm (format-string-argument-count):
  Return two values, the minimum and maximum number of arguments.
  Add support for most of `format' escapes, including conditionals.
  (format-analysis): Adjust accordingly.

* module/system/base/message.scm (%warning-types)[format]: Take two
  arguments, MIN and MAX, instead of EXPECTED.  Display warning
  accordingly.

* test-suite/tests/tree-il.test ("warnings")["format"]("~%, ~~, ~&, ~t,
  ~_, and ~\\n", "~{...~}", "~{...~}, too many args", "~@{...~}",
  "~@{...~}, too few args", "~(...~)", "~v", "~v:@y", "~*", "~?",
  "complex 1", "complex 2", "complex 3"): New tests.
  ("conditionals"): New test prefix.
2010-10-10 19:10:10 +02:00
..
ice-9 more inlining in psyntax 2010-10-08 12:31:56 +02:00
language Implement fancy format string analysis. 2010-10-10 19:10:10 +02:00
oop Remove goops-version, which is no longer defined 2010-10-02 18:14:45 +01:00
rnrs Fix make-variable-transformer export 2010-09-19 12:15:37 +02:00
scripts remove a number of debug options 2010-09-24 20:57:01 +02:00
srfi SRFI-1: Rewrite split-at' and split-at!' in Scheme. 2010-10-08 15:25:56 +02:00
sxml sxml-match: Always use the same prompt tag. 2010-07-15 23:12:57 +02:00
system Implement fancy format string analysis. 2010-10-10 19:10:10 +02:00
texinfo Fix typos. 2010-09-02 00:04:39 +02:00
Makefile.am add (system repl server) 2010-10-10 12:15:34 +02:00
rnrs.scm back-compat in (rnrs) for deprecated modules-in-value-namespace 2010-09-02 21:31:55 -07:00
statprof.scm remove a number of debug options 2010-09-24 20:57:01 +02:00
texinfo.scm Remove unused top-level variables. 2010-01-11 01:21:14 +01:00