Ticket #129: ang_report_20070523.diff
| File ang_report_20070523.diff, 13.1 kB (added by christer.nyfalt@welho.com, 2 years ago) |
|---|
-
src/files.c
old new 4933 4933 Term_get_size(&wid, &hgt); 4934 4934 4935 4935 fprintf(htm, "<!DOCTYPE html>"); 4936 fprintf(htm, "<html \n");4936 fprintf(htm, "<html>\n"); 4937 4937 fprintf(htm, "<head>\n"); 4938 4938 fprintf(htm, " <meta=\"generator\" content=\"%s %d.%d.%d\">\n", 4939 4939 VERSION_NAME, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH); -
src/z-util.c
old new 226 226 227 227 228 228 229 /*230 * Redefinable "core" action231 */232 void (*core_aux)(cptr) = NULL;233 229 234 /*235 * Dump a core file, after printing a warning message236 * As with "quit()", try to use the "core_aux()" hook first.237 */238 void core(cptr str)239 {240 char *crash = NULL;241 242 /* Use the aux function */243 if (core_aux) (*core_aux)(str);244 245 /* Dump the warning string */246 if (str) plog(str);247 248 /* Attempt to Crash */249 (*crash) = (*crash);250 251 /* Be sure we exited */252 quit("core() failed");253 }254 255 256 257 -
src/x-spell.c
old new 15 15 16 16 /* 17 17 * The defines below must match the spell numbers in spell.txt 18 * if they don't, "interes sting" things will probably happen.18 * if they don't, "interesting" things will probably happen. 19 19 * 20 * It would be nice if we could get rid of this depend ancy20 * It would be nice if we could get rid of this dependency 21 21 */ 22 22 23 23 #define SPELL_MAGIC_MISSILE 0 -
src/init2.c
old new 1109 1109 } 1110 1110 } 1111 1111 1112 /* Place each spell in it 's own book */1112 /* Place each spell in its own book */ 1113 1113 for (spell = 0; spell < z_info->s_max; spell++) 1114 1114 { 1115 1115 /* Get the spell */ -
src/main-crb.c
old new 3671 3671 } 3672 3672 3673 3673 3674 /*3675 * Hook to tell the user something, and then crash3676 */3677 static void hook_core(cptr str)3678 {3679 /* XXX Use the debugger */3680 /* DebugStr(str); */3681 3682 /* Warning */3683 if (str) mac_warning(str);3684 if(!save_player())3685 mac_warning("Fatal error -- save failed!");3686 else3687 mac_warning("Fatal error -- game saved successfully");3688 3689 /* Quit */3690 quit(NULL);3691 }3692 3693 3674 /*** Main program ***/ 3694 3675 3695 3676 … … 3752 3733 /* Hooks in some "z-util.c" hooks */ 3753 3734 plog_aux = hook_plog; 3754 3735 quit_aux = hook_quit; 3755 core_aux = hook_core;3756 3736 3757 3737 /* Initialize colors */ 3758 3738 update_color_info(); -
src/z-util.h
old new 30 30 /* Aux functions */ 31 31 extern void (*plog_aux)(cptr); 32 32 extern void (*quit_aux)(cptr); 33 extern void (*core_aux)(cptr);34 33 35 34 36 35 /**** Available Functions ****/ … … 57 56 /* Exit, with optional message */ 58 57 extern void quit(cptr str); 59 58 60 /* Dump core, with optional message */61 extern void core(cptr str);62 59 60 #endif /* INCLUDED_Z_UTIL_H */ 63 61 64 62 65 #endif66 67 -
src/z-virt.c
old new 31 31 /* Hopefully, we have a real "panic" function */ 32 32 if (rpanic_aux) return ((*rpanic_aux)(len)); 33 33 34 /* Attempt to crashbefore icky things happen */34 /* Attempt to quit before icky things happen */ 35 35 quit("Out of Memory!"); 36 36 37 37 /* Paranoia */ -
src/store.c
old new 2216 2216 2217 2217 /* Analyze the prices (and comment verbally) */ 2218 2218 purchase_analyze(price, value, dummy); 2219 2219 2220 /* 2220 2221 * Check to see if anything left in the pack should be squelched. 2221 2222 * We must make sure to do this before the item is sold … … 2223 2224 if (squelch == SQUELCH_YES) 2224 2225 { 2225 2226 msg_format("In your pack: %s (%c). %s", 2226 o_name, index_to_label(item),2227 squelch_to_label(squelch));2227 o_name, index_to_label(item), 2228 squelch_to_label(squelch)); 2228 2229 2229 2230 squelch_item(squelch, item, o_ptr); 2230 2231 } … … 2235 2236 inven_item_describe(item); 2236 2237 inven_item_optimize(item); 2237 2238 } 2239 2238 2240 /* Handle stuff */ 2239 2241 handle_stuff(); 2240 2242 -
src/main-gtk.c
old new 768 768 769 769 /* Activate hooks */ 770 770 quit_aux = hook_quit; 771 core_aux = hook_quit;772 771 773 772 /* Set the system suffix */ 774 773 ANGBAND_SYS = "gtk"; -
src/load.c
old new 965 965 /* Write the autoinscriptions array*/ 966 966 for (i = 0; i < inscriptions_count; i++) 967 967 { 968 char tmp[80];968 char tmp[80]; 969 969 970 rd_s16b(&inscriptions[i].kind_idx);971 rd_string(tmp, 80);970 rd_s16b(&inscriptions[i].kind_idx); 971 rd_string(tmp, 80); 972 972 973 inscriptions[i].inscription_idx = quark_add(tmp);973 inscriptions[i].inscription_idx = quark_add(tmp); 974 974 } 975 975 976 976 return 0; -
src/cmd1.c
old new 503 503 if ((k_info[o_ptr->k_idx].squelch == NO_SQUELCH_NEVER_PICKUP) && 504 504 object_aware_p(o_ptr)) return (FALSE); 505 505 506 /* Object is marked to notpickup */506 /* Object is marked to pickup */ 507 507 if ((k_info[o_ptr->k_idx].squelch == NO_SQUELCH_ALWAYS_PICKUP) && 508 508 object_aware_p(o_ptr)) return (TRUE); 509 509 -
src/cmd3.c
old new 190 190 s = strchr(quark_str(equip_o_ptr->note), '!'); 191 191 192 192 /* Process preventions */ 193 /* XXX Perhaps this should be factored out to a sep erate function? */193 /* XXX Perhaps this should be factored out to a separate function? */ 194 194 while (s) 195 195 { 196 196 /* Check the "restriction" */ … … 548 548 msg_format("All %^s will always be squelched.", o_name2); 549 549 550 550 /*Mark the view to be updated*/ 551 p_ptr->update |= (PU_FORGET_VIEW | PU_UPDATE_VIEW); ;551 p_ptr->update |= (PU_FORGET_VIEW | PU_UPDATE_VIEW); 552 552 } 553 553 } 554 554 -
src/object2.c
old new 371 371 372 372 /* Nearby objects start out "immune" */ 373 373 if ((cur_dis > 0) && (distance(py, px, y, x) < cur_dis) && 374 (k_ptr->squelch != SQUELCH_ALWAYS))374 (k_ptr->squelch != SQUELCH_ALWAYS)) 375 375 continue; 376 376 377 377 /* Saving throw */ … … 790 790 { 791 791 /* Fully aware of the effects */ 792 792 k_info[o_ptr->k_idx].aware = TRUE; 793 793 794 794 /* Scrolls can change the graphics when becoming aware */ 795 795 if (o_ptr->tval == TV_SCROLL) 796 796 { -
src/cmd5.c
old new 574 574 /* Ask for a spell */ 575 575 spell = get_spell(o_ptr, "browse", TRUE, TRUE); 576 576 if (spell < 0) break; 577 577 578 578 /* Browse the spell */ 579 579 browse_spell(spell); 580 580 } -
src/save.c
old new 1007 1007 /* 1008 1008 * Write autoinscribe & squelch item-quality submenu to the savefile 1009 1009 */ 1010 static void wr_squelch( )1010 static void wr_squelch(void) 1011 1011 { 1012 1012 int i; 1013 1013 -
src/xtra1.c
old new 225 225 } 226 226 else 227 227 { 228 put_str("Exp ", row, col); 228 if (next_xp) 229 { 230 put_str("Nxt ", row, col); 231 } 232 else 233 { 234 put_str("Exp ", row, col); 235 } 229 236 c_put_str(TERM_YELLOW, out_val, row, col + 4); 230 237 } 231 238 } -
src/main-gcu.c
old new 718 718 wmove(td->win, y, x); 719 719 720 720 /* Format to appropriate size */ 721 strnfmt(buf, sizeof buf, "%.*s", n, s);721 strnfmt(buf, sizeof(buf), "%.*s", n, s); 722 722 723 723 /* Write to screen */ 724 724 waddstr(td->win, buf); … … 831 831 832 832 /* Activate hooks */ 833 833 quit_aux = hook_quit; 834 core_aux = hook_quit;835 834 836 835 /* Require standard size screen */ 837 836 if ((LINES < 24) || (COLS < 80)) -
src/z-form.c
old new 735 735 /* Call quit() */ 736 736 quit(res); 737 737 } 738 739 740 741 /*742 * Vararg interface to core()743 */744 void core_fmt(cptr fmt, ...)745 {746 char *res;747 va_list vp;748 749 /* Begin the Varargs Stuff */750 va_start(vp, fmt);751 752 /* If requested, Do a virtual fprintf to stderr */753 res = vformat(fmt, vp);754 755 /* End the Varargs Stuff */756 va_end(vp);757 758 /* Call core() */759 core(res);760 } -
src/z-form.h
old new 51 51 /* Vararg interface to "quit()", using "format()" */ 52 52 extern void quit_fmt(cptr fmt, ...); 53 53 54 /* Vararg interface to "core()", using "format()" */55 extern void core_fmt(cptr fmt, ...);56 54 55 #endif /* INCLUDED_Z_FORM_H */ 57 56 58 #endif59 57 60 -
src/main-win.c
old new 5019 5019 /* Temporary hooks */ 5020 5020 plog_aux = hack_plog; 5021 5021 quit_aux = hack_quit; 5022 core_aux = hack_quit;5023 5022 5024 5023 /* Prepare the filepaths */ 5025 5024 init_stuff(); … … 5059 5058 /* Activate hooks */ 5060 5059 plog_aux = hook_plog; 5061 5060 quit_aux = hook_quit; 5062 core_aux = hook_quit;5063 5061 5064 5062 /* Set the system suffix */ 5065 5063 ANGBAND_SYS = "win"; -
src/init1.c
old new 871 871 /* Save the value */ 872 872 z_info->s_max = max; 873 873 } 874 874 875 875 /* Process 'O' for "Maximum o_list[] index" */ 876 876 else if (buf[2] == 'O') 877 877 { -
src/spells2.c
old new 246 246 squelch = do_ident_item(i, o_ptr); 247 247 248 248 /* 249 * If the object was squelched, keep analyzing250 * the same slot (the inventory was displaced). -DG-251 */249 * If the object was squelched, keep analyzing 250 * the same slot (the inventory was displaced). -DG- 251 */ 252 252 if (squelch != SQUELCH_YES || i < INVEN_WIELD) continue; 253 253 254 254 /* Now squelch the object */ … … 3938 3938 } 3939 3939 else 3940 3940 { 3941 msg_format("On the ground: %s. %s", o_name,3941 msg_format("On the ground: %s. %s", o_name, 3942 3942 squelch_to_label(squelch)); 3943 3943 } 3944 3944 3945 3945 return (squelch); 3946 3946 } 3947 -
src/main-ros.c
old new 163 163 * to clean up the code but just making work for people with no 164 164 * ultimate benefit. 165 165 */ 166 /* #define HASNOCORE */ 166 #define HASNOCORE 167 167 168 168 /* 169 169 * USE_DA -
src/Makefile.gtk
old new 11 11 xtra1.c xtra2.c spells1.c spells2.c \ 12 12 melee1.c melee2.c save.c files.c \ 13 13 cmd1.c cmd2.c cmd3.c cmd4.c cmd5.c cmd6.c \ 14 squelch. ostore.c birth.c load.c \14 squelch.c store.c birth.c load.c \ 15 15 wizard1.c wizard2.c \ 16 16 generate.c dungeon.c init1.c init2.c randart.c \ 17 17 main-gtk.c maid-x11.c main.c \
