In article <1992Jul31.191834.18442@b11.b11.ingr.com> tracyre@infonode.ingr.com writes:Nope, it's not that easy. :) It code must be preprocessor-dependent, because there is a macro definition (in FOUR places) that doesn't get expanded in the desired way by gcc. #define ctl(x) ('x'&037) {I'm not sure about the number.} is the macro. At NUMEROUS places in the code, it is used as ctl(a), ctl(b), ctl(c), etc, with the desired effect of expanding to ('a'&037), ('b'&037), ('c'&037), etc but gcc just keeps spitting out ('x'&037). This results in a statement that goes something like "Same value in switch statement." I've been programming in C for a few years now but never mastered everything about the preprocessor, so please tell me if there is a better solution. (My attempts at token pasting and stringizing were unsuccessful.) I changed the multiple macro definitions to #define ctl(x) (x&037) {Whatever the number really is.} and converted every instance of ctl(a), ctl(b), ctl(c), etc, to ctl('a'), ctl('b'), ctl('c'), etc. This method took quite a while because this macro is used a lot, but it now expands properly and works. As I mentioned in an earlier post, xspread suffers from the same bug that causes sc to display a row a asterisks in a cell containing a value that is a multiple of ten. -- Jim H. * * James L. Henrickson ujlh@sunyit.edu * "Yet another Jim in the Linux world." :-)
| Vladislav Bolkhovitin | Re: Integration of SCST in the mainstream Linux kernel |
| Glauber de Oliveira Costa | [PATCH 0/19] desc_struct integration |
| Paolo Ornati | Re: [patch 00/69] -stable review |
| Ingo Molnar | [patch] CFS scheduler, -v6 |
git: | |
| Denis Bueno | git-instaweb portability issue (maybe?) |
| Jon Smirl | Re: Inconsistencies with git log |
| Johannes Schindelin | Re: [PATCH] Fix premature call to git_config() causing t1020-subdirectory to fail |
| Dan Farina | backup or mirror a repository |
| Marc Espie | Re: That whole "Linux stealing our code" thing |
| Ray Percival | Re: Real men don't attack straw men |
| askthelist | Packets Per Second Limit? |
| Didier Wiroth | how can I "find xyz | xargs tar" ... like gtar |
| Marcel Holtmann | Bluetooth fixes for 2.6.27 |
| Giacomo A. Catenazzi | Re: [BUG] New Kernel Bugs |
| Tilman Schmidt | Re: 2.6.25-rc8: FTP transfer errors |
| Ingo Oeser | Re: [PATCH]: Third (final?) release of Sun Neptune driver |
| high memory | 10 hours ago | Linux kernel |
| semaphore access speed | 13 hours ago | Applications and Utilities |
| the kernel how to power off the machine | 14 hours ago | Linux kernel |
| Easter Eggs in windows XP | 17 hours ago | Windows |
| Shared swap partition | 17 hours ago | Linux general |
| Root password | 18 hours ago | Linux general |
| Where/when DNOTIFY is used? | 20 hours ago | Linux kernel |
| How to convert Linux Kernel built-in module into a loadable module | 22 hours ago | Linux kernel |
| Linux 2.6.24 and I/O schedulers | 22 hours ago | Linux kernel |
| USB Driver -- Interrupt Polling -- A Little Help Please | 1 day ago | Linux general |
