Fresh IDE . Check-in [68c9edff7c]
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:Fixed wrong constant.
Timelines: family | ancestors | descendants | both | FreshLibDev
Files: files | file ages | folders
SHA1:68c9edff7c5a89afa38d44f0341450dc74f70519
User & Date: johnfound 2018-12-03 19:19:58
Context
2018-12-05
09:18
Fixed small bug in procedure Exec. check-in: 58b8de14c7 user: johnfound tags: FreshLibDev
2018-12-03
19:19
Fixed wrong constant. check-in: 68c9edff7c user: johnfound tags: FreshLibDev
19:17
Process properly the error code of sys_personality on startup. check-in: c29eda9db2 user: johnfound tags: FreshLibDev
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to freshlib/data/bbcode.asm.

115
116
117
118
119
120
121
122
123
124
125


126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156

157
158
159
160
161
162
163
  dd ..pref, ..pref#\.length
  dd ..suff, ..suff#\.length
  dd ..close, ..close#\.length
  dd flags
end if
}

fEmptyAttr   = $00000001        ; empty value of the attribute is acceptable.
fBlockTag    = $00000002        ; This is a block tag. Allows paragraph generation and resets its state.
fDisableTags = $00000004        ; Disable tag generation inside this block; The only tag that is recongized is the respective closing tag.
fLines       = $00000008        ; the tag can contain text lines.



iglobal
  align 4

  tagStrong       onetag txt '<strong>',                              0,              txt '</strong>',    0
  tagEm           onetag txt '<em>',                                  0,              txt '</em>',        0
  tagUnderlined   onetag txt '<span class="underlined">',             0,              txt '</span>',      0
  tagDel          onetag txt '<del>',                                 0,              txt '</del>',       0
  tagInlineCode   onetag txt '<code>',                                0,              txt '</code>',      0
  tagCode         onetag txt '<code class="block ',                   txt '">',       txt '</code>',      fBlockTag or fEmptyAttr or fDisableTags
  tagQuote        onetag txt '<blockquote><header>',                  txt '</header>',txt '</blockquote>',fBlockTag or fEmptyAttr
  tagUL           onetag txt '<ul>',                                  0,              txt '</ul>',        fBlockTag
  tagOL           onetag txt '<ol type="',                            txt '">',       txt '</ol>',        fBlockTag or fEmptyAttr
  tagListItem     onetag txt '<li>',                                  0,              txt '</li>',        fBlockTag
  tagTable        onetag txt '<table>',                               0,              txt '</table>',     fBlockTag
  tagTR           onetag txt '<tr>',                                  0,              txt '</tr>',        fBlockTag
  tagTH           onetag txt '<th>',                                  0,              txt '</th>',        fBlockTag
  tagTD           onetag txt '<td>',                                  0,              txt '</td>',        fBlockTag
  tagSpoiler      onetag txt '<details><summary>Spoiler</summary>',   0,              txt '</details>',   fBlockTag
  tagURL          onetag txt '<a href="',                             txt '">',       txt '</a>',         0
  tagImg          onetag txt '<img alt="',                            txt '" src="',  txt '" />',         fBlockTag or fDisableTags
  tagSize         onetag txt '<span style="font-size:',               txt '">',       txt '</span>',      0
  tagColor        onetag txt '<span style="color:',                   txt '">',       txt '</span>',      0
  tagEmail        onetag txt '<a href="mailto:',                      txt '">',       txt '</a>',         0
  tagH1           onetag txt '<h1>',                                  0,              txt '</h1>',        fBlockTag or fLines
  tagH2           onetag txt '<h2>',                                  0,              txt '</h2>',        fBlockTag or fLines
  tagH3           onetag txt '<h3>',                                  0,              txt '</h3>',        fBlockTag or fLines
  tagH4           onetag txt '<h4>',                                  0,              txt '</h4>',        fBlockTag or fLines
  tagH5           onetag txt '<h5>',                                  0,              txt '</h5>',        fBlockTag or fLines
  tagH6           onetag txt '<h6>',                                  0,              txt '</h6>',        fBlockTag or fLines
  tagPara         onetag txt '<p>',                                   0,              txt '</p>',         fLines


  ; Emoticons tags.

  emoSmile        onetag <'<img class="emoticon" src="', EMOTICONS_PATH, 'smile.gif" alt=":)">'>,   0,              0,              0
  emoLol          onetag <'<img class="emoticon" src="', EMOTICONS_PATH, 'lol.gif" alt=":D">'>,     0,              0,              0
  emoRofl         onetag <'<img class="emoticon" src="', EMOTICONS_PATH, 'rofl.gif" alt=":D">'>,    0,              0,              0
  emoWink         onetag <'<img class="emoticon" src="', EMOTICONS_PATH, 'wink.gif" alt=";)">'>,    0,              0,              0







|
|
|
|
>
>




|
|
|
|
|
|
|
|
|

|



|


|
|








>







115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
  dd ..pref, ..pref#\.length
  dd ..suff, ..suff#\.length
  dd ..close, ..close#\.length
  dd flags
end if
}

fEmptyAttr    = $00000001        ; empty value of the attribute is acceptable.
fBlockTag     = $00000002        ; This is a block tag. Allows paragraph generation and resets its state.
fDisableTags  = $00000004        ; Disable tag generation inside this block; The only tag that is recongized is the respective closing tag.
fLines        = $00000008        ; the tag can contain text lines.
fInlineTag    = $00000010
fMinimagBlock = $80000000        ; The tags, that are open/close by ;tagname/;end in MiniMagAsm

iglobal
  align 4

  tagStrong       onetag txt '<strong>',                              0,              txt '</strong>',    fInlineTag
  tagEm           onetag txt '<em>',                                  0,              txt '</em>',        fInlineTag
  tagUnderlined   onetag txt '<span class="underlined">',             0,              txt '</span>',      fInlineTag
  tagDel          onetag txt '<del>',                                 0,              txt '</del>',       fInlineTag
  tagInlineCode   onetag txt '<code>',                                0,              txt '</code>',      fInlineTag
  tagCode         onetag txt '<code class="block ',                   txt '">',       txt '</code>',      fBlockTag or fEmptyAttr or fDisableTags or fMinimagBlock
  tagQuote        onetag txt '<blockquote><header>',                  txt '</header>',txt '</blockquote>',fBlockTag or fEmptyAttr or fMinimagBlock
  tagUL           onetag txt '<ul>',                                  0,              txt '</ul>',        fBlockTag or fMinimagBlock
  tagOL           onetag txt '<ol type="',                            txt '">',       txt '</ol>',        fBlockTag or fEmptyAttr or fMinimagBlock
  tagListItem     onetag txt '<li>',                                  0,              txt '</li>',        fBlockTag
  tagTable        onetag txt '<table>',                               0,              txt '</table>',     fBlockTag or fMinimagBlock
  tagTR           onetag txt '<tr>',                                  0,              txt '</tr>',        fBlockTag
  tagTH           onetag txt '<th>',                                  0,              txt '</th>',        fBlockTag
  tagTD           onetag txt '<td>',                                  0,              txt '</td>',        fBlockTag
  tagSpoiler      onetag txt '<details><summary>',                   txt '</summary>',txt '</details>',   fBlockTag or fMinimagBlock
  tagURL          onetag txt '<a href="',                             txt '">',       txt '</a>',         0
  tagImg          onetag txt '<img alt="',                            txt '" src="',  txt '" />',         fBlockTag or fDisableTags
  tagSize         onetag txt '<span style="font-size:',               txt '">',       txt '</span>',      fInlineTag
  tagColor        onetag txt '<span style="color:',                   txt '">',       txt '</span>',      fInlineTag
  tagEmail        onetag txt '<a href="mailto:',                      txt '">',       txt '</a>',         0
  tagH1           onetag txt '<h1>',                                  0,              txt '</h1>',        fBlockTag or fLines
  tagH2           onetag txt '<h2>',                                  0,              txt '</h2>',        fBlockTag or fLines
  tagH3           onetag txt '<h3>',                                  0,              txt '</h3>',        fBlockTag or fLines
  tagH4           onetag txt '<h4>',                                  0,              txt '</h4>',        fBlockTag or fLines
  tagH5           onetag txt '<h5>',                                  0,              txt '</h5>',        fBlockTag or fLines
  tagH6           onetag txt '<h6>',                                  0,              txt '</h6>',        fBlockTag or fLines
  tagPara         onetag txt '<p>',                                   0,              txt '</p>',         fLines
  tagHR           onetag txt '<hr>',                                  0,              0,                  0

  ; Emoticons tags.

  emoSmile        onetag <'<img class="emoticon" src="', EMOTICONS_PATH, 'smile.gif" alt=":)">'>,   0,              0,              0
  emoLol          onetag <'<img class="emoticon" src="', EMOTICONS_PATH, 'lol.gif" alt=":D">'>,     0,              0,              0
  emoRofl         onetag <'<img class="emoticon" src="', EMOTICONS_PATH, 'rofl.gif" alt=":D">'>,    0,              0,              0
  emoWink         onetag <'<img class="emoticon" src="', EMOTICONS_PATH, 'wink.gif" alt=";)">'>,    0,              0,              0

Changes to freshlib/system/Linux/process.asm.

38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
        jnz     .finish                         ; everything is OK.

; set the needed personality

        DebugMsg "Switch to 3GB address space."

        mov     eax, sys_personality
        mov     ebx, PER_LINUX32_3GB or PER_LINUX_32BIT
        int     $80

        OutputValue "sys_personality return EAX:", eax, 10, -1

        test    eax, eax
        js      .finish         ; error set personality; try this way...???








|







38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
        jnz     .finish                         ; everything is OK.

; set the needed personality

        DebugMsg "Switch to 3GB address space."

        mov     eax, sys_personality
        mov     ebx, PER_LINUX32_3GB
        int     $80

        OutputValue "sys_personality return EAX:", eax, 10, -1

        test    eax, eax
        js      .finish         ; error set personality; try this way...???