Enlightenment CVS committal
Author : mej
Project : eterm
Module : Eterm
Dir : eterm/Eterm/src
Modified Files:
options.c script.c
Log Message:
Fri Nov 7 12:26:11 2003 Michael Jennings (mej)
Fixed stupid mathematical blunder in the font handling code pointed
out by Laurence J. Lane <[EMAIL PROTECTED]>.
Allow save_buff() script function to dump to stderr if no file is
specified. Note that script functions CANNOT be triggered by escape
sequences.
===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/options.c,v
retrieving revision 1.129
retrieving revision 1.130
diff -u -3 -r1.129 -r1.130
--- options.c 26 Aug 2003 01:45:10 -0000 1.129
+++ options.c 7 Nov 2003 17:28:42 -0000 1.130
@@ -21,7 +21,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-static const char cvs_ident[] = "$Id: options.c,v 1.129 2003/08/26 01:45:10 mej Exp
$";
+static const char cvs_ident[] = "$Id: options.c,v 1.130 2003/11/07 17:28:42 mej Exp
$";
#include "config.h"
#include "feature.h"
@@ -979,7 +979,7 @@
} else if (!BEG_STRCASECMP(buff, "font ")) {
char *tmp = get_pword(2, buff);
- unsigned char n;
+ unsigned long n;
if (!BEG_STRCASECMP(tmp, "fx ") || !BEG_STRCASECMP(tmp, "effect")) {
if (parse_font_fx(get_pword(2, tmp)) != 1) {
@@ -997,7 +997,7 @@
file_peek_path(), file_peek_line());
}
} else if (isdigit(*tmp)) {
- n = (unsigned char) strtoul(tmp, (char **) NULL, 0);
+ n = strtoul(tmp, (char **) NULL, 0);
if (n <= 255) {
eterm_font_add(&etfonts, get_pword(2, tmp), n);
} else {
@@ -2351,7 +2351,7 @@
} else if (!BEG_STRCASECMP(buff, "font ")) {
char *tmp = get_pword(2, buff);
- unsigned char n;
+ unsigned long n;
if (num_words(buff) != 3) {
print_error("Parse error in file %s, line %lu: Invalid parameter list
\"%s\" for attribute font\n",
@@ -2359,7 +2359,7 @@
return NULL;
}
if (isdigit(*tmp)) {
- n = (unsigned char) strtoul(tmp, (char **) NULL, 0);
+ n = strtoul(tmp, (char **) NULL, 0);
if (n <= 255) {
eterm_font_add(&etmfonts, get_pword(2, tmp), n);
} else {
===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/script.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -3 -r1.25 -r1.26
--- script.c 19 Feb 2003 21:18:02 -0000 1.25
+++ script.c 7 Nov 2003 17:28:42 -0000 1.26
@@ -21,7 +21,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-static const char cvs_ident[] = "$Id: script.c,v 1.25 2003/02/19 21:18:02 mej Exp $";
+static const char cvs_ident[] = "$Id: script.c,v 1.26 2003/11/07 17:28:42 mej Exp $";
#include "config.h"
#include "feature.h"
@@ -316,6 +316,8 @@
{
if (params && *params) {
scr_dump_to_file(params[0]);
+ } else {
+ scr_dump();
}
}
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs