[701] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[D-O-H] r762 - trunk/owl

daemon@ATHENA.MIT.EDU (nelhage@MIT.EDU)
Thu Oct 29 18:08:50 2009

Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
To: dirty-owl-hackers@mit.edu
From: nelhage@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Wed, 12 Sep 2007 21:37:42 -0400 (EDT)

Author: nelhage
Date: 2007-09-12 21:37:41 -0400 (Wed, 12 Sep 2007)
New Revision: 762

Modified:
   trunk/owl/functions.c
Log:
Do ~-expansion in :loadsubs. closes #26


Modified: trunk/owl/functions.c
===================================================================
--- trunk/owl/functions.c	2007-09-11 00:00:45 UTC (rev 761)
+++ trunk/owl/functions.c	2007-09-13 01:37:41 UTC (rev 762)
@@ -848,12 +848,14 @@
 void owl_function_loadsubs(char *file)
 {
   int ret, ret2;
-  char *foo;
+  char *foo, *path;
 
   if (file==NULL) {
     ret=owl_zephyr_loadsubs(NULL, 0);
   } else {
-    ret=owl_zephyr_loadsubs(file, 1);
+    path = owl_util_makepath(file);
+    ret=owl_zephyr_loadsubs(path, 1);
+    free(path);
   }
 
   /* for backwards compatibility for now */


home help back first fref pref prev next nref lref last post