trunk: changeset 1813

Sat, 09 Oct 2004 17:38:29 +0200

author
tuomov
date
Sat, 09 Oct 2004 17:38:29 +0200
changeset 83
2cdbf1464796
parent 82
895f6304179d
child 84
77a9dc0a2140

trunk: changeset 1813
Minor libextl related changes etc.

objp.h file | annotate | diff | comparison | revisions
output.c file | annotate | diff | comparison | revisions
--- a/objp.h	Sat Oct 09 13:01:37 2004 +0200
+++ b/objp.h	Sat Oct 09 17:38:29 2004 +0200
@@ -29,7 +29,7 @@
     void (*destroy_fn)();
 };
 
-#define OBJ_TYPESTR(OBJ) (((Obj*)OBJ)->obj_type->name)
+#define OBJ_TYPESTR(OBJ) ((OBJ) ? ((Obj*)OBJ)->obj_type->name : NULL)
 
 #define IMPLCLASS(CLS, ANCESTOR, DFN, DYN)                         \
         ClassDescr CLASSDESCR(CLS)={                              \
--- a/output.c	Sat Oct 09 13:01:37 2004 +0200
+++ b/output.c	Sat Oct 09 17:38:29 2004 +0200
@@ -113,8 +113,7 @@
 static void fallback_warn()
 {
     put_prog_name();
-    fprintf(stderr, TR("Oops. Error string compilation failed: %s"),
-            strerror(errno));
+    fprintf(stderr, "%s\n", strerror(errno));
 }
     
     

mercurial