⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xrolo.db.h

📁 `smith.motif.tar.Z includes the source code for the book "Designing X clients with Xt/Motif," by Je
💻 H
字号:
/**** xrolo.db.h ****//*******************************************************************This module imposes arbitrary rolodex policies on the generic,stream-oriented database object, `StreamDB', that's implemented in`steamdb.c'.  `xrolo.db.c' is not useful with applications otherthan `xrolo'.Overall, the idea is that `xrolo' manages only one active rolodexdatabase/file at a time.  Thus, the state of the rolodex file canbe managed with a small number of variables that are private tothis file; these variables include `xrolo', `entry', and`deleted_entry'.Although `streamdb.c' provides facilities for maintaining thecurrent database entry, `xrolo.db.c' maintains its own pointerto the current database entry in `entry', and formally sets thecurrent entry pointer in `streamdb.c' only when necessary as anintermediate step in performing a database operation, e.g.,deleting the current database entry.*******************************************************************/#include "streamdb.h"/*Public functions:*/extern EntryDB xrolo_db_create();extern void xrolo_db_destroy();extern int xrolo_db_is_active();extern int xrolo_db_is_modified();extern int xrolo_db_save();extern int xrolo_db_save_as();extern int xrolo_db_save_backup();extern int xrolo_db_current_entry_is_last_entry();extern int xrolo_db_current_entry_is_first_entry();extern char *xrolo_db_get_text();extern EntryDB xrolo_db_nth_entry();extern EntryDB xrolo_db_next_entry();extern EntryDB xrolo_db_current_entry();extern EntryDB xrolo_db_previous_entry();extern EntryDB xrolo_db_first_entry();extern EntryDB xrolo_db_last_entry();extern EntryDB xrolo_db_past_last_entry();extern EntryDB xrolo_db_insert_new_entry();extern EntryDB xrolo_db_delete_current_entry();extern EntryDB xrolo_db_delete_current_entry_no_undo();extern EntryDB xrolo_db_recover_deleted_entry();extern EntryDB xrolo_db_find_entry_forward();extern EntryDB xrolo_db_find_entry_reverse();extern char **xrolo_db_build_index_array();extern void xrolo_db_free_index_array();extern EntryDB xrolo_db_sort_ascending();extern EntryDB xrolo_db_sort_descending();

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -