python/dist/src/Python compile.txt, 1.1.2.6, 1.1.2.7
Update of /cvsroot/python/python/dist/src/Python In directory sc8-pr-cvs1:/tmp/cvs-serv3012/Python Modified Files: Tag: ast-branch compile.txt Log Message: Add notes on asdl_seq_* functions and macros. Index: compile.txt =================================================================== RCS file: /cvsroot/python/python/dist/src/Python/Attic/compile.txt,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** compile.txt 25 Jul 2003 23:42:09 -0000 1.1.2.6 --- compile.txt 15 Sep 2003 00:25:48 -0000 1.1.2.7 *************** *** 106,118 **** - REQ(node, type) -- Assert that the node is the type that is expected ! XXX Function and macros for creating and using ``asdl_seq *`` types ! (found in Python/asdl.c and Include/asdl.h): ! + asdl_seq_new ! * when to use? ! * when to call asdl_seq_free? ! + asdl_seq_APPEND ! + asdl_seq_SET ! + asdl_seq_GET ! + asdl_seq_LEN --- 106,118 ---- - REQ(node, type) -- Assert that the node is the type that is expected ! Function and macros for creating and using ``asdl_seq *`` types ! as found in Python/asdl.c and Include/asdl.h: ! - asdl_seq_new(int) -- Allocate memory for an asdl_seq for length ! 'size' ! - asdl_seq_free(asdl_seq *) -- Free asdl_seq struct ! - asdl_seq_GET(seq, pos) -- Get item held at 'pos' ! - asdl_seq_SET(seq, pos, val) -- Set 'seq' at 'pos' to 'val' ! - asdl_seq_APPEND(seq, val) -- Set the end of 'seq' to 'val' ! - asdl_seq_LEN(seq) -- Return the length of 'seq'
participants (1)
-
bcannon@users.sourceforge.net