summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-06-04 15:13:10 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-06-04 15:13:10 +0800
commit51adcb11b155e2bf4a7c9fe26b240afc255a1516 (patch)
tree8abdf1e77e43fb6e779944bfa41533257a481321 /include
parent98a14c993a7c65e63706a0dd93860aa699fbcf2f (diff)
downloadpttbbs-51adcb11b155e2bf4a7c9fe26b240afc255a1516.tar
pttbbs-51adcb11b155e2bf4a7c9fe26b240afc255a1516.tar.gz
pttbbs-51adcb11b155e2bf4a7c9fe26b240afc255a1516.tar.bz2
pttbbs-51adcb11b155e2bf4a7c9fe26b240afc255a1516.tar.lz
pttbbs-51adcb11b155e2bf4a7c9fe26b240afc255a1516.tar.xz
pttbbs-51adcb11b155e2bf4a7c9fe26b240afc255a1516.tar.zst
pttbbs-51adcb11b155e2bf4a7c9fe26b240afc255a1516.zip
use int instead short for bid in fav
Note that fav structure is updated, which will be converted in runtime. (New fav will be $USERHOME/.fav) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3364 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/fav.h5
-rw-r--r--include/proto.h18
2 files changed, 13 insertions, 10 deletions
diff --git a/include/fav.h b/include/fav.h
index 196a61d5..dea3cbba 100644
--- a/include/fav.h
+++ b/include/fav.h
@@ -1,4 +1,6 @@
+#define FAV_VERSION 3363
+
#define FAVT_BOARD 1
#define FAVT_FOLDER 2
#define FAVT_LINE 3
@@ -21,6 +23,7 @@
#define MAX_FOLDER 64
#define NEW_FAV_THRESHOLD 12 /* half page */
+#define FAV ".fav"
#define FAV4 ".fav4"
#define FAVNB ".favnb"
@@ -45,7 +48,7 @@ typedef struct {
} fav_t;
typedef struct {
- short bid;
+ int bid;
time4_t lastvisit; /* UNUSED */
char attr;
} fav_board_t;
diff --git a/include/proto.h b/include/proto.h
index 92d23207..36801e66 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -236,15 +236,15 @@ void fav_sort_by_name(void);
void fav_sort_by_class(void);
int fav_load(void);
int fav_save(void);
-void fav_remove_item(short id, char type);
-fav_type_t *getadmtag(short bid);
-fav_type_t *getboard(short bid);
-fav_type_t *getfolder(short fid);
-char getbrdattr(short bid);
-time4_t getbrdtime(short bid);
-void setbrdtime(short bid, time4_t t);
+void fav_remove_item(int id, char type);
+fav_type_t *getadmtag(int bid);
+fav_type_t *getboard(int bid);
+fav_type_t *getfolder(int fid);
+char getbrdattr(int bid);
+time4_t getbrdtime(int bid);
+void setbrdtime(int bid, time4_t t);
int fav_getid(fav_type_t *ft);
-void fav_tag(short id, char type, char boolean);
+void fav_tag(int id, char type, char boolean);
void move_in_current_folder(int from, int to);
void fav_move(int from, int to);
fav_type_t *fav_add_line(void);
@@ -256,7 +256,7 @@ void fav_add_all_tagged_item(void);
void fav_remove_all_tag(void);
void fav_set_folder_title(fav_type_t *ft, char *title);
int fav_stack_full(void);
-void fav_folder_in(short fid);
+void fav_folder_in(int fid);
void fav_folder_out(void);
void fav_free(void);
int fav_v3_to_v4(void);