Fossil

Check-in [3c69a6fd59]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Change to makeheaders to work around a name collision with MSVC 2008. You will likely need to run "make clean" after updating to this check-in.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 3c69a6fd59acaeaa40e10978f06245fb03c05e8a
User & Date: drh 2011-11-05 02:06:56.243
Context
2011-11-05
02:40
/json/user/save now accepts uid=-1 to mean create-user. Fixed a bug where when renaming a user _and_ setting his password, the password was incorrectly hashed against the old name. ... (check-in: fa3f629060 user: stephan tags: trunk)
02:06
Change to makeheaders to work around a name collision with MSVC 2008. You will likely need to run "make clean" after updating to this check-in. ... (check-in: 3c69a6fd59 user: drh tags: trunk)
01:42
/json/user/save now implies/forces forceLogout=true when renaming, since renaming invalidates any active auth token. Renamed a confusing variable. ... (check-in: 42c2a327e2 user: stephan tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/cgi.c.
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifdef __EMX__
  typedef int socklen_t;
#endif
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#if defined (__POCC__)
# undef INTERFACE
#endif
#include "cgi.h"

#if INTERFACE
/*
** Shortcuts for cgi_parameter.  P("x") returns the value of query parameter
** or cookie "x", or NULL if there is no such parameter or cookie.  PD("x","y")
** does the same except "y" is returned in place of NULL if there is not match.







<
<
<







40
41
42
43
44
45
46



47
48
49
50
51
52
53
#ifdef __EMX__
  typedef int socklen_t;
#endif
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>



#include "cgi.h"

#if INTERFACE
/*
** Shortcuts for cgi_parameter.  P("x") returns the value of query parameter
** or cookie "x", or NULL if there is no such parameter or cookie.  PD("x","y")
** does the same except "y" is returned in place of NULL if there is not match.
Changes to src/makeheaders.c.
325
326
327
328
329
330
331



332
333
334

335
336
337
338
339
340
341
  int flags;             /* Various flags (DP_ and PS_ flags above) */
};

/*
** The following text line appears at the top of every file generated
** by this program.  By recognizing this line, the program can be sure
** never to read a file that it generated itself.



*/
const char zTopLine[] = 
  "/* \aThis file was automatically generated.  Do not edit! */\n";

#define nTopLine (sizeof(zTopLine)-1)

/*
** The name of the file currently being parsed.
*/
static char *zFilename;








>
>
>


|
>







325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
  int flags;             /* Various flags (DP_ and PS_ flags above) */
};

/*
** The following text line appears at the top of every file generated
** by this program.  By recognizing this line, the program can be sure
** never to read a file that it generated itself.
**
** The "#undef INTERFACE" part is a hack to work around a name collision
** in MSVC 2008.
*/
const char zTopLine[] = 
  "/* \aThis file was automatically generated.  Do not edit! */\n"
  "#undef INTERFACE\n";
#define nTopLine (sizeof(zTopLine)-1)

/*
** The name of the file currently being parsed.
*/
static char *zFilename;