unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Bruce Korb <bkorb@gnu.org>
Subject: Progress in porting to 1.7, but still work to do
Date: Sun, 4 Dec 2005 13:52:40 -0800	[thread overview]
Message-ID: <200512041352.40509.bkorb@gnu.org> (raw)


I have *two* problems.  First, after emitting the error text below,
Guile 1.7.2 is calling, "exit(0)" not "exit(EXIT_FAILURE)".
That's wrong.  Additionally, I am not getting the file/line
stuff using the code I thought we worked out.

--- error.out6  Sun Dec  4 13:41:27 2005
***************
*** 1,5 ****
! error.tpl6:7:4: In expression (stumble-over-unbound-variable):
! error.tpl6:7:4: Unbound variable: stumble-over-unbound-variable
  Scheme evaluation error.  AutoGen ABEND-ing in template
        error.tpl6 on line 3
  Failing Guile command:  = = = = =
--- 1,4 ----
! ERROR: Unbound variable: stumble-over-unbound-variable
  Scheme evaluation error.  AutoGen ABEND-ing in template
        error.tpl6 on line 3
  Failing Guile command:  = = = = =
+ exit 1

Wasn't this supposed to work?

    SCM port = scm_open_input_string( scm_from_locale_string( pzExpr ));

    {
        static SCM file = SCM_UNDEFINED;
        static char* pzOldFile = NULL;

        if ((pzOldFile == NULL) || (strcmp( pzOldFile, pzFile ) != 0)) {
            if (pzOldFile != NULL)
                free( pzOldFile );

            pzOldFile = strdup( pzFile );
        }

        file = scm_from_locale_string( pzFile );
        scm_set_port_filename_x( port, file );
    }

    {
        SCM ln = scm_from_int( line );
        scm_set_port_line_x( port, ln );
    }

    {
        SCM ans = SCM_UNSPECIFIED;

        /* Read expressions from that port; ignore the values.  */
        for (;;) {
            SCM form = scm_read( port );
            if (SCM_EOF_OBJECT_P( form ))
                break;
            ans = scm_primitive_eval_x( form );
        }

        return ans;
    }


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


             reply	other threads:[~2005-12-04 21:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-04 21:52 Bruce Korb [this message]
2005-12-06 22:44 ` Progress in porting to 1.7, but still work to do Neil Jerram
2005-12-06 23:03   ` Bruce Korb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200512041352.40509.bkorb@gnu.org \
    --to=bkorb@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).