[Vm-dev] [commit][3659] Get rid of warning about truncated code after #endif

commits at squeakvm.org commits at squeakvm.org
Mon Mar 28 21:23:29 UTC 2016


Revision: 3659
Author:   nice
Date:     2016-03-28 14:23:28 -0700 (Mon, 28 Mar 2016)
Log Message:
-----------
Get rid of warning about truncated code after #endif

Modified Paths:
--------------
    branches/Cog/platforms/Mac OS/plugins/JoystickTabletPlugin/HID_Name_Lookup.c
    branches/Cog/platforms/Mac OS/plugins/JoystickTabletPlugin/HID_Queue_Utilities.c
    branches/Cog/platforms/Mac OS/plugins/JoystickTabletPlugin/HID_Utilities.c
    branches/Cog/platforms/Mac OS/plugins/JoystickTabletPlugin/HID_Utilities_External.h

Modified: branches/Cog/platforms/Mac OS/plugins/JoystickTabletPlugin/HID_Name_Lookup.c
===================================================================
--- branches/Cog/platforms/Mac OS/plugins/JoystickTabletPlugin/HID_Name_Lookup.c	2016-03-28 21:17:33 UTC (rev 3658)
+++ branches/Cog/platforms/Mac OS/plugins/JoystickTabletPlugin/HID_Name_Lookup.c	2016-03-28 21:23:28 UTC (rev 3659)
@@ -304,7 +304,7 @@
 							sprintf(pName, "#{V:Macsense, P:FunPad F-107, C:%ld}#", pCookie);
 #else
 							result = false;
-#endif FAKE_IT
+#endif //FAKE_IT
 							break;
 					}
 				default:
@@ -312,7 +312,7 @@
 					sprintf(pName, "#{V:Macsense, P:%ld, C:%ld}#", pProductID, pCookie);
 #else
 					result = false;
-#endif FAKE_IT
+#endif //FAKE_IT
 					break;
 			}
 			break;
@@ -321,7 +321,7 @@
 			sprintf(pName, "#{V:%ld, P:%ld, C:%ld}#", pVendorID, pProductID, pCookie);
 #else
 			result = false;
-#endif FAKE_IT
+#endif //FAKE_IT
 			break;
 	}
 	return result;

Modified: branches/Cog/platforms/Mac OS/plugins/JoystickTabletPlugin/HID_Queue_Utilities.c
===================================================================
--- branches/Cog/platforms/Mac OS/plugins/JoystickTabletPlugin/HID_Queue_Utilities.c	2016-03-28 21:17:33 UTC (rev 3658)
+++ branches/Cog/platforms/Mac OS/plugins/JoystickTabletPlugin/HID_Queue_Utilities.c	2016-03-28 21:23:28 UTC (rev 3659)
@@ -373,7 +373,7 @@
 			CFRelease(pDevice->queueRunLoopSource);
 			pDevice->queueRunLoopSource = NULL;
 		}
-#endif USE_ASYNC_EVENTS
+#endif //USE_ASYNC_EVENTS
 	}
 	else
 	{
@@ -576,7 +576,7 @@
 		result = (*(IOHIDQueueInterface**) pDevice->queue)->setEventCallout(pDevice->queue, callback, pDevice, pDevice);
 		if (kIOReturnSuccess != result)
 			HIDREPORTERRORNUM ("HIDSetQueueCallback - Could not set HID queue callback via setEventCallout.", result);
-#endif USE_ASYNC_EVENTS
+#endif //USE_ASYNC_EVENTS
 	}
 	else
 		HIDREPORTERROR ("HIDSetQueueCallback - invalid device and/or element.");

Modified: branches/Cog/platforms/Mac OS/plugins/JoystickTabletPlugin/HID_Utilities.c
===================================================================
--- branches/Cog/platforms/Mac OS/plugins/JoystickTabletPlugin/HID_Utilities.c	2016-03-28 21:17:33 UTC (rev 3658)
+++ branches/Cog/platforms/Mac OS/plugins/JoystickTabletPlugin/HID_Utilities.c	2016-03-28 21:23:28 UTC (rev 3659)
@@ -646,7 +646,7 @@
 	hid_DisposeDevice ((pRecDevice) target);
 }
 
-#endif USE_NOTIFICATIONS
+#endif //USE_NOTIFICATIONS
 
 //================================================================================================
 //
@@ -775,7 +775,7 @@
 #if 0
 		if (kIOReturnSuccess != result)
 			HIDReportErrorNum ("hid_DisposeDevice: HIDDequeueDevice error: 0x%8.8X.", result);
-#endif 1
+#endif //1
 
         hid_DisposeDeviceElements (pDevice->pListElements);
 		pDevice->pListElements = NULL;
@@ -1105,7 +1105,7 @@
 				return true;
 			}
 		}
-#endif USE_NOTIFICATIONS
+#endif //USE_NOTIFICATIONS
 		// IOServiceGetMatchingServices consumes a reference to the dictionary, so we don't need to release the dictionary ref.
 		hidMatchDictionary = NULL;
     }

Modified: branches/Cog/platforms/Mac OS/plugins/JoystickTabletPlugin/HID_Utilities_External.h
===================================================================
--- branches/Cog/platforms/Mac OS/plugins/JoystickTabletPlugin/HID_Utilities_External.h	2016-03-28 21:17:33 UTC (rev 3658)
+++ branches/Cog/platforms/Mac OS/plugins/JoystickTabletPlugin/HID_Utilities_External.h	2016-03-28 21:23:28 UTC (rev 3659)
@@ -53,7 +53,7 @@
 	typedef void (*IOHIDCallbackFunction)(void * target, unsigned long result, void* refcon, void * sender);
 #else
 	#include <IOKit/hid/IOHIDLib.h>
-#endif TARGET_RT_MAC_CFM
+#endif //TARGET_RT_MAC_CFM
 
 #include <stdio.h>
 



More information about the Vm-dev mailing list