diff options
| author | Russ Cox <rsc@swtch.com> | 2007-11-05 14:53:16 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@swtch.com> | 2007-11-05 14:53:16 -0500 |
| commit | 760f2fb6a9d0ce3b3deffae2ddcd799a9347337c (patch) | |
| tree | b07968f5e26c090798265eba038dafdf177a1586 /src/libmach/mach.c | |
| parent | 2640996af869dbdee7c0461c69a0c6e59ed58235 (diff) | |
| download | plan9port-760f2fb6a9d0ce3b3deffae2ddcd799a9347337c.tar.gz plan9port-760f2fb6a9d0ce3b3deffae2ddcd799a9347337c.zip | |
libmach: move machbyname, mach to crack.c to avoid OS X linker problem
Diffstat (limited to 'src/libmach/mach.c')
| -rw-r--r-- | src/libmach/mach.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/libmach/mach.c b/src/libmach/mach.c deleted file mode 100644 index 89a88f16..00000000 --- a/src/libmach/mach.c +++ /dev/null @@ -1,30 +0,0 @@ -#include <u.h> -#include <libc.h> -#include <bio.h> -#include <mach.h> - -Mach *mach; - -extern Mach mach386; -extern Mach machpower; - -static Mach *machs[] = -{ - &mach386, - &machpower, -}; - -Mach* -machbyname(char *name) -{ - int i; - - for(i=0; i<nelem(machs); i++) - if(strcmp(machs[i]->name, name) == 0){ - mach = machs[i]; - return machs[i]; - } - werrstr("machine '%s' not found", name); - return nil; -} - |
