From b54e7a6efa56ec3b2dffe48410850130d7c74aee Mon Sep 17 00:00:00 2001 From: David Welch Date: Wed, 9 Jun 1999 15:46:06 +0000 Subject: [PATCH] No longer need with rex's changes svn path=/trunk/; revision=548 --- reactos/ntoskrnl/utils/export/export.c | 84 -------------------------- 1 file changed, 84 deletions(-) delete mode 100644 reactos/ntoskrnl/utils/export/export.c diff --git a/reactos/ntoskrnl/utils/export/export.c b/reactos/ntoskrnl/utils/export/export.c deleted file mode 100644 index 63399e1c2c0..00000000000 --- a/reactos/ntoskrnl/utils/export/export.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * This program takes a list of export symbols and builds a c source - * file which when linked will contain a symbol table - */ - -#include -#include -#include - -int read_line(char* buf) -{ - char ch; - while ((ch=fgetc(stdin))!='\n'&& !feof(stdin)) - { - *buf=ch; - buf++; - } - *buf=0; - return(1); -} - -int main(int argc, char* argv[]) -{ - char buffer[12000]; - char* sym[4096]; - int i=0,j=0; - char ch; - - if (argc!=1) - { - fprintf(stderr,"Usage: export < export_list > symbol table\n"); - exit(0); - } - - /* - * Output preamble - */ - fprintf(stdout,"/*\n"); - fprintf(stdout," * This file was machine generated by export\n"); - fprintf(stdout," * Don't edit\n"); - fprintf(stdout," *\n"); - fprintf(stdout," *\n"); - fprintf(stdout,"*/\n"); - - fprintf(stdout,"#include \n"); - fprintf(stdout,"#include \n"); - fprintf(stdout,"#include \n"); - fprintf(stdout,"#include \n"); - fprintf(stdout,"#include \n"); - fprintf(stdout,"#include \n"); - fprintf(stdout,"#include \n"); - - while (!feof(stdin)) - { - read_line(buffer); -// printf("reading line %s\n",buffer); - if (buffer[0]!='#' && strlen(buffer) >= 1) - { - sym[i]=strdup(buffer); - i++; - } - - } - fprintf(stdout,"#ifdef __cplusplus\n"); - fprintf(stdout,"extern \"C\" {\n"); - fprintf(stdout,"#endif\n"); - for (j=0;j