Fresh IDE . Check-in [23e137dab2]
Not logged in

This repository is a mirror!

The original is located on: https://fresh.flatassembler.net/fossil/repo/fresh
If you want to follow the project, please update your remote-url

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Major change in the markdown parser. Changed the interface of the TranslateMarkdown procedure and renamed to TranslateMarkdown2 in order to prevet compilation of the old sources with bad arguments.
Timelines: family | ancestors | descendants | both | FreshLibDev
Files: files | file ages | folders
SHA1:23e137dab299c135ce54f49bddfa095c7d749d26
User & Date: johnfound 2017-05-15 07:47:56
Context
2017-05-30
05:29
Added constants in sqlite equates. Simplified markdown parser (some projects may need recompilation). check-in: d91b182aa9 user: johnfound tags: FreshLibDev
2017-05-15
07:47
Major change in the markdown parser. Changed the interface of the TranslateMarkdown procedure and renamed to TranslateMarkdown2 in order to prevet compilation of the old sources with bad arguments. check-in: 23e137dab2 user: johnfound tags: FreshLibDev
2017-05-11
08:33
Generally here are the changes made during the work on AsmBB and some work on the GUI library.

Better error check in SocketSendall. Added new function "FileTruncateTo" and implemented for Linux and Win32. Work on the TScrollable class and adapting the TTreeView and TAsmEdit for it. check-in: 3e024fbdf2 user: johnfound tags: FreshLibDev

Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to freshlib/data/markdown.asm.

44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
...
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
....
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
....
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
....
1185
1186
1187
1188
1189
1190
1191



1192
1193

1194
1195
1196
1197
1198
1199
1200
;                   table of contents item.
;     .pResult - pointer to TMarkdownResults structure where the result strings are returned.
;
; Returns:
;   The procedure returns  4 string handles in the TMarkdownResults structure pointed by
;   .pResult argument.

proc TranslateMarkdown, .markdown, .procFixLink, .fBacklinks, .pResult

.result      dd ?
.index       dd ?
.keywords    dd ?
.description dd ?

  ; first and second pass local variables
................................................................................

.firstnw:
        and     [.link_level], 0
        cmp     byte [edi], '['         ; inline address.
        jne     .firstnw_loop

        inc     edi
        inc     [.link_level]

.firstnw_loop:
        mov     al, [edi]
        inc     edi

        cmp     al, ' '
        je      .firstnw_loop
................................................................................

        inc     esi

.copy_link_prefix:
        cmp     [.procFixLink], 0
        je      .copy_link_proc

        stdcall [.procFixLink], esi, edi
        mov     edi, eax
        mov     esi, edx

.copy_link_proc:

        call    .CopyToEndOfLink
        pop     esi ecx
................................................................................
.finalize_image:

        mov     dword [edi],   '" al'
        mov     dword [edi+4], 't="'
        lea     edi, [edi+7]

        inc     esi
        inc     [.link_level]
        call    .CopyToEndOfLink

        dec     esi
        jmp     .scan_line2


.CopyToEndOfLink:
................................................................................
        jz      .end_link

.store_link_char:
        call    .store_char
        jmp     .copy_eol

.end_link_check:



        dec     [.link_level]
        jnz     .store_link_char


.end_link:
        retn

;....................................................................

.is_link_end:







|







 







<







 







|







 







<







 







>
>
>

|
>







44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
...
931
932
933
934
935
936
937

938
939
940
941
942
943
944
....
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
....
1152
1153
1154
1155
1156
1157
1158

1159
1160
1161
1162
1163
1164
1165
....
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
;                   table of contents item.
;     .pResult - pointer to TMarkdownResults structure where the result strings are returned.
;
; Returns:
;   The procedure returns  4 string handles in the TMarkdownResults structure pointed by
;   .pResult argument.

proc TranslateMarkdown2, .markdown, .procFixLink, .fBacklinks, .pResult, .lParam

.result      dd ?
.index       dd ?
.keywords    dd ?
.description dd ?

  ; first and second pass local variables
................................................................................

.firstnw:
        and     [.link_level], 0
        cmp     byte [edi], '['         ; inline address.
        jne     .firstnw_loop

        inc     edi


.firstnw_loop:
        mov     al, [edi]
        inc     edi

        cmp     al, ' '
        je      .firstnw_loop
................................................................................

        inc     esi

.copy_link_prefix:
        cmp     [.procFixLink], 0
        je      .copy_link_proc

        stdcall [.procFixLink], esi, edi, [.lParam]
        mov     edi, eax
        mov     esi, edx

.copy_link_proc:

        call    .CopyToEndOfLink
        pop     esi ecx
................................................................................
.finalize_image:

        mov     dword [edi],   '" al'
        mov     dword [edi+4], 't="'
        lea     edi, [edi+7]

        inc     esi

        call    .CopyToEndOfLink

        dec     esi
        jmp     .scan_line2


.CopyToEndOfLink:
................................................................................
        jz      .end_link

.store_link_char:
        call    .store_char
        jmp     .copy_eol

.end_link_check:
        cmp     [.link_level], 0
        je      .end_link

        dec     [.link_level]
        jmp     .store_link_char
;        jnz     .store_link_char

.end_link:
        retn

;....................................................................

.is_link_end: