[PATCH] test-stuite: Fix signature of main() to use 'int' rather than 'int32_t'

robert lytton robert at xmos.com
Fri Jan 24 08:55:15 PST 2014


robertlytton added you to the CC list for the revision "test-stuite: Fix signature of main() to use 'int' rather than 'int32_t'".

Hi dblaikie,

For the XCore target's Newlib, the definition of 'int32_t' is
   "typedef signed long int32_t;"
'signed long' is not acceptable in main()'s signature.


http://llvm-reviews.chandlerc.com/D2615

Files:
  MultiSource/Applications/ALAC/decode/main.cpp
  MultiSource/Applications/ALAC/encode/main.cpp

Index: MultiSource/Applications/ALAC/decode/main.cpp
===================================================================
--- MultiSource/Applications/ALAC/decode/main.cpp
+++ MultiSource/Applications/ALAC/decode/main.cpp
@@ -69,7 +69,7 @@
   };
 
 
-int32_t main (int32_t argc, char * argv[]) 
+int main (int argc, char * argv[])
 {
   char * inputFileName = argv[1];
   char * outputFileName = argv[2];
Index: MultiSource/Applications/ALAC/encode/main.cpp
===================================================================
--- MultiSource/Applications/ALAC/encode/main.cpp
+++ MultiSource/Applications/ALAC/encode/main.cpp
@@ -68,8 +68,7 @@
     kTestFormatFlag_32BitSourceData    = 4
   };
 
-
-int32_t main (int32_t argc, char * argv[]) 
+int main (int argc, char * argv[])
 {
   char * inputFileName = argv[1];
   char * outputFileName = argv[2];
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2615.1.patch
Type: text/x-patch
Size: 852 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140124/9d19abea/attachment.bin>


More information about the llvm-commits mailing list