head 1.1; branch 1.1.1; access; symbols initial_release:1.1.1.1 JK:1.1.1; locks; strict; comment @# @; 1.1 date 2000.08.01.17.40.27; author jkybic; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2000.08.01.17.40.27; author jkybic; state Exp; branches; next ; desc @@ 1.1 log @Initial revision @ text @ /* Code to access $name$ objects as mappings */ static int $abbrev$_length(self) $abbrev$object *self; { /* XXXX Return the size of the mapping */ } static PyObject * $abbrev$_subscript(self, key) $abbrev$object *self; PyObject *key; { /* XXXX Return the item of self indexed by key */ } static int $abbrev$_ass_sub(self, v, w) $abbrev$object *self; PyObject *v, *w; { /* XXXX Put w in self under key v */ return 0; } static PyMappingMethods $abbrev$_as_mapping = { (inquiry)$abbrev$_length, /*mp_length*/ (binaryfunc)$abbrev$_subscript, /*mp_subscript*/ (objobjargproc)$abbrev$_ass_sub, /*mp_ass_subscript*/ }; /* -------------------------------------------------------- */ @ 1.1.1.1 log @ Python-1.5.2 compiled for Linux on Psion. Imported by Jan.Kybic@@epfl.ch @ text @@