This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 396 for ps


Ignore:
Timestamp:
06/04/04 14:41:53 (21 years ago)
Author:
janwas
Message:

(re)added headers so it'll work without HAVE_PCH

Location:
ps/trunk/source/lib
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/lib/adts.h

    r221 r396  
    22#define ADTS_H__
    33
    4 #include "precompiled.h"
    5 
    64#include "lib.h"
    75
    8 
    96#include <cassert>
    107
     8#include <list>
     9#include <map>
    1110
    1211
  • ps/trunk/source/lib/config.h

    r347 r396  
    2121#undef HAVE_X
    2222
     23#undef HAVE_PCH
     24
    2325#undef CONFIG_DISABLE_EXCEPTIONS
    2426
     
    3032#ifdef _MSC_VER
    3133# define HAVE_ASM
     34//# define HAVE_PCH
    3235#endif
    3336
  • ps/trunk/source/lib/input.cpp

    r221 r396  
    2222
    2323#include "input.h"
     24
     25#include <stdio.h>
     26#include <stdlib.h>
    2427
    2528
  • ps/trunk/source/lib/lib.cpp

    r372 r396  
    2121
    2222#include "sdl.h"    // endian functions
     23
     24#include <assert.h>
    2325
    2426
  • ps/trunk/source/lib/ogl.cpp

    r266 r396  
    55#include "ogl.h"
    66#include "detect.h"
     7
     8#include <assert.h>
     9#include <stdio.h>
     10#include <string.h>
    711
    812#ifdef _MSC_VER
  • ps/trunk/source/lib/precompiled.h

    r353 r396  
     1// if precompiled headers are supported, include all headers we'd ever need
     2// that don't often change. if not supported, include nothing (would actually
     3// slow down the build, since unnecessary headers would be included).
     4// hence, all files include precompiled.h and then all the headers they'd
     5// normally lead => best build performance with or without PCH.
     6
     7#include "config.h"
     8
     9#ifdef _MSC_VER
     10#pragma warning(disable:4996)   // function is deprecated
     11#pragma warning(disable:4786)   // identifier truncated to 255 chars
     12#endif
     13
     14#ifdef HAVE_PCH
     15
    116#include <string.h>
    217#include <stdlib.h>
     
    2237#include <numeric>
    2338
    24 #ifdef _MSC_VER
    25 #pragma warning(disable:4996)   // function is deprecated
    26 #pragma warning(disable:4786)   // identifier truncated to 255 chars
    2739#endif
    2840
    29 #include "config.h"
     41
     42
  • ps/trunk/source/lib/res/file.cpp

    r387 r396  
    2727#include "adts.h"
    2828
     29#include <vector>
     30#include <algorithm>
    2931
    3032// block := power-of-two sized chunk of a file.
  • ps/trunk/source/lib/res/font.cpp

    r334 r396  
    2424#include "res.h"
    2525#include "ogl.h"
     26
     27#include <string.h>
     28#include <stdio.h>
    2629
    2730/*
  • ps/trunk/source/lib/res/h_mgr.cpp

    r334 r396  
    2323#include "mem.h"
    2424
    25 // TODO: h_find - required for caching
    26 
    27 
    28 
    29 
    30 
     25#include <assert.h>
     26#include <limits.h> // CHAR_BIT
     27#include <string.h>
     28#include <stdlib.h>
    3129
    3230
  • ps/trunk/source/lib/res/mem.cpp

    r353 r396  
    77#include "h_mgr.h"
    88
     9#include <stdlib.h>
     10#include <assert.h>
     11
     12#include <map>
    913
    1014//////////////////////////////////////////////////////////////////////////////
  • ps/trunk/source/lib/res/tex.cpp

    r361 r396  
    2424#include "res.h"
    2525#include "ogl.h"
     26
     27#include <math.h>
     28#include <stdlib.h>
     29#include <assert.h>
    2630
    2731
  • ps/trunk/source/lib/res/vfs.cpp

    r392 r396  
    2323#include "res.h"
    2424#include "adts.h"
     25
     26#include <string.h>
     27
     28#include <map>
     29#include <list>
     30#include <vector>
     31#include <string>
     32#include <algorithm>
    2533
    2634
  • ps/trunk/source/lib/res/zip.cpp

    r386 r396  
    2121#include "lib.h"
    2222#include "res.h"
     23
     24#include <assert.h>
    2325
    2426// provision for removing all ZLib code (all inflate calls will fail).
  • ps/trunk/source/lib/sysdep/ia32.cpp

    r393 r396  
    2929#include "win/wtime.h"
    3030#endif
     31
     32#include <assert.h>
     33#include <string.h>
     34#include <stdio.h>
     35
     36#include <vector>
     37#include <algorithm>
    3138
    3239
  • ps/trunk/source/lib/sysdep/win/waio.cpp

    r334 r396  
    1919#include "precompiled.h"
    2020
    21 #include <io.h>
    22 
    2321#include "lib.h"
    2422#include "win_internal.h"
     23
     24#include <io.h>
     25
     26#include <assert.h>
     27#include <stdlib.h>
    2528
    2629
  • ps/trunk/source/lib/sysdep/win/wdetect.cpp

    r334 r396  
    2323
    2424#include "win_internal.h"
     25
     26#include <assert.h>
     27#include <stdio.h>
     28#include <stdlib.h>
    2529
    2630#ifdef _MSC_VER
  • ps/trunk/source/lib/sysdep/win/win.cpp

    r378 r396  
    2222
    2323#include <crtdbg.h> // malloc debug
     24
     25#include <assert.h>
     26#include <stdio.h>
     27#include <stdlib.h> // __argc
    2428#include <malloc.h>
    25 
    2629
    2730//
  • ps/trunk/source/lib/sysdep/win/wposix.cpp

    r393 r396  
    2121#include "precompiled.h"
    2222
    23 #include <process.h>
    24 
    2523#include "lib.h"
    2624#include "win_internal.h"
     25
     26#include <process.h>
     27
     28#include <assert.h>
     29#include <stdio.h>
     30#include <stdlib.h>
    2731
    2832
  • ps/trunk/source/lib/sysdep/win/wsdl.cpp

    r334 r396  
    3535#include <SDL_vkeys.h>
    3636
     37#include <assert.h>
     38#include <stdio.h>
     39#include <math.h>
     40
    3741#ifdef _MSC_VER
    3842#pragma comment(lib, "user32.lib")
     
    244248
    245249            ev->type = SDL_KEYDOWN;
    246             ev->key.keysym.sym = (SDLKey)translated_keysym;
     250            //ev->key.keysym.sym = (SDLKey)translated_keysym;
     251            ev->key.keysym.sym = (SDLKey)((c < 256)? c : 0);
    247252            ev->key.keysym.unicode = c;
    248253            return 1;
     
    278283                // Translation complete: Produce one or more Unicode chars
    279284                char_buf[num_chars]=0;
    280                 translated_keysym=vkmap(vk);
     285                ///translated_keysym=vkmap(vk);
    281286                //wprintf(L"ToUnicode: Translated %02x to [%s], %d chars, SDLK %02x. Extended flag %d, scancode %d\n", vk, char_buf, num_chars, translated_keysym, msg.lParam & 0x01000000, scancode);
    282                 //fflush(stdout);
    283287                goto return_char;
    284288            }
     
    287291                // Dead Key: Don't produce an event for this one
    288292                //printf("ToUnicode: Dead Key %02x [%c] [%c] SDLK %02x\n", vk, vk, char_buf[0], vkmap(vk));
    289                 //fflush(stdout);
    290293                num_chars = 0;
    291294                break;
     
    302305
    303306            //printf("ToUnicode: No translation for %02x, extended flag %d, scancode %d, SDLK %02x [%c]\n", vk, msg.lParam & 0x01000000, scancode, ev->key.keysym.sym, ev->key.keysym.sym);
    304             //fflush(stdout);
    305307
    306308            return 1;
  • ps/trunk/source/lib/sysdep/win/wsock.cpp

    r390 r396  
    2222#include "wsock.h"
    2323
     24#include <assert.h>
     25
     26#ifdef _MSC_VER
    2427#pragma comment(lib, "ws2_32.lib")
     28#endif
    2529
    2630
  • ps/trunk/source/lib/sysdep/win/wtime.cpp

    r389 r396  
    2424
    2525#include "win_internal.h"
     26
     27#include <math.h>
     28
     29#include <algorithm>
     30#include <numeric>
     31
    2632
    2733// we no longer use TGT, due to issues on Win9x; GTC is just as good.
  • ps/trunk/source/lib/timer.cpp

    r392 r396  
    2121#include "timer.h"
    2222
     23#include <math.h>
    2324
    2425// wrapper over gettimeofday, instead of emulating it for Windows,
Note: See TracChangeset for help on using the changeset viewer.