New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bleadperl v5.19.0-57-g6d5abc6 breaks SREZIC/Tk-804.031.tar.gz #12997
Comments
From @andkgit bisect 6d5abc6 is the first bad commit Change LIKELY() and UNLIKELY() to cast their first argument to a bool. diagnostics Xlib.xs: In function ‘XS_DisplayPtr_XListFonts’: perl -V Summary of my perl5 (revision 5 version 19 subversion 1) configuration: Characteristics of this binary (from libperl): -- |
From @jkeenanOn Sun May 26 12:55:10 2013, andreas.koenig.7os6VVqR@franz.ak.mind.de wrote:
Is this the same as, or different from, 114422? |
The RT System itself - Status changed from 'new' to 'open' |
From @andk"James E Keenan via RT" <perlbug-followup@perl.org> writes:
Not. -- |
From @eserteAndreas Koenig <andreas.koenig.7os6VVqR@franz.ak.mind.de> writes:
Commit c6441755d78aaa29725c8c2ff91b244f7a25d967 in Regards, -- |
From @nwc10On Tue, May 28, 2013 at 11:32:31AM -0700, slaven@rezic.de wrote:
Having cloned the history from gitpan, I'm going to have a guess that it's Inline Patchdiff --git a/pTk/mTk/generic/tkEntry.c b/pTk/mTk/generic/tkEntry.c
index b3507d8..ca3b006 100644
--- a/pTk/mTk/generic/tkEntry.c
+++ b/pTk/mTk/generic/tkEntry.c
static int
EntryValidate(entryPtr, cmd, string)
- register Entry *entryPtr; /* Entry that needs validation. */
- register LangCallback *cmd; /* Validation command (NULL-terminated
+ register Entry *entryPtr; /* Entry that needs validation. */
+ register LangCallback *cmd; /* Validation command (NULL-terminated
* string). */
char *string;
{
- int code;
- Arg result;
+ register Tcl_Interp *interp = entryPtr->interp;
+ int code, bool;
code = LangDoCallback(entryPtr->interp, cmd, 1, 1, "%s", string);
+ /*
+ * We accept TCL_OK and TCL_RETURN as valid return codes from the
+ * command callback.
+ */
if (code != TCL_OK && code != TCL_RETURN) {
- Tcl_AddErrorInfo(entryPtr->interp,
- "\n\t(in validation command executed by entry)");
- Tcl_BackgroundError(entryPtr->interp);
+ Tcl_AddErrorInfo(interp, "\n\t(in validation command executed by ");
+ Tcl_AddErrorInfo(interp, Tk_PathName(entryPtr->tkwin));
+ Tcl_AddErrorInfo(interp, ")");
+ Tcl_BackgroundError(interp);
return TCL_ERROR;
}
- result = Tcl_ResultArg(entryPtr->interp);
-
- if (Tcl_GetBoolean(entryPtr->interp, result, &code) != TCL_OK) {
- Tcl_AddErrorInfo(entryPtr->interp,
- "\nValid Tcl Boolean not returned by validation command");
- Tcl_BackgroundError(entryPtr->interp);
- Tcl_SetResult(entryPtr->interp, (char *) NULL, TCL_STATIC);
+ /*
+ * The command callback should return an acceptable Tcl boolean.
+ */
+ if (Tcl_GetBooleanFromObj(interp, Tcl_GetObjResult(interp),
+ &bool) != TCL_OK) {
Having a #define for bool would not be compatible with that code. That code is still present today. It's wrapped with #ifndef _LANG commit 1c1516490f0fe5d017db57a3c2ca11251b16e1c3 import Tk 804.027_502 from CPAN I don't know the significance of _LANG, but if there's a platform where it Nicholas Clark |
The RT System itself - Status changed from 'new' to 'open' |
From @eserte"Nicholas Clark via RT" <perlbug-followup@perl.org> writes:
[...]
Hello Nicholas, thanks for the research. As _LANG is always defined when compiling Regards, -- |
@iabyn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#118189 (status was 'resolved')
Searchable as RT118189$
The text was updated successfully, but these errors were encountered: