[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
| Title: | DIGITAL UNIX (FORMERLY KNOWN AS DEC OSF/1) | 
| Notice: | Welcome to the Digital UNIX Conference | 
| Moderator: | SMURF::DENHAM | 
|  | 
| Created: | Thu Mar 16 1995 | 
| Last Modified: | Fri Jun 06 1997 | 
| Last Successful Update: | Fri Jun 06 1997 | 
| Number of topics: | 10068 | 
| Total number of notes: | 35879 | 
8791.0. "X11R6 (osf4.0) makedepend fails evaluating mod(%) function" by NETRIX::"[email protected]" (John Davenport) Tue Feb 11 1997 11:54
The following .h fails when "makedepend makebug.h" is executed and the
mod (%) function is executed.  This seems to be a X11r6 'feature'?
------------------------
/*
* makebug.h
*/
/* define a few constants */
#define TEST_1 10
#define TEST_2 20
#define TEST_3  (TEST_1 * TEST_2)
#define TEST_4 32
#define Test_x (TEST_4 % Test_3)
/* change mod(%) to  '-' and it will work!  */
/****#if (TEST_4 % Test_3)  == 0       ***fails!  */
#if (TEST_4 - Test_1) == 0
#define TEST_5
#else
#define TEST_6
#endif
The failure message is::
   makedepend makebug.h
   Floating exception (core dumped)
end.
   
[Posted by WWW Notes gateway]
| T.R | Title | User | Personal Name
 | Date | Lines | 
|---|