Monday, November 08, 2010 at 12:04 AM.


on getGuestSubtable (logname) {
	<<12/14/98; 8:13:56 PM by DW
		<<This is the basic log access routine. Give me the name of a log, and I'll return you the address of the table containing its log.
	<<1/8/99; 9:20:55 AM by DW, work around kernel bug
		<<when log.getCurrentFile is called from an agent at midnight it fails to create the table, so we miss logging that one event until the kernel is fixed. in the meantime, I want to catch the next items without failing.
	local (f = log.getCurrentFile ());
	<<bundle //work around kernel bug, 1/8/99 DW
		<<local (adrtopitem = @[f] [1])
		<<if typeof (adrtopitem^) != tabletype
			<<new (tabletype, @[f].[date.shortstring ( ())])
			<<delete (adrtopitem)
	local (adrsubtable = @[f] [1].[logname]);
	if not defined (adrsubtable^) {
		new (tabletype, adrsubtable)};
	return (adrsubtable)}

This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.