Branch: Tag:

2001-01-08

2001-01-08 15:59:38 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Minor optimization.

Rev: lib/modules/Tools.pmod/AutoDoc.pmod/CExtractor.pmod:1.2
Rev: lib/modules/Tools.pmod/AutoDoc.pmod/module.pmod:1.2

1:   // This module contains utility functions for XML creation and   // some other useful stuff common to all the modules.    - static constant DOC_COMMENT= "//!"; + static constant DOC_COMMENT = "//!";      static int isDigit(int c) { return '0' <= c && c <= '9'; }      static int isDocComment(string s) { -  return (strlen(s) >= 3 && s[0..2] == DOC_COMMENT); +  return has_prefix(s, DOC_COMMENT);   }      //FIXME: should it return 0 for keywords ??