Re:Re: waiting for help about to understand ing the wap/wsp/wtp/wtls sourcecodes
张 <
[email protected] >
Fri, 15 Jan 2010 17:30:03 +0800 (CST)
Newsgroups
gmane.comp.mobile.kannel.devel
Message-ID
<[email protected] >
Hi:
thanks a lot for your guidance,Nikos ! I think I have understand the the principle of the source codes now ! The gcc < -E> is an really interesting stuff indeed ! In addition, expressed regret that the google had to withdraw from China,most of the Chinese programmers through Google to search for solutions to problems, and fuck all the Ignoble politicians!
ZH from China
--- 10年1月12日,周二, Nikos Balkanas <[email protected] > 写道:
发件人: Nikos Balkanas <[email protected] >
主题: Re: waiting for help about to understanding the wap/wsp/wtp/wtls sourcecodes
收件人: "张 " <[email protected] >, [email protected]
日期: 2010年1月12日,周二,下午7:52
Hi,
I am afraid I don't have the time to show you the ropes...
However, I can point you to the right direction.
#defines are preprocessor directives. They wreak havoc with
the debugger (you cannot step through) and I do not understand them that well
either. They are mostly legacy and are kept around to preserve compactness and
style with previous code. Some of them are more functional, by giving a certain
object-oriented style, or forcing several function prototypes and
wrappers.
You can see what they are doing by
using:
gcc <options> -E > progE.c
where <options> is the output from the make command for
the file you are interested in (skipping the -c -o output part). The output
progE.c can be compiled under kannel like the regular initial file.
There are plenty of tutorials and how-tos in the
web on using the preprocessor in C.
BR,
Nikos
----- Original Message -----
From:
张
To: [email protected]
Sent: Tuesday, January 12, 2010 8:40
AM
Subject: waiting for help about to
understanding the wap/wsp/wtp/wtls sourcecodes
.I have read the protocol specifications doc such as
wap-wtp-wtls downloaded from the wapforum,and understand how it
works,but when i am reading the source codes of the wap/wsp/wtp/wtls,i'm
very much puzzled,because they were defined in a very mysterious or
magical way: los of struct/enum/union with ( #define/"include...") in
them,and also i can not understand how the definitions in the *def
works,the styles of them looks like the overloading functions of C++,but
i have never seen such styles in C before------.....Can someone teach me
how to understand theirs Working principle??? thanks a
lot...
ZH from China
ε¥½η©θ΄Ίε΅η‰δ½ ε‘οΌι‚®η®±θ΄Ίε΅ε…¨ζ–°δΈηΊΏοΌ
___________________________________________________________
好玩贺卡等你发,邮箱贺卡全新上线!
http://card.mail.cn.yahoo.com/