[Prev][Next][Index][Thread]

# Re: 1.8.0a2 / extensions.c

- Date: Fri, 15 Dec 1995 17:49:11 PST
- From:
- Cc: MOO-Cows mailing list <MOO-Cows@parc.xerox.com>
- In-reply-to: Martian's message of "Thu, 14 Dec 1995 17:59:37 PST" <30D0D689.C4E@elysian.net>

    Martian writes:
    > Does *dump_db_name in db_file.c need to be static?
    > I wrote a function to return the size of the file (one hasn't been added
    > to 1.8.0, I assume) but had it located in server.c. I'd like to move it
    > to extensions.c in the new version, but still need to change something
    > so I can get the name of the db file. Either refer to dump_db_name via
    > extern, or have server.c:main() call a verb in extentions.c to set a
    > variable there. Either way, I have to change another file. ::/

    One major reason for the split between the DB module and the rest of the server
    was to insulate the main body of the code from substantial changes in how the
    DB was stored/represented.  I don't want to expose the variable dump_db_name
    for precisely this reason.  What I can easily do, though, is to add another
    function to db.h, db_disk_size(), which would return the amount of disk most
    recently required to stably store the DB.  Either you or I could then add a new
    built-in that returned the value of this function.

    Look for something like this in alpha3.

    	Pavel

References:

- 1.8.0a2 / extensions.c

- From: Martian <martian@server.elysian.net>

- Prev: 1.8.0a2 / extensions.c
- Next: 1.8.0alpha3 delete_verb() bug and patch
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index