Changeset 555


Ignore:
Timestamp:
Apr 29, 2011, 9:18:23 PM (7 years ago)
Author:
Sam Hocevar
Message:

ps3: make everything compile on the PS3. Of course, nothing links yet
because so much support is missing.

Location:
abuse/trunk
Files:
2 deleted
207 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/configure.ac

    r551 r555  
    8080AC_HEADER_DIRENT
    8181AC_HEADER_STDC
    82 AC_CHECK_HEADERS(fcntl.h malloc.h string.h sys/ioctl.h sys/time.h unistd.h)
     82AC_CHECK_HEADERS(fcntl.h malloc.h string.h sys/ioctl.h sys/time.h unistd.h
     83                 netinet/in.h)
    8384
    8485dnl Checks for functions
  • abuse/trunk/src/Makefile.am

    r540 r555  
    2525    lcache.cpp lcache.h \
    2626    nfclient.cpp nfclient.h \
    27     username.cpp \
    2827    clisp.cpp clisp.h \
    2928    gui.cpp gui.h \
  • abuse/trunk/src/ability.cpp

    r512 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/ability.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/ant.cpp

    r512 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <ctype.h>
  • abuse/trunk/src/ant.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/automap.cpp

    r518 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/automap.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/cache.cpp

    r512 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#if (defined(__MACH__) || !defined(__APPLE__))
     
    2426#include "video.h"
    2527#include "dprint.h"
    26 #include "exitproc.h"
    2728#include "lcache.h"
    2829#include "status.h"
  • abuse/trunk/src/cache.h

    r541 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/chars.cpp

    r512 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/chars.h

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
     
    8787{
    8888public :
    89   ushort ts,tiv,tv; // total states, total index vars, total local vars
     89  uint16_t ts,tiv,tv; // total states, total index vars, total local vars
    9090  sequence **seq;   // [0..ts-1]
    9191  void **seq_syms;  // symbol describing what this state is [0..ts-1]
     
    101101  long rangex,rangey,draw_rangex,draw_rangey;             // range off screen before character is skipped
    102102
    103   ushort cflags;
     103  uint16_t cflags;
    104104  void *get_fun(int name) { return fun_table[name]; }
    105105  int get_cflag(int name) { return cflags&(1<<name); }
  • abuse/trunk/src/chat.cpp

    r512 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/chat.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/clisp.cpp

    r527 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <string.h>
     
    943945    case 54 :
    944946    {
     947#if defined __CELLOS_LV2__
     948      /* FIXME: retrieve the PS3 account name */
     949      char const *cd = "Player";
     950#else
    945951      char cd[150];
    946       getcwd(cd,100);
     952      getcwd(cd, 100);
     953#endif
    947954      return LString::Create(cd);
    948955    } break;
    949956    case 55 :
    950     { system(lstring_value(CAR(args)->Eval())); } break;
     957#if !defined __CELLOS_LV2__
     958      /* FIXME: this looks rather dangerous */
     959      system(lstring_value(CAR(args)->Eval()));
     960#endif
     961      break;
    951962    case 56 :
    952963    {
     
    21772188    case 276 :
    21782189    {
     2190#if defined __CELLOS_LV2__
     2191      return 0;
     2192#else
    21792193      if (!main_net_cfg) return 0;
    21802194      return become_server(game_name);
     2195#endif
    21812196    } break;
    21822197    case 277 :
  • abuse/trunk/src/clisp.h

    r534 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/collide.cpp

    r512 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/common.h

    r525 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/compiled.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    13 #include <string.h>
    14 #include <malloc.h>
     15#include <cstring>
    1516
    1617#include "lisp.h"
     18
     19using namespace std;
    1720
    1821extern int total_objects;
  • abuse/trunk/src/compiled.h

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/configuration.cpp

    r534 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <ctype.h>
  • abuse/trunk/src/configuration.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/console.cpp

    r518 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <ctype.h>
  • abuse/trunk/src/console.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/control.cpp

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "game.h"
  • abuse/trunk/src/control.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/cop.cpp

    r527 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/cop.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/crc.cpp

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "crc.h"
  • abuse/trunk/src/crc.h

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/demo.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/demo.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/dev.cpp

    r545 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <ctype.h>
  • abuse/trunk/src/dev.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/devsel.cpp

    r533 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/devsel.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/director.cpp

    r518 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/director.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/endgame.cpp

    r533 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <math.h>
  • abuse/trunk/src/extend.cpp

    r512 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/extend.h

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/fakelib.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/fnt6x13.cpp

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/game.cpp

    r554 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <ctype.h>
    1416#include <setjmp.h>
     17#include <unistd.h>
    1518
    1619#ifdef __APPLE__
     
    8285
    8386// Enabled TCPIP driver
     87#if !defined __CELLOS_LV2__
    8488#include "tcpip.h"
    8589tcpip_protocol tcpip;
     90#endif
    8691
    8792FILE *open_FILE(char const *filename, char const *mode)
     
    543548    }
    544549
     550#if !defined __CELLOS_LV2__
    545551    base->current_tick=(current_level->tick_counter()&0xff);
     552#endif
    546553
    547554    current_level->level_loaded_notify();
     
    13971404  calc_light_table(pal);
    13981405
     1406#if !defined __CELLOS_LV2__
    13991407  if(current_level == NULL && net_start())  // if we joined a net game get level from server
    14001408  {
     
    14061414//    load_level(NET_STARTFILE);
    14071415  }
    1408 
     1416#endif
    14091417
    14101418  set_mode(19, argc, argv);
     
    14741482  gamma_correct(pal);
    14751483
     1484#if defined __CELLOS_LV2__
     1485  if(!start_edit)
     1486    do_title();
     1487#else
    14761488  if(main_net_cfg == NULL || (main_net_cfg->state != net_configuration::SERVER &&
    14771489                 main_net_cfg->state != net_configuration::CLIENT))
     
    14841496    start_running = 1;
    14851497  }
     1498#endif
    14861499
    14871500
     
    16791692        if(ev.type != EV_KEY || !key_down(ev.key) || ev.window || (dev & EDIT_MODE))
    16801693        {
     1694#if !defined __CELLOS_LV2__
    16811695            if(ev.type == EV_KEY)
    16821696            {
     
    17161730                }
    17171731            }
     1732#endif
    17181733
    17191734            if((dev & EDIT_MODE) || start_edit || ev.type == EV_MESSAGE)
     
    19301945void net_send(int force = 0)
    19311946{
     1947#if !defined __CELLOS_LV2__
    19321948  if((!(dev & EDIT_MODE)) || force)
    19331949  {
     
    19641980    }
    19651981  }
     1982#endif
    19661983}
    19671984
    19681985void net_receive()
    19691986{
     1987#if !defined __CELLOS_LV2__
    19701988  if(!(dev & EDIT_MODE) && current_level)
    19711989  {
     
    19882006    process_packet_commands(buf, size);
    19892007  }
     2008#endif
    19902009}
    19912010
     
    23562375void game_net_init(int argc, char **argv)
    23572376{
     2377#if !defined __CELLOS_LV2__
    23582378  int nonet=!net_init(argc, argv);
    23592379  if(nonet)
     
    23802400    }
    23812401  }
    2382 
     2402#endif
    23832403}
    23842404
     
    24432463        timer_init();
    24442464
     2465#if !defined __CELLOS_LV2__
    24452466    // look to see if we are supposed to fetch the data elsewhere
    24462467    if (getenv("ABUSE_PATH"))
     
    24502471    if (getenv("ABUSE_SAVE_PATH"))
    24512472        set_save_filename_prefix(getenv("ABUSE_SAVE_PATH"));
     2473#endif
    24522474
    24532475    jrand_init();
     
    24792501        g->get_input(); // prime the net
    24802502
     2503#if !defined __CELLOS_LV2__
    24812504        for (int i = 1; i + 1 < argc; i++)
    24822505        {
     
    25022525            g->update_screen(); // redraw the screen with any changes
    25032526        }
     2527#endif
    25042528
    25052529        while (!g->done())
     
    25362560                demo_man.do_inputs();
    25372561
     2562#if !defined __CELLOS_LV2__
    25382563            service_net_request();
     2564#endif
    25392565
    25402566            // process all the objects in the world
    25412567            g->step();
     2568#if !defined __CELLOS_LV2__
    25422569            server_check();
     2570#endif
    25432571            g->calc_speed();
    25442572
     
    25482576        }
    25492577
     2578#if !defined __CELLOS_LV2__
    25502579        net_uninit();
    25512580
     
    25532582            net_crcs->clean_up();
    25542583        delete net_crcs; net_crcs = NULL;
     2584#endif
    25552585
    25562586        delete chat;
     
    25912621        lisp_uninit();
    25922622
     2623#if !defined __CELLOS_LV2__
    25932624        base->packet.packet_reset();
     2625#endif
    25942626    }
    25952627    while (main_net_cfg && main_net_cfg->restart_state());
  • abuse/trunk/src/game.h

    r541 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/gamma.cpp

    r512 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <math.h>
  • abuse/trunk/src/gamma.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/go.cpp

    r541 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "go.h"
  • abuse/trunk/src/go.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/gui.cpp

    r512 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/gui.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/help.cpp

    r512 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/help.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/id.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/dprint.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <stdlib.h>
  • abuse/trunk/src/imlib/dprint.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/event.h

    r519 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/filesel.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <unistd.h>
     
    5153  if (x<td)
    5254  {
     55#if !defined __CELLOS_LV2__
    5356    if (strcmp(d[x],"."))
    5457    {
     
    7982      draw_first(screen);
    8083    }
     84#endif
    8185  } else
    8286  {
  • abuse/trunk/src/imlib/filesel.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/filter.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/imlib/filter.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/fonts.cpp

    r541 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <ctype.h>
  • abuse/trunk/src/imlib/fonts.h

    r541 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/glview.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <math.h>
  • abuse/trunk/src/imlib/guistat.cpp

    r512 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <string.h>
  • abuse/trunk/src/imlib/guistat.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/image.cpp

    r534 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <math.h>
  • abuse/trunk/src/imlib/image.h

    r526 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/include.cpp

    r523 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/imlib/include.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/input.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <string.h>
  • abuse/trunk/src/imlib/input.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/jdir.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/jrand.cpp

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <time.h>
  • abuse/trunk/src/imlib/jrand.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/jwindow.cpp

    r518 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <string.h>
  • abuse/trunk/src/imlib/jwindow.h

    r534 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/keys.cpp

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <string.h>
  • abuse/trunk/src/imlib/keys.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/linked.cpp

    r535 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <stdio.h>
  • abuse/trunk/src/imlib/linked.h

    r534 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/mouse.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/palette.cpp

    r534 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <math.h>
     
    143145    else
    144146    {
    145       v=(int) ((double)i+(double)(sqrt(63-i)));
     147      v=(int) ((double)i+(double)(sqrt(63.0-i)));
    146148      v<<=2;
    147149    }
  • abuse/trunk/src/imlib/palette.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/pcxread.cpp

    r549 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/imlib/pcxread.h

    r549 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/pmenu.cpp

    r518 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <string.h>
  • abuse/trunk/src/imlib/pmenu.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/scroller.cpp

    r518 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/imlib/scroller.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/specs.cpp

    r548 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <stdio.h>
  • abuse/trunk/src/imlib/specs.h

    r546 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/sprite.cpp

    r534 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <math.h>
  • abuse/trunk/src/imlib/sprite.h

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/status.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <string.h>
  • abuse/trunk/src/imlib/status.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/supmorph.cpp

    r541 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/imlib/supmorph.h

    r541 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/timing.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
     
    1515{
    1616public:
     17#if defined __CELLOS_LV2__
     18    uint64_t ticks;
     19#else
    1720    long seconds;
    1821    long micro_seconds;
     22#endif
    1923    void get_time();
    2024    time_marker();
  • abuse/trunk/src/imlib/tools.cpp

    r512 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/imlib/tools.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/transimage.cpp

    r541 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <cstdio>
  • abuse/trunk/src/imlib/transimage.h

    r541 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/video.cpp

    r534 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <stdlib.h>
  • abuse/trunk/src/imlib/video.h

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/imlib/visobj.cpp

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <string.h>
  • abuse/trunk/src/imlib/visobj.h

    r512 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/innet.cpp

    r545 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <stdio.h>
     
    731733  if (game_face) game_face->game_start_wait();
    732734}
     735
  • abuse/trunk/src/intsect.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <stdlib.h>
  • abuse/trunk/src/intsect.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/isllist.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/items.cpp

    r541 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/items.h

    r541 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/lcache.cpp

    r504 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
     
    1515 */
    1616
    17 #include "config.h"
     17#if defined HAVE_CONFIG_H
     18#   include "config.h"
     19#endif
    1820
    1921#include "lisp.h"
  • abuse/trunk/src/lcache.h

    r500 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/letters.cpp

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/level.cpp

    r527 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#if (defined(__MACH__) || !defined(__APPLE__))
  • abuse/trunk/src/level.h

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/light.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <stdlib.h>
  • abuse/trunk/src/light.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/lisp/lisp.cpp

    r554 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <stdio.h>
  • abuse/trunk/src/lisp/lisp.h

    r504 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/lisp/lisp_gc.cpp

    r554 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <stdlib.h>
  • abuse/trunk/src/lisp/lisp_gc.h

    r554 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/lisp/lisp_opt.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#ifdef NO_LIBS
  • abuse/trunk/src/lisp/lisp_opt.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/lisp/stack.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/lisp/trig.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/loader2.cpp

    r545 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <math.h>
     
    313315#endif
    314316
    315   if (!net_start())              // don't let them specify a startup file we are connect elsewhere
     317#if defined __CELLOS_LV2__
     318  if (1)
     319#else
     320  // don't let them specify a startup file we are connect elsewhere
     321  if (!net_start())
     322#endif
    316323  {
    317324    for (int i=1; i<argc; i++)
     
    328335      }
    329336    }
    330   } else if (!get_remote_lsf(net_server,lsf))
     337  }
     338#if !defined __CELLOS_LV2__
     339  else if (!get_remote_lsf(net_server,lsf))
    331340  {
    332341    dprintf("Unable to get remote lsf from %s\n",net_server);
    333342    exit(0);
    334343  }
     344#endif
    335345  char prog[100];
    336346  char const *cs;
  • abuse/trunk/src/loader2.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
     
    3838
    3939extern int damage_pict,block_pict;
    40 extern ushort current_start_type,start_position_type;
     40extern uint16_t current_start_type,start_position_type;
    4141
    4242
  • abuse/trunk/src/loadgame.cpp

    r538 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <string.h>
  • abuse/trunk/src/loadgame.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/lol/matrix.cpp

    r509 r555  
    1717
    1818#include "lol/matrix.h"
     19
     20using namespace std;
    1921
    2022namespace lol
  • abuse/trunk/src/lol/matrix.h

    r516 r555  
    114114    inline float len() const \
    115115    { \
     116        using namespace std; \
    116117        return sqrtf((float)sqlen()); \
    117118    }
  • abuse/trunk/src/menu.cpp

    r518 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <math.h>
     
    3537#include "scroller.h"
    3638#include "netcfg.h"
    37 #include "sock.h"
    38 
     39
     40#if !defined __CELLOS_LV2__
     41#   include "net/sock.h"
    3942extern net_protocol *prot;
     43#else
     44static int const prot = 0;
     45#endif
    4046
    4147static VolumeWindow *volume_window;
  • abuse/trunk/src/menu.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/morpher.cpp

    r541 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/morpher.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/net/engine.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/net/fileman.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <stdio.h>
  • abuse/trunk/src/net/gclient.cpp

    r512 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <stdio.h>
  • abuse/trunk/src/net/gserver.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <stdio.h>
  • abuse/trunk/src/net/netdrv.cpp

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <stdio.h>
  • abuse/trunk/src/net/netfile.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/net/sock.cpp

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <stdlib.h>
  • abuse/trunk/src/net/tcpip.cpp

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#ifdef _AIX
  • abuse/trunk/src/net/tcpip.h

    r494 r555  
    1 #include "sock.h"
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *  Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
     5 *
     6 *  This software was released into the Public Domain. As with most public
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
     9 */
    210
    311#include <stdlib.h>
    412#include <fcntl.h>
    5 #include <sys/ioctl.h>
    6 #include <sys/stat.h>
     13#if defined HAVE_SYS_IOCTL_H
     14#   include <sys/ioctl.h>
     15#   include <sys/stat.h>
     16#   include <sys/types.h>
     17#include <signal.h>
     18#endif
    719#include <sys/types.h>
    8 #include <signal.h>
    9 #include <sys/types.h>
     20
     21#if defined __APPLE__ && !defined __MACH__
     22#   include "GUSI.h"
     23#elif defined HAVE_NETINET_IN_H
     24#   include <netdb.h>
     25#   include <netinet/in.h>
     26#   include <stdio.h>
     27#   include <string.h>
     28#   include <sys/time.h>
     29#   include <sys/ipc.h>
     30#   include <sys/shm.h>
     31#   include <sys/socket.h>
     32#   include <unistd.h>
     33#   ifdef HAVE_BSTRING_H
     34#       include <bstring.h>
     35#   else
     36#       include <sys/select.h>
     37#   endif
     38#endif
     39
     40#include "sock.h"
    1041#include "isllist.h"
    1142
    12 #if (defined(__APPLE__) && !defined(__MACH__))
    13 #include "GUSI.h"
    14 #else
    15 #include <netdb.h>
    16 #include <netinet/in.h>
    17 #include <stdio.h>
    18 #include <string.h>
    19 #include <sys/time.h>
    20 #include <sys/ipc.h>
    21 #include <sys/shm.h>
    22 #include <sys/socket.h>
    23 #include <unistd.h>
    24 #ifdef HAVE_BSTRING_H
    25 #include <bstring.h>
    26 #else
    27 #include <sys/select.h>
    28 #endif
    29 #endif
    30 
    31 extern fd_set master_set,master_write_set,read_set,exception_set,write_set;
     43extern fd_set master_set, master_write_set, read_set, exception_set, write_set;
    3244
    3345class ip_address : public net_address
  • abuse/trunk/src/net/undrv.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <stdio.h>
  • abuse/trunk/src/netcfg.cpp

    r512 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
     
    1820#include "input.h"
    1921#include "cache.h"
    20 #include "sock.h"
    2122#include "timing.h"
    2223#include "light.h"
     
    2425#include "dev.h"
    2526
     27#if !defined __CELLOS_LV2__
     28#   include "net/sock.h"
     29#endif
     30
    2631extern char *get_login();
    27 net_configuration *main_net_cfg=NULL;
     32net_configuration *main_net_cfg = NULL;
    2833extern char lsf[256];
    2934
     35#if !defined __CELLOS_LV2__
    3036extern net_protocol *prot;
    3137
     
    591597}
    592598
    593 
     599#endif // __CELLOS_LV2__
     600
  • abuse/trunk/src/netcfg.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/netface.h

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/newlight.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <stdlib.h>
  • abuse/trunk/src/nfclient.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#if (defined(__MACH__) || !defined(__APPLE__))
     
    2931
    3032#include "gserver.h"
     33
     34#if !defined __CELLOS_LV2__
    3135
    3236void remove_client(int client_number) { ; }
     
    243247}
    244248
     249#endif
     250
  • abuse/trunk/src/nfclient.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/nfserver.h

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    1111#ifndef __NFSERVER_HPP_
    1212#define __NFSERVER_HPP_
     13
     14#if !defined __CELLOS_LV2__
    1315
    1416#include "specs.h"
     
    5557
    5658#endif
     59#endif
  • abuse/trunk/src/objects.cpp

    r541 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/objects.h

    r541 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/old.nfclient.cpp

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <sys/types.h>
  • abuse/trunk/src/old.nfserver.cpp

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "jnet.h"
  • abuse/trunk/src/old_server.cpp

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <unistd.h>
  • abuse/trunk/src/oldhelp.cpp

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <string.h>
  • abuse/trunk/src/parse.cpp

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <stdio.h>
  • abuse/trunk/src/parse.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/particle.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/particle.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/points.cpp

    r512 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <string.h>
  • abuse/trunk/src/points.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/profile.cpp

    r512 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/profile.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/property.cpp

    r512 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <stdio.h>
  • abuse/trunk/src/property.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/sbar.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/scene.cpp

    r541 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <stdio.h>
  • abuse/trunk/src/scene.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/sdlport/event.cpp

    r524 r555  
    1919 */
    2020
    21 #include "config.h"
     21#if defined HAVE_CONFIG_H
     22#   include "config.h"
     23#endif
    2224
    2325#include <SDL.h>
  • abuse/trunk/src/sdlport/jdir.cpp

    r494 r555  
    1919 */
    2020
    21 #include "config.h"
     21#if defined HAVE_CONFIG_H
     22#   include "config.h"
     23#endif
    2224
    2325#include <stdio.h>
  • abuse/trunk/src/sdlport/jnet.cpp

    r524 r555  
    2121/* FIXME: this file is unused */
    2222
    23 #include "config.h"
     23#if defined HAVE_CONFIG_H
     24#   include "config.h"
     25#endif
    2426
    2527#include <stdio.h>
  • abuse/trunk/src/sdlport/jnet.h

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/sdlport/joy.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/sdlport/joystick.cpp

    r494 r555  
    1919 */
    2020
    21 #include "config.h"
     21#if defined HAVE_CONFIG_H
     22#   include "config.h"
     23#endif
    2224
    2325#include "joy.h"
  • abuse/trunk/src/sdlport/mouse.cpp

    r513 r555  
    1919 */
    2020
    21 #include "config.h"
     21#if defined HAVE_CONFIG_H
     22#   include "config.h"
     23#endif
    2224
    2325#include <SDL.h>
  • abuse/trunk/src/sdlport/setup.cpp

    r540 r555  
    1919 */
    2020
    21 #include "config.h"
     21#if defined HAVE_CONFIG_H
     22#   include "config.h"
     23#endif
    2224
    2325#include <stdio.h>
  • abuse/trunk/src/sdlport/setup.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/sdlport/sound.cpp

    r552 r555  
    1919 */
    2020
    21 #include "config.h"
     21#if defined HAVE_CONFIG_H
     22#   include "config.h"
     23#endif
    2224
    2325#include <cstring>
  • abuse/trunk/src/sdlport/sound.h

    r552 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
     
    1212#define __SOUND_H__
    1313
    14 #include <SDL/SDL_mixer.h>
     14#if !defined __CELLOS_LV2__
     15#   include <SDL/SDL_mixer.h>
     16#endif
    1517
    1618/* options are passed via command line */
     
    3234
    3335private:
     36#if !defined __CELLOS_LV2__
    3437    Mix_Chunk* m_chunk;
     38#endif
    3539};
    3640
     
    3842{
    3943public:
     44#if !defined __CELLOS_LV2__
    4045    char const *name() { return Name; }
     46#endif
    4147    song(char const *filename);
    4248    void play(unsigned char volume=127);
     
    4753
    4854private:
     55#if !defined __CELLOS_LV2__
    4956    char *Name;
    5057    unsigned char *data;
     
    5259    Mix_Music* music;
    5360    SDL_RWops* rw;
     61#endif
    5462};
    5563
  • abuse/trunk/src/sdlport/timing.cpp

    r494 r555  
    1919 */
    2020
    21 #include "config.h"
     21#if defined HAVE_CONFIG_H
     22#   include "config.h"
     23#endif
    2224
    2325#include <stdio.h>
  • abuse/trunk/src/sdlport/video.cpp

    r524 r555  
    1919 */
    2020
    21 #include "config.h"
     21#if defined HAVE_CONFIG_H
     22#   include "config.h"
     23#endif
    2224
    2325#include <SDL.h>
  • abuse/trunk/src/sensor.cpp

    r512 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/seq.cpp

    r527 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/seq.h

    r541 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/server2.cpp

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "server2.h"
     
    2123#include "dev.h"
    2224
    23 extern char const *get_username();
    2425int start_running=0;
    2526
  • abuse/trunk/src/server2.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/smallfnt.cpp

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/smoosh.cpp

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#define PARTICLE_SIZE 2            // 2x2 block of pixels
  • abuse/trunk/src/specache.cpp

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "specache.h"
  • abuse/trunk/src/specache.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/statbar.cpp

    r512 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/status.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <string.h>
  • abuse/trunk/src/tester.cpp

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "items.h"
  • abuse/trunk/src/tool/abuse-tool.cpp

    r550 r555  
    99//
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <cstring>
  • abuse/trunk/src/transp.cpp

    r518 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/transp.h

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
  • abuse/trunk/src/ui/volumewindow.cpp

    r513 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include "common.h"
  • abuse/trunk/src/ui/volumewindow.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    10 
    11 #include "config.h"
    1210
    1311#include "dev.h"
  • abuse/trunk/src/unixnfc.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <sys/types.h>
  • abuse/trunk/src/view.cpp

    r524 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <unistd.h>
     
    182184}
    183185
    184 char cur_user_name[20]={ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
     186static char cur_user_name[20] = { 0 };
    185187
    186188char const *get_login()
    187189{
    188     if(cur_user_name[0])
     190    if (cur_user_name[0])
    189191        return cur_user_name;
    190     else
    191         return(getlogin() ? getlogin() : "unknown");
     192
     193#if defined __CELLOS_LV2__
     194    /* FIXME: retrieve login name */
     195    return "Player";
     196#else
     197    char const *login = getlogin();
     198    return login ? login : "unknown";
     199#endif
    192200}
    193201
    194202void set_login(char const *name)
    195 { strncpy(cur_user_name,name,20); }
     203{
     204    strncpy(cur_user_name, name, 20);
     205}
    196206
    197207view::view(game_object *Focus, view *Next, int number)
     
    384394    }
    385395
     396#if !defined __CELLOS_LV2__
    386397    if( view_changed() )
    387398    {
     
    432443    base->packet.write_uint16((uint16_t)((int16_t)sug_px));
    433444    base->packet.write_uint16((uint16_t)((int16_t)sug_py));
     445#endif
    434446}
    435447
     
    482494int view::process_input(char cmd, uint8_t *&pk)   // return 0 if something went wrong
    483495{
     496#if !defined __CELLOS_LV2__
    484497  switch (cmd)
    485498  {
     
    553566    case SCMD_EXT_KEYRELEASE : set_key_down(*(pk++)+256,0); break;
    554567  }
     568#endif
    555569  return 1;
    556570}
     
    558572int view::local_player()
    559573{
     574#if defined __CELLOS_LV2__
     575  return 1;
     576#else
    560577  return player_number==client_number();
     578#endif
    561579}
    562580
     
    11601178void process_packet_commands(uint8_t *pk, int size)
    11611179{
     1180#if !defined __CELLOS_LV2__
    11621181  int32_t sync_uint16=-1;
    11631182
     
    12591278    }
    12601279  } while (cmd!=SCMD_END_OF_PACKET);
     1280#endif
    12611281}
    12621282
  • abuse/trunk/src/view.h

    r494 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
     
    138138int total_view_vars();
    139139char const *get_view_var_name(int num);
    140 ushort make_sync();
     140uint16_t make_sync();
    141141
    142142#endif
Note: See TracChangeset for help on using the changeset viewer.