- Fixed the plugin's makefile to make it compile cleanly
- Added used of Show* stuff in sig.c rather than printf. git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6048 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
06911b139a
commit
a9c1cfc172
@ -42,5 +42,9 @@ clean:
|
|||||||
|
|
||||||
sample.$(PLUGINEXT): sample.c $(COMMON_H)
|
sample.$(PLUGINEXT): sample.c $(COMMON_H)
|
||||||
sig.$(PLUGINEXT): sig.c $(COMMON_H)
|
sig.$(PLUGINEXT): sig.c $(COMMON_H)
|
||||||
|
$(CC) $(CFLAGS) -shared -o ../../plugins/$@ $< \
|
||||||
|
../common/obj/showmsg.o
|
||||||
|
@touch $@
|
||||||
|
|
||||||
pid.$(PLUGINEXT): pid.c $(COMMON_H)
|
pid.$(PLUGINEXT): pid.c $(COMMON_H)
|
||||||
gui.$(PLUGINEXT): gui.c $(COMMON_H)
|
gui.$(PLUGINEXT): gui.c $(COMMON_H)
|
||||||
|
@ -27,13 +27,13 @@ PLUGIN_EVENTS_TABLE = {
|
|||||||
|
|
||||||
#if defined(_WIN32) || defined(MINGW)
|
#if defined(_WIN32) || defined(MINGW)
|
||||||
int sig_init() {
|
int sig_init() {
|
||||||
printf("This plugin is not supported - Enable 'exchndl' instead!");
|
ShowError("sig: This plugin is not supported - Enable 'exchndl' instead!");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
int sig_final() { return 0; }
|
int sig_final() { return 0; }
|
||||||
#elif defined (__NETBSD__) || defined (__FREEBSD__)
|
#elif defined (__NETBSD__) || defined (__FREEBSD__)
|
||||||
int sig_init() {
|
int sig_init() {
|
||||||
printf("This plugin is not supported!");
|
ShowError("sig: This plugin is not supported!");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
int sig_final() { return 0; }
|
int sig_final() { return 0; }
|
||||||
@ -114,7 +114,7 @@ void sig_dump(int sn)
|
|||||||
size_t size;
|
size_t size;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
printf ("Dumping stack to '"CL_WHITE"%s"CL_RESET"'... ", file);
|
ShowNotice ("Dumping stack to '"CL_WHITE"%s"CL_RESET"'...\n", file);
|
||||||
if ((revision = getrevision()) != NULL)
|
if ((revision = getrevision()) != NULL)
|
||||||
fprintf(fp, "Version: svn%s \n", revision);
|
fprintf(fp, "Version: svn%s \n", revision);
|
||||||
else
|
else
|
||||||
@ -135,7 +135,7 @@ void sig_dump(int sn)
|
|||||||
free(stack);
|
free(stack);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
printf ("Done.\n");
|
ShowNotice("%s Saved.\n", file);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user