Lines Matching refs:pi

421 def emitPage(baseDir, specDir, pi, file):  argument
432 genDict[pi.name] = None
436 if pi.desc is None:
437 pi.desc = '(no short description available)'
444 if pi.type in refpage_api_types:
445 if pi.include is None:
450 lines = remapIncludes(file[pi.begin:pi.include + 1], baseDir, specDir)
453 if pi.param is not None:
454 if pi.type == 'structs':
456 elif pi.type in ['protos', 'funcpointers']:
459 logWarn('emitPage: unknown field type:', pi.type,
460 'for', pi.name)
461 lines = remapIncludes(file[pi.param:pi.body], baseDir, specDir)
465 if pi.body != pi.include:
466 lines = remapIncludes(file[pi.body:pi.end + 1], baseDir, specDir)
470 logWarn('emitPage: INCLUDE == BODY, so description will be empty for', pi.name)
471 if pi.begin != pi.include:
473 elif pi.type in refpage_other_types:
475 descText = ''.join(file[pi.begin:pi.end + 1])
481 specURL = conventions.specURL(pi.spec)
488 refPageHead(pi.name,
489 pi.desc,
494 refPageTail(pageName=pi.name,
495 specType=pi.spec,
496 specAnchor=pi.anchor,
497 seeAlso=seeAlsoList(pi.name, pi.refs, pi.alias.split()),
503 def autoGenEnumsPage(baseDir, pi, file): argument
516 genDict[pi.name] = None
520 if pi.desc is None:
521 pi.desc = '(no short description available)'
525 if not pi.embed:
530 macroPrefix(pi.embed),
539 refPageHead(pi.name,
540 pi.desc,
541 ''.join(file[pi.begin:pi.include + 1]),
545 refPageTail(pageName=pi.name,
546 specType=pi.spec,
547 specAnchor=pi.anchor,
548 seeAlso=seeAlsoList(pi.name, pi.refs, pi.alias.split()),
604 specType=pi.spec,
605 specAnchor=pi.anchor,
644 specType=pi.spec,
645 specAnchor=pi.anchor,
677 pi = pageMap[name]
685 if pi.type in refpage_api_types:
694 elif pi.type in refpage_other_types:
696 if pi.type == 'feature':
701 printPageInfo(pi, file)
703 if pi.Warning:
704 logDiag('genRef:', pi.name + ':', pi.Warning)
706 if pi.extractPage:
707 emitPage(baseDir, specDir, pi, file)
708 elif pi.type == 'enums':
709 autoGenEnumsPage(baseDir, pi, file)
710 elif pi.type == 'flags':
711 autoGenFlagsPage(baseDir, pi.name)
714 logWarn('genRef: Cannot extract or autogenerate:', pi.name)
716 pages[pi.name] = pi
717 for alias in pi.alias.split():
718 pages[alias] = pi