[coreboot] need help with #define macro
joe at settoplinux.org
Sat Dec 20 20:45:20 CET 2008
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);
Any help on this would be much appreciated.
More information about the coreboot