Author: tkreuzer
Date: Fri Dec  3 22:18:57 2010
New Revision: 49941

URL: http://svn.reactos.org/svn/reactos?rev=49941&view=rev
Log:
[SPEC2DEF]
Implement support for -noname

Modified:
    branches/cmake-bringup/tools/spec2def/spec2def.c

Modified: branches/cmake-bringup/tools/spec2def/spec2def.c
URL: 
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/spec2def/spec2def.c?rev=49941&r1=49940&r2=49941&view=diff
==============================================================================
--- branches/cmake-bringup/tools/spec2def/spec2def.c [iso-8859-1] (original)
+++ branches/cmake-bringup/tools/spec2def/spec2def.c [iso-8859-1] Fri Dec  3 
22:18:57 2010
@@ -28,6 +28,7 @@
 {
     FL_PRIVATE = 1,
     FL_STUB = 2,
+    FL_NONAME = 4,
 };
 
 enum
@@ -323,6 +324,11 @@
     if (pexp->uFlags & FL_PRIVATE)
     {
         fprintf(fileDest, " PRIVATE");
+    }
+
+    if (pexp->uFlags & FL_NONAME)
+    {
+        fprintf(fileDest, " NONAME");
     }
 
     fprintf(fileDest, "\n");
@@ -445,12 +451,16 @@
             {
                 exp.uFlags |= FL_PRIVATE;
             }
+            else if (CompareToken(pc, "-noname"))
+            {
+                exp.uFlags |= FL_NONAME;
+            }
             else if (CompareToken(pc, "-stub"))
             {
                 exp.uFlags |= FL_STUB;
             }
-            else if (CompareToken(pc, "-noname") ||
-                     CompareToken(pc, "-norelay") ||
+            else if (CompareToken(pc, "-norelay") ||
+                     CompareToken(pc, "-register") ||
                      CompareToken(pc, "-ret64"))
             {
                 /* silently ignore these */
@@ -604,7 +614,7 @@
            "  -l=<file>   generates an asm lib stub\n"
            "  -d=<file>   generates a def file\n"
            "  -s=<file>   generates a stub file\n"
-           "  -n=<file>   names the dll\n"
+           "  -n=<name>   name of the dll\n"
            "  -@          removes @xx decorations from def file\n"
            "  -r          removes redirections from def file\n"
            "  -a=<arch>   Set architecture to <arch>. (i386, x86_64, arm)\n");


Reply via email to