Hello community,
here is the log from the commit of package yast2-core
checked in at Wed Sep 20 16:37:19 CEST 2006.
--------
--- yast2-core/yast2-core.changes 2006-08-22 15:42:57.000000000 +0200
+++ yast2-core/yast2-core.changes 2006-09-19 17:49:17.000000000 +0200
@@ -1,0 +2,24 @@
+Tue Sep 19 17:46:43 CEST 2006 - mvidner@suse.cz
+
+- Reduced YCPValue from two pointers to one by removing the
+ superfluous "virtual" qualifiers. Heap reduced by 10%.
+- 2.14.0
+
+-------------------------------------------------------------------
+Tue Sep 19 15:46:58 CEST 2006 - lslezak@suse.cz
+
+- ag_background - added missing .open_output_err path handler
+
+-------------------------------------------------------------------
+Wed Sep 13 16:41:06 CEST 2006 - sh@suse.de
+
+- Applied patch from Ricardo Cruz
+ for new UI::Beep() built-in
+
+-------------------------------------------------------------------
+Fri Sep 8 16:45:29 CEST 2006 - mvidner@suse.de
+
+- ini-agent: let Dir(.) return ["section", "value"] for non-flat files.
+- Added some Doxygen comments.
+
+-------------------------------------------------------------------
Old:
----
yast2-core-2.13.30.tar.bz2
New:
----
yast2-core-2.14.0.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-core.spec ++++++
--- /var/tmp/diff_new_pack.hhiLMd/_old 2006-09-20 16:36:47.000000000 +0200
+++ /var/tmp/diff_new_pack.hhiLMd/_new 2006-09-20 16:36:47.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-core (Version 2.13.30)
+# spec file for package yast2-core (Version 2.14.0)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,12 +11,12 @@
# norootforbuild
Name: yast2-core
-Version: 2.13.30
+Version: 2.14.0
Release: 1
License: GPL
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-core-2.13.30.tar.bz2
+Source0: yast2-core-2.14.0.tar.bz2
prefix: /usr
BuildRequires: ElectricFence blocxx-devel curl-devel dejagnu docbook-xsl-stylesheets doxygen gcc-c++ libxcrypt-devel libxslt liby2util-devel openslp-devel perl-XML-Writer popt-devel sgml-skel udev yast2-devtools
Summary: YaST2 - Core Libraries
@@ -93,7 +93,7 @@
Stanislav Visnovsky
%prep
-%setup -n yast2-core-2.13.30
+%setup -n yast2-core-2.14.0
%build
%{prefix}/bin/y2tool y2autoconf
@@ -165,6 +165,18 @@
/usr/share/YaST2/data/devtools/bin/generateYCPWrappers
%changelog -n yast2-core
+* Tue Sep 19 2006 - mvidner@suse.cz
+- Reduced YCPValue from two pointers to one by removing the
+ superfluous "virtual" qualifiers. Heap reduced by 10%%.
+- 2.14.0
+* Tue Sep 19 2006 - lslezak@suse.cz
+- ag_background - added missing .open_output_err path handler
+* Wed Sep 13 2006 - sh@suse.de
+- Applied patch from Ricardo Cruz
+ for new UI::Beep() built-in
+* Fri Sep 08 2006 - mvidner@suse.de
+- ini-agent: let Dir(.) return ["section", "value"] for non-flat files.
+- Added some Doxygen comments.
* Tue Aug 22 2006 - lslezak@suse.cz
- generateYCPWrappers - fixed crash when nil is passed as
an argument to YCP binding (#194435)
++++++ yast2-core-2.13.30.tar.bz2 -> yast2-core-2.14.0.tar.bz2 ++++++
++++ 14430 lines of diff (skipped)
++++ retrying with extended exclude list
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/VERSION new/yast2-core-2.14.0/VERSION
--- old/yast2-core-2.13.30/VERSION 2006-08-22 13:01:00.000000000 +0200
+++ new/yast2-core-2.14.0/VERSION 2006-09-19 17:45:37.000000000 +0200
@@ -1 +1 @@
-2.13.30
+2.14.0
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/agent-ini/doc/ini.html new/yast2-core-2.14.0/agent-ini/doc/ini.html
--- old/yast2-core-2.13.30/agent-ini/doc/ini.html 2006-08-10 13:19:49.000000000 +0200
+++ new/yast2-core-2.14.0/agent-ini/doc/ini.html 2006-09-19 14:20:01.000000000 +0200
@@ -7,7 +7,7 @@
<meta name="generator"
content="HTML Tidy for Linux/x86 (vers 1st April 2002), see www.w3.org" />
<title>Ini agent description</title>
-<!-- $Id: ini.html 32182 2006-08-07 09:11:11Z mvidner $ -->
+<!-- $Id: ini.html 32969 2006-09-19 12:21:30Z mvidner $ -->
<style type="text/css">
/*
* Martin Vidner
*
- * $Id: IniFile.cc 32268 2006-08-09 12:56:10Z mvidner $
+ * $Id: IniFile.cc 32969 2006-09-19 12:21:30Z mvidner $
*/
#include
@@ -1074,8 +1074,9 @@
return dirValueFlat (p, l);
if (p->length()<1)
{
- y2error ("I do not know what to dir from %s.", p->toString().c_str());
- return -1;
+ l.add (YCPString ("section"));
+ l.add (YCPString ("value"));
+ return 0;
}
string s = p->component_str(0);
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/agent-ini/src/IniFile.h new/yast2-core-2.14.0/agent-ini/src/IniFile.h
--- old/yast2-core-2.13.30/agent-ini/src/IniFile.h 2006-08-10 13:19:50.000000000 +0200
+++ new/yast2-core-2.14.0/agent-ini/src/IniFile.h 2006-09-19 14:20:01.000000000 +0200
@@ -8,7 +8,7 @@
* Petr Blahos
* Martin Vidner
*
- * $Id: IniFile.h 32264 2006-08-09 12:17:24Z mvidner $
+ * $Id: IniFile.h 32969 2006-09-19 12:21:30Z mvidner $
*/
#ifndef __IniFile_h__
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/agent-ini/src/IniParser.cc new/yast2-core-2.14.0/agent-ini/src/IniParser.cc
--- old/yast2-core-2.13.30/agent-ini/src/IniParser.cc 2006-08-10 13:19:50.000000000 +0200
+++ new/yast2-core-2.14.0/agent-ini/src/IniParser.cc 2006-09-19 14:20:01.000000000 +0200
@@ -8,7 +8,7 @@
* Petr Blahos
* Martin Vidner
*
- * $Id: IniParser.cc 32182 2006-08-07 09:11:11Z mvidner $
+ * $Id: IniParser.cc 32969 2006-09-19 12:21:30Z mvidner $
*/
#include "config.h"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/agent-ini/src/IniParser.h new/yast2-core-2.14.0/agent-ini/src/IniParser.h
--- old/yast2-core-2.13.30/agent-ini/src/IniParser.h 2006-06-29 08:51:46.000000000 +0200
+++ new/yast2-core-2.14.0/agent-ini/src/IniParser.h 2006-09-19 14:20:01.000000000 +0200
@@ -7,7 +7,7 @@
* Authors:
* Petr Blahos
*
- * $Id: IniParser.h 26855 2006-01-06 09:49:16Z mvidner $
+ * $Id: IniParser.h 32969 2006-09-19 12:21:30Z mvidner $
*/
#ifndef __IniParser_h__
@@ -173,7 +173,7 @@
};
/**
- * Eg. rx: "^ *Section +(.*)$", out: "Section %s"
+ * Eg.\ rx: "^ *Section +(.*)$", out: "Section %s" (ini-agent)
*/
struct IoPattern
{
@@ -182,7 +182,7 @@
};
/**
- * section description
+ * section description (ini-agent)
*/
struct section
{
@@ -192,7 +192,7 @@
};
/**
- * Parametr description
+ * Parametr description (ini-agent)
*/
struct param
{
@@ -206,6 +206,7 @@
bool multiline_valid;
};
+/// File description (name, section name, mtime); ini-agent
struct FileDescr
{
/**
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/agent-resolver/src/ResolverAgent.cc new/yast2-core-2.14.0/agent-resolver/src/ResolverAgent.cc
--- old/yast2-core-2.13.30/agent-resolver/src/ResolverAgent.cc 2006-06-29 08:51:28.000000000 +0200
+++ new/yast2-core-2.14.0/agent-resolver/src/ResolverAgent.cc 2006-09-19 14:20:03.000000000 +0200
@@ -7,7 +7,7 @@
* Daniel Vesely
* Michal Svec
*
- * $Id: ResolverAgent.cc 25411 2005-09-06 14:40:59Z kkaempf $
+ * $Id: ResolverAgent.cc 32969 2006-09-19 12:21:30Z mvidner $
*/
#include "config.h"
@@ -47,8 +47,8 @@
0
};
-
-typedef struct info_entry {
+/// (ResolverAgent)
+struct info_entry {
const char *key;
const char *tag;
};
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/agents-perl/ag_background new/yast2-core-2.14.0/agents-perl/ag_background
--- old/yast2-core-2.13.30/agents-perl/ag_background 2006-06-29 08:50:44.000000000 +0200
+++ new/yast2-core-2.14.0/agents-perl/ag_background 2006-09-19 16:40:33.000000000 +0200
@@ -10,7 +10,7 @@
# Description:
# Background process agent
#
-# $Id: ag_background 30612 2006-05-02 14:25:17Z lslezak $
+# $Id: ag_background 32980 2006-09-19 14:42:08Z mvidner $
#
@@ -265,6 +265,10 @@
{
ycp::Return($pipe_defined ? 'true' : 'false');
}
+ elsif ($path eq '.output_open_err')
+ {
+ ycp::Return($pipe_defined_err ? 'true' : 'false');
+ }
elsif ($path eq '.buffer_size')
{
ycp::Return($buffer_size);
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/agents-perl/lib/ycp.pm new/yast2-core-2.14.0/agents-perl/lib/ycp.pm
--- old/yast2-core-2.13.30/agents-perl/lib/ycp.pm 2006-08-22 12:42:19.000000000 +0200
+++ new/yast2-core-2.14.0/agents-perl/lib/ycp.pm 2006-09-19 14:20:03.000000000 +0200
@@ -18,7 +18,7 @@
# Purpose: Call a perl script within a YCP script
#
#----------------------------------------------------------------------
-# $Id: ycp.pm 32468 2006-08-21 14:44:55Z mvidner $
+# $Id: ycp.pm 32969 2006-09-19 12:21:30Z mvidner $
package ycp;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/agents-perl/lib/ycp.test new/yast2-core-2.14.0/agents-perl/lib/ycp.test
--- old/yast2-core-2.13.30/agents-perl/lib/ycp.test 2006-08-22 12:42:19.000000000 +0200
+++ new/yast2-core-2.14.0/agents-perl/lib/ycp.test 2006-09-19 14:20:03.000000000 +0200
@@ -1,6 +1,6 @@
#!/usr/bin/perl -w
#
-# $Id: ycp.test 32464 2006-08-21 14:17:28Z mvidner $
+# $Id: ycp.test 32969 2006-09-19 12:21:30Z mvidner $
#
# Test suite for ycp.pm
# Author: Martin Vidner
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/base/tools/ycpc/ybcdump new/yast2-core-2.14.0/base/tools/ycpc/ybcdump
--- old/yast2-core-2.13.30/base/tools/ycpc/ybcdump 2006-08-10 13:19:49.000000000 +0200
+++ new/yast2-core-2.14.0/base/tools/ycpc/ybcdump 2006-09-19 13:58:50.000000000 +0200
@@ -1216,6 +1216,7 @@
end
end
+# for iterator builtins
class VariableT < Type
def initialize(kind)
super
@@ -1317,7 +1318,7 @@
assert(len == 4)
# V: unsigned little-endian 4 bytes
i = $f.read(4).unpack("V")[0]
-# $stat_ints[i] = $stat_ints[i] + 1
+ $stat_ints[i] = $stat_ints[i] + 1
i
end
@@ -1373,4 +1374,4 @@
# Local Variables:
# mode: ruby
-# End
+# End:
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/base/tools/ycpc/ycpc.cc new/yast2-core-2.14.0/base/tools/ycpc/ycpc.cc
--- old/yast2-core-2.13.30/base/tools/ycpc/ycpc.cc 2006-06-29 08:51:45.000000000 +0200
+++ new/yast2-core-2.14.0/base/tools/ycpc/ycpc.cc 2006-09-19 13:58:50.000000000 +0200
@@ -70,6 +70,7 @@
#define MAXPATHLEN 2048
+/// directory recursion (ycpc)
typedef struct recurse_struct {
struct recurse_struct *parent;
DIR *d; // opendir/readdir handle
@@ -246,11 +247,12 @@
//-----------------------------------------------------------------------------
+/// file dependency (ycpc)
class FileDep {
private:
std::string m_name;
std::string m_path;
- bool m_is_module;
+ bool m_is_module; ///< module or include
bool m_have_source;
time_t m_srctime;
time_t m_bintime;
@@ -961,7 +963,7 @@
}
}
- progress ("Parsed:\n", 0);
+ progress ("Parsed:\n");
if (outstream.is_open())
{
outstream << c->toString() << endl;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/configure.in new/yast2-core-2.14.0/configure.in
--- old/yast2-core-2.13.30/configure.in 2006-08-22 13:08:50.000000000 +0200
+++ new/yast2-core-2.14.0/configure.in 2006-09-19 17:50:02.000000000 +0200
@@ -1,9 +1,9 @@
dnl configure.in for yast2-core
dnl
-dnl -- This file is generated by y2autoconf 2.13.19 - DO NOT EDIT! --
+dnl -- This file is generated by y2autoconf 2.13.24 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-core, 2.13.30, http://bugs.opensuse.org/, yast2-core)
+AC_INIT(yast2-core, 2.14.0, http://bugs.opensuse.org/, yast2-core)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])
@@ -17,7 +17,7 @@
AM_INIT_AUTOMAKE(tar-ustar) dnl searches for some needed programs
dnl Important YaST2 variables
-VERSION="2.13.30"
+VERSION="2.14.0"
RPMNAME="yast2-core"
MAINTAINER="Martin Vidner "
@@ -96,6 +96,9 @@
# libycp needs flex and bison
AM_PROG_LEX
+if test -z "$LEX"; then
+ AC_MSG_ERROR([Install the package flex.])
+fi
AC_CHECK_PROGS(YACC, 'bison -y -d -v' byacc, false)
if test "$YACC" = false; then
AC_MSG_ERROR([bison not installed])
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/configure.in.in new/yast2-core-2.14.0/configure.in.in
--- old/yast2-core-2.13.30/configure.in.in 2006-06-29 08:51:53.000000000 +0200
+++ new/yast2-core-2.14.0/configure.in.in 2006-09-19 13:58:39.000000000 +0200
@@ -10,6 +10,9 @@
# libycp needs flex and bison
AM_PROG_LEX
+if test -z "$LEX"; then
+ AC_MSG_ERROR([Install the package flex.])
+fi
AC_CHECK_PROGS(YACC, 'bison -y -d -v' byacc, false)
if test "$YACC" = false; then
AC_MSG_ERROR([bison not installed])
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libycp/src/Makefile.am new/yast2-core-2.14.0/libycp/src/Makefile.am
--- old/yast2-core-2.13.30/libycp/src/Makefile.am 2006-06-29 08:50:51.000000000 +0200
+++ new/yast2-core-2.14.0/libycp/src/Makefile.am 2006-09-19 17:25:52.000000000 +0200
@@ -59,12 +59,11 @@
INCLUDES = -I$(srcdir)/include -I$(srcdir)/include/ycp -I$(top_srcdir)/liby2/src/include ${Y2UTIL_CFLAGS}
-libycpvalues_la_LDFLAGS = -version-info 2:0
-
+# CURRENT:REVISION:AGE
+libycpvalues_la_LDFLAGS = -version-info 3:0:0
libycpvalues_la_LIBADD = ${Y2UTIL_LIBS}
-libycp_la_LDFLAGS = -version-info 2:0
-
+libycp_la_LDFLAGS = -version-info 3:0:0
libycp_la_LIBADD = ${Y2UTIL_LIBS} -lxcrypt libycpvalues.la
CLEANFILES = parser.output parser.cc scanner.cc $(BUILT_SOURCES)
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libycp/src/Type.cc new/yast2-core-2.14.0/libycp/src/Type.cc
--- old/yast2-core-2.13.30/libycp/src/Type.cc 2006-08-10 13:19:48.000000000 +0200
+++ new/yast2-core-2.14.0/libycp/src/Type.cc 2006-09-19 13:58:35.000000000 +0200
@@ -1364,8 +1364,7 @@
constTypePtr
TupleType::parameterType (unsigned int parameter_number) const
{
- if ((parameter_number < 0)
- || (parameter_number >= m_types.size()))
+ if (parameter_number >= m_types.size())
{
return Type::Error;
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libycp/src/YCPBuiltinBoolean.cc new/yast2-core-2.14.0/libycp/src/YCPBuiltinBoolean.cc
--- old/yast2-core-2.13.30/libycp/src/YCPBuiltinBoolean.cc 2006-06-29 08:50:51.000000000 +0200
+++ new/yast2-core-2.14.0/libycp/src/YCPBuiltinBoolean.cc 2006-09-19 13:58:35.000000000 +0200
@@ -112,10 +112,10 @@
{
// must be static, registerDeclarations saves a pointer to it!
static declaration_t declarations[] = {
- { "!", "boolean (boolean)", (void *)b_lnot },
- { "||", "boolean (boolean, boolean)", (void *)b_or, DECL_NOEVAL },
- { "&&", "boolean (boolean, boolean)", (void *)b_and, DECL_NOEVAL },
- { 0 }
+ { "!", "boolean (boolean)", (void *)b_lnot, 0, 0, 0, 0 },
+ { "||", "boolean (boolean, boolean)", (void *)b_or, DECL_NOEVAL, 0, 0, 0 },
+ { "&&", "boolean (boolean, boolean)", (void *)b_and, DECL_NOEVAL, 0, 0, 0 },
+ { 0, 0, 0, 0, 0, 0, 0 },
};
static_declarations.registerDeclarations ("YCPBuiltinBoolean", declarations);
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libycp/src/YCPBuiltinString.cc new/yast2-core-2.14.0/libycp/src/YCPBuiltinString.cc
--- old/yast2-core-2.13.30/libycp/src/YCPBuiltinString.cc 2006-06-29 08:50:51.000000000 +0200
+++ new/yast2-core-2.14.0/libycp/src/YCPBuiltinString.cc 2006-09-19 13:58:25.000000000 +0200
@@ -732,7 +732,7 @@
else return YCPInteger( pos ); // found
}
-
+/// (regexp builtins)
typedef struct REG_RET
{
string result_str;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libycp/src/YCPCode.cc new/yast2-core-2.14.0/libycp/src/YCPCode.cc
--- old/yast2-core-2.13.30/libycp/src/YCPCode.cc 2006-06-29 08:50:51.000000000 +0200
+++ new/yast2-core-2.14.0/libycp/src/YCPCode.cc 2006-09-19 13:58:27.000000000 +0200
@@ -51,7 +51,7 @@
YCPOrder
-YCPCodeRep::compare(const YCPCode& l) const
+YCPCodeRep::compare(const YCPCode&) const
{
return YO_LESS;
}
@@ -116,7 +116,7 @@
YCPOrder
-YCPEntryRep::compare (const YCPEntry& l) const
+YCPEntryRep::compare (const YCPEntry&) const
{
return YO_LESS;
}
@@ -138,7 +138,7 @@
YCPValue
-YCPEntryRep::evaluate (bool cse) const
+YCPEntryRep::evaluate (bool /*cse*/) const
{
y2debug ("YCPEntryRep::evaluate (%s)", this->toString().c_str());
@@ -173,7 +173,7 @@
YCPOrder
-YCPReferenceRep::compare (const YCPReference& l) const
+YCPReferenceRep::compare (const YCPReference&) const
{
return YO_LESS;
}
@@ -195,7 +195,7 @@
YCPValue
-YCPReferenceRep::evaluate (bool cse) const
+YCPReferenceRep::evaluate (bool /*cse*/) const
{
y2debug ("YCPReferenceRep::evaluate (%s)", this->toString().c_str());
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libycp/src/YCPExternal.cc new/yast2-core-2.14.0/libycp/src/YCPExternal.cc
--- old/yast2-core-2.13.30/libycp/src/YCPExternal.cc 2006-06-29 08:50:51.000000000 +0200
+++ new/yast2-core-2.14.0/libycp/src/YCPExternal.cc 2006-09-19 13:58:22.000000000 +0200
@@ -80,7 +80,7 @@
// ----------------------------------------------
-YCPExternal::YCPExternal (bytecodeistream & str)
+YCPExternal::YCPExternal (bytecodeistream &)
: YCPValue (new YCPExternalRep (NULL, ""))
{
y2error ("Trying to load an external payload in stream");
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libycp/src/YCPVoid.cc new/yast2-core-2.14.0/libycp/src/YCPVoid.cc
--- old/yast2-core-2.13.30/libycp/src/YCPVoid.cc 2006-06-29 08:50:51.000000000 +0200
+++ new/yast2-core-2.14.0/libycp/src/YCPVoid.cc 2006-09-19 13:58:26.000000000 +0200
@@ -68,7 +68,7 @@
{
}
-YCPVoid::YCPVoid (bytecodeistream & str)
+YCPVoid::YCPVoid (bytecodeistream &)
: YCPValue ( *(nil ? nil : (nil = new YCPVoid(new YCPVoidRep()) )))
{
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libycp/src/YCode.cc new/yast2-core-2.14.0/libycp/src/YCode.cc
--- old/yast2-core-2.13.30/libycp/src/YCode.cc 2006-08-10 13:19:48.000000000 +0200
+++ new/yast2-core-2.14.0/libycp/src/YCode.cc 2006-09-19 13:58:23.000000000 +0200
@@ -197,7 +197,7 @@
YCPValue
-YCode::evaluate (bool cse)
+YCode::evaluate (bool /*cse*/)
{
#if DO_DEBUG
y2debug ("evaluate(%s) = nil", toString().c_str());
@@ -364,7 +364,7 @@
}
YCPValue
-YConst::evaluate (bool cse)
+YConst::evaluate (bool /*cse*/)
{
YCPValue v = m_value;
#if DO_DEBUG
@@ -660,7 +660,7 @@
YCPValue
-YFunction::evaluate (bool cse)
+YFunction::evaluate (bool /*cse*/)
{
#if DO_DEBUG
y2debug ("YFunction::evaluate(%s)\n", toString().c_str());
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libycp/src/YExpression.cc new/yast2-core-2.14.0/libycp/src/YExpression.cc
--- old/yast2-core-2.13.30/libycp/src/YExpression.cc 2006-08-10 13:19:48.000000000 +0200
+++ new/yast2-core-2.14.0/libycp/src/YExpression.cc 2006-09-19 13:58:36.000000000 +0200
@@ -273,7 +273,7 @@
*/
constTypePtr
-YETerm::attachParameter (YCodePtr code, constTypePtr dummy)
+YETerm::attachParameter (YCodePtr code, constTypePtr /*dummy*/)
{
if ((code == 0)
|| (code->isError()))
@@ -1517,7 +1517,7 @@
YCPValue
-YEReturn::evaluate (bool cse)
+YEReturn::evaluate (bool /*cse*/)
{
return YCPCode (m_expr);
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libycp/src/YStatement.cc new/yast2-core-2.14.0/libycp/src/YStatement.cc
--- old/yast2-core-2.13.30/libycp/src/YStatement.cc 2006-08-10 13:19:48.000000000 +0200
+++ new/yast2-core-2.14.0/libycp/src/YStatement.cc 2006-09-19 13:58:27.000000000 +0200
@@ -95,7 +95,7 @@
YCPValue
-YStatement::evaluate (bool cse)
+YStatement::evaluate (bool /*cse*/)
{
#if DO_DEBUG
y2debug ("YStatement::evaluate(%s)\n", toString().c_str());
@@ -137,7 +137,7 @@
YCPValue
-YSBreak::evaluate (bool cse)
+YSBreak::evaluate (bool /*cse*/)
{
#if DO_DEBUG
y2debug ("YSBreak::evaluate(%s)\n", toString().c_str());
@@ -175,7 +175,7 @@
YCPValue
-YSContinue::evaluate (bool cse)
+YSContinue::evaluate (bool /*cse*/)
{
#if DO_DEBUG
y2debug ("YSContinue::evaluate(%s)\n", toString().c_str());
@@ -441,7 +441,7 @@
YCPValue
-YSFunction::evaluate (bool cse)
+YSFunction::evaluate (bool /*cse*/)
{
#if DO_DEBUG
y2debug ("YSFunction::evaluate(%s)\n", toString().c_str());
@@ -517,7 +517,7 @@
// FIXME: needed ?
YCPValue
-YSTypedef::evaluate (bool cse)
+YSTypedef::evaluate (bool /*cse*/)
{
#if DO_DEBUG
y2debug("evaluate(%s) = nil", toString().c_str());
@@ -1394,7 +1394,7 @@
YCPValue
-YSTextdomain::evaluate (bool cse)
+YSTextdomain::evaluate (bool /*cse*/)
{
return YCPNull();
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libycp/src/include/ycp/Bytecode.h new/yast2-core-2.14.0/libycp/src/include/ycp/Bytecode.h
--- old/yast2-core-2.13.30/libycp/src/include/ycp/Bytecode.h 2006-08-10 13:19:48.000000000 +0200
+++ new/yast2-core-2.14.0/libycp/src/include/ycp/Bytecode.h 2006-09-19 13:58:32.000000000 +0200
@@ -38,6 +38,7 @@
#include <fstream>
+/// An istream that remembers some data about the bytecode.
class bytecodeistream : public std::ifstream
{
int m_major, m_minor, m_release;
@@ -51,11 +52,17 @@
int release () const { return m_release; }
};
+/// *.ybc I/O
class Bytecode {
static int m_namespace_nesting_level;
static int m_namespace_nesting_array_size;
static int m_namespace_tare_level;
- typedef struct { const Y2Namespace *name_space; bool with_xrefs; } namespaceentry_t;
+
+ /// references to namespaces
+ struct namespaceentry_t {
+ const Y2Namespace *name_space;
+ bool with_xrefs; ///< external references... ???
+ };
static namespaceentry_t *m_namespace_nesting_array;
static map* m_bytecodeCache;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libycp/src/include/ycp/ExecutionEnvironment.h new/yast2-core-2.14.0/libycp/src/include/ycp/ExecutionEnvironment.h
--- old/yast2-core-2.13.30/libycp/src/include/ycp/ExecutionEnvironment.h 2006-06-29 08:50:51.000000000 +0200
+++ new/yast2-core-2.14.0/libycp/src/include/ycp/ExecutionEnvironment.h 2006-09-19 13:58:34.000000000 +0200
@@ -23,6 +23,7 @@
using namespace std;
+/// Function and source location, for backtraces
struct CallFrame {
string called_function;
string filename;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libycp/src/include/ycp/Import.h new/yast2-core-2.14.0/libycp/src/include/ycp/Import.h
--- old/yast2-core-2.13.30/libycp/src/include/ycp/Import.h 2006-06-29 08:50:50.000000000 +0200
+++ new/yast2-core-2.14.0/libycp/src/include/ycp/Import.h 2006-09-19 13:58:33.000000000 +0200
@@ -32,6 +32,7 @@
class SymbolEntry;
class Y2Namespace;
+/// instantiate to import a module
class Import {
// track tables of nested imports, no need to track their usage
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libycp/src/include/ycp/Point.h new/yast2-core-2.14.0/libycp/src/include/ycp/Point.h
--- old/yast2-core-2.13.30/libycp/src/include/ycp/Point.h 2006-06-29 08:50:50.000000000 +0200
+++ new/yast2-core-2.14.0/libycp/src/include/ycp/Point.h 2006-09-19 13:58:28.000000000 +0200
@@ -14,12 +14,27 @@
Author: Klaus Kaempf
Maintainer: Klaus Kaempf
+/-*/
+// -*- c++ -*-
+
+#ifndef Point_h
+#define Point_h
+
+#include <string>
+using std::string;
+// MemUsage.h defines/undefines D_MEMUSAGE
+#include
+#include "y2/SymbolEntry.h"
+
+class bytecodeistream;
+
+/**
Definition of "definition point" which stores
- filename
- line number
- inclusion point
- to trace filenames, definition points, and include hierachies
+ to trace filenames, definition points, and include hierachies.
This helps in issuing proper error messages like
"identifier <name>
@@ -40,21 +55,7 @@
An identifier has a definition point. A file has a filename and
an inclusion point (if its an included file).
-/-*/
-// -*- c++ -*-
-
-#ifndef Point_h
-#define Point_h
-
-#include <string>
-using std::string;
-
-// MemUsage.h defines/undefines D_MEMUSAGE
-#include
-#include "y2/SymbolEntry.h"
-
-class bytecodeistream;
-
+*/
class Point
#ifdef D_MEMUSAGE
: public MemUsage
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libycp/src/include/ycp/Scanner.h new/yast2-core-2.14.0/libycp/src/include/ycp/Scanner.h
--- old/yast2-core-2.13.30/libycp/src/include/ycp/Scanner.h 2006-06-29 08:50:50.000000000 +0200
+++ new/yast2-core-2.14.0/libycp/src/include/ycp/Scanner.h 2006-09-19 13:58:31.000000000 +0200
@@ -40,12 +40,12 @@
#include "ycp/Type.h"
#include "ycp/y2log.h"
-// linked list for formal parameters
+/// linked list for formal parameters (not a stack at all)
typedef struct formalparamstack {
- struct formalparamstack *next; // ptr to next formal parameter
- const char *name; // name of formal parameter
- constTypePtr type; // type of formal parameter
- unsigned int line; // line number of name token
+ struct formalparamstack *next; ///< ptr to next formal parameter
+ const char *name; ///< name of formal parameter
+ constTypePtr type; ///< type of formal parameter
+ unsigned int line; ///< line number of name token
} formalparam_t;
typedef union {
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libycp/src/include/ycp/Type.h new/yast2-core-2.14.0/libycp/src/include/ycp/Type.h
--- old/yast2-core-2.13.30/libycp/src/include/ycp/Type.h 2006-06-29 08:50:51.000000000 +0200
+++ new/yast2-core-2.14.0/libycp/src/include/ycp/Type.h 2006-09-19 13:58:33.000000000 +0200
@@ -31,6 +31,7 @@
class FunctionType;
class bytecodeistream;
+/// YCP type
class Type : public Rep
#ifdef D_MEMUSAGE
, public MemUsage
@@ -195,7 +196,7 @@
/*
* match to type, return type if matches
*/
- virtual constTypePtr matchFlex (constTypePtr type, unsigned int number = 0) const { return 0; }
+ virtual constTypePtr matchFlex (constTypePtr /*type*/, unsigned int /*number*/ = 0) const { return 0; }
/**
* check match with expected type
@@ -314,7 +315,7 @@
virtual constTypePtr detailedtype (constTypePtr type) const;
};
-// <flex>
+/// YCP type \
class FlexType : public Type
{
@@ -333,7 +334,7 @@
};
-// <flexN>
+/// YCP type \
class NFlexType : public Type
{
@@ -354,7 +355,7 @@
};
-// Variable <type>
+/// YCP type Variable \ for iterator builtins
class VariableType : public Type
{
@@ -377,7 +378,7 @@
};
-// List <type>
+/// YCP type List \
class ListType : public Type
{
@@ -403,7 +404,7 @@
};
-// Map
+/// YCP type Map \
class MapType : public Type
{
@@ -431,8 +432,7 @@
};
-// Block <type>
-
+/// YCP type Block \
class BlockType : public Type
{
REP_BODY(BlockType);
@@ -455,7 +455,7 @@
};
-// Tuple
+/// Tuple \ (function arguments)
class TupleType : public Type
{
@@ -481,7 +481,7 @@
};
-// Function
+/// YCP type Function \
class FunctionType : public Type
{
@@ -496,7 +496,7 @@
constTypePtr matchFlex (constTypePtr type, unsigned int number = 0) const;
int match (constTypePtr expected) const;
bool equals (constTypePtr expected) const;
- bool canCast (constTypePtr to) const { return false; }
+ bool canCast (constTypePtr /*to*/) const { return false; }
TypePtr clone () const;
constTypePtr unflex (constTypePtr type, unsigned int number = 0) const;
std::ostream & toStream (std::ostream & str) const;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libycp/src/include/ycp/YCPCode.h new/yast2-core-2.14.0/libycp/src/include/ycp/YCPCode.h
--- old/yast2-core-2.13.30/libycp/src/include/ycp/YCPCode.h 2006-06-29 08:50:51.000000000 +0200
+++ new/yast2-core-2.14.0/libycp/src/include/ycp/YCPCode.h 2006-09-19 13:58:34.000000000 +0200
@@ -134,7 +134,7 @@
* Compares two YBreaks for equality, greaterness or smallerness.
*
*/
- YCPOrder compare (const YCPBreak &v) const { return YO_EQUAL; }
+ YCPOrder compare (const YCPBreak &) const { return YO_EQUAL; }
/**
* Returns an ASCII representation of the YBreak.
@@ -165,7 +165,7 @@
DEF_COMMON(Break, Value);
public:
YCPBreak() : YCPValue (new YCPBreakRep ()) {}
- YCPBreak (bytecodeistream & str) : YCPValue (new YCPBreakRep ()) {}
+ YCPBreak (bytecodeistream &) : YCPValue (new YCPBreakRep ()) {}
};
@@ -202,7 +202,7 @@
* Compares two YReturns for equality, greaterness or smallerness.
*
*/
- YCPOrder compare (const YCPReturn &v) const { return YO_EQUAL; }
+ YCPOrder compare (const YCPReturn &) const { return YO_EQUAL; }
/**
* Returns an ASCII representation of the YCPReturn.
@@ -232,7 +232,7 @@
DEF_COMMON(Return, Value);
public:
YCPReturn() : YCPValue (new YCPReturnRep ()) {}
- YCPReturn(bytecodeistream & str) : YCPValue (new YCPReturnRep ()) {}
+ YCPReturn(bytecodeistream &) : YCPValue (new YCPReturnRep ()) {}
};
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libycp/src/include/ycp/YCPElement.h new/yast2-core-2.14.0/libycp/src/include/ycp/YCPElement.h
--- old/yast2-core-2.13.30/libycp/src/include/ycp/YCPElement.h 2006-06-29 08:50:50.000000000 +0200
+++ new/yast2-core-2.14.0/libycp/src/include/ycp/YCPElement.h 2006-09-19 17:15:19.000000000 +0200
@@ -71,11 +71,19 @@
int operator !() const; \
int operator ==(const YCPElement &) const;
+
+#ifdef D_MEMUSAGE
+#define DEF_MEMSIZE(name) \
+ virtual size_t mem_size () const { return sizeof (YCP##name); }
+#else
+#define DEF_MEMSIZE(name)
+#endif
+
#define DEF_COMMON(name, base) \
DEF_OPS(name) \
friend class YCP##base##Rep; \
public: \
- virtual size_t mem_size () const { return sizeof (YCP##name); } \
+ DEF_MEMSIZE(name) \
YCP##name(const YCPNull &n) : YCP##base(n) {} \
protected: \
YCP##name (const YCP##name##Rep *x) : YCP##base(x) {}
@@ -329,7 +337,7 @@
YCPElement(const YCPNull&);
YCPElement(const YCPElementRep *e);
YCPElement(const YCPElement &e);
- virtual ~YCPElement();
+ ~YCPElement();
const YCPElement& operator=(const YCPElement& e);
bool isNull() const { return element == 0; }
bool refersToSameElementAs(const YCPElement& e) const { return element == e.element; }
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libycp/src/include/ycp/y2log.h new/yast2-core-2.14.0/libycp/src/include/ycp/y2log.h
--- old/yast2-core-2.13.30/libycp/src/include/ycp/y2log.h 2006-06-29 08:50:50.000000000 +0200
+++ new/yast2-core-2.14.0/libycp/src/include/ycp/y2log.h 2006-09-19 13:58:31.000000000 +0200
@@ -76,7 +76,7 @@
#define ycpmilestone(format,args...) \
ycp_log(LOG_MILESTONE, format, ##args)
-// c++ interface for logging
+/// c++ interface for logging
class Logger {
public:
virtual ~Logger() {}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libyui/doc/examples/Beep.ycp new/yast2-core-2.14.0/libyui/doc/examples/Beep.ycp
--- old/yast2-core-2.13.30/libyui/doc/examples/Beep.ycp 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-core-2.14.0/libyui/doc/examples/Beep.ycp 2006-09-19 13:58:41.000000000 +0200
@@ -0,0 +1,18 @@
+// Test for UI::Beep()
+{
+ UI::OpenDialog (
+ `Label ("Doing some operations...")
+ );
+ sleep (4000);
+ UI::CloseDialog();
+
+ UI::Beep();
+ UI::OpenDialog (
+ `VBox (
+ `Label ("Done. Now prooceed to answer the next questions."),
+ `PushButton ("Ok")
+ )
+ );
+ UI::UserInput();
+ UI::CloseDialog();
+}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libyui/src/YTree.cc new/yast2-core-2.14.0/libyui/src/YTree.cc
--- old/yast2-core-2.13.30/libyui/src/YTree.cc 2006-08-22 12:42:21.000000000 +0200
+++ new/yast2-core-2.14.0/libyui/src/YTree.cc 2006-09-19 13:58:48.000000000 +0200
@@ -91,8 +91,9 @@
{
YTreeItem *it = findItemWithId ( newvalue );
- if ( ! it )
- it = findItemWithText ( newvalue->asString() );
+ // Let user also pass a string of the item text instead of an id...
+ if ( ! it && newvalue->isString() )
+ it = findItemWithText ( newvalue->asString() );
if ( it )
{
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libyui/src/YUI_bindings.cc new/yast2-core-2.14.0/libyui/src/YUI_bindings.cc
--- old/yast2-core-2.13.30/libyui/src/YUI_bindings.cc 2006-06-29 08:51:42.000000000 +0200
+++ new/yast2-core-2.14.0/libyui/src/YUI_bindings.cc 2006-09-19 13:58:47.000000000 +0200
@@ -361,6 +361,15 @@
static YCPValue
+UIBeep()
+{
+ if ( YUIComponent::ui() )
+ YUIComponent::ui()->evaluateBeep();
+
+ return YCPVoid();
+}
+
+static YCPValue
UIRecordMacro( const YCPString & filename )
{
if ( YUIComponent::ui() )
@@ -649,6 +658,7 @@
{ "CheckShortcuts", "void ()", (void*) UICheckShortcuts },
{ "MakeScreenShot", "void ()", (void*) UIMakeScreenshot },
{ "MakeScreenShot", "void (string)", (void*) UIMakeScreenshotToFile },
+ { "Beep" , "void ()" , (void*) UIBeep },
{ "RecordMacro", "void (string)", (void*) UIRecordMacro },
{ "PlayMacro", "void (string)", (void*) UIPlayMacro },
{ "StopRecordMacro", "void ()", (void*) UIStopRecordMacro },
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libyui/src/YUI_builtins.cc new/yast2-core-2.14.0/libyui/src/YUI_builtins.cc
--- old/yast2-core-2.13.30/libyui/src/YUI_builtins.cc 2006-06-29 08:51:42.000000000 +0200
+++ new/yast2-core-2.14.0/libyui/src/YUI_builtins.cc 2006-09-19 13:58:47.000000000 +0200
@@ -306,6 +306,14 @@
}
+/**
+ * Default UI-specific beep() - does nothing
+ */
+void YUI::beep()
+{
+ // NOP
+}
+
/**
* @builtin GetLanguage
@@ -1151,6 +1159,20 @@
dialog->dumpDialogWidgetTree();
}
+/**
+ * @builtin Beep
+ * @short Beeps the system bell
+ * @description
+ * Beeps the system bell. This is implemented by the frontend, which may do
+ * a visual beep if the system is set up that way (eg. for accessiblity
+ * purposes).
+ *
+ * @return void
+ */
+void YUI::evaluateBeep()
+{
+ beep();
+}
/**
* @builtin RecordMacro
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libyui/src/YUI_widgets.cc new/yast2-core-2.14.0/libyui/src/YUI_widgets.cc
--- old/yast2-core-2.13.30/libyui/src/YUI_widgets.cc 2006-06-29 08:51:42.000000000 +0200
+++ new/yast2-core-2.14.0/libyui/src/YUI_widgets.cc 2006-09-19 13:58:43.000000000 +0200
@@ -978,6 +978,7 @@
/**
+ * @todo doxyden does not understand this. disable.
* @widgets HBox VBox
* @id Box
* @short Generic layout: Arrange widgets horizontally or vertically
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libyui/src/include/YPartitionSplitter.h new/yast2-core-2.14.0/libyui/src/include/YPartitionSplitter.h
--- old/yast2-core-2.13.30/libyui/src/include/YPartitionSplitter.h 2006-06-29 08:51:41.000000000 +0200
+++ new/yast2-core-2.14.0/libyui/src/include/YPartitionSplitter.h 2006-09-19 13:58:44.000000000 +0200
@@ -121,16 +121,16 @@
virtual void saveUserInput( YMacroRecorder *macroRecorder );
- int _usedSize;
- int _totalFreeSize;
- int _newPartSize;
- int _minNewPartSize;
- int _minFreeSize;
- const YCPString & _usedLabel;
- const YCPString & _freeLabel;
- const YCPString & _newPartLabel;
- const YCPString & _freeFieldLabel;
- const YCPString & _newPartFieldLabel;
+ int _usedSize;
+ int _totalFreeSize;
+ int _newPartSize;
+ int _minNewPartSize;
+ int _minFreeSize;
+ YCPString _usedLabel;
+ YCPString _freeLabel;
+ YCPString _newPartLabel;
+ YCPString _freeFieldLabel;
+ YCPString _newPartFieldLabel;
};
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libyui/src/include/YUI.h new/yast2-core-2.14.0/libyui/src/include/YUI.h
--- old/yast2-core-2.13.30/libyui/src/include/YUI.h 2006-06-29 08:51:41.000000000 +0200
+++ new/yast2-core-2.14.0/libyui/src/include/YUI.h 2006-09-19 13:58:45.000000000 +0200
@@ -99,15 +99,15 @@
*/
YUI( bool with_threads );
-
+
public:
-
+
/**
* Destructor.
*/
virtual ~YUI();
-
+
/**
* Access the global UI.
**/
@@ -268,15 +268,15 @@
/**
* Call 'function' with 'argc' YCPValue parameters and return the result of
- * 'function'.
- **/
+ * 'function'.
+ **/
static YCPValue callFunction( void * function, int argc, YCPValue argv[] );
/**
* Set a callback component.
**/
void setCallback( Y2Component * callback ) { _callback = callback; }
-
+
/**
* Returns the callback previously set with setCallback().
**/
@@ -290,6 +290,7 @@
YCPValue evaluateAskForExistingFile ( const YCPString& startDir, const YCPString& filter, const YCPString& headline );
YCPValue evaluateAskForSaveFileName ( const YCPString& startDir, const YCPString& filter, const YCPString& headline );
void evaluateBusyCursor ();
+ void evaluateBeep ();
YCPValue evaluateChangeWidget ( const YCPValue & value_id, const YCPValue & property, const YCPValue & new_value );
void evaluateCheckShortcuts ();
YCPValue evaluateCollectUserInput ();
@@ -315,10 +316,10 @@
void evaluateRedrawScreen ();
YCPBoolean evaluateReplaceWidget ( const YCPValue & value_id, const YCPTerm & term );
YCPValue evaluateRunPkgSelection ( const YCPValue & value_id );
- void evaluateSetConsoleFont ( const YCPString& magic,
+ void evaluateSetConsoleFont ( const YCPString& magic,
const YCPString& font,
- const YCPString& screen_map,
- const YCPString& unicode_map,
+ const YCPString& screen_map,
+ const YCPString& unicode_map,
const YCPString& encoding );
void evaluateSetKeyboard ();
YCPBoolean evaluateSetFocus ( const YCPValue & value_id );
@@ -513,7 +514,7 @@
*/
virtual YWidget *createLabel( YWidget *parent, YWidgetOpt & opt, const YCPString & text ) = 0;
-
+
/**
* Creates a rich text widget
* @param text Initial text of the label
@@ -649,7 +650,7 @@
const YCPString & label,
const YCPString & filename,
int expectedSize );
-
+
virtual bool hasDownloadProgress() { return false; }
/**
@@ -675,22 +676,22 @@
int margin );
virtual bool hasColoredLabel() { return false; }
-
+
/**
* Creates a Date input filed
*/
virtual YWidget * createDate( YWidget *parent,
- YWidgetOpt & opt,
+ YWidgetOpt & opt,
const YCPString & label,
const YCPString & date );
virtual bool hasDate() { return false; }
-
+
/**
* Creates a Time input filed
*/
virtual YWidget * createTime( YWidget *parent,
- YWidgetOpt & opt,
+ YWidgetOpt & opt,
const YCPString & label,
const YCPString & time );
virtual bool hasTime() { return false; }
@@ -767,14 +768,14 @@
const YCPString & newPartLabel,
const YCPString & freeFieldLabel,
const YCPString & newPartFieldLabel );
-
+
virtual bool hasPartitionSplitter() { return false; }
/**
* Creates a pattern selector.
**/
virtual YWidget *createPatternSelector( YWidget *parent, YWidgetOpt & opt );
-
+
virtual bool hasPatternSelector() { return false; }
@@ -785,10 +786,10 @@
const YCPValue & backButtonId, const YCPString & backButtonLabel,
const YCPValue & abortButtonId, const YCPString & abortButtonLabel,
const YCPValue & nextButtonId, const YCPString & nextButtonLabel );
-
+
virtual bool hasWizard() { return false; }
-
+
/**
* UI-specific setLanguage() function.
* Returns YCPVoid() if OK and YCPNull() on error.
@@ -853,6 +854,13 @@
*/
virtual void makeScreenShot( string filename );
+ /**
+ * UI-specific beep method.
+ *
+ * Emit acoustic signal or something equivalent.
+ * This default implementation does nothing.
+ */
+ virtual void beep();
/**
* UI-specific runPkgSelection method.
@@ -1024,7 +1032,7 @@
bool wait,
bool detailed );
-
+
/**
* Implements the WFM or SCR callback command.
*/
@@ -1160,7 +1168,7 @@
YWidget *createDate( YWidget *parent, YWidgetOpt & opt,
const YCPTerm & term, const YCPList & optList, int argnr);
-
+
YWidget *createTime( YWidget *parent, YWidgetOpt & opt,
const YCPTerm & term, const YCPList & optList, int argnr);
@@ -1310,7 +1318,7 @@
*/
YWidget *createWizard( YWidget *parent, YWidgetOpt & opt, const YCPTerm & term,
const YCPList & optList, int argnr );
-
+
/**
* Helper function of createWidgetTree.
* Creates a DummySpecialWidget.
@@ -1548,7 +1556,7 @@
**/
Y2Component * _callback;
-
+
/**
* Global reference to the UI
**/
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-core-2.13.30/libyui/src/include/YUISymbols.h new/yast2-core-2.14.0/libyui/src/include/YUISymbols.h
--- old/yast2-core-2.13.30/libyui/src/include/YUISymbols.h 2006-06-29 08:51:41.000000000 +0200
+++ new/yast2-core-2.14.0/libyui/src/include/YUISymbols.h 2006-09-19 13:58:43.000000000 +0200
@@ -25,6 +25,7 @@
#define YUIBuiltin_AskForExistingDirectory "AskForExistingDirectory"
#define YUIBuiltin_AskForExistingFile "AskForExistingFile"
#define YUIBuiltin_AskForSaveFileName "AskForSaveFileName"
+#define YUIBuiltin_Beep "Beep"
#define YUIBuiltin_BusyCursor "BusyCursor"
#define YUIBuiltin_ChangeWidget "ChangeWidget"
#define YUIBuiltin_CloseDialog "CloseDialog"
@@ -62,7 +63,6 @@
#define YUIBuiltin_PostponeShortcutCheck "PostponeShortcutCheck"
#define YUIBuiltin_CheckShortcuts "CheckShortcuts"
-
#define YUIBuiltin_RecordMacro "RecordMacro"
#define YUIBuiltin_StopRecordMacro "StopRecordMacro"
#define YUIBuiltin_PlayMacro "PlayMacro"
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org