Branch: Tag:

2004-12-26

2004-12-26 11:54:03 by Per Hedbor <ph@opera.com>

Next step in my quest for virtual filesystem possibility. With this it's now actually possible to create your own virtual filesystem.

Rev: lib/master.pike.in:1.369

6:   // Pike is distributed under GPL, LGPL and MPL. See the file COPYING   // for more information.   // - // $Id: master.pike.in,v 1.368 2004/12/26 01:06:18 per Exp $ + // $Id: master.pike.in,v 1.369 2004/12/26 11:54:03 per Exp $      #pike __REAL_VERSION__   //#pragma strict_types
1110:    add_constant("strlen", sizeof);    add_constant("write", write);    add_constant("werror", werror); +  // To make it possible to overload get_dir and file_stat later on. +  // It's not possible to replace efuns with normal functions in .o-files    -  +  add_constant("get_dir", master_get_dir ); +  add_constant("file_stat", lambda( string f, int|void d ) { return file_stat(f,d);} ); +    #define CO(X) add_constant(#X,Builtin.__backend->X)    CO(call_out);    CO(_do_call_outs);