By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,678 Members | 1,146 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,678 IT Pros & Developers. It's quick & easy.

another <pre> problem

P: n/a
This is one of several macros I wish to display:

<PRE CLASS="special macro>
;;
;; Reverse argument list
;;
reverse_args MACRO arglist:req
local txt, arg
txt textequ <>
% FOR arg, <arglist>
txt CATSTR <arg>, <,>, txt
ENDM
txt SUBSTR txt, 1, @SizeStr( %txt ) - 1
txt CATSTR <!<>, txt, <!>>
EXITM txt
ENDM

;;
;; Call Windows API Function
;;
ApiCall MACRO thecall:req, arglist:vararg
local count

count = 0

% FOR argn, reverse_args( <arglist> )
if (type argn) eq 1 ;; if byte label
push offset argn ;; push address
else
push argn
endif
count = count + 4
ENDM

txt TEXTEQU <>
txt CATSTR <_imp__>, <thecall>, <@>, %(count)

txt2 TEXTEQU <>
txt2 CATSTR <_imp__>, <thecall>, <@>, %(count), <:DWORD>

IFNDEF <txt2>
extern txt2 ;; define it !
ENDIF

call dword ptr [txt]
ENDM

</PRE>

Unfortunately, many of the '<' and '>' prevent it
from displaying properly. Can anyone offer advice,
rather have me resort to replacing them with the
respective &lt; and &gt; ?
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Alan Illeman wrote:

Unfortunately, many of the '<' and '>' prevent it
from displaying properly. Can anyone offer advice,
rather have me resort to replacing them with the
respective &lt; and &gt; ?

That is your only option. That is how you display < and > in HTML.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.