pike.git / lib / modules / ADT.pmod / module.pmod

version» Context lines:

pike.git/lib/modules/ADT.pmod/module.pmod:2:   #pragma strict_types      //! Various Abstract Data Types.      #if constant(_ADT)   inherit _ADT;   #endif /* _ADT */      constant List = __builtin.List;    + // Internal stuff for ADT.Struct + static int item_counter; + int get_item_id() { return item_counter++; } +    //! String buffer with the possibility to read and write data   //! as they would be formatted in structs.   class struct {       string buffer;    int index;       //! Create a new buffer, optionally initialized with the    //! value @[s].    void create(void|string s)