nanogui: usage of posix functions in src/engine/ and src/drivers/


Previous by date: 28 May 2005 12:37:30 +0100 Re: config files -> config.h, Alain Volmat
Next by date: 28 May 2005 12:37:30 +0100 [PATCH] no mmap under ecos, Alexander Neundorf
Previous in thread:
Next in thread: 28 May 2005 12:37:30 +0100 Re: usage of posix functions in src/engine/ and src/drivers/, Jachym Holecek

Subject: usage of posix functions in src/engine/ and src/drivers/
From: Alexander Neundorf ####@####.####
Date: 28 May 2005 12:37:30 +0100
Message-Id: <200505281337.26636.neundorf@kde.org>

Hi,

I'd like to try to use the microwindows graphics engine directly (GdXXX(), 
i.e. without nanox or microwindows) under ecos.
There are some places in this code where abort(), fprintf() and maybe some 
more functions like this are called.
While ecos has packages which provide these functions, it can also run very 
well without these packages and has a slightly smaller memory footprint then.

I'd like to replace the abort(), fprintf() and similar calls in drivers/ and 
engine/ with macros in order to make it more portable:

#ifdef __ECOS
  #define ABORT() CYG_FAIL("aborted");
  #define DEBUG_PRINTF(args...) diag_printf(args...)
#else
  #define ABORT() abort()
  #define DEBUG_PRINTF(args...) fprintf(stderr, args...)
#endif

What do you think ?

Bye
Alex
-- 
Work: ####@####.#### - http://www.jenoptik-los.de
Home: ####@####.####                - http://www.kde.org
      ####@####.####               - http://www.neundorf.net

Previous by date: 28 May 2005 12:37:30 +0100 Re: config files -> config.h, Alain Volmat
Next by date: 28 May 2005 12:37:30 +0100 [PATCH] no mmap under ecos, Alexander Neundorf
Previous in thread:
Next in thread: 28 May 2005 12:37:30 +0100 Re: usage of posix functions in src/engine/ and src/drivers/, Jachym Holecek


Powered by ezmlm-browse 0.20.