Skip to content

Commit

Permalink
Some cleaning in script.c
Browse files Browse the repository at this point in the history
- documentation of functions translation of japanese comments
- usage of const char* instead of char* where appropriate
- removal of unused isstr() function

git-svn-id: http://eathena.googlecode.com/svn/trunk@13083 9c4de8d1-4af9-ca9b-867f-b47ac08f6c80
  • Loading branch information
theultramage committed Aug 15, 2008
1 parent 574e2a3 commit acfb18a
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 177 deletions.
4 changes: 2 additions & 2 deletions src/map/pc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5957,7 +5957,7 @@ int pc_readregistry(struct map_session_data *sd,const char *reg,int type)
return ( i < max ) ? atoi(sd_reg[i].value) : 0;
}

char* pc_readregistry_str(struct map_session_data *sd,char *reg,int type)
char* pc_readregistry_str(struct map_session_data *sd,const char *reg,int type)
{
struct global_reg *sd_reg;
int i,max;
Expand Down Expand Up @@ -6076,7 +6076,7 @@ int pc_setregistry(struct map_session_data *sd,const char *reg,int val,int type)
return 0;
}

int pc_setregistry_str(struct map_session_data *sd,char *reg,const char *val,int type)
int pc_setregistry_str(struct map_session_data *sd,const char *reg,const char *val,int type)
{
struct global_reg *sd_reg;
int i,*max, regmax;
Expand Down
4 changes: 2 additions & 2 deletions src/map/pc.h
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,8 @@ int pc_setregstr(struct map_session_data *sd,int reg,const char *str);
#define pc_setaccountreg2str(sd,reg,val) pc_setregistry_str(sd,reg,val,1)
int pc_readregistry(struct map_session_data*,const char*,int);
int pc_setregistry(struct map_session_data*,const char*,int,int);
char *pc_readregistry_str(struct map_session_data*,char*,int);
int pc_setregistry_str(struct map_session_data*,char*,const char*,int);
char *pc_readregistry_str(struct map_session_data*,const char*,int);
int pc_setregistry_str(struct map_session_data*,const char*,const char*,int);

int pc_addeventtimer(struct map_session_data *sd,int tick,const char *name);
int pc_deleventtimer(struct map_session_data *sd,const char *name);
Expand Down
Loading

0 comments on commit acfb18a

Please sign in to comment.