Ignore:
Timestamp:
Mar 2, 2008, 12:29:06 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • Fix almost 2,000 warnings by using proper "const" keywords where needed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/menu.cpp

    r2 r39  
     1#include <math.h>
     2
    13#include "menu.hpp"
    24#include "lisp.hpp"
     
    1618#include "scroller.hpp"
    1719#include "netcfg.hpp"
    18 #include <math.h>
    1920#include "sock.hpp"
    2021
     
    298299
    299300
    300   char *ff="art/frame.spe";
     301  char const *ff = "art/frame.spe";
    301302  int t=SPEC_IMAGE;
    302303  int u_u=cash.reg(ff,"u_u",t,1),
     
    349350            if (sfx_volume>127) sfx_volume=127;
    350351            draw_sfx_vol(slider);
    351             char *s="sfx/ambtech1.wav";
     352            char const *s = "sfx/ambtech1.wav";
    352353            if (sound_avail&SFX_INITIALIZED)
    353354              cash.sfx(cash.reg(s,s,SPEC_EXTERN_SFX,1))->play(sfx_volume);
     
    360361            if (sfx_volume<0) sfx_volume=0;
    361362            draw_sfx_vol(slider);
    362             char *s="sfx/ambtech1.wav";
     363            char const *s = "sfx/ambtech1.wav";
    363364            if (sound_avail&SFX_INITIALIZED)
    364365              cash.sfx(cash.reg(s,s,SPEC_EXTERN_SFX,1))->play(sfx_volume);
     
    393394}
    394395
    395 
    396 FILE *open_FILE(char *filename, char *mode);
    397396
    398397void save_difficulty()
     
    433432//    char *prog="((\"art/help.spe\" . \"sell2\")(\"art/help.spe\" . \"sell4\")(\"art/help.spe\" . \"sell3\")(\"art/endgame.spe\" . \"credit\"))";
    434433//    char *prog="((\"art/endgame.spe\" . \"credit\") (\"art/help.spe\" . \"sell6\"))";
    435     char *prog="((\"art/endgame.spe\" . \"credit\"))";
     434    char const *prog="((\"art/endgame.spe\" . \"credit\"))";
    436435    set_symbol_value(ss,compile(prog));
    437436    current_space=sp;
     
    580579void *current_demo=NULL;
    581580
    582 static ico_button *load_icon(int num, int id, int x, int y, int &h, ifield *next, char *key)
     581static ico_button *load_icon(int num, int id, int x, int y, int &h, ifield *next, char const *key)
    583582{
    584583  char name[20];
    585   char *base="newi";
     584  char const *base = "newi";
    586585  int a,b,c;
    587586  sprintf(name,"%s%04d.pcx",base,num*3+1);
Note: See TracChangeset for help on using the changeset viewer.