mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-25 06:42:27 +00:00
Revert whitespace fixes to third_party (#501)
This commit is contained in:
parent
d4000bb8f7
commit
9de3d8f1e6
365 changed files with 39190 additions and 39211 deletions
22
third_party/sqlite3/date.c
vendored
22
third_party/sqlite3/date.c
vendored
|
@ -371,7 +371,7 @@ static void setRawDateNumber(DateTime *p, double r){
|
|||
** The following are acceptable forms for the input string:
|
||||
**
|
||||
** YYYY-MM-DD HH:MM:SS.FFF +/-HH:MM
|
||||
** DDDD.DD
|
||||
** DDDD.DD
|
||||
** now
|
||||
**
|
||||
** In the first form, the +/-HH:MM is always optional. The fractional
|
||||
|
@ -381,8 +381,8 @@ static void setRawDateNumber(DateTime *p, double r){
|
|||
** as there is a year and date.
|
||||
*/
|
||||
static int parseDateOrTime(
|
||||
sqlite3_context *context,
|
||||
const char *zDate,
|
||||
sqlite3_context *context,
|
||||
const char *zDate,
|
||||
DateTime *p
|
||||
){
|
||||
double r;
|
||||
|
@ -403,7 +403,7 @@ static int parseDateOrTime(
|
|||
** Multiplying this by 86400000 gives 464269060799999 as the maximum value
|
||||
** for DateTime.iJD.
|
||||
**
|
||||
** But some older compilers (ex: gcc 4.2.1 on older Macs) cannot deal with
|
||||
** But some older compilers (ex: gcc 4.2.1 on older Macs) cannot deal with
|
||||
** such a large integer literal, so we have to encode it.
|
||||
*/
|
||||
#define INT_464269060799999 ((((i64)0x1a640)<<32)|0x1072fdff)
|
||||
|
@ -485,14 +485,14 @@ static void clearYMD_HMS_TZ(DateTime *p){
|
|||
#ifndef SQLITE_OMIT_LOCALTIME
|
||||
/*
|
||||
** On recent Windows platforms, the localtime_s() function is available
|
||||
** as part of the "Secure CRT". It is essentially equivalent to
|
||||
** localtime_r() available under most POSIX platforms, except that the
|
||||
** as part of the "Secure CRT". It is essentially equivalent to
|
||||
** localtime_r() available under most POSIX platforms, except that the
|
||||
** order of the parameters is reversed.
|
||||
**
|
||||
** See http://msdn.microsoft.com/en-us/library/a442x3ye(VS.80).aspx.
|
||||
**
|
||||
** If the user has not indicated to use localtime_r() or localtime_s()
|
||||
** already, check for an MSVC build environment that provides
|
||||
** already, check for an MSVC build environment that provides
|
||||
** localtime_s().
|
||||
*/
|
||||
#if !HAVE_LOCALTIME_R && !HAVE_LOCALTIME_S \
|
||||
|
@ -548,7 +548,7 @@ static int osLocaltime(time_t *t, struct tm *pTm){
|
|||
/*
|
||||
** Compute the difference (in milliseconds) between localtime and UTC
|
||||
** (a.k.a. GMT) for the time value p where p is in UTC. If no error occurs,
|
||||
** return this value and set *pRc to SQLITE_OK.
|
||||
** return this value and set *pRc to SQLITE_OK.
|
||||
**
|
||||
** Or, if an error does occur, set *pRc to SQLITE_ERROR. The returned value
|
||||
** is undefined in this case.
|
||||
|
@ -875,9 +875,9 @@ static int parseModifier(
|
|||
** then assume a default value of "now" for argv[0].
|
||||
*/
|
||||
static int isDate(
|
||||
sqlite3_context *context,
|
||||
int argc,
|
||||
sqlite3_value **argv,
|
||||
sqlite3_context *context,
|
||||
int argc,
|
||||
sqlite3_value **argv,
|
||||
DateTime *p
|
||||
){
|
||||
int i, n;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue