Changeset 17704


Ignore:
Timestamp:
09/29/11 12:45:35 (20 months ago)
Author:
BrainSlayer
Message:

remove offset since its redunant and calculatable by len

Location:
tools
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • tools/ej.h

    r3570 r17704  
    2121/********************************* Includes ***********************************/ 
    2222 
    23 #ifndef UEMF 
    24         #include        "basic/basic.h" 
    25         #include        "emf/emf.h" 
    26 #else 
    2723        #include        "uemf.h" 
    28 #endif 
    2924 
    3025/********************************** Defines ***********************************/ 
  • tools/ejIntrn.h

    r3570 r17704  
    2525#include        <stdlib.h> 
    2626 
    27 #ifdef CE 
    28 #ifndef UEMF 
    29         #include        <io.h> 
    30 #endif 
    31 #endif 
    32  
    33 #ifdef LYNX 
    34         #include        <unistd.h> 
    35 #endif 
    36  
    37 #ifdef QNX4 
    38         #include        <dirent.h> 
    39 #endif 
    40  
    41 #ifdef UEMF 
    4227        #include        "uemf.h" 
    43 #else 
    44         #include        <param.h> 
    45         #include        <stat.h> 
    46         #include        "basic/basicInternal.h" 
    47         #include        "emf/emfInternal.h" 
    48 #endif 
    4928 
    5029#include                "ej.h" 
  • tools/uemf.h

    r3570 r17704  
    2020/******************************* Per O/S Includes *****************************/ 
    2121 
    22 #ifdef WIN 
    23         #include        <direct.h> 
    24         #include        <io.h> 
    25         #include        <sys/stat.h> 
    26         #include        <limits.h> 
    27         #include        <tchar.h> 
    28         #include        <windows.h> 
    29         #include        <winnls.h> 
    30         #include        <time.h> 
    31         #include        <sys/types.h> 
    3222        #include        <stdio.h> 
    33         #include        <stdlib.h> 
    34         #include        <fcntl.h> 
    35         #include        <errno.h> 
    36 #endif /* WIN */ 
    37  
    38 #ifdef CE 
    39         #include        <errno.h> 
    40         #include        <limits.h> 
    41         #include        <tchar.h> 
    42         #include        <windows.h> 
    43         #include        <winsock.h> 
    44         #include        <winnls.h> 
    45         #include        "CE/wincompat.h" 
    46         #include        <winsock.h> 
    47 #endif /* CE */ 
    48  
    49 #ifdef NW 
    50         #include        <direct.h> 
    51         #include        <io.h> 
    52         #include        <sys/stat.h> 
    53         #include        <time.h> 
    54         #include        <sys/types.h> 
    55         #include        <stdio.h> 
    56         #include        <stdlib.h> 
    57         #include        <fcntl.h> 
    58         #include        <errno.h> 
    59         #include        <niterror.h> 
    60         #define         EINTR EINUSE 
    61         #define          WEBS   1 
    62         #include        <limits.h> 
    63         #include        <netdb.h> 
    64         #include        <process.h> 
    65         #include        <tiuser.h> 
    66         #include        <sys/time.h> 
    67         #include        <arpa/inet.h> 
    68         #include        <sys/types.h> 
    69         #include        <sys/socket.h> 
    70         #include        <sys/filio.h> 
    71         #include        <netinet/in.h> 
    72 #endif /* NW */ 
    73  
    74 #ifdef SCOV5  
    75         #include        <sys/types.h> 
    76         #include        <stdio.h> 
    77         #include        "sys/socket.h" 
    78         #include        "sys/select.h" 
    79         #include        "netinet/in.h" 
    80         #include        "arpa/inet.h" 
    81         #include        "netdb.h" 
    82 #endif /* SCOV5 */ 
    83  
    84 #ifdef UNIX 
    85         #include        <stdio.h> 
    86 #endif /* UNIX */ 
    87  
    88 #if LINUX || __rtems__ 
    8923        #include        <sys/types.h> 
    9024        #include        <sys/stat.h> 
     
    10236        #include        <fcntl.h> 
    10337        #include        <errno.h> 
    104 #endif /* LINUX */ 
    105  
    106 #ifdef LYNX 
    107         #include        <limits.h> 
    108         #include        <stdarg.h> 
    109         #include        <stdio.h> 
    110         #include        <stdlib.h> 
    111         #include        <unistd.h> 
    112         #include        <socket.h> 
    113         #include        <netinet/in.h> 
    114         #include        <arpa/inet.h> 
    115         #include        <netdb.h> 
    116         #include        <time.h> 
    117         #include        <fcntl.h> 
    118         #include        <errno.h> 
    119 #endif /* LYNX */ 
    120  
    121 #ifdef MACOSX 
    122         #include        <sys/stat.h> 
    123         #include        <stdio.h> 
    124         #include        <stdlib.h> 
    125         #include        <unistd.h> 
    126         #include        <sys/socket.h> 
    127         #include        <netinet/in.h> 
    128         #include        <arpa/inet.h> 
    129         #include        <netdb.h> 
    130         #include        <fcntl.h> 
    131         #include        <errno.h> 
    132 #endif /* MACOSX */ 
    133  
    134 #ifdef UW 
    135         #include        <stdio.h> 
    136 #endif /* UW */ 
    137  
    138 #ifdef VXWORKS 
    139         #include        <vxWorks.h> 
    140         #include        <sockLib.h> 
    141         #include        <selectLib.h> 
    142         #include        <inetLib.h> 
    143         #include        <ioLib.h> 
    144         #include        <stdio.h> 
    145         #include        <stat.h> 
    146         #include        <time.h> 
    147         #include        <usrLib.h> 
    148         #include        <fcntl.h> 
    149         #include        <errno.h> 
    150 #endif /* VXWORKS */ 
    151  
    152 #ifdef SOLARIS 
    153         #include        <sys/types.h> 
    154         #include        <limits.h> 
    155         #include        <stdio.h> 
    156         #include        <stdlib.h> 
    157         #include        <unistd.h> 
    158         #include        <socket.h> 
    159         #include        <sys/select.h> 
    160         #include        <netinet/in.h> 
    161         #include        <arpa/inet.h> 
    162         #include        <netdb.h> 
    163         #include        <time.h> 
    164         #include        <fcntl.h> 
    165         #include        <errno.h> 
    166 #endif /* SOLARIS */ 
    167  
    168 #ifdef QNX4 
    169         #include        <sys/types.h> 
    170         #include        <stdio.h> 
    171         #include        <sys/socket.h> 
    172         #include        <sys/select.h> 
    173         #include        <netinet/in.h> 
    174         #include        <arpa/inet.h> 
    175         #include        <netdb.h> 
    176     #include    <stdlib.h> 
    177     #include    <unistd.h> 
    178     #include    <sys/uio.h> 
    179     #include    <sys/wait.h> 
    180 #endif /* QNX4 */ 
    181  
    182 #ifdef ECOS 
    183         #include        <limits.h> 
    184         #include        <cyg/infra/cyg_type.h> 
    185         #include        <cyg/kernel/kapi.h> 
    186         #include        <time.h> 
    187         #include        <network.h> 
    188         #include        <errno.h> 
    189 #endif /* ECOS */ 
    19038 
    19139/********************************** Includes **********************************/ 
     
    19543#include        <string.h> 
    19644 
    197 #ifndef WEBS 
    198 #include        "messages.h" 
    199 #endif /* ! WEBS */ 
    20045 
    20146/******************************* Per O/S Defines *****************************/ 
     
    20954#endif /* UW */ 
    21055 
    211 #if (defined (SCOV5) || defined (VXWORKS) || defined (LINUX) || defined (LYNX) || defined (MACOSX) || defined (__rtems__)) 
    21256#ifndef O_BINARY 
    21357#define O_BINARY                0 
    214 #endif /* O_BINARY */ 
    21558#define SOCKET_ERROR    -1 
    21659#endif /* SCOV5 || VXWORKS || LINUX || LYNX || MACOSX */ 
  • tools/webcomp.c

    r7023 r17704  
    2121/********************************* Includes ***********************************/ 
    2222 
     23#include <fcntl.h> 
    2324#include        "wsIntrn.h" 
    2425 
     
    103104                gctime(&now)); 
    104105//      fprintf(stdout, "#include \"wsIntrn.h\"\n\n"); 
     106 
    105107        fprintf(stdout, "#ifndef WEBS_PAGE_ROM\n"); 
    106108        fprintf(stdout, "websRomPageIndexType websRomPageIndex[] = {\n"); 
    107         fprintf(stdout, "    { 0, 0, 0 },\n};\n"); 
     109        fprintf(stdout, "    { 0, 0 },\n};\n"); 
    108110        fprintf(stdout, "#else\n"); 
    109111 
     
    157159 *      Now output the page index 
    158160 */ 
    159         fprintf(stdout, "websRomPageIndexType websRomPageIndex[] = {\n"); 
     161        fprintf(stdout, "const websRomPageIndexType websRomPageIndex[] = {\n"); 
    160162 
    161163        if ((lp = fopen(fileList, "r")) == NULL) { 
     
    203205                }*/ 
    204206                 
    205                 fprintf(stdout, "    { \"%s\", %ld, %d },\n", cp, offset,  
     207                fprintf(stdout, "    { \"%s\", %d },\n", cp,  
    206208                        sbuf.st_size); 
    207209                offset+=sbuf.st_size; 
     
    210212        fclose(lp);  
    211213         
    212         fprintf(stdout, "    { 0, 0, 0 },\n"); 
     214        fprintf(stdout, "    { 0, 0 },\n"); 
    213215        fprintf(stdout, "};\n"); 
    214216        fprintf(stdout, "#endif /* WEBS_PAGE_ROM */\n"); 
  • tools/wsIntrn.h

    r3570 r17704  
    4949#include        <stdarg.h> 
    5050 
    51 #ifdef NETWARE 
    52         #include        <fcntl.h> 
    53         #include        <sys/stat.h> 
    54         #include        <signal.h> 
    55         #include        <io.h> 
    56 #endif 
    57  
    58 #ifdef WIN 
    59         #include        <fcntl.h> 
    60         #include        <sys/stat.h> 
    61         #include        <io.h> 
    62 #endif 
    63  
    64 #ifdef CE 
    65 #ifndef UEMF 
    66         #include        <io.h> 
    67 #endif 
    68 #endif 
    69  
    70 #ifdef NW 
    71         #include        <fcntl.h> 
    72         #include        <sys/stat.h> 
    73 #endif 
    74  
    75 #ifdef SCOV5 
    7651        #include        <fcntl.h> 
    7752        #include        <sys/stat.h> 
    7853        #include        <signal.h> 
    7954        #include        <unistd.h> 
    80 #endif 
    81  
    82 #ifdef LYNX 
    83         #include        <fcntl.h> 
    84         #include        <sys/stat.h> 
    85         #include        <signal.h> 
    86         #include        <unistd.h> 
    87 #endif 
    88  
    89 #ifdef UNIX 
    90         #include        <fcntl.h> 
    91         #include        <sys/stat.h> 
    92         #include        <signal.h> 
    93         #include        <unistd.h> 
    94 #endif 
    95  
    96 #ifdef QNX4 
    97         #include        <fcntl.h> 
    98         #include        <sys/stat.h> 
    99         #include        <signal.h> 
    100         #include        <unistd.h> 
    101         #include        <unix.h> 
    102 #endif 
    103  
    104 #ifdef UW 
    105         #include        <fcntl.h> 
    106         #include        <sys/stat.h> 
    107 #endif 
    108  
    109 #ifdef VXWORKS 
    110         #include        <vxWorks.h> 
    111         #include        <fcntl.h> 
    112         #include        <sys/stat.h> 
    113 #endif 
    114  
    115 #ifdef SOLARIS 
    116         #include        <macros.h> 
    117         #include        <fcntl.h> 
    118         #include        <sys/stat.h> 
    119 #endif 
    120  
    121 #ifdef UEMF 
    12255        #include        "uemf.h" 
    12356        #include        "ejIntrn.h" 
    124 #else 
    125         #include        "emf/emfInternal.h" 
    126         #include        "ej/ejIntrn.h" 
    127 #endif 
    12857 
    12958#include        "webs.h" 
Note: See TracChangeset for help on using the changeset viewer.