2N/A * GRUB -- GRand Unified Bootloader 2N/A * Copyright (C) 2005,2007,2009 Free Software Foundation, Inc. 2N/A * GRUB is free software: you can redistribute it and/or modify 2N/A * it under the terms of the GNU General Public License as published by 2N/A * the Free Software Foundation, either version 3 of the License, or 2N/A * (at your option) any later version. 2N/A * GRUB is distributed in the hope that it will be useful, 2N/A * but WITHOUT ANY WARRANTY; without even the implied warranty of 2N/A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2N/A * GNU General Public License for more details. 2N/A * You should have received a copy of the GNU General Public License 2N/A/* A simple implementation for signed numbers. */ 2N/A/* Parse a test expression starting from *argn. */ 2N/A /* Take care of discarding and inverting. */ 2N/A /* Check if file exists and fetch its information. */ 2N/A /* A hook for iterating directories. */ 2N/A /* Remove trailing '/'. */ 2N/A /* Split into path and filename. */ 2N/A /* It's the whole device. */ 2N/A /* Root is always a directory. */ 2N/A /* Fetch writing time. */ 2N/A /* Here we have the real parsing. */ 2N/A /* First try 3 argument tests. */ 2N/A /* GRUB extension: lexicographical sorting. */ 2N/A /* GRUB extension: compare numbers skipping prefixes. 2N/A Useful for comparing versions. E.g. vmlinuz-2 -plt vmlinuz-11. */ 2N/A /* Skip common prefix. */ 2N/A /* Go the digits back. */ 2N/A /* -nt and -ot tests. GRUB extension: when doing -?t<bias> bias 2N/A will be added to the first mtime. */ 2N/A /* Fetch fileinfo. */ 2N/A /* Two-argument tests. */ 2N/A /* FIXME: check for other types. */ 2N/A /* Special modifiers. */ 2N/A /* End of expression. return to parent. */ 2N/A /* Recursively invoke if parenthesis. */ 2N/A /* If current value is 0 second value is to be discarded. */ 2N/A /* If current value is 1 second value is to be discarded. */ 2N/A /* No test found. Interpret if as just a string. */ 2N/A N_(
"EXPRESSION ]"),
N_(
"Evaluate an expression."));
2N/A N_(
"EXPRESSION"),
N_(
"Evaluate an expression."));