Differences From:
File
src/tkt.c
part of check-in
[8ffd32c2b7]
- Add the ability to edit the CSS for all pages in the Setup menu. Other
miscellaneous changes toward getting ticketing to work.
by
drh on
2007-10-28 20:52:52.
[view]
To:
File
src/tkt.c
part of check-in
[8ef26c5e72]
- Subscript interpreter is now running.
by
drh on
2007-11-03 04:01:55.
[view]
@@ -153,46 +153,8 @@
azValue[i] = db_column_malloc(&q, i);
}
}
db_finalize(&q);
-}
-
-/*
-** Subscript command: INTEGER not INTEGER
-*/
-static int notCmd(struct Subscript *p, void *pNotUsed){
- int n;
- if( SbS_RequireStack(p, 1) ) return 1;
- n = SbS_StackValueInt(p, 0);
- SbS_Pop(p, 1);
- SbS_PushInt(p, !n);
- return 0;
-}
-
-/*
-** Subscript command: INTEGER INTEGER max INTEGER
-*/
-static int maxCmd(struct Subscript *p, void *pNotUsed){
- int a, b;
- if( SbS_RequireStack(p, 2) ) return 1;
- a = SbS_StackValueInt(p, 0);
- b = SbS_StackValueInt(p, 1);
- SbS_Pop(p, 2);
- SbS_PushInt(p, a>b ? a : b);
- return 0;
-}
-
-/*
-** Subscript command: INTEGER INTEGER and INTEGER
-*/
-static int andCmd(struct Subscript *p, void *pNotUsed){
- int a, b;
- if( SbS_RequireStack(p, 2) ) return 1;
- a = SbS_StackValueInt(p, 0);
- b = SbS_StackValueInt(p, 1);
- SbS_Pop(p, 2);
- SbS_PushInt(p, a && b);
- return 0;
}
/*
** Subscript command: FIELD wikiview