[DGD] Kernel suggestion

Blain blain20 at gmail.com
Tue Feb 7 01:02:03 CET 2017


While I'm at it, I also fixed a tiny issue in the driver.  If you do
normalize_path("usr", "/"), you get "//usr".  I just added a check for if
dir == "/", return dir + path.  I don't know if it's already fixed in other
versions or if I caused it.  I'll have to check stock copies.

On Feb 6, 2017 5:59 PM, wrote:

> This is a suggestion for the kernel library right?
>
> 1.  The kernel library has been officially abandoned by its original
> author, Dworkin
>
> 2.  I do, however, maintain a "true to the original spirit" fork of it, and
> I'll definitely consider this as a possible patch.
>
> Admittedly I don't really know much about how the editor works, and to be
> quite honest I consider the editor to be deprecated.  As it is, editors
> aren't even preserved during a hotboot of DGD.
>
>
> On Sun, Feb 5, 2017 at 7:54 PM, Blain <blain20 at gmail.com> wrote:
>
> > static string editor(varargs string cmd)
> > {
> > ...
> >     catch {
> >         rlimits (-1; -1) {
> >             rsrcd = ::find_object(RSRCD);
> >             if (!query_editor(this_object())) {
> >                 ::find_object(USERD)->add_editor(this_object());
> >             }
> >             driver = ::find_object(DRIVER);
> >
> >             TLSVAR(1) = nil;
> >             result = (cmd) ? ::editor(cmd) : ::editor();
> > >            if(typeof(TLSVAR(1)) == T_STRING)
> > >              error(TLSVAR(1));
> >             info = TLSVAR(1);
> >
> >             if (!query_editor(this_object())) {
> >                 ::find_object(USERD)->remove_editor(this_object());
> >             }
> >             if (info) {
> >                 rsrcd->rsrc_incr(driver->creator(info[0]), "fileblocks",
> > nil,
> >                                  driver->file_size(info[0]) - info[1]);
> >             }
> >         }
> >     } : error(TLSVAR(1));
> >     return result;
> > }
> >
> >
> > That'll make the error more meaningful.  As it stands, the assignment of
> > string *info to string TLSVAR(1) didn't point me to an error in
> > editorobj->path_read(). ;)
> > ____________________________________________
> > https://mail.dworkin.nl/mailman/listinfo/dgd
> ____________________________________________
> https://mail.dworkin.nl/mailman/listinfo/dgd



More information about the DGD mailing list