diff options
author | Max <post@wickenrode.com> | 2016-01-31 19:33:55 +0100 |
---|---|---|
committer | Max <post@wickenrode.com> | 2016-01-31 19:33:55 +0100 |
commit | c196132146dab618005bd88057dd61764f855808 (patch) | |
tree | 72eac5fd7ccd4ff020f4bb0624cde1cec7e05fd6 /Source/SPFunctions.h | |
parent | 6e25cf7799d22e9c1fead1c0db294d45b78be299 (diff) | |
download | sequelpro-c196132146dab618005bd88057dd61764f855808.tar.gz sequelpro-c196132146dab618005bd88057dd61764f855808.tar.bz2 sequelpro-c196132146dab618005bd88057dd61764f855808.zip |
Change CSV field mapper so that the first row is no longer displayed as content row when "First line contains field names" is enabled
Diffstat (limited to 'Source/SPFunctions.h')
-rw-r--r-- | Source/SPFunctions.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/SPFunctions.h b/Source/SPFunctions.h index e462b8cb..0cda7e36 100644 --- a/Source/SPFunctions.h +++ b/Source/SPFunctions.h @@ -42,3 +42,10 @@ void SPMainQSync(void (^block)(void)); * @return 0 on success or -1 if something went wrong, check errno */ int SPBetterRandomBytes(uint8_t *buf, size_t count); + +/** + * Convert a signed integer into an unsigned integer or throw an exception if the values don't fit. + * @param i a signed integer + * @return the same value, casted to unsigned integer + */ +NSUInteger SPIntS2U(NSInteger i); |