From: <to...@us...> - 2002-11-27 22:11:33
|
Update of /cvsroot/ro-oslib/OSLib/!OsLib/Tools/DefMod2/defmod/sources In directory sc8-pr-cvs1:/tmp/cvs-serv17960/OSLib/!OsLib/Tools/DefMod2/defmod/sources Modified Files: defmod.y Log Message: Changes to tools to allow builds in 32-bit environment Index: defmod.y =================================================================== RCS file: /cvsroot/ro-oslib/OSLib/!OsLib/Tools/DefMod2/defmod/sources/defmod.y,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** defmod.y 11 Mar 2002 15:08:51 -0000 1.1 --- defmod.y 27 Nov 2002 22:11:00 -0000 1.2 *************** *** 568,572 **** TITLE: t i t l e ws {tracef ("TITLE\n");}; AUTHOR: a u t h o r ws {tracef ("AUTHOR\n");}; ! NEEDS: n e e d s ws {tracef ("NEEDS\n");}; NEEDSATEND: n e e d s a t e n d ws {tracef ("NEEDSATEND\n");}; CONST: c o n s t ws {tracef ("CONST\n");}; --- 568,574 ---- TITLE: t i t l e ws {tracef ("TITLE\n");}; AUTHOR: a u t h o r ws {tracef ("AUTHOR\n");}; ! /* TV 20021116 fix the 16 shift/reduce errors ! NEEDS: n e e d s ws {tracef ("NEEDS\n");};*/ ! NEEDS: n e e d s ws_item_SEQUENCE {tracef ("NEEDS\n");}; NEEDSATEND: n e e d s a t e n d ws {tracef ("NEEDSATEND\n");}; CONST: c o n s t ws {tracef ("CONST\n");}; *************** *** 1067,1070 **** --- 1069,1073 ---- output = argv [++i]; else if (strcmp (argv [i], "-help") == 0) + #if 0 /* TV 20021116 get rid of the macro > 10 lines warning */ { if ((error = xos_pretty_print ("DefMod " VERSION_INFO ". Copyright © Jonathan Coxhead, 1994.\r" *************** *** 1106,1109 **** --- 1109,1154 ---- "\t-s\t\t" "ObjAsm source file\r", NULL, NULL)) != NULL) + #else + { const char* helptext = "DefMod " VERSION_INFO + ". Copyright © Jonathan Coxhead, 1994.\r" + "DefMod comes with ABSOLUTELY NO WARRANTY.\r" + "This is free software, and you are welcome to redistribute it " + "under certain conditions. See the file Copying for details.\r" + "Usage: DefMod <type> [-v] [-help] " + "[-o <output-dir> | > <output-file>] " + "[-byte_wide <byte-wide-file>] " + "[-26bit | -32bit] " + "< <module-interface-file>\r" + "Purpose: generate output from a module interface file\r" + "-v\t\t" "verbose\r" + "-q\t\t" "quiet\r" + "-o\t\t" "is required when generating a " + "directory\r" + "<output-dir>\t" "directory to create\r" + "-byte_wide\t" "is required with -s or -l for a " + "module interface using byte-wide " + "types defined elsewhere\r" + "<byte-wide-file>\t" "file containing whitespace-separated " + "names of byte-wide types\r" + "-26bit\t\t" "generate 26 bit code" HELP_STRING_26 "\r" + "-32bit\t\t" "generate 32 bit code" HELP_STRING_32 "\r" + + "<type> is one of:\r" + "\t-asmhelp\t" "SrcEdit assembler help file\r" + "\t-asmstrong\t" "StrongHelp assembler help " + "directory (not implemented)\r" + "\t-chelp\t\t" "SrcEdit C help file\r" + "\t-cstrong\t" "StrongHelp C help directory\r" + "\t-h\t\t" "C header file\r" + "\t-hdr\t\t" "ObjAsm header file\r" + "\t-h++\t\t" "C++ header file (experimental)\r" + "\t-l\t\t" "Directory for running LibFile -c " + "-via ViaFile\r" + "\t-p\t\t" "Pascal header file (not " + "implemented)\r" + "\t-s\t\t" "ObjAsm source file\r"; + + if ((error = xos_pretty_print (helptext, NULL, NULL)) != NULL) + #endif goto finish; } |