VirtualBox

source: vbox/trunk/src/VBox/RDP/client/doc/HACKING@ 48955

最後變更 在這個檔案從48955是 37224,由 vboxsync 提交於 14 年 前

RDP/client: fix OSE

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.2 KB
 
1
2Code style / indentation
3------------------------
4The file indent-all.sh contains information about the current code
5style. Run this script before commits.
6
7
8Variable argument macros
9------------------------
10Variable argument macros are non-portable in general, and should be
11avoided. Either use a second set of parentheses like DEBUG, or create
12a variable argument function like error.
13
14
15Structure
16---------
17The core protocol stack should be system-independent (i.e. ANSI C89
18only) so that it is easy to port. This currently applies to the
19following files:
20
21bitmap.c licence.c orders.c rdp.c rdp5.c cache.c iso.c mcs.c
22secure.c mppc.c channels.c
23rdesktop.c
24
25
26Compiler support
27----------------
28
29The source code should be compatible with ANSI C89. One exception is
30the SeamlessRDP ServerEXE and ClientDLL, which should be compatible
31with ANSI C99.
32
33
34RDP resources
35-------------
36http://dev.remotenetworktechnology.com/refdata.htm
37
38
39Checking for out of memory conditions
40-------------------------------------
41Try to handle out of memory conditions gracefully. Use the xmalloc
42routines from rdesktop.c, instead of calling malloc manually. Also,
43remember that several Xlib functions can return NULL. This includes
44XGetImage. Use exit_if_null to verify returned pointers.
45
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette