Fossil

Check-in [5d49162a]
Login

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

Overview
Comment:checkpoints for the is_ticket() function
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | fix artifact checkout
Files: files | file ages | folders
SHA1:5d49162a31df64da4369c7ddb4a9787f348d854e
User & Date: bch 2009-04-29 03:59:58
Context
2009-04-29
03:59
checkpoints for the is_ticket() function Leaf check-in: 5d49162a user: bch tags: fix artifact checkout
03:51
test recycling "is_ticket()" from wikiformat.c as a way to avoid trying to checkout a ticket check-in: 695b1c75 user: bch tags: fix artifact checkout
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/checkout.c.

53
54
55
56
57
58
59


60
61
62
63
64
65
66
..
96
97
98
99
100
101
102

103
104
105
106
107
108
109
** the ticket is closed and return true. If zTarget
** is not the UUID of a ticket, return false.
*/
static int is_ticket(
  const char *zTarget,    /* Ticket UUID */
  int *pClosed            /* True if the ticket is closed */
){


  static Stmt q;
  static int once = 1;
  int n;
  int rc;
  char zLower[UUID_SIZE+1];
  char zUpper[UUID_SIZE+1];
  n = strlen(zTarget);
................................................................................
**   1: Is checkout-able.
*/
int checkoutable(const char *zName){
  int rc; /* return code */
  int throwaway;

  rc = !is_ticket(zName, &throwaway);

  return(rc);

  Blob uuid;
  const char *rid=(char *)NULL;
  Stmt q; // db query
  char *zSQL; //build-up sql








>
>







 







>







53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
..
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
** the ticket is closed and return true. If zTarget
** is not the UUID of a ticket, return false.
*/
static int is_ticket(
  const char *zTarget,    /* Ticket UUID */
  int *pClosed            /* True if the ticket is closed */
){
  fprintf(stderr,"I'm in is_ticket\n");

  static Stmt q;
  static int once = 1;
  int n;
  int rc;
  char zLower[UUID_SIZE+1];
  char zUpper[UUID_SIZE+1];
  n = strlen(zTarget);
................................................................................
**   1: Is checkout-able.
*/
int checkoutable(const char *zName){
  int rc; /* return code */
  int throwaway;

  rc = !is_ticket(zName, &throwaway);
  fprintf(stderr,"rc is: %d\n", rc);
  return(rc);

  Blob uuid;
  const char *rid=(char *)NULL;
  Stmt q; // db query
  char *zSQL; //build-up sql