PennMUSH Community

Changeset 836

Show
Ignore:
Timestamp:
05/09/07 11:21:35 (2 years ago)
Author:
shawnw
Message:

expr: Warning fixes in lmath.gperf

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.3/branches/experimental/hdrs/externs.h

    r803 r836  
    66 * 
    77 */ 
    8  
    98 
    109#ifndef __EXTERNS_H 
  • 1.8.3/branches/experimental/src/access.c

    r790 r836  
    8787#include "flags.h" 
    8888#include "confmagic.h" 
    89  
    9089 
    9190/** An access flag. */ 
  • 1.8.3/branches/experimental/src/lmath.c

    r835 r836  
    1 /* ANSI-C code produced by gperf version 3.0.1 */ 
     1/* ANSI-C code produced by gperf version 3.0.3 */ 
    22/* Command-line: gperf --output-file lmath.c lmath.gperf  */ 
    33/* Computed positions: -k'1-2' */ 
     
    3030#endif 
    3131 
    32 #line 11 "lmath.gperf" 
     32#line 12 "lmath.gperf" 
    3333 
    3434/** Declaration macro for math functions */ 
     
    6262 
    6363/** A math function. */ 
    64 #line 43 "lmath.gperf" 
     64#line 44 "lmath.gperf" 
    6565struct math { 
    6666  const char *name; /**< Name of the function. */ 
     
    158158#ifdef __GNUC__ 
    159159__inline 
     160#ifdef __GNUC_STDC_INLINE__ 
     161__attribute__ ((__gnu_inline__)) 
     162#endif 
    160163#endif 
    161164struct math * 
     
    180183  static struct math wordlist[] = 
    181184    { 
    182       {""}, {""}, 
     185      {"",NULL}, {"",NULL}, 
     186#line 62 "lmath.gperf" 
     187      {"OR", math_or}, 
     188#line 63 "lmath.gperf" 
     189      {"NOR", math_nor}, 
     190      {"",NULL}, {"",NULL}, {"",NULL}, {"",NULL}, 
     191#line 60 "lmath.gperf" 
     192      {"AND", math_and}, 
    183193#line 61 "lmath.gperf" 
    184       {"OR", math_or}, 
    185 #line 62 "lmath.gperf" 
    186       {"NOR", math_nor}, 
    187       {""}, {""}, {""}, {""}, 
     194      {"NAND", math_nand}, 
     195      {"",NULL}, 
     196#line 53 "lmath.gperf" 
     197      {"FLOORDIV", math_floordiv}, 
     198      {"",NULL}, 
     199#line 54 "lmath.gperf" 
     200      {"MOD", math_modulo}, 
     201#line 57 "lmath.gperf" 
     202      {"REMAINDER", math_remainder}, 
     203      {"",NULL}, 
     204#line 55 "lmath.gperf" 
     205      {"MODULO", math_modulo}, 
     206#line 56 "lmath.gperf" 
     207      {"MODULUS", math_modulo}, 
    188208#line 59 "lmath.gperf" 
    189       {"AND", math_and}, 
    190 #line 60 "lmath.gperf" 
    191       {"NAND", math_nand}, 
    192       {""}, 
     209      {"MAX", math_max}, 
     210#line 69 "lmath.gperf" 
     211      {"MEAN", math_mean}, 
     212      {"",NULL}, 
     213#line 70 "lmath.gperf" 
     214      {"MEDIAN", math_median}, 
     215      {"",NULL}, 
     216#line 66 "lmath.gperf" 
     217      {"BOR", math_bor}, 
     218      {"",NULL}, {"",NULL}, 
     219#line 71 "lmath.gperf" 
     220      {"STDDEV", math_stddev}, 
     221      {"",NULL}, 
     222#line 64 "lmath.gperf" 
     223      {"XOR", math_xor}, 
     224#line 65 "lmath.gperf" 
     225      {"BAND", math_band}, 
     226      {"",NULL}, {"",NULL}, {"",NULL}, 
     227#line 58 "lmath.gperf" 
     228      {"MIN", math_min}, 
     229#line 68 "lmath.gperf" 
     230      {"FDIV", math_fdiv}, 
     231      {"",NULL}, {"",NULL}, {"",NULL}, 
     232#line 49 "lmath.gperf" 
     233      {"ADD", math_add}, 
     234      {"",NULL}, {"",NULL}, {"",NULL}, {"",NULL}, 
     235#line 51 "lmath.gperf" 
     236      {"MUL", math_mul}, 
     237      {"",NULL}, {"",NULL}, {"",NULL}, {"",NULL}, 
     238#line 50 "lmath.gperf" 
     239      {"SUB", math_sub}, 
     240#line 67 "lmath.gperf" 
     241      {"BXOR", math_bxor}, 
     242      {"",NULL}, {"",NULL}, {"",NULL}, 
    193243#line 52 "lmath.gperf" 
    194       {"FLOORDIV", math_floordiv}, 
    195       {""}, 
    196 #line 53 "lmath.gperf" 
    197       {"MOD", math_modulo}, 
    198 #line 56 "lmath.gperf" 
    199       {"REMAINDER", math_remainder}, 
    200       {""}, 
    201 #line 54 "lmath.gperf" 
    202       {"MODULO", math_modulo}, 
    203 #line 55 "lmath.gperf" 
    204       {"MODULUS", math_modulo}, 
    205 #line 58 "lmath.gperf" 
    206       {"MAX", math_max}, 
    207 #line 68 "lmath.gperf" 
    208       {"MEAN", math_mean}, 
    209       {""}, 
    210 #line 69 "lmath.gperf" 
    211       {"MEDIAN", math_median}, 
    212       {""}, 
    213 #line 65 "lmath.gperf" 
    214       {"BOR", math_bor}, 
    215       {""}, {""}, 
    216 #line 70 "lmath.gperf" 
    217       {"STDDEV", math_stddev}, 
    218       {""}, 
    219 #line 63 "lmath.gperf" 
    220       {"XOR", math_xor}, 
    221 #line 64 "lmath.gperf" 
    222       {"BAND", math_band}, 
    223       {""}, {""}, {""}, 
    224 #line 57 "lmath.gperf" 
    225       {"MIN", math_min}, 
    226 #line 67 "lmath.gperf" 
    227       {"FDIV", math_fdiv}, 
    228       {""}, {""}, {""}, 
    229 #line 48 "lmath.gperf" 
    230       {"ADD", math_add}, 
    231       {""}, {""}, {""}, {""}, 
    232 #line 50 "lmath.gperf" 
    233       {"MUL", math_mul}, 
    234       {""}, {""}, {""}, {""}, 
    235 #line 49 "lmath.gperf" 
    236       {"SUB", math_sub}, 
    237 #line 66 "lmath.gperf" 
    238       {"BXOR", math_bxor}, 
    239       {""}, {""}, {""}, 
    240 #line 51 "lmath.gperf" 
    241244      {"DIV", math_div} 
    242245    }; 
     
    257260  return 0; 
    258261} 
    259 #line 71 "lmath.gperf" 
     262#line 72 "lmath.gperf" 
    260263 
    261264 
  • 1.8.3/branches/experimental/src/lmath.gperf

    r835 r836  
    33%define hash-function-name math_hash 
    44%define lookup-function-name math_hash_lookup 
    5 /* %readonly-tables */ 
    65%enum  
    76%compare-lengths 
    87%ignore-case 
    98%struct-type 
     9%define initializer-suffix ,NULL 
    1010 
    1111%{ 
  • 1.8.3/branches/experimental/src/markup.c

    r832 r836  
    7474 compare_starts(const void *a, const void *b); 
    7575 
    76 /* Functions in htmltab.c (Generated by gperf) */ 
    77 static unsigned int htmltag_hash(const char *s, unsigned int len); 
    78 static const char *is_allowed_tag(const char *tag, unsigned int len); 
     76const char *is_allowed_tag(const char *s, unsigned int len); 
     77 
    7978 
    8079/* ARGSUSED */ 
     
    165164  } 
    166165} 
     166 
     167/* File generated by gperf */ 
     168#include "htmltab.c" 
    167169 
    168170/* ARGSUSED */ 
     
    20902092} 
    20912093 
    2092 /* File generated by gperf */ 
    2093 #include "htmltab.c"