[coreboot] need help with #define macro
Joseph Smith
joe at settoplinux.org
Sat Dec 20 20:45:20 CET 2008
Hello,
I'm trying to setup a #define macro that can be used through out the
program and also part of another macro. I know this won't work but you may
get the idea of what I am trying to do:
#define PARALLEL_PORT parport0
#define PARPORT_BASE_FILE "/proc/sys/dev/parport/"PARALLEL_PORT"/base-addr"
...
...
fd = open("/dev/PARALLEL_PORT",O_RDWR);
...
printf(PARPORT_BASE_FILE\n);
...
Any help on this would be much appreciated.
--
Thanks,
Joseph Smith
Set-Top-Linux
www.settoplinux.org
More information about the coreboot
mailing list