aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Kołodziejski2009-02-15 09:34:39 +0000
committerPaweł Kołodziejski2009-02-15 09:34:39 +0000
commit11b4bc25dc25fefdd413194c9c33108cc3d2c5c1 (patch)
tree6d27d857c47081d4aff23e0579cdd4bec042bd7e
parentc3af1a22d67df73380243c66c2a70e5fd9272e98 (diff)
downloadscummvm-rg350-11b4bc25dc25fefdd413194c9c33108cc3d2c5c1.tar.gz
scummvm-rg350-11b4bc25dc25fefdd413194c9c33108cc3d2c5c1.tar.bz2
scummvm-rg350-11b4bc25dc25fefdd413194c9c33108cc3d2c5c1.zip
revert last define, will be defined in diffrent place
svn-id: r38205
-rw-r--r--engines/sci/engine/savegame.c66
-rw-r--r--engines/sci/engine/savegame.cfsml2
2 files changed, 32 insertions, 36 deletions
diff --git a/engines/sci/engine/savegame.c b/engines/sci/engine/savegame.c
index 00e0ab972e..920018e394 100644
--- a/engines/sci/engine/savegame.c
+++ b/engines/sci/engine/savegame.c
@@ -43,8 +43,6 @@
#ifdef _WIN32
#pragma warning( disable : 4101 )
-#undef strcasecmp
-#define strcasecmp _stricmp
#endif
#define HUNK_TYPE_GFX_SNAPSHOT_STRING "g\n"
@@ -4128,7 +4126,7 @@ int min, max, i;
/* Auto-generated CFSML declaration and function block ends here */
/* Auto-generation performed by cfsml.pl 0.8.2 */
-#line 404 "savegame.cfsml"
+#line 402 "savegame.cfsml"
void
write_songlib_t(FILE *fh, songlib_t *songlib)
@@ -4148,7 +4146,7 @@ write_songlib_t(FILE *fh, songlib_t *songlib)
_cfsml_write_song_t(fh, seeker);
fprintf(fh, "\n");
/* End of auto-generated CFSML data writer code */
-#line 419 "savegame.cfsml"
+#line 417 "savegame.cfsml"
seeker = seeker->next;
}
fprintf(fh, "]\n");
@@ -4194,7 +4192,7 @@ read_songlib_t(FILE *fh, songlib_t *songlib, char *lastval, int *line, int *hite
}
}
/* End of auto-generated CFSML data reader code */
-#line 442 "savegame.cfsml"
+#line 440 "savegame.cfsml"
song_lib_add(*songlib, newsong);
}
fscanf(fh, "]\n");
@@ -4241,7 +4239,7 @@ write_int_hash_map_tp(FILE *fh, int_hash_map_t **foo)
_cfsml_write_int_hash_map_t(fh, *foo);
fprintf(fh, "\n");
/* End of auto-generated CFSML data writer code */
-#line 484 "savegame.cfsml"
+#line 482 "savegame.cfsml"
}
void
@@ -4252,7 +4250,7 @@ write_song_tp(FILE *fh, song_t **foo)
_cfsml_write_song_t(fh, *foo);
fprintf(fh, "\n");
/* End of auto-generated CFSML data writer code */
-#line 490 "savegame.cfsml"
+#line 488 "savegame.cfsml"
}
song_iterator_t *
@@ -4288,7 +4286,7 @@ read_song_tp(FILE *fh, song_t **foo, char *lastval, int *line, int *hiteof)
}
}
/* End of auto-generated CFSML data reader code */
-#line 503 "savegame.cfsml"
+#line 501 "savegame.cfsml"
(*foo)->delay = 0;
(*foo)->it = NULL;
(*foo)->next_playing = (*foo)->next_stopping = (*foo)->next = NULL;
@@ -4321,7 +4319,7 @@ read_int_hash_map_tp(FILE *fh, int_hash_map_t **foo, char *lastval, int *line, i
}
}
/* End of auto-generated CFSML data reader code */
-#line 513 "savegame.cfsml"
+#line 511 "savegame.cfsml"
(*foo)->holes = NULL;
return 0;
}
@@ -4342,7 +4340,7 @@ write_int_hash_map_node_tp(FILE *fh, int_hash_map_node_t **foo)
write_int_hash_map_node_tp(fh, &((*foo)->next));
fprintf(fh, "\n");
/* End of auto-generated CFSML data writer code */
-#line 529 "savegame.cfsml"
+#line 527 "savegame.cfsml"
} else fputc('L', fh);
fputs("]", fh);
}
@@ -4401,7 +4399,7 @@ write_menubar_tp(FILE *fh, menubar_t **foo)
_cfsml_write_menubar_t(fh, (*foo));
fprintf(fh, "\n");
/* End of auto-generated CFSML data writer code */
-#line 583 "savegame.cfsml"
+#line 581 "savegame.cfsml"
} else { /* Nothing to write */
fputs("\\null\\", fh);
@@ -4441,7 +4439,7 @@ read_menubar_tp(FILE *fh, menubar_t **foo, char *lastval, int *line, int *hiteof
}
}
/* End of auto-generated CFSML data reader code */
-#line 600 "savegame.cfsml"
+#line 598 "savegame.cfsml"
}
return *hiteof;
@@ -4456,7 +4454,7 @@ write_mem_obj_t(FILE *fh, mem_obj_t *foo)
_cfsml_write_int(fh, &foo->segmgr_id);
fprintf(fh, "\n");
/* End of auto-generated CFSML data writer code */
-#line 610 "savegame.cfsml"
+#line 608 "savegame.cfsml"
switch (foo->type)
{
case MEM_OBJ_SCRIPT:
@@ -4465,7 +4463,7 @@ write_mem_obj_t(FILE *fh, mem_obj_t *foo)
_cfsml_write_script_t(fh, &foo->data.script);
fprintf(fh, "\n");
/* End of auto-generated CFSML data writer code */
-#line 614 "savegame.cfsml"
+#line 612 "savegame.cfsml"
break;
case MEM_OBJ_CLONES:
#line 877 "savegame.cfsml"
@@ -4473,7 +4471,7 @@ write_mem_obj_t(FILE *fh, mem_obj_t *foo)
_cfsml_write_clone_table_t(fh, &foo->data.clones);
fprintf(fh, "\n");
/* End of auto-generated CFSML data writer code */
-#line 617 "savegame.cfsml"
+#line 615 "savegame.cfsml"
break;
case MEM_OBJ_LOCALS:
#line 877 "savegame.cfsml"
@@ -4481,7 +4479,7 @@ write_mem_obj_t(FILE *fh, mem_obj_t *foo)
_cfsml_write_local_variables_t(fh, &foo->data.locals);
fprintf(fh, "\n");
/* End of auto-generated CFSML data writer code */
-#line 620 "savegame.cfsml"
+#line 618 "savegame.cfsml"
break;
case MEM_OBJ_SYS_STRINGS:
#line 877 "savegame.cfsml"
@@ -4489,7 +4487,7 @@ write_mem_obj_t(FILE *fh, mem_obj_t *foo)
_cfsml_write_sys_strings_t(fh, &foo->data.sys_strings);
fprintf(fh, "\n");
/* End of auto-generated CFSML data writer code */
-#line 623 "savegame.cfsml"
+#line 621 "savegame.cfsml"
break;
case MEM_OBJ_STACK:
#line 877 "savegame.cfsml"
@@ -4497,7 +4495,7 @@ write_mem_obj_t(FILE *fh, mem_obj_t *foo)
_cfsml_write_int(fh, &foo->data.stack.nr);
fprintf(fh, "\n");
/* End of auto-generated CFSML data writer code */
-#line 626 "savegame.cfsml"
+#line 624 "savegame.cfsml"
break;
case MEM_OBJ_HUNK:
break;
@@ -4507,7 +4505,7 @@ write_mem_obj_t(FILE *fh, mem_obj_t *foo)
_cfsml_write_list_table_t(fh, &foo->data.lists);
fprintf(fh, "\n");
/* End of auto-generated CFSML data writer code */
-#line 631 "savegame.cfsml"
+#line 629 "savegame.cfsml"
break;
case MEM_OBJ_NODES:
#line 877 "savegame.cfsml"
@@ -4515,7 +4513,7 @@ write_mem_obj_t(FILE *fh, mem_obj_t *foo)
_cfsml_write_node_table_t(fh, &foo->data.nodes);
fprintf(fh, "\n");
/* End of auto-generated CFSML data writer code */
-#line 634 "savegame.cfsml"
+#line 632 "savegame.cfsml"
break;
case MEM_OBJ_DYNMEM:
#line 877 "savegame.cfsml"
@@ -4523,7 +4521,7 @@ write_mem_obj_t(FILE *fh, mem_obj_t *foo)
_cfsml_write_dynmem_t(fh, &foo->data.dynmem);
fprintf(fh, "\n");
/* End of auto-generated CFSML data writer code */
-#line 637 "savegame.cfsml"
+#line 635 "savegame.cfsml"
break;
}
}
@@ -4563,7 +4561,7 @@ read_mem_obj_t(FILE *fh, mem_obj_t *foo, char *lastval, int *line, int *hiteof)
}
}
/* End of auto-generated CFSML data reader code */
-#line 653 "savegame.cfsml"
+#line 651 "savegame.cfsml"
switch (foo->type)
{
case MEM_OBJ_SCRIPT:
@@ -4591,7 +4589,7 @@ read_mem_obj_t(FILE *fh, mem_obj_t *foo, char *lastval, int *line, int *hiteof)
}
}
/* End of auto-generated CFSML data reader code */
-#line 657 "savegame.cfsml"
+#line 655 "savegame.cfsml"
break;
case MEM_OBJ_CLONES:
/* Auto-generated CFSML data reader code */
@@ -4618,7 +4616,7 @@ read_mem_obj_t(FILE *fh, mem_obj_t *foo, char *lastval, int *line, int *hiteof)
}
}
/* End of auto-generated CFSML data reader code */
-#line 660 "savegame.cfsml"
+#line 658 "savegame.cfsml"
break;
case MEM_OBJ_LOCALS:
/* Auto-generated CFSML data reader code */
@@ -4645,7 +4643,7 @@ read_mem_obj_t(FILE *fh, mem_obj_t *foo, char *lastval, int *line, int *hiteof)
}
}
/* End of auto-generated CFSML data reader code */
-#line 663 "savegame.cfsml"
+#line 661 "savegame.cfsml"
break;
case MEM_OBJ_SYS_STRINGS:
/* Auto-generated CFSML data reader code */
@@ -4672,7 +4670,7 @@ read_mem_obj_t(FILE *fh, mem_obj_t *foo, char *lastval, int *line, int *hiteof)
}
}
/* End of auto-generated CFSML data reader code */
-#line 666 "savegame.cfsml"
+#line 664 "savegame.cfsml"
break;
case MEM_OBJ_LISTS:
/* Auto-generated CFSML data reader code */
@@ -4699,7 +4697,7 @@ read_mem_obj_t(FILE *fh, mem_obj_t *foo, char *lastval, int *line, int *hiteof)
}
}
/* End of auto-generated CFSML data reader code */
-#line 669 "savegame.cfsml"
+#line 667 "savegame.cfsml"
break;
case MEM_OBJ_NODES:
/* Auto-generated CFSML data reader code */
@@ -4726,7 +4724,7 @@ read_mem_obj_t(FILE *fh, mem_obj_t *foo, char *lastval, int *line, int *hiteof)
}
}
/* End of auto-generated CFSML data reader code */
-#line 672 "savegame.cfsml"
+#line 670 "savegame.cfsml"
break;
case MEM_OBJ_STACK:
/* Auto-generated CFSML data reader code */
@@ -4753,7 +4751,7 @@ read_mem_obj_t(FILE *fh, mem_obj_t *foo, char *lastval, int *line, int *hiteof)
}
}
/* End of auto-generated CFSML data reader code */
-#line 675 "savegame.cfsml"
+#line 673 "savegame.cfsml"
foo->data.stack.entries = (reg_t *)sci_calloc(foo->data.stack.nr, sizeof(reg_t));
break;
case MEM_OBJ_HUNK:
@@ -4784,7 +4782,7 @@ read_mem_obj_t(FILE *fh, mem_obj_t *foo, char *lastval, int *line, int *hiteof)
}
}
/* End of auto-generated CFSML data reader code */
-#line 682 "savegame.cfsml"
+#line 680 "savegame.cfsml"
break;
}
@@ -4801,7 +4799,7 @@ write_mem_obj_tp(FILE *fh, mem_obj_t **foo)
write_mem_obj_t(fh, (*foo));
fprintf(fh, "\n");
/* End of auto-generated CFSML data writer code */
-#line 694 "savegame.cfsml"
+#line 692 "savegame.cfsml"
} else { /* Nothing to write */
fputs("\\null\\", fh);
@@ -4839,7 +4837,7 @@ read_mem_obj_tp(FILE *fh, mem_obj_t **foo, char *lastval, int *line, int *hiteof
}
}
/* End of auto-generated CFSML data reader code */
-#line 709 "savegame.cfsml"
+#line 707 "savegame.cfsml"
return *hiteof;
}
return 0;
@@ -4911,7 +4909,7 @@ SCI_MEMTEST;
_cfsml_write_state_t(fh, s);
fprintf(fh, "\n");
/* End of auto-generated CFSML data writer code */
-#line 776 "savegame.cfsml"
+#line 774 "savegame.cfsml"
SCI_MEMTEST;
fclose(fh);
@@ -5284,7 +5282,7 @@ gamestate_restore(state_t *s, char *dirname)
}
}
/* End of auto-generated CFSML data reader code */
-#line 1119 "savegame.cfsml"
+#line 1117 "savegame.cfsml"
fclose(fh);
diff --git a/engines/sci/engine/savegame.cfsml b/engines/sci/engine/savegame.cfsml
index d0d9680351..5b3abafb13 100644
--- a/engines/sci/engine/savegame.cfsml
+++ b/engines/sci/engine/savegame.cfsml
@@ -43,8 +43,6 @@
#ifdef _WIN32
#pragma warning( disable : 4101 )
-#undef strcasecmp
-#define strcasecmp _stricmp
#endif
#define HUNK_TYPE_GFX_SNAPSHOT_STRING "g\n"