2002-07-18 16:42:57 +02:00
|
|
|
|
2002-07-30 09:24:37 +02:00
|
|
|
Code style / indentation
|
|
|
|
------------------------
|
|
|
|
The file indent-all.sh contains information about the current code
|
|
|
|
style. Run this script before commits.
|
2002-07-18 16:42:57 +02:00
|
|
|
|
2004-04-20 08:58:03 +02:00
|
|
|
|
2002-07-30 09:24:37 +02:00
|
|
|
Variable argument macros
|
|
|
|
------------------------
|
|
|
|
Variable argument macros are non-portable in general, and should be
|
|
|
|
avoided. Either use a second set of parentheses like DEBUG, or create
|
|
|
|
a variable argument function like error.
|
2003-02-11 11:40:03 +01:00
|
|
|
|
2004-04-20 08:58:03 +02:00
|
|
|
|
2003-02-11 11:40:03 +01:00
|
|
|
Structure
|
|
|
|
---------
|
|
|
|
The core protocol stack should be system-independent (i.e. ANSI C
|
|
|
|
only) so that it is easy to port. This currently applies to the
|
|
|
|
following files:
|
|
|
|
|
2004-06-18 03:38:35 +02:00
|
|
|
bitmap.c licence.c orders.c rdp.c rdp5.c cache.c iso.c mcs.c
|
|
|
|
secure.c mppc.c channels.c
|
|
|
|
rdesktop.c
|
2004-04-20 08:58:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
RDP resources
|
|
|
|
-------------
|
|
|
|
http://dev.remotenetworktechnology.com/refdata.htm
|
2006-10-27 14:59:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
Checking for out of memory conditions
|
|
|
|
-------------------------------------
|
|
|
|
Try to handle out of memory conditions gracefully. Use the xmalloc
|
|
|
|
routines from rdesktop.c, instead of calling malloc manually. Also,
|
|
|
|
remember that several Xlib functions can return NULL. This includes
|
|
|
|
XGetImage. Use exit_if_null to verify returned pointers.
|
|
|
|
|