Reformatting @_@

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10581 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
ultramage
2007-05-19 15:50:41 +00:00
parent 16671ef54f
commit 711d01a128
45 changed files with 2236 additions and 3465 deletions

View File

@@ -300,7 +300,8 @@ struct party_data *inter_party_fromsql(int party_id)
return p;
}
int inter_party_sql_init(void){
int inter_party_sql_init(void)
{
//memory alloc
party_db_ = db_alloc(__FILE__,__LINE__,DB_INT,DB_OPT_RELEASE_DATA,sizeof(int));
party_pt = (struct party_data*)aCalloc(sizeof(struct party_data), 1);

View File

@@ -189,9 +189,9 @@ int inter_accreg_sql_init(void)
/*==========================================
* read config file
*------------------------------------------
*/
static int inter_config_read(const char *cfgName) {
*------------------------------------------*/
static int inter_config_read(const char *cfgName)
{
int i;
char line[1024], w1[1024], w2[1024];
FILE *fp;

View File

@@ -34,8 +34,7 @@ static void* create_item(DBKey key, va_list args) {
}
/*==========================================
* DBの検索
*------------------------------------------
*/
*------------------------------------------*/
struct item_data* itemdb_search(int nameid)
{
return idb_ensure(item_db,nameid,create_item);
@@ -43,8 +42,7 @@ struct item_data* itemdb_search(int nameid)
/*==========================================
*
*------------------------------------------
*/
*------------------------------------------*/
int itemdb_isequip(int nameid)
{
int type=itemdb_type(nameid);
@@ -54,8 +52,7 @@ int itemdb_isequip(int nameid)
}
/*==========================================
*
*------------------------------------------
*/
*------------------------------------------*/
int itemdb_isequip2(struct item_data *data)
{
if(data) {
@@ -72,8 +69,7 @@ int itemdb_isequip2(struct item_data *data)
/*==========================================
* アイテムデータベースの読み込み
*------------------------------------------
*/
*------------------------------------------*/
static int itemdb_readdb(void)
{
FILE *fp;
@@ -202,8 +198,7 @@ static int itemdb_read_sqldb(void) // sql item_db read, shortened version of map
/*==========================================
*
*------------------------------------------
*/
*------------------------------------------*/
void do_final_itemdb(void)
{
if(item_db){