2021-07-03 05:07:57 +01:00
< ! DOCTYPE HTML >
< html >
< head >
< meta http - equiv = " Content-Type " content = " text/html;charset=US-ASCII " >
< meta name = " generator " content = " ZealOS V0.05 " >
< style type = " text/css " >
body { background - color : # 000000 ; }
. cF0 { color : # ffffff ; background - color : # 000000 ; }
. cF1 { color : # 3465 a4 ; background - color : # 000000 ; }
. cF2 { color : # 4e9 a06 ; background - color : # 000000 ; }
. cF3 { color : # 06 989 a ; background - color : # 000000 ; }
. cF4 { color : # a24444 ; background - color : # 000000 ; }
. cF5 { color : # 75507 b ; background - color : # 000000 ; }
. cF6 { color : # ce982f ; background - color : # 000000 ; }
. cF7 { color : # bcc0b9 ; background - color : # 000000 ; }
. cF8 { color : # 555753 ; background - color : # 000000 ; }
. cF9 { color : # 729f cf ; background - color : # 000000 ; }
. cFA { color : # 82 bc49 ; background - color : # 000000 ; }
. cFB { color : # 34e2 e2 ; background - color : # 000000 ; }
. cFC { color : # ac3535 ; background - color : # 000000 ; }
. cFD { color : # ad7fa8 ; background - color : # 000000 ; }
. cFE { color : # fce94f ; background - color : # 000000 ; }
. cFF { color : # 000000 ; background - color : # 000000 ; }
< / style >
< / head >
< body >
2021-07-05 01:12:38 +01:00
< pre style = " font-family:monospace;font-size:12pt " >
2021-07-03 05:07:57 +01:00
< a name = " l1 " > < / a > < span class = cF0 > # < / span > < span class = cF1 > help_index < / span > < span class = cF0 > < / span > < span class = cF6 > & quot ; DolDoc / Conversion & quot ; < / span > < span class = cF0 >
< a name = " l2 " > < / a >
2021-07-03 07:51:43 +01:00
< a name = " l3 " > < / a > < / span > < span class = cF2 > //See </span><a href="https://tomawezome.github.io/ZealOS/Doc/Credits.html#l1"><span class=cF4>::/Doc/Credits.DD</span></a><span class=cF2>.</span><span class=cF0>
2021-07-03 05:07:57 +01:00
< a name = " l4 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l5 " > < / a > # < / span > < span class = cF1 > define < / span > < span class = cF0 > DOCET_UNDEF_COLOR < / span > < span class = cFE > 0x100000000 < / span > < span class = cF0 >
< a name = " l6 " > < / a > # < / span > < span class = cF1 > define < / span > < span class = cF0 > DOCET_LINK_UNDERLINE < / span > < span class = cFE > 0x200000000 < / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = " l7 " > < / a > < / span > < span class = cF1 > U0 < / span > < span class = cF0 > HtmlPutS ( < / span > < span class = cF9 > CDoc < / span > < span class = cF0 > * doc , < / span > < span class = cF9 > I64 < / span > < span class = cF0 > u32_attr , < / span > < span class = cF9 > I64 < / span > < span class = cF0 > * _old_u32_attr , < / span > < span class = cF1 > Bool < / span > < span class = cF0 > underline_update , < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * st , < / span > < span class = cF9 > I64 < / span > < span class = cF0 > * _col , < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * style_bitmap = < / span > < span class = cF3 > NULL < / span > < span class = cF0 > )
< a name = " l8 " > < / a > {
2021-07-04 23:11:34 +01:00
< a name = " l9 " > < / a > < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * ch , * ptr ;
2021-07-03 05:07:57 +01:00
< a name = " l10 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l11 " > < / a > u32_attr & amp ; = < / span > < span class = cFE > 0xFFFFFF00 < / span > < span class = cF0 > ;
< a name = " l12 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( u32_attr & amp ; < / span > < span class = cF3 > DOCET_INVERT < / span > < span class = cF0 > )
< a name = " l13 " > < / a > u32_attr . u8 [ < / span > < span class = cFE > 1 < / span > < span class = cF0 > ] = ( u32_attr . u8 [ < / span > < span class = cFE > 1 < / span > < span class = cF0 > ] & amp ; < / span > < span class = cFE > 15 < / span > < span class = cF0 > ) & lt ; & lt ; < / span > < span class = cFE > 4 < / span > < span class = cF0 > | u32_attr . u8 [ < / span > < span class = cFE > 1 < / span > < span class = cF0 > ] & gt ; & gt ; < / span > < span class = cFE > 4 < / span > < span class = cF0 > ;
< a name = " l14 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( underline_update & amp ; & amp ; ! < / span > < span class = cF7 > ( < / span > < span class = cF0 > u32_attr & amp ; < / span > < span class = cF3 > DOCET_UNDERLINE < / span > < span class = cF7 > ) < / span > < span class = cF0 > & amp ; & amp ; * _old_u32_attr & amp ; < / span > < span class = cF3 > DOCET_UNDERLINE < / span > < span class = cF0 > )
< a name = " l15 " > < / a > < / span > < span class = cF7 > { < / span > < span class = cF0 >
< a name = " l16 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( ! < / span > < span class = cF7 > ( < / span > < span class = cF0 > * _old_u32_attr & amp ; DOCET_LINK_UNDERLINE < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l17 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc , < / span > < span class = cF6 > & quot ; & lt ; / u & gt ; & quot ; < / span > < span class = cF0 > ) ;
< a name = " l18 " > < / a > * _old_u32_attr & amp ; = ~ DOCET_LINK_UNDERLINE ;
< a name = " l19 " > < / a > < / span > < span class = cF7 > } < / span > < span class = cF0 >
< a name = " l20 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( ! < / span > < span class = cF7 > ( < / span > < span class = cF0 > u32_attr & amp ; < / span > < span class = cF3 > DOCET_BLINK < / span > < span class = cF7 > ) < / span > < span class = cF0 > & amp ; & amp ; * _old_u32_attr & amp ; < / span > < span class = cF3 > DOCET_BLINK < / span > < span class = cF0 > )
< a name = " l21 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc , < / span > < span class = cF6 > & quot ; & lt ; / blink & gt ; & quot ; < / span > < span class = cF0 > ) ;
< a name = " l22 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( u32_attr & amp ; < / span > < span class = cFE > 0xFF00 < / span > < span class = cF0 > ! = * _old_u32_attr & amp ; < / span > < span class = cFE > 0xFF00 < / span > < span class = cF0 > )
< a name = " l23 " > < / a > < / span > < span class = cF7 > { < / span > < span class = cF0 >
< a name = " l24 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( ! < / span > < span class = cF7 > ( < / span > < span class = cF0 > * _old_u32_attr & amp ; DOCET_UNDEF_COLOR < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l25 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc , < / span > < span class = cF6 > & quot ; & lt ; / span & gt ; & quot ; < / span > < span class = cF0 > ) ;
< a name = " l26 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc , < / span > < span class = cF6 > & quot ; & lt ; span class = c % 02 X & gt ; & quot ; < / span > < span class = cF0 > , u32_attr . u8 [ < / span > < span class = cFE > 1 < / span > < span class = cF0 > ] ) ;
< a name = " l27 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( style_bitmap )
< a name = " l28 " > < / a > < / span > < span class = cF5 > LBts < / span > < span class = cF0 > ( style_bitmap , u32_attr . u8 [ < / span > < span class = cFE > 1 < / span > < span class = cF0 > ] ) ;
< a name = " l29 " > < / a > < / span > < span class = cF7 > } < / span > < span class = cF0 >
< a name = " l30 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( u32_attr & amp ; < / span > < span class = cF3 > DOCET_BLINK < / span > < span class = cF0 > & amp ; & amp ; ! < / span > < span class = cF7 > ( < / span > < span class = cF0 > * _old_u32_attr & amp ; < / span > < span class = cF3 > DOCET_BLINK < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l31 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc , < / span > < span class = cF6 > & quot ; & lt ; blink & gt ; & quot ; < / span > < span class = cF0 > ) ;
< a name = " l32 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( underline_update )
< a name = " l33 " > < / a > < / span > < span class = cF7 > { < / span > < span class = cF0 >
< a name = " l34 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( u32_attr & amp ; < / span > < span class = cF3 > DOCET_UNDERLINE < / span > < span class = cF0 > & amp ; & amp ; ! < / span > < span class = cF7 > ( < / span > < span class = cF0 > * _old_u32_attr & amp ; < / span > < span class = cF3 > DOCET_UNDERLINE < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l35 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc , < / span > < span class = cF6 > & quot ; & lt ; u & gt ; & quot ; < / span > < span class = cF0 > ) ;
< a name = " l36 " > < / a > < / span > < span class = cF7 > } < / span > < span class = cF0 >
< a name = " l37 " > < / a > < / span > < span class = cF1 > else < / span > < span class = cF0 > < / span > < span class = cF2 > //Keep same underline status.</span><span class=cF0>
< a name = " l38 " > < / a > u32_attr = u32_attr & amp ; ~ < / span > < span class = cF3 > DOCET_UNDERLINE < / span > < span class = cF0 > | * _old_u32_attr & amp ; < / span > < span class = cF3 > DOCET_UNDERLINE < / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = " l39 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l40 " > < / a > * _old_u32_attr = u32_attr | * _old_u32_attr & amp ; DOCET_LINK_UNDERLINE ;
2021-07-03 05:07:57 +01:00
< a name = " l41 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l42 " > < / a > < / span > < span class = cF1 > while < / span > < span class = cF0 > ( ch = * st + + )
< a name = " l43 " > < / a > < / span > < span class = cF7 > { < / span > < span class = cF0 >
< a name = " l44 " > < / a > < / span > < span class = cF1 > switch < / span > < span class = cF0 > ( ch )
< a name = " l45 " > < / a > {
< a name = " l46 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF6 > ' \t ' < / span > < span class = cF0 > :
< a name = " l47 " > < / a > < / span > < span class = cF1 > do < / span > < span class = cF0 >
< a name = " l48 " > < / a > < / span > < span class = cF7 > { < / span > < span class = cF0 >
< a name = " l49 " > < / a > < / span > < span class = cF5 > DocPutKey < / span > < span class = cF0 > ( doc , < / span > < span class = cF3 > CH_SPACE < / span > < span class = cF0 > , < / span > < span class = cFE > 0 < / span > < span class = cF0 > ) ;
< a name = " l50 " > < / a > * _col = * _col + < / span > < span class = cFE > 1 < / span > < span class = cF0 > ;
< a name = " l51 " > < / a > < / span > < span class = cF7 > } < / span > < span class = cF0 >
< a name = " l52 " > < / a > < / span > < span class = cF1 > while < / span > < span class = cF0 > ( * _col & amp ; < / span > < span class = cFE > 3 < / span > < span class = cF0 > ) ;
< a name = " l53 " > < / a > < / span > < span class = cF1 > break < / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = " l54 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l55 " > < / a > < / span > < span class = cF1 > start < / span > < span class = cF0 > :
< a name = " l56 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF6 > ' pi ' < / span > < span class = cF0 > : ptr = < / span > < span class = cF6 > & quot ; pi & quot ; < / span > < span class = cF0 > ; < / span > < span class = cF1 > break < / span > < span class = cF0 > ;
< a name = " l57 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF6 > ' theta ' < / span > < span class = cF0 > : ptr = < / span > < span class = cF6 > & quot ; theta & quot ; < / span > < span class = cF0 > ; < / span > < span class = cF1 > break < / span > < span class = cF0 > ;
< a name = " l58 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF6 > ' phi ' < / span > < span class = cF0 > : ptr = < / span > < span class = cF6 > & quot ; phi & quot ; < / span > < span class = cF0 > ; < / span > < span class = cF1 > break < / span > < span class = cF0 > ;
< a name = " l59 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF6 > ' omega ' < / span > < span class = cF0 > : ptr = < / span > < span class = cF6 > & quot ; omega & quot ; < / span > < span class = cF0 > ; < / span > < span class = cF1 > break < / span > < span class = cF0 > ;
< a name = " l60 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF6 > ' inf ' < / span > < span class = cF0 > : ptr = < / span > < span class = cF6 > & quot ; inf & quot ; < / span > < span class = cF0 > ; < / span > < span class = cF1 > break < / span > < span class = cF0 > ;
< a name = " l61 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF6 > ' u ' < / span > < span class = cF0 > : ptr = < / span > < span class = cF6 > & quot ; u & quot ; < / span > < span class = cF0 > ; < / span > < span class = cF1 > break < / span > < span class = cF0 > ;
< a name = " l62 " > < / a > < / span > < span class = cF1 > end < / span > < span class = cF0 > :
< a name = " l63 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc , ptr ) ;
< a name = " l64 " > < / a > * _col = * _col + < / span > < span class = cF5 > StrLen < / span > < span class = cF0 > ( ptr ) ;
< a name = " l65 " > < / a > < / span > < span class = cF1 > break < / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = " l66 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l67 " > < / a > < / span > < span class = cF1 > start < / span > < span class = cF0 > :
< a name = " l68 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF6 > ' & amp ; ' < / span > < span class = cF0 > : ptr = < / span > < span class = cF6 > & quot ; & amp ; amp ; & quot ; < / span > < span class = cF0 > ; < / span > < span class = cF1 > break < / span > < span class = cF0 > ;
< a name = " l69 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF6 > ' & lt ; ' < / span > < span class = cF0 > : ptr = < / span > < span class = cF6 > & quot ; & amp ; lt ; & quot ; < / span > < span class = cF0 > ; < / span > < span class = cF1 > break < / span > < span class = cF0 > ;
< a name = " l70 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF6 > ' & gt ; ' < / span > < span class = cF0 > : ptr = < / span > < span class = cF6 > & quot ; & amp ; gt ; & quot ; < / span > < span class = cF0 > ; < / span > < span class = cF1 > break < / span > < span class = cF0 > ;
< a name = " l71 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF6 > ' & quot ; ' < / span > < span class = cF0 > : ptr = < / span > < span class = cF6 > & quot ; & amp ; quot ; & quot ; < / span > < span class = cF0 > ; < / span > < span class = cF1 > break < / span > < span class = cF0 > ;
< a name = " l72 " > < / a > < / span > < span class = cF1 > end < / span > < span class = cF0 > :
< a name = " l73 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc , ptr ) ;
< a name = " l74 " > < / a > * _col = * _col + < / span > < span class = cFE > 1 < / span > < span class = cF0 > ;
< a name = " l75 " > < / a > < / span > < span class = cF1 > break < / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = " l76 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l77 " > < / a > < / span > < span class = cF1 > default < / span > < span class = cF0 > :
< a name = " l78 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( < / span > < span class = cF3 > CH_SPACE < / span > < span class = cF0 > & lt ; = ch & lt ; < / span > < span class = cFE > 0x7F < / span > < span class = cF0 > | | ch = = < / span > < span class = cF6 > ' \n ' < / span > < span class = cF0 > )
< a name = " l79 " > < / a > < / span > < span class = cF5 > DocPutKey < / span > < span class = cF0 > ( doc , ch , < / span > < span class = cFE > 0 < / span > < span class = cF0 > ) ;
< a name = " l80 " > < / a > < / span > < span class = cF1 > else < / span > < span class = cF0 >
< a name = " l81 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc , < / span > < span class = cF6 > & quot ; . & quot ; < / span > < span class = cF0 > ) ;
< a name = " l82 " > < / a > * _col = * _col + < / span > < span class = cFE > 1 < / span > < span class = cF0 > ;
< a name = " l83 " > < / a > }
< a name = " l84 " > < / a > < / span > < span class = cF7 > } < / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = " l85 " > < / a > }
< a name = " l86 " > < / a >
< a name = " l87 " > < / a > < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * TOSLinkConvert2 ( < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * filename , < / span > < span class = cF9 > I64 < / span > < span class = cF0 > line_num )
< a name = " l88 " > < / a > { < / span > < span class = cF2 > // ::/ --> http://www.templeos.org/Wb/</span><span class=cF0>
< a name = " l89 " > < / a > < / span > < span class = cF2 > //Make your own LinkConvert routine</span><span class=cF0>
2021-07-04 23:11:34 +01:00
< a name = " l90 " > < / a > < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * res = < / span > < span class = cF3 > NULL < / span > < span class = cF0 > , * st ;
2021-07-03 05:07:57 +01:00
< a name = " l91 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l92 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( filename )
< a name = " l93 " > < / a > < / span > < span class = cF7 > { < / span > < span class = cF0 >
< a name = " l94 " > < / a > st = < / span > < span class = cF5 > ExtChange < / span > < span class = cF0 > ( filename , < / span > < span class = cF6 > & quot ; html & quot ; < / span > < span class = cF0 > ) ;
< a name = " l95 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( st & amp ; & amp ; < / span > < span class = cF5 > StrLen < / span > < span class = cF7 > ( < / span > < span class = cF0 > st < / span > < span class = cF7 > ) < / span > < span class = cF0 > & gt ; < / span > < span class = cFE > 3 < / span > < span class = cF0 > & amp ; & amp ; ! < / span > < span class = cF5 > StrNCompare < / span > < span class = cF7 > ( < / span > < span class = cF0 > st + < / span > < span class = cFE > 1 < / span > < span class = cF0 > , < / span > < span class = cF6 > & quot ; : / & quot ; < / span > < span class = cF0 > , < / span > < span class = cFE > 2 < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l96 " > < / a > res = < / span > < span class = cF5 > MStrPrint < / span > < span class = cF0 > ( < / span > < span class = cF6 > & quot ; https : //tomawezome.github.io/ZealOS/%s#l%d"</span><span class=cF0>, st + </span><span class=cFE>3</span><span class=cF0>, line_num);
< a name = " l97 " > < / a > < / span > < span class = cF5 > Free < / span > < span class = cF0 > ( st ) ;
< a name = " l98 " > < / a > < / span > < span class = cF7 > } < / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = " l99 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l100 " > < / a > < / span > < span class = cF1 > return < / span > < span class = cF0 > res ;
2021-07-03 05:07:57 +01:00
< a name = " l101 " > < / a > }
< a name = " l102 " > < / a >
< a name = " l103 " > < / a > < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * URLBibleGateway ( < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * src )
< a name = " l104 " > < / a > {
2021-07-04 23:11:34 +01:00
< a name = " l105 " > < / a > < / span > < span class = cF1 > U8 < / span > < span class = cF0 > buf [ < / span > < span class = cF3 > STR_LEN < / span > < span class = cF0 > ] , * dst = buf ;
2021-07-03 05:07:57 +01:00
< a name = " l106 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l107 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( ! < / span > < span class = cF5 > MemCompare < / span > < span class = cF7 > ( < / span > < span class = cF0 > src , < / span > < span class = cF6 > & quot ; BF : & quot ; < / span > < span class = cF0 > , < / span > < span class = cFE > 3 < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l108 " > < / a > src + = < / span > < span class = cFE > 3 < / span > < span class = cF0 > ;
< a name = " l109 " > < / a > < / span > < span class = cF1 > while < / span > < span class = cF0 > ( * src )
< a name = " l110 " > < / a > < / span > < span class = cF7 > { < / span > < span class = cF0 >
< a name = " l111 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( * src = = < / span > < span class = cF3 > CH_SPACE < / span > < span class = cF0 > | | * src = = < / span > < span class = cF6 > ' , ' < / span > < span class = cF0 > )
< a name = " l112 " > < / a > * dst + + = < / span > < span class = cF6 > ' + ' < / span > < span class = cF0 > ;
< a name = " l113 " > < / a > < / span > < span class = cF1 > else < / span > < span class = cF0 >
< a name = " l114 " > < / a > * dst + + = * src ;
< a name = " l115 " > < / a > src + + ;
< a name = " l116 " > < / a > < / span > < span class = cF7 > } < / span > < span class = cF0 >
< a name = " l117 " > < / a > * dst = < / span > < span class = cFE > 0 < / span > < span class = cF0 > ;
< a name = " l118 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( < / span > < span class = cF5 > StrOcc < / span > < span class = cF7 > ( < / span > < span class = cF0 > buf , < / span > < span class = cF6 > ' - ' < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l119 " > < / a > < / span > < span class = cF1 > return < / span > < span class = cF0 > < / span > < span class = cF5 > MStrPrint < / span > < span class = cF0 > ( < / span > < span class = cF6 > & quot ; http : //www.biblegateway.com/passage/?search=%s&version=NIV"</span><span class=cF0>, buf);
< a name = " l120 " > < / a > < / span > < span class = cF1 > else < / span > < span class = cF0 >
< a name = " l121 " > < / a > < / span > < span class = cF1 > return < / span > < span class = cF0 > < / span > < span class = cF5 > MStrPrint < / span > < span class = cF0 > ( < / span > < span class = cF6 > & quot ; http : //www.biblegateway.com/verse/en/%s"</span><span class=cF0>, buf);
2021-07-03 05:07:57 +01:00
< a name = " l122 " > < / a > }
< a name = " l123 " > < / a >
< a name = " l124 " > < / a > < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * TOSLinkConvert1 ( < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * link_st )
< a name = " l125 " > < / a > {
2021-07-04 23:11:34 +01:00
< a name = " l126 " > < / a > < / span > < span class = cF1 > static < / span > < span class = cF0 > < / span > < span class = cF9 > CDoc < / span > < span class = cF0 > * bible = < / span > < span class = cF3 > NULL < / span > < span class = cF0 > ;
< a name = " l127 " > < / a > < / span > < span class = cF1 > static < / span > < span class = cF0 > < / span > < span class = cF9 > I64 < / span > < span class = cF0 > locks = < / span > < span class = cFE > 0 < / span > < span class = cF0 > ;
< a name = " l128 " > < / a > < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * res = < / span > < span class = cF3 > NULL < / span > < span class = cF0 > , * filename , * needle ;
< a name = " l129 " > < / a > < / span > < span class = cF9 > I64 < / span > < span class = cF0 > i , num ;
2021-07-03 05:07:57 +01:00
< a name = " l130 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l131 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( link_st )
< a name = " l132 " > < / a > < / span > < span class = cF7 > { < / span > < span class = cF0 >
< a name = " l133 " > < / a > < / span > < span class = cF1 > switch < / span > < span class = cF0 > ( i = < / span > < span class = cF5 > EdLinkConvert < / span > < span class = cF7 > ( < / span > < span class = cF0 > link_st , & amp ; filename , & amp ; needle , & amp ; num < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l134 " > < / a > {
< a name = " l135 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF3 > LK_FILE_LINE < / span > < span class = cF0 > :
< a name = " l136 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF3 > LK_PLAIN_LINE < / span > < span class = cF0 > :
< a name = " l137 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF3 > LK_FILE < / span > < span class = cF0 > :
< a name = " l138 " > < / a > res = TOSLinkConvert2 ( filename , num ) ;
< a name = " l139 " > < / a > < / span > < span class = cF1 > break < / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = " l140 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l141 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > - < / span > < span class = cFE > 1 < / span > < span class = cF0 > :
< a name = " l142 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF3 > LK_DEF < / span > < span class = cF0 > :
< a name = " l143 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF3 > LK_HELP_INDEX < / span > < span class = cF0 > :
< a name = " l144 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF3 > LK_DOC < / span > < span class = cF0 > :
< a name = " l145 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF3 > LK_DOC_ANCHOR < / span > < span class = cF0 > :
< a name = " l146 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF3 > LK_DOC_FIND < / span > < span class = cF0 > :
< a name = " l147 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF3 > LK_DOC_LINE < / span > < span class = cF0 > :
< a name = " l148 " > < / a > < / span > < span class = cF1 > break < / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = " l149 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l150 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF3 > LK_BIBLE_FIND < / span > < span class = cF0 > :
< a name = " l151 " > < / a > < / span > < span class = cF1 > while < / span > < span class = cF0 > ( < / span > < span class = cF5 > LBts < / span > < span class = cF7 > ( < / span > < span class = cF0 > & amp ; locks , < / span > < span class = cFE > 0 < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l152 " > < / a > < / span > < span class = cF5 > Yield < / span > < span class = cF0 > ;
< a name = " l153 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( ! bible )
< a name = " l154 " > < / a > bible = < / span > < span class = cF5 > Sys < / span > < span class = cF0 > ( < / span > < span class = cF6 > & quot ; DocRead ( \ & quot ; % s \ & quot ; ) ; & quot ; < / span > < span class = cF0 > , filename ) ;
< a name = " l155 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( < / span > < span class = cF5 > DocFind < / span > < span class = cF7 > ( < / span > < span class = cF0 > bible , num , needle < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l156 " > < / a > res = URLBibleGateway ( link_st ) ;
< a name = " l157 " > < / a > < / span > < span class = cF5 > LBtr < / span > < span class = cF0 > ( & amp ; locks , < / span > < span class = cFE > 0 < / span > < span class = cF0 > ) ;
< a name = " l158 " > < / a > < / span > < span class = cF1 > break < / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = " l159 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l160 " > < / a > < / span > < span class = cF1 > default < / span > < span class = cF0 > :
< a name = " l161 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( < / span > < span class = cF5 > DocFileEd < / span > < span class = cF7 > ( < / span > < span class = cF0 > i , filename , needle , & amp ; num , < / span > < span class = cF3 > EDF_UNCOLLAPSE < / span > < span class = cF0 > | < / span > < span class = cF3 > EDF_BAIL < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l162 " > < / a > res = TOSLinkConvert2 ( filename , num ) ;
< a name = " l163 " > < / a > }
< a name = " l164 " > < / a > < / span > < span class = cF5 > Free < / span > < span class = cF0 > ( filename ) ;
< a name = " l165 " > < / a > < / span > < span class = cF5 > Free < / span > < span class = cF0 > ( needle ) ;
< a name = " l166 " > < / a > < / span > < span class = cF7 > } < / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = " l167 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l168 " > < / a > < / span > < span class = cF1 > return < / span > < span class = cF0 > res ;
2021-07-03 05:07:57 +01:00
< a name = " l169 " > < / a > }
< a name = " l170 " > < / a >
< a name = " l171 " > < / a > < / span > < span class = cF1 > public < / span > < span class = cF0 > < / span > < span class = cF9 > CDoc < / span > < span class = cF0 > * Doc2Html ( < / span > < span class = cF9 > CDoc < / span > < span class = cF0 > * doc_in , < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * html_header = < / span > < span class = cF3 > NULL < / span > < span class = cF0 > , < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * body_header = < / span > < span class = cF3 > NULL < / span > < span class = cF0 > ,
2021-07-04 23:11:34 +01:00
< a name = " l172 " > < / a > < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * body_footer = < / span > < span class = cF3 > NULL < / span > < span class = cF0 > , < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * html_footer = < / span > < span class = cF3 > NULL < / span > < span class = cF0 > , < / span > < span class = cF1 > Bool < / span > < span class = cF0 > line_anchors = < / span > < span class = cF3 > TRUE < / span > < span class = cF0 > ,
< a name = " l173 " > < / a > < / span > < span class = cF1 > U8 < / span > < span class = cF0 > < / span > < span class = cF7 > ( < / span > < span class = cF0 > * link_convert < / span > < span class = cF7 > ) ( < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * link_st < / span > < span class = cF7 > ) < / span > < span class = cF0 > = & amp ; TOSLinkConvert1 , < / span > < span class = cF1 > Bool < / span > < span class = cF0 > line_nums = < / span > < span class = cF3 > FALSE < / span > < span class = cF0 > )
2021-07-03 07:51:43 +01:00
< a name = " l174 " > < / a > { < / span > < span class = cF2 > //Convert </span><a href="https://tomawezome.github.io/ZealOS/Doc/DolDocOverview.html#l1"><span class=cF4>DolDoc</span></a><span class=cF2>doc to HTML file.</span><span class=cF0>
2021-07-04 23:11:34 +01:00
< a name = " l175 " > < / a > < / span > < span class = cF9 > CDocEntry < / span > < span class = cF0 > * doc_e , * style , * doc_e2 ;
< a name = " l176 " > < / a > < / span > < span class = cF9 > I64 < / span > < span class = cF0 > i , y , old_y = < / span > < span class = cF3 > I64_MIN < / span > < span class = cF0 > , col , old_u32_attr = DOCET_UNDEF_COLOR , old_attr , digits ;
< a name = " l177 " > < / a > < / span > < span class = cF9 > U32 < / span > < span class = cF0 > * hl , * src ;
< a name = " l178 " > < / a > < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * st , st_2 [ < / span > < span class = cFE > 2 < / span > < span class = cF0 > ] , * link_st , * style_bitmap = < / span > < span class = cF5 > CAlloc < / span > < span class = cF0 > ( < / span > < span class = cFE > 256 < / span > < span class = cF0 > / < / span > < span class = cFE > 8 < / span > < span class = cF0 > ) ;
< a name = " l179 " > < / a > < / span > < span class = cF9 > CBGR24 < / span > < span class = cF0 > p [ < / span > < span class = cF3 > COLORS_NUM < / span > < span class = cF0 > ] ;
< a name = " l180 " > < / a > < / span > < span class = cF5 > GrPaletteGet < / span > < span class = cF0 > ( p ) ;
< a name = " l181 " > < / a > < / span > < span class = cF9 > CDoc < / span > < span class = cF0 > * doc_out = < / span > < span class = cF5 > DocNew < / span > < span class = cF0 > ;
< a name = " l182 " > < / a > < / span > < span class = cF1 > Bool < / span > < span class = cF0 > unlock_doc_in = < / span > < span class = cF5 > DocLock < / span > < span class = cF0 > ( doc_in ) , no_bwd ;
2021-07-03 05:07:57 +01:00
< a name = " l183 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l184 " > < / a > old_attr = doc_in - & gt ; win_task - & gt ; text_attr ;
< a name = " l185 " > < / a > doc_in - & gt ; win_task - & gt ; text_attr = < / span > < span class = cF3 > DOC_ATTR_DEFAULT_TEXT < / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = " l186 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l187 " > < / a > < / span > < span class = cF1 > for < / span > < span class = cF0 > ( i = < / span > < span class = cFE > 0xF0 < / span > < span class = cF0 > ; i & lt ; = < / span > < span class = cFE > 0xFF < / span > < span class = cF0 > ; i + + )
< a name = " l188 " > < / a > < / span > < span class = cF5 > LBts < / span > < span class = cF0 > ( style_bitmap , i ) ;
2021-07-03 05:07:57 +01:00
< a name = " l189 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l190 " > < / a > < / span > < span class = cF5 > DocRecalc < / span > < span class = cF0 > ( doc_in , < / span > < span class = cF3 > RECALCt_NORMAL < / span > < span class = cF0 > | < / span > < span class = cF3 > RECALCF_TO_HTML < / span > < span class = cF0 > ) ;
2021-07-03 05:07:57 +01:00
< a name = " l191 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l192 " > < / a > digits = < / span > < span class = cF5 > Log10 < / span > < span class = cF0 > ( doc_in - & gt ; head . last - & gt ; y + < / span > < span class = cFE > 1 < / span > < span class = cF0 > ) + < / span > < span class = cFE > 1 < / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = " l193 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l194 " > < / a > st_2 [ < / span > < span class = cFE > 0 < / span > < span class = cF0 > ] = < / span > < span class = cFE > 0 < / span > < span class = cF0 > ;
< a name = " l195 " > < / a > st_2 [ < / span > < span class = cFE > 1 < / span > < span class = cF0 > ] = < / span > < span class = cFE > 0 < / span > < span class = cF0 > ;
< a name = " l196 " > < / a > doc_out - & gt ; flags | = < / span > < span class = cF3 > DOCF_PLAIN_TEXT < / span > < span class = cF0 > | < / span > < span class = cF3 > DOCF_NO_CURSOR < / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = " l197 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l198 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( ! html_header )
< a name = " l199 " > < / a > html_header =
< a name = " l200 " > < / a > < / span > < span class = cF6 > & quot ; & lt ; ! DOCTYPE HTML & gt ; \ n & quot ; < / span > < span class = cF0 >
< a name = " l201 " > < / a > < / span > < span class = cF6 > & quot ; & lt ; html & gt ; \ n & quot ; < / span > < span class = cF0 >
< a name = " l202 " > < / a > < / span > < span class = cF6 > & quot ; & lt ; head & gt ; \ n & quot ; < / span > < span class = cF0 >
< a name = " l203 " > < / a > < / span > < span class = cF6 > & quot ; & lt ; meta http - equiv = \ & quot ; Content - Type \ & quot ; & quot ; < / span > < span class = cF0 >
< a name = " l204 " > < / a > < / span > < span class = cF6 > & quot ; content = \ & quot ; text / html ; charset = US - ASCII \ & quot ; & gt ; \ n & quot ; < / span > < span class = cF0 >
< a name = " l205 " > < / a > < / span > < span class = cF6 > & quot ; & lt ; meta name = \ & quot ; generator \ & quot ; content = \ & quot ; ZealOS V0 .05 \ & quot ; & gt ; \ n & quot ; < / span > < span class = cF0 > ;
< a name = " l206 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( ! body_header )
< a name = " l207 " > < / a > body_header =
< a name = " l208 " > < / a > < / span > < span class = cF6 > & quot ; & lt ; body & gt ; \ n & quot ; < / span > < span class = cF0 >
2021-07-05 01:12:38 +01:00
< a name = " l209 " > < / a > < / span > < span class = cF6 > & quot ; & lt ; pre style = \ & quot ; font - family : monospace ; font - size : 12 pt \ & quot ; & gt ; \ n & quot ; < / span > < span class = cF0 > ;
2021-07-04 23:11:34 +01:00
< a name = " l210 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( ! body_footer )
< a name = " l211 " > < / a > body_footer =
< a name = " l212 " > < / a > < / span > < span class = cF6 > & quot ; & lt ; / pre & gt ; & lt ; / body & gt ; \ n & quot ; < / span > < span class = cF0 > ;
< a name = " l213 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( ! html_footer )
< a name = " l214 " > < / a > html_footer =
< a name = " l215 " > < / a > < / span > < span class = cF6 > & quot ; & lt ; / html & gt ; \ n & quot ; < / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = " l216 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l217 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; % s & quot ; < / span > < span class = cF0 > , html_header ) ;
2021-07-03 05:07:57 +01:00
< a name = " l218 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l219 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; & lt ; style type = \ & quot ; text / css \ & quot ; & gt ; \ n & quot ; < / span > < span class = cF0 > ) ;
< a name = " l220 " > < / a > style = doc_out - & gt ; cur_entry - & gt ; last ;
< a name = " l221 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out ,
< a name = " l222 " > < / a > < / span > < span class = cF6 > & quot ; & lt ; / style & gt ; \ n & quot ; < / span > < span class = cF0 >
< a name = " l223 " > < / a > < / span > < span class = cF6 > & quot ; & lt ; / head & gt ; \ n & quot ; < / span > < span class = cF0 > ) ;
< a name = " l224 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; % s & quot ; < / span > < span class = cF0 > , body_header ) ;
2021-07-03 05:07:57 +01:00
< a name = " l225 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l226 " > < / a > doc_e = doc_in - & gt ; head . next ;
< a name = " l227 " > < / a > col = doc_e - & gt ; x ;
< a name = " l228 " > < / a > y = doc_e - & gt ; y ;
< a name = " l229 " > < / a > < / span > < span class = cF1 > while < / span > < span class = cF0 > ( doc_e ! = doc_in )
< a name = " l230 " > < / a > < / span > < span class = cF7 > { < / span > < span class = cF0 >
< a name = " l231 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( ! < / span > < span class = cF7 > ( < / span > < span class = cF0 > doc_e - & gt ; de_flags & amp ; < / span > < span class = cF3 > DOCEF_SKIP < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l232 " > < / a > {
< a name = " l233 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( y ! = old_y )
< a name = " l234 " > < / a > < / span > < span class = cF7 > { < / span > < span class = cF0 >
< a name = " l235 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( line_anchors )
< a name = " l236 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; & lt ; a name = \ & quot ; l % d \ & quot ; & gt ; & lt ; / a & gt ; & quot ; < / span > < span class = cF0 > , y + < / span > < span class = cFE > 1 < / span > < span class = cF0 > ) ;
< a name = " l237 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( line_nums )
< a name = " l238 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; % 0 * d & quot ; < / span > < span class = cF0 > , digits , y + < / span > < span class = cFE > 1 < / span > < span class = cF0 > ) ;
< a name = " l239 " > < / a > old_y = y ;
< a name = " l240 " > < / a > < / span > < span class = cF7 > } < / span > < span class = cF0 >
< a name = " l241 " > < / a > < / span > < span class = cF1 > while < / span > < span class = cF0 > ( y & lt ; doc_e - & gt ; y )
< a name = " l242 " > < / a > < / span > < span class = cF7 > { < / span > < span class = cF0 >
< a name = " l243 " > < / a > HtmlPutS ( doc_out , doc_e - & gt ; settings . final_u32_attr , & amp ; old_u32_attr , < / span > < span class = cF3 > FALSE < / span > < span class = cF0 > , < / span > < span class = cF6 > & quot ; \ n & quot ; < / span > < span class = cF0 > , & amp ; col , style_bitmap ) ;
< a name = " l244 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( + + y ! = old_y )
< a name = " l245 " > < / a > {
< a name = " l246 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( line_anchors )
< a name = " l247 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; & lt ; a name = \ & quot ; l % d \ & quot ; & gt ; & lt ; / a & gt ; & quot ; < / span > < span class = cF0 > , y + < / span > < span class = cFE > 1 < / span > < span class = cF0 > ) ;
< a name = " l248 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( line_nums )
< a name = " l249 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; % 0 * d & quot ; < / span > < span class = cF0 > , digits , y + < / span > < span class = cFE > 1 < / span > < span class = cF0 > ) ;
< a name = " l250 " > < / a > old_y = y ;
< a name = " l251 " > < / a > }
< a name = " l252 " > < / a > col = < / span > < span class = cFE > 0 < / span > < span class = cF0 > ;
< a name = " l253 " > < / a > < / span > < span class = cF7 > } < / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = " l254 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l255 " > < / a > no_bwd = < / span > < span class = cF3 > TRUE < / span > < span class = cF0 > ;
< a name = " l256 " > < / a > doc_e2 = doc_e - & gt ; next ;
< a name = " l257 " > < / a > < / span > < span class = cF1 > while < / span > < span class = cF0 > ( doc_e2 ! = doc_in & amp ; & amp ; doc_e2 - & gt ; y = = doc_e - & gt ; y )
< a name = " l258 " > < / a > < / span > < span class = cF7 > { < / span > < span class = cF0 >
< a name = " l259 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( doc_e2 - & gt ; x & lt ; doc_e - & gt ; x )
< a name = " l260 " > < / a > {
< a name = " l261 " > < / a > no_bwd = < / span > < span class = cF3 > FALSE < / span > < span class = cF0 > ;
< a name = " l262 " > < / a > < / span > < span class = cF1 > break < / span > < span class = cF0 > ;
< a name = " l263 " > < / a > }
< a name = " l264 " > < / a > doc_e2 = doc_e2 - & gt ; next ;
< a name = " l265 " > < / a > < / span > < span class = cF7 > } < / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = " l266 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l267 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( no_bwd )
< a name = " l268 " > < / a > < / span > < span class = cF1 > while < / span > < span class = cF0 > ( col & lt ; doc_e - & gt ; x )
< a name = " l269 " > < / a > HtmlPutS ( doc_out ,
< a name = " l270 " > < / a > doc_e - & gt ; settings . final_u32_attr & amp ; ~ < / span > < span class = cF3 > DOCET_UNDERLINE < / span > < span class = cF0 > , & amp ; old_u32_attr , < / span > < span class = cF3 > TRUE < / span > < span class = cF0 > , < / span > < span class = cF6 > & quot ; & quot ; < / span > < span class = cF0 > , & amp ; col , style_bitmap ) ;
2021-07-03 05:07:57 +01:00
< a name = " l271 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l272 " > < / a > link_st = < / span > < span class = cF3 > NULL < / span > < span class = cF0 > ;
< a name = " l273 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( doc_e - & gt ; de_flags & amp ; < / span > < span class = cF3 > DOCEF_HTML_LINK < / span > < span class = cF0 > )
< a name = " l274 " > < / a > link_st = < / span > < span class = cF5 > StrNew < / span > < span class = cF0 > ( doc_e - & gt ; html_link ) ;
< a name = " l275 " > < / a > < / span > < span class = cF1 > else < / span > < span class = cF0 > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( st = < / span > < span class = cF5 > DocEntryLink < / span > < span class = cF7 > ( < / span > < span class = cF0 > doc_in , doc_e < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l276 " > < / a > < / span > < span class = cF7 > { < / span > < span class = cF0 >
< a name = " l277 " > < / a > link_st = link_convert ( st ) ;
< a name = " l278 " > < / a > < / span > < span class = cF5 > Free < / span > < span class = cF0 > ( st ) ;
< a name = " l279 " > < / a > < / span > < span class = cF7 > } < / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = " l280 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l281 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( link_st )
< a name = " l282 " > < / a > < / span > < span class = cF7 > { < / span > < span class = cF0 >
< a name = " l283 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( old_u32_attr & amp ; < / span > < span class = cF3 > DOCET_UNDERLINE < / span > < span class = cF0 > & amp ; & amp ; ! < / span > < span class = cF7 > ( < / span > < span class = cF0 > old_u32_attr & amp ; DOCET_LINK_UNDERLINE < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l284 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; & lt ; / u & gt ; & quot ; < / span > < span class = cF0 > ) ;
< a name = " l285 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( old_u32_attr & amp ; < / span > < span class = cF3 > DOCET_BLINK < / span > < span class = cF0 > )
< a name = " l286 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; & lt ; / blink & gt ; & quot ; < / span > < span class = cF0 > ) ;
< a name = " l287 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( ! < / span > < span class = cF7 > ( < / span > < span class = cF0 > old_u32_attr & amp ; DOCET_UNDEF_COLOR < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l288 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; & lt ; / span & gt ; & quot ; < / span > < span class = cF0 > ) ;
< a name = " l289 " > < / a > old_u32_attr = DOCET_UNDEF_COLOR | < / span > < span class = cF3 > DOCET_UNDERLINE < / span > < span class = cF0 > | DOCET_LINK_UNDERLINE ;
< a name = " l290 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; & lt ; a href = \ & quot ; % s \ & quot ; & gt ; & quot ; < / span > < span class = cF0 > , link_st ) ;
< a name = " l291 " > < / a > < / span > < span class = cF7 > } < / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = " l292 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l293 " > < / a > < / span > < span class = cF1 > switch < / span > < span class = cF0 > ( doc_e - & gt ; type_u8 )
< a name = " l294 " > < / a > < / span > < span class = cF7 > { < / span > < span class = cF0 >
< a name = " l295 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF3 > DOCT_TEXT < / span > < span class = cF0 > :
< a name = " l296 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( doc_e - & gt ; de_flags & amp ; < / span > < span class = cF3 > DOCEF_HIGHLIGHT < / span > < span class = cF0 > )
< a name = " l297 " > < / a > {
< a name = " l298 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( doc_e - & gt ; last = = doc_in )
< a name = " l299 " > < / a > < / span > < span class = cF5 > MemCopy < / span > < span class = cF0 > ( & amp ; doc_e - & gt ; settings , & amp ; doc_in - & gt ; settings_head , < / span > < span class = cF1 > sizeof < / span > < span class = cF7 > ( < / span > < span class = cF9 > CDocSettings < / span > < span class = cF7 > ) < / span > < span class = cF0 > ) ;
< a name = " l300 " > < / a > < / span > < span class = cF1 > else < / span > < span class = cF0 >
< a name = " l301 " > < / a > < / span > < span class = cF5 > MemCopy < / span > < span class = cF0 > ( & amp ; doc_e - & gt ; settings , & amp ; doc_e - & gt ; last - & gt ; settings , < / span > < span class = cF1 > sizeof < / span > < span class = cF7 > ( < / span > < span class = cF9 > CDocSettings < / span > < span class = cF7 > ) < / span > < span class = cF0 > ) ;
< a name = " l302 " > < / a > src = hl = < / span > < span class = cF5 > DocHighlight < / span > < span class = cF0 > ( doc_e , doc_e - & gt ; tag , < / span > < span class = cF5 > StrLen < / span > < span class = cF7 > ( < / span > < span class = cF0 > doc_e - & gt ; tag < / span > < span class = cF7 > ) < / span > < span class = cF0 > , doc_e - & gt ; type & amp ; < / span > < span class = cFE > 0xFF00 < / span > < span class = cF0 > ) ;
< a name = " l303 " > < / a > < / span > < span class = cF1 > while < / span > < span class = cF0 > ( * src )
< a name = " l304 " > < / a > < / span > < span class = cF7 > { < / span > < span class = cF0 >
< a name = " l305 " > < / a > st_2 [ < / span > < span class = cFE > 0 < / span > < span class = cF0 > ] = * src & amp ; < / span > < span class = cFE > 0xFF < / span > < span class = cF0 > ;
< a name = " l306 " > < / a > HtmlPutS ( doc_out , * src + + , & amp ; old_u32_attr , < / span > < span class = cF3 > TRUE < / span > < span class = cF0 > , st_2 , & amp ; col , style_bitmap ) ;
< a name = " l307 " > < / a > < / span > < span class = cF7 > } < / span > < span class = cF0 >
< a name = " l308 " > < / a > < / span > < span class = cF5 > Free < / span > < span class = cF0 > ( hl ) ;
< a name = " l309 " > < / a > }
< a name = " l310 " > < / a > < / span > < span class = cF1 > else < / span > < span class = cF0 >
< a name = " l311 " > < / a > HtmlPutS ( doc_out ,
< a name = " l312 " > < / a > doc_e - & gt ; settings . final_u32_attr , & amp ; old_u32_attr , < / span > < span class = cF3 > TRUE < / span > < span class = cF0 > , doc_e - & gt ; tag , & amp ; col , style_bitmap ) ;
< a name = " l313 " > < / a > < / span > < span class = cF1 > break < / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = " l314 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l315 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF3 > DOCT_TAB < / span > < span class = cF0 > :
< a name = " l316 " > < / a > HtmlPutS ( doc_out , doc_e - & gt ; settings . final_u32_attr , & amp ; old_u32_attr , < / span > < span class = cF3 > TRUE < / span > < span class = cF0 > , < / span > < span class = cF6 > & quot ; \ t & quot ; < / span > < span class = cF0 > , & amp ; col , style_bitmap ) ;
< a name = " l317 " > < / a > < / span > < span class = cF1 > break < / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = " l318 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l319 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF3 > DOCT_HTML_CODE < / span > < span class = cF0 > :
< a name = " l320 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( old_u32_attr & amp ; < / span > < span class = cF3 > DOCET_UNDERLINE < / span > < span class = cF0 > & amp ; & amp ; ! < / span > < span class = cF7 > ( < / span > < span class = cF0 > old_u32_attr & amp ; DOCET_LINK_UNDERLINE < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l321 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; & lt ; / u & gt ; & quot ; < / span > < span class = cF0 > ) ;
< a name = " l322 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( old_u32_attr & amp ; < / span > < span class = cF3 > DOCET_BLINK < / span > < span class = cF0 > )
< a name = " l323 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; & lt ; / blink & gt ; & quot ; < / span > < span class = cF0 > ) ;
< a name = " l324 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( ! < / span > < span class = cF7 > ( < / span > < span class = cF0 > old_u32_attr & amp ; DOCET_UNDEF_COLOR < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l325 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; & lt ; / span & gt ; & quot ; < / span > < span class = cF0 > ) ;
< a name = " l326 " > < / a > old_u32_attr = DOCET_UNDEF_COLOR ;
< a name = " l327 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; % s & quot ; < / span > < span class = cF0 > , doc_e - & gt ; tag ) ;
< a name = " l328 " > < / a > < / span > < span class = cF1 > break < / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = " l329 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l330 " > < / a > < / span > < span class = cF1 > case < / span > < span class = cF0 > < / span > < span class = cF3 > DOCT_SPRITE < / span > < span class = cF0 > :
< a name = " l331 " > < / a > HtmlPutS ( doc_out , doc_e - & gt ; settings . final_u32_attr , & amp ; old_u32_attr , < / span > < span class = cF3 > TRUE < / span > < span class = cF0 > , doc_e - & gt ; tag , & amp ; col , style_bitmap ) ;
< a name = " l332 " > < / a > HtmlPutS ( doc_out , doc_e - & gt ; settings . final_u32_attr , & amp ; old_u32_attr , < / span > < span class = cF3 > TRUE < / span > < span class = cF0 > ,
< a name = " l333 " > < / a > < / span > < span class = cF6 > & quot ; /* Graphics Not Rendered in HTML */ & quot ; < / span > < span class = cF0 > , & amp ; col , style_bitmap ) ;
< a name = " l334 " > < / a > < / span > < span class = cF1 > break < / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = " l335 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l336 " > < / a > < / span > < span class = cF1 > default < / span > < span class = cF0 > :
< a name = " l337 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( doc_e - & gt ; de_flags & amp ; < / span > < span class = cF3 > DOCEF_TAG < / span > < span class = cF0 > )
< a name = " l338 " > < / a > HtmlPutS ( doc_out ,
< a name = " l339 " > < / a > doc_e - & gt ; settings . final_u32_attr , & amp ; old_u32_attr , < / span > < span class = cF3 > TRUE < / span > < span class = cF0 > , doc_e - & gt ; tag , & amp ; col , style_bitmap ) ;
< a name = " l340 " > < / a > < / span > < span class = cF7 > } < / span > < span class = cF0 >
< a name = " l341 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( link_st )
< a name = " l342 " > < / a > < / span > < span class = cF7 > { < / span > < span class = cF0 >
< a name = " l343 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( old_u32_attr & amp ; < / span > < span class = cF3 > DOCET_UNDERLINE < / span > < span class = cF0 > & amp ; & amp ; ! < / span > < span class = cF7 > ( < / span > < span class = cF0 > old_u32_attr & amp ; DOCET_LINK_UNDERLINE < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l344 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; & lt ; / u & gt ; & quot ; < / span > < span class = cF0 > ) ;
< a name = " l345 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( old_u32_attr & amp ; < / span > < span class = cF3 > DOCET_BLINK < / span > < span class = cF0 > )
< a name = " l346 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; & lt ; / blink & gt ; & quot ; < / span > < span class = cF0 > ) ;
< a name = " l347 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( ! < / span > < span class = cF7 > ( < / span > < span class = cF0 > old_u32_attr & amp ; DOCET_UNDEF_COLOR < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l348 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; & lt ; / span & gt ; & quot ; < / span > < span class = cF0 > ) ;
< a name = " l349 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; & lt ; / a & gt ; & quot ; < / span > < span class = cF0 > ) ;
< a name = " l350 " > < / a > old_u32_attr = DOCET_UNDEF_COLOR | < / span > < span class = cF3 > DOCET_UNDERLINE < / span > < span class = cF0 > | DOCET_LINK_UNDERLINE ;
< a name = " l351 " > < / a > < / span > < span class = cF5 > Free < / span > < span class = cF0 > ( link_st ) ;
< a name = " l352 " > < / a > < / span > < span class = cF7 > } < / span > < span class = cF0 >
< a name = " l353 " > < / a > }
< a name = " l354 " > < / a > doc_e = doc_e - & gt ; next ;
< a name = " l355 " > < / a > < / span > < span class = cF7 > } < / span > < span class = cF0 >
< a name = " l356 " > < / a > < / span > < span class = cF1 > while < / span > < span class = cF0 > ( y + + & lt ; doc_e - & gt ; y )
< a name = " l357 " > < / a > < / span > < span class = cF7 > { < / span > < span class = cF0 >
< a name = " l358 " > < / a > HtmlPutS ( doc_out , doc_e - & gt ; settings . final_u32_attr , & amp ; old_u32_attr , < / span > < span class = cF3 > TRUE < / span > < span class = cF0 > , < / span > < span class = cF6 > & quot ; \ n & quot ; < / span > < span class = cF0 > , & amp ; col , style_bitmap ) ;
< a name = " l359 " > < / a > col = < / span > < span class = cFE > 0 < / span > < span class = cF0 > ;
< a name = " l360 " > < / a > < / span > < span class = cF7 > } < / span > < span class = cF0 >
< a name = " l361 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( old_u32_attr & amp ; < / span > < span class = cF3 > DOCET_UNDERLINE < / span > < span class = cF0 > & amp ; & amp ; ! < / span > < span class = cF7 > ( < / span > < span class = cF0 > old_u32_attr & amp ; DOCET_LINK_UNDERLINE < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l362 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; & lt ; / u & gt ; & quot ; < / span > < span class = cF0 > ) ;
< a name = " l363 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( old_u32_attr & amp ; < / span > < span class = cF3 > DOCET_BLINK < / span > < span class = cF0 > )
< a name = " l364 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; & lt ; / blink & gt ; & quot ; < / span > < span class = cF0 > ) ;
< a name = " l365 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( ! < / span > < span class = cF7 > ( < / span > < span class = cF0 > old_u32_attr & amp ; DOCET_UNDEF_COLOR < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l366 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; & lt ; / span & gt ; & quot ; < / span > < span class = cF0 > ) ;
< a name = " l367 " > < / a > old_u32_attr = DOCET_UNDEF_COLOR ;
< a name = " l368 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; % s & quot ; < / span > < span class = cF0 > , body_footer ) ;
< a name = " l369 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; % s & quot ; < / span > < span class = cF0 > , html_footer ) ;
2021-07-03 05:07:57 +01:00
< a name = " l370 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l371 " > < / a > doc_out - & gt ; cur_entry = style - & gt ; next ;
< a name = " l372 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out , < / span > < span class = cF6 > & quot ; body { background - color : # % 02 x % 02 x % 02 x ; } \ n & quot ; < / span > < span class = cF0 > , p [ < / span > < span class = cF3 > WHITE < / span > < span class = cF0 > ] . r , p [ < / span > < span class = cF3 > WHITE < / span > < span class = cF0 > ] . g , p [ < / span > < span class = cF3 > WHITE < / span > < span class = cF0 > ] . b ) ;
< a name = " l373 " > < / a > < / span > < span class = cF1 > for < / span > < span class = cF0 > ( i = < / span > < span class = cFE > 0 < / span > < span class = cF0 > ; i & lt ; < / span > < span class = cFE > 256 < / span > < span class = cF0 > ; i + + )
< a name = " l374 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( < / span > < span class = cF5 > Bt < / span > < span class = cF7 > ( < / span > < span class = cF0 > style_bitmap , i < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l375 " > < / a > < / span > < span class = cF5 > DocPrint < / span > < span class = cF0 > ( doc_out ,
< a name = " l376 " > < / a > < / span > < span class = cF6 > & quot ; . c % 02 X { color : # % 02 x % 02 x % 02 x ; background - color : # % 02 x % 02 x % 02 x ; } \ n & quot ; < / span > < span class = cF0 > ,
< a name = " l377 " > < / a > i , p [ i & amp ; < / span > < span class = cFE > 15 < / span > < span class = cF0 > ] . r , p [ i & amp ; < / span > < span class = cFE > 15 < / span > < span class = cF0 > ] . g , p [ i & amp ; < / span > < span class = cFE > 15 < / span > < span class = cF0 > ] . b ,
< a name = " l378 " > < / a > p [ i / < / span > < span class = cFE > 16 < / span > < span class = cF0 > ] . r , p [ i / < / span > < span class = cFE > 16 < / span > < span class = cF0 > ] . g , p [ i / < / span > < span class = cFE > 16 < / span > < span class = cF0 > ] . b ) ;
< a name = " l379 " > < / a > doc_out - & gt ; cur_entry = & amp ; doc_out - & gt ; head ;
< a name = " l380 " > < / a > < / span > < span class = cF5 > DocRecalc < / span > < span class = cF0 > ( doc_out ) ;
2021-07-03 05:07:57 +01:00
< a name = " l381 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l382 " > < / a > doc_in - & gt ; win_task - & gt ; text_attr = old_attr ;
2021-07-03 05:07:57 +01:00
< a name = " l383 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l384 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( unlock_doc_in )
< a name = " l385 " > < / a > < / span > < span class = cF5 > DocUnlock < / span > < span class = cF0 > ( doc_in ) ;
2021-07-03 05:07:57 +01:00
< a name = " l386 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l387 " > < / a > < / span > < span class = cF1 > return < / span > < span class = cF0 > doc_out ;
2021-07-03 05:07:57 +01:00
< a name = " l388 " > < / a > }
< a name = " l389 " > < / a >
< a name = " l390 " > < / a > # < / span > < span class = cF1 > help_index < / span > < span class = cF0 > < / span > < span class = cF6 > & quot ; Cmd Line ( Typically ) ; DolDoc / Conversion ; DolDoc / Cmd Line ( Typically ) & quot ; < / span > < span class = cF0 >
< a name = " l391 " > < / a > < / span > < span class = cF1 > public < / span > < span class = cF0 > < / span > < span class = cF1 > U0 < / span > < span class = cF0 > ToHtml ( < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * _in_name , < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * _out_name = < / span > < span class = cF3 > NULL < / span > < span class = cF0 > , < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * html_header = < / span > < span class = cF3 > NULL < / span > < span class = cF0 > ,
2021-07-04 23:11:34 +01:00
< a name = " l392 " > < / a > < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * body_header = < / span > < span class = cF3 > NULL < / span > < span class = cF0 > , < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * body_footer = < / span > < span class = cF3 > NULL < / span > < span class = cF0 > , < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * html_footer = < / span > < span class = cF3 > NULL < / span > < span class = cF0 > ,
< a name = " l393 " > < / a > < / span > < span class = cF9 > I64 < / span > < span class = cF0 > width = < / span > < span class = cFE > 128 < / span > < span class = cF0 > , < / span > < span class = cF1 > Bool < / span > < span class = cF0 > line_anchors = < / span > < span class = cF3 > TRUE < / span > < span class = cF0 > ,
< a name = " l394 " > < / a > < / span > < span class = cF1 > U8 < / span > < span class = cF0 > < / span > < span class = cF7 > ( < / span > < span class = cF0 > * link_convert < / span > < span class = cF7 > ) ( < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * link_st < / span > < span class = cF7 > ) < / span > < span class = cF0 > = & amp ; TOSLinkConvert1 , < / span > < span class = cF1 > Bool < / span > < span class = cF0 > line_nums = < / span > < span class = cF3 > FALSE < / span > < span class = cF0 > )
2021-07-03 07:51:43 +01:00
< a name = " l395 " > < / a > { < / span > < span class = cF2 > //Convert </span><a href="https://tomawezome.github.io/ZealOS/Doc/DolDocOverview.html#l1"><span class=cF4>DolDoc</span></a><span class=cF2>file to HTML.</span><span class=cF0>
2021-07-03 05:07:57 +01:00
< a name = " l396 " > < / a > < / span > < span class = cF2 > //Supply your own link_convert routine.</span><span class=cF0>
2021-07-04 23:11:34 +01:00
< a name = " l397 " > < / a > < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * in_name , * out_name ;
< a name = " l398 " > < / a > < / span > < span class = cF9 > CDoc < / span > < span class = cF0 > * doc_in , * doc_out ;
2021-07-03 05:07:57 +01:00
< a name = " l399 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l400 " > < / a > < / span > < span class = cF5 > SettingsPush < / span > < span class = cF0 > ; < / span > < span class = cF2 > //See </span><a href="https://tomawezome.github.io/ZealOS/System/TaskSettings.html#l3"><span class=cF4>SettingsPush</span></a><span class=cF0>
< a name = " l401 " > < / a > < / span > < span class = cF5 > WinHorz < / span > < span class = cF0 > ( < / span > < span class = cFE > 0 < / span > < span class = cF0 > , width - < / span > < span class = cFE > 1 < / span > < span class = cF0 > ) ; < / span > < span class = cF2 > //Sets doc width for word wrap.</span><span class=cF0>
2021-07-03 05:07:57 +01:00
< a name = " l402 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l403 " > < / a > in_name = < / span > < span class = cF5 > ExtDefault < / span > < span class = cF0 > ( _in_name , < / span > < span class = cF6 > & quot ; CC & quot ; < / span > < span class = cF0 > ) ;
< a name = " l404 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( _out_name )
< a name = " l405 " > < / a > out_name = < / span > < span class = cF5 > ExtDefault < / span > < span class = cF0 > ( _out_name , < / span > < span class = cF6 > & quot ; html & quot ; < / span > < span class = cF0 > ) ;
< a name = " l406 " > < / a > < / span > < span class = cF1 > else < / span > < span class = cF0 >
< a name = " l407 " > < / a > out_name = < / span > < span class = cF5 > ExtChange < / span > < span class = cF0 > ( _in_name , < / span > < span class = cF6 > & quot ; html & quot ; < / span > < span class = cF0 > ) ;
2021-07-03 05:07:57 +01:00
< a name = " l408 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l409 " > < / a > doc_in = < / span > < span class = cF5 > DocRead < / span > < span class = cF0 > ( in_name ) ;
< a name = " l410 " > < / a > doc_out = Doc2Html ( doc_in , html_header , body_header , body_footer , html_footer ,
< a name = " l411 " > < / a > line_anchors , link_convert , line_nums ) ;
< a name = " l412 " > < / a > < / span > < span class = cF5 > StrCopy < / span > < span class = cF0 > ( & amp ; doc_out - & gt ; filename . name , out_name ) ;
2021-07-03 05:07:57 +01:00
< a name = " l413 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l414 " > < / a > < / span > < span class = cF5 > SettingsPop < / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = " l415 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l416 " > < / a > < / span > < span class = cF5 > DocWrite < / span > < span class = cF0 > ( doc_out ) ;
< a name = " l417 " > < / a > < / span > < span class = cF5 > DocDel < / span > < span class = cF0 > ( doc_in ) ;
< a name = " l418 " > < / a > < / span > < span class = cF5 > DocDel < / span > < span class = cF0 > ( doc_out ) ;
< a name = " l419 " > < / a > < / span > < span class = cF5 > Free < / span > < span class = cF0 > ( in_name ) ;
< a name = " l420 " > < / a > < / span > < span class = cF5 > Free < / span > < span class = cF0 > ( out_name ) ;
2021-07-03 05:07:57 +01:00
< a name = " l421 " > < / a > }
< / span > < / pre > < / body >
< / html >