Annotation of quake2/null/sys_null.c, revision 1.1.1.2

1.1.1.2 ! root        1: /*
        !             2: Copyright (C) 1997-2001 Id Software, Inc.
        !             3: 
        !             4: This program is free software; you can redistribute it and/or
        !             5: modify it under the terms of the GNU General Public License
        !             6: as published by the Free Software Foundation; either version 2
        !             7: of the License, or (at your option) any later version.
        !             8: 
        !             9: This program is distributed in the hope that it will be useful,
        !            10: but WITHOUT ANY WARRANTY; without even the implied warranty of
        !            11: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
        !            12: 
        !            13: See the GNU General Public License for more details.
        !            14: 
        !            15: You should have received a copy of the GNU General Public License
        !            16: along with this program; if not, write to the Free Software
        !            17: Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
        !            18: 
        !            19: */
1.1       root       20: // sys_null.h -- null system driver to aid porting efforts
                     21: 
                     22: #include "../qcommon/qcommon.h"
                     23: #include "errno.h"
                     24: 
                     25: int    curtime;
                     26: 
                     27: unsigned       sys_frame_time;
                     28: 
                     29: 
                     30: void Sys_mkdir (char *path)
                     31: {
                     32: }
                     33: 
                     34: void Sys_Error (char *error, ...)
                     35: {
                     36:        va_list         argptr;
                     37: 
                     38:        printf ("Sys_Error: "); 
                     39:        va_start (argptr,error);
                     40:        vprintf (error,argptr);
                     41:        va_end (argptr);
                     42:        printf ("\n");
                     43: 
                     44:        exit (1);
                     45: }
                     46: 
                     47: void Sys_Quit (void)
                     48: {
                     49:        exit (0);
                     50: }
                     51: 
                     52: void   Sys_UnloadGame (void)
                     53: {
                     54: }
                     55: 
                     56: void   *Sys_GetGameAPI (void *parms)
                     57: {
                     58:        return NULL;
                     59: }
                     60: 
                     61: char *Sys_ConsoleInput (void)
                     62: {
                     63:        return NULL;
                     64: }
                     65: 
                     66: void   Sys_ConsoleOutput (char *string)
                     67: {
                     68: }
                     69: 
                     70: void Sys_SendKeyEvents (void)
                     71: {
                     72: }
                     73: 
                     74: void Sys_AppActivate (void)
                     75: {
                     76: }
                     77: 
                     78: void Sys_CopyProtect (void)
                     79: {
                     80: }
                     81: 
                     82: char *Sys_GetClipboardData( void )
                     83: {
                     84:        return NULL;
                     85: }
                     86: 
                     87: void   *Hunk_Begin (int maxsize)
                     88: {
                     89:        return NULL;
                     90: }
                     91: 
                     92: void   *Hunk_Alloc (int size)
                     93: {
                     94:        return NULL;
                     95: }
                     96: 
                     97: void   Hunk_Free (void *buf)
                     98: {
                     99: }
                    100: 
                    101: int            Hunk_End (void)
                    102: {
                    103:        return 0;
                    104: }
                    105: 
                    106: int            Sys_Milliseconds (void)
                    107: {
                    108:        return 0;
                    109: }
                    110: 
                    111: void   Sys_Mkdir (char *path)
                    112: {
                    113: }
                    114: 
                    115: char   *Sys_FindFirst (char *path, unsigned musthave, unsigned canthave)
                    116: {
                    117:        return NULL;
                    118: }
                    119: 
                    120: char   *Sys_FindNext (unsigned musthave, unsigned canthave)
                    121: {
                    122:        return NULL;
                    123: }
                    124: 
                    125: void   Sys_FindClose (void)
                    126: {
                    127: }
                    128: 
                    129: void   Sys_Init (void)
                    130: {
                    131: }
                    132: 
                    133: 
                    134: //=============================================================================
                    135: 
                    136: void main (int argc, char **argv)
                    137: {
                    138:        Qcommon_Init (argc, argv);
                    139: 
                    140:        while (1)
                    141:        {
                    142:                Qcommon_Frame (0.1);
                    143:        }
                    144: }
                    145: 
                    146: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.