1. 15 May, 2000 1 commit
    • Martin Mareš's avatar
      Cleanup of configuration. · e3f2d5fc
      Martin Mareš authored
      o  Use `expr' instead of `NUM' and `ipa' instead of `IPA',
         so that defined symbols work everywhere.
      o  `define' now accepts both numbers and IP addresses.
      o  Renamed `ipa' in filters to `fipa'.
      
      Pavel, please update filters to accept define'd symbols as well.
      e3f2d5fc
  2. 12 Mar, 2000 1 commit
  3. 07 Mar, 2000 1 commit
  4. 19 Jan, 2000 1 commit
  5. 17 Jan, 2000 1 commit
    • Martin Mareš's avatar
      Separated `official protocol names' used in status dumps from name templates · d272fe22
      Martin Mareš authored
      used for automatic generation of instance names.
      
      	protocol->name is the official name
      	protocol->template is the name template (usually "name%d"),
      		should be all lowercase.
      
      Updated all protocols to define the templates, checked that their configuration
      grammar includes proto_name which generates the name and interns it in the
      symbol table.
      d272fe22
  6. 16 Jan, 2000 2 commits
  7. 06 Dec, 1999 1 commit
  8. 30 Nov, 1999 1 commit
  9. 15 Nov, 1999 1 commit
  10. 04 Nov, 1999 2 commits
  11. 31 Oct, 1999 1 commit
    • Martin Mareš's avatar
      Parse CLI commands. We use the same parser as for configuration files (because · bc2fb680
      Martin Mareš authored
      we want to allow filter and similar complex constructs to be used in commands
      and we should avoid code duplication), only with CLI_MARKER token prepended
      before the whole input.
      
      Defined macro CF_CLI(cmd, args, help) for defining CLI commands in .Y files.
      The first argument specifies the command itself, the remaining two arguments
      are copied to the help file (er, will be copied after the help file starts
      to exist). This macro automatically creates a skeleton rule for the command,
      you only need to append arguments as in:
      
      	CF_CLI(STEAL MONEY, <$>, [[Steal <$> US dollars or equivalent in any other currency]]): NUM {
      		cli_msg(0, "%d$ stolen", $3);
      	} ;
      
      Also don't forget to reset lexer state between inputs.
      bc2fb680
  12. 01 Jul, 1999 1 commit
  13. 17 May, 1999 1 commit
    • Martin Mareš's avatar
      Implemented two new symbol handling functions: · 4107df1d
      Martin Mareš authored
        o  cf_define_symbol() -- it assigns a meaning to a symbol, bailing
           out if it already has one.
        o  cf_find_symbol() -- finds symbol by name and creates it if not found.
      
      Also modified filter/config.Y to make use of the first function.
      4107df1d
  14. 29 Mar, 1999 1 commit
  15. 26 Mar, 1999 1 commit
  16. 13 Feb, 1999 1 commit
  17. 05 Feb, 1999 1 commit
  18. 15 Jan, 1999 1 commit
  19. 07 Dec, 1998 1 commit
  20. 06 Dec, 1998 1 commit
    • Martin Mareš's avatar
      Name cleanups as suggested by Pavel: · b35d72ac
      Martin Mareš authored
      - cfg_strcpy() -> cfg_strdup()
      - mempool -> linpool, mp_* -> lp_*  [to avoid confusion with memblock, mb_*]
      
      Anyway, it might be better to stop ranting about names and do some *real* work.
      b35d72ac
  21. 29 Nov, 1998 1 commit
    • Martin Mareš's avatar
      Created new functions for allocating configuration data: · 49e4a4d1
      Martin Mareš authored
         o  cfg_alloc(size) -- generic memory allocation
         o  cfg_allocu(size) -- unaligned memory allocation
         o  cfg_allocz(size) -- zeroed memory allocation
         o  cfg_strcpy(str) -- allocate a copy of a string
      
      Also fixed a bug in lexing of string literals.
      49e4a4d1
  22. 27 Nov, 1998 3 commits