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
--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot