1/* -*- Mode: conf -*- 2# ag-text.def: autogen text strings */ 3 4/* This file is part of AutoGen. 5 * Copyright (C) 1992-2018 Bruce Korb - all rights reserved 6 * 7 * AutoGen is free software: you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the 9 * Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * AutoGen is distributed in the hope that it will be useful, but 13 * WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15 * See the GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License along 18 * with this program. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 21AutoGen Definitions strings; 22 23file-name-string; 24 25string = { nm = ADDR_FAMILY_BAD; 26 str = "The '%d' address family cannot be handled"; }; 27 28string = { nm = ADD_ENV_VARS_SUFFIX_FMT; 29 str = "%s__"; }; 30 31string = { nm = ADD_SYS_ENV_VAL_FMT; str = "%s=1"; }; 32 33string = { nm = AG_ABEND_STATE_FMT; 34 str = "ABEND-ing in %s state\n"; }; 35 36string = { nm = AG_ABORT_LOC_FMT; 37 str = "processing template %s\n" 38 " on line %d\n" 39 " for function %s (%d)\n"; }; 40 41string = { nm = AG_FPRINTF_BAD_PORT; 42 str = "ag-fprintf: 'port' is invalid"; }; 43 44string = { nm = AG_MAKE_DEP_NAME; 45 str = "AUTOGEN_MAKE_DEP"; }; 46 47string = { nm = AG_MARK; 48 str = "autogen5"; }; 49 50string = { nm = AG_NEVER_STARTED; 51 str = "AutoGen caught signal %d (%s) before initialization completed\n"; }; 52 53string = { nm = AG_SIG_ABORT_FMT; 54 str = "AutoGen aborting on signal %d (%s) in state %s\n"; }; 55 56string = { nm = ALIST_TO_AG_ERR; 57 str = "Scheme definition expression does not yield string:\n"; }; 58 59string = { nm = ALIST_TO_AG_TEXT; 60 str = "Scheme Computed Definitions"; }; 61 62string = { nm = ALIST_TO_AG_WRAP; 63 str = "(alist->autogen-def %s)"; }; 64 65string = { nm = APRF_ALLOCATE_FAIL; 66 str = "could not allocate for or formatting failed on:\n%s"; }; 67 68string = { nm = ASPRINTFV_FAIL_FMT; 69 str = "asprintfv returned 0x%08X\n"; }; 70 71string = { nm = ASSEMBLE_NAME_ERR; 72 str = "%s Error: Invalid input char '%c' in %s on line %d\n"; }; 73 74string = { nm = BAD_BREAK_FMT; 75 str = "Cannot %s from outside a loop"; }; 76 77string = { nm = BAD_MAC_NM_FMT; 78 str = "Could not resolve macro name: '%s'"; }; 79 80string = { nm = BAD_MSG_STR; 81 str = "??? indecipherable error message ???"; }; 82 83string = { nm = BAD_NAME_FMT; 84 str = "Ill formed name '%s' in %s line %d\n"; }; 85 86string = { nm = BAD_RE_FMT; 87 str = "Invalid regular expression: error %d (%s):\n%s"; }; 88 89string = { nm = BASE_NAME_TOO_LONG; 90 str = "--base-name name is too long"; }; 91 92string = { nm = BOGUS_TAG; str = "** BOGUS **"; }; 93string = { nm = BREAK_STR; str = "break"; }; 94string = { nm = ULONG_FMT; str = "%lu"; }; 95 96string = { nm = CANNOT_FMT; 97 str = "fserr %d: cannot %s %s: %s\n"; }; 98 99string = { nm = CFGDEP_DUP_TARGET_MSG; 100 str = "duplicate make target"; }; 101 102string = { nm = CFGDEP_UNKNOWN_DEP_FMT; 103 str = "unknown dependency type: %s"; }; 104 105string = { nm = CGI_ERR_MSG_FMT; 106 str = "Content-type: text/plain\n\n" 107 "AutoGen form processing error:\n"; }; 108 109string = { nm = CGI_PARSE_ERR_FMT; 110 str = "CGI parsing error: %s"; }; 111 112string = { nm = CGI_TEMP_ERR_FILE_STR; 113 str = "/tmp/cgi-stderr-XXXXXX"; }; 114 115string = { nm = CMD_FAIL_FMT; 116 str = "CLOSING SHELL SERVER - command failure:\n\t%s\n"; }; 117 118string = { nm = DEF_ERR_FMT; 119 str = "%s Error: %s in %s on line %d\n"; }; 120 121string = { nm = DEF_NOTE_FMT; 122 str = "DEFINITIONS %s in %s line %d for %s:\n\t%s\n"; }; 123 124string = { nm = COMPILE_RE_BAD; str = "Bad regular expression"; }; 125string = { nm = CONTINUE_STR; str = "continue"; }; 126string = { nm = C_STRING_NEWLINE; str = "\\n\"\n \""; }; 127string = { nm = DEF_FILE_LINE_FMT; str = "from %s line %d"; }; 128string = { nm = DEF_TYPE_BLOCK; str = "block"; }; 129string = { nm = DEF_TYPE_INVALID; str = "INVALID"; }; 130string = { nm = DEF_TYPE_TEXT; str = "text"; }; 131string = { nm = DEF_TYPE_UNKNOWN; str = "unknown"; }; 132string = { nm = DEP_FILE_SPLICE_STR; str = " \\\n"; }; 133 134string = { nm = DEP_FILE_CLEAN_FMT; 135 str = <<- _EOF_ 136 137 .PHONY : clean-%1$s 138 139 clean-%1$s : 140 \ rm -f %3$s $(%2$s_TList) 141 \ @-touch -t 199912312359 %1$s 142 143 _EOF_; }; 144 145string = { nm = DEP_FILE_WRAP_FMT; 146 str = <<- _EOStr_ 147 148 %2$s : $(%1$s_SList) 149 150 $(%1$s_TList) : %2$s 151 \ @: 152 153 _EOStr_; }; 154 155string = { nm = DEP_List; str = " \\\n\t%s"; }; 156string = { nm = DEP_OUT_NAME; str = "DEPENDENCIES_OUTPUT"; }; 157string = { nm = DEP_SList; str = "\n\n%s_SList ="; }; 158string = { nm = DEP_TList; str = "%s_TList ="; }; 159string = { nm = DEV_NULL; str = "/dev/null"; }; 160string = { nm = DFT_BASE_NAME; str = "baseless"; }; 161string = { nm = DFT_DEF_INPUT_STR; str = "-"; }; 162string = { nm = DFT_ENV_VAL; str = "=1"; }; 163string = { nm = DFT_TPL_DIR_DATA; str = "$@"; }; 164string = { nm = DFT_TPL_DIR_RELATIVE; str = "$$/../share/autogen"; }; 165string = { nm = DIRECT_CK_LIST_MARK; str = "\n#"; }; 166 167string = { nm = DIRECT_ASSERT_FMT; 168 str = "#assert yielded \"%s\":\n\t`%s`"; }; 169 170string = { nm = DIRECT_BAD_CTX_FMT; 171 str = "'#%s' directive encountered out of context\n" 172 "\tin %s on line %d\n"; }; 173 174string = { nm = DIRECT_ERROR_FMT; 175 str = "#error directive -- in %s on line %d\n\t%s\n"; }; 176 177string = { nm = DIRECT_INC_CANNOT_OPEN; str = "open"; }; 178string = { nm = DIRECT_INC_CANNOT_READ; str = "read"; }; 179string = { nm = DIRECT_INC_DEF_SFX; str = "def"; }; 180 181string = { nm = FS_ERR_WARNING; 182 str = "WARNING: fserr %d (%s) performing '%s' on %s\n"; }; 183 184string = { nm = DIRECT_NOENDIF_FMT; 185 str = "Definition error: in %s line %d, #endif not found\n"; }; 186 187string = { nm = DIRECT_NOMATCH_FMT; 188 str = "Definition error: in %s line %d, " 189 "#%s no matching start/if directive\n"; }; 190 191string = { nm = DIRECT_SHELL_NOEND; 192 str = "Missing #endshell after '#shell' in %s on line %d\n"; }; 193 194string = { nm = DIRECT_SHELL_COMP_DEFS; str = "Computed Definitions"; }; 195string = { nm = DIRECT_SHELL_END_SHELL; str = "\n#endshell"; }; 196string = { nm = DONE_CHECK_DONE; str = "done_check done\n"; }; 197string = { nm = DONE_CHECK_REDONE; str = "done_check re-done\n"; }; 198string = { nm = DOT_SFX_FMT; str = "%s.%s"; }; 199string = { nm = DOUBLE_NEWLINE; str = "\n\n"; }; 200 201string = { nm = DOOPT_TOO_MANY_DEFS; 202 str = "%s ERROR: Too many definition files\n"; }; 203 204string = { nm = DO_STDOUT_TPL_ABANDONED; 205 str = "%soutput was abandoned\n"; }; 206 207string = { nm = DO_STDOUT_TPL_BADR; 208 str = "%sBogus return from setjmp\n"; }; 209 210string = { nm = DO_STDOUT_TPL_CONTENT; 211 str = "content-type: text/html\n\n"; }; 212 213string = { nm = DO_STDOUT_TPL_NOSFX; str = "* NONE *"; }; 214 215string = { nm = DO_STDOUT_TPL_START_STD; 216 str = "Starting stdout template\n"; }; 217 218string = { nm = DO_STDOUT_TPL_STDOUT; str = "stdout"; }; 219 220string = { nm = DO_SUFFIX_BAD_CHARS; 221 str = "invalid chars in suffix format: %s"; }; 222 223string = { nm = DO_SUFFIX_EMPTY; str = "Empty suffix format"; }; 224 225string = { nm = DUP_VALUE_INDEX; 226 str = "Duplicate value index for %s: %d"; }; 227 228string = { nm = ELIF_CONTEXT_MSG; 229 str = "#elif directive found out of context"; }; 230 231string = { nm = EMIT_INVAL_PORT; str = "invalid emission port: %lu"; }; 232string = { nm = END_C_COMMENT; str = "*/"; }; 233string = { nm = ERROR_STR; str = "ERROR"; }; 234 235string = { nm = ERROR_IN_TPL_FMT; 236 str = "Error in template %s, line %d\n\t"; }; 237 238string = { nm = EVAL_EXPR_BLOCK_IN_EVAL; 239 str = "attempted to use block macro in eval expression"; }; 240 241string = { nm = EVAL_EXPR_PROG_ERR; 242 str = "PROGRAM ERROR: ambiguous expr code"; }; 243 244string = { nm = EXIT_CLEANUP_DONE_FMT; 245 str = "exit_cleanup %s done\n" 246 "===AutoGen ends - %u\n\n"; }; 247 248string = { nm = EVAL_TRUE_FALSE_STR; str = "false"; }; 249string = { nm = EXIT_CLEANUP_MULLIGAN; str = "exit_cleanup re-done\n"; }; 250string = { nm = EXIT_CLEANUP_NOWAIT; str = "no waiting"; }; 251 252string = { nm = EXIT_CLEANUP_STR; 253 str = "(if (> (string-length shell-cleanup) 0)" 254 " (shellf \"( (%s) & >/dev/null 2>&1 )\" shell-cleanup) )"; }; 255 256string = { nm = EXIT_CLEANUP_WAITED; str = "waited"; }; 257string = { nm = EXP_FMT_BAD_LIC; str = "an unknown license"; }; 258 259string = { nm = EXP_FMT_DNE; 260 str = <<- _EOF_ 261 %6$s%1$sDO NOT EDIT THIS FILE (%2$s) 262 %1$s 263 %1$sIt has been AutoGen-ed%3$s 264 %1$sFrom the definitions %4$s 265 %1$sand the template file %5$s 266 _EOF_; }; 267 268string = { nm = EXP_FMT_DNE1; 269 str = "%s -*- buffer-read-only: t -*- vi: set ro:\n" 270 "%s\n"; }; 271 272string = { nm = EXP_FMT_DNE2; 273 str = <<- _EOF_ 274 %6$s%1$sEDIT THIS FILE WITH CAUTION (%2$s) 275 %1$s 276 %1$sIt has been AutoGen-ed%3$s 277 %1$sFrom the definitions %4$s 278 %1$sand the template file %5$s 279 _EOF_; }; 280 281string = { nm = FIND_DIRECT_UNKNOWN; 282 str = "WARNING: in %s on line %d unknown directive:\n" 283 "\t#%s\n"; }; 284 285string = { nm = EXTRACT_CAVEAT; str = "DO NOT CHANGE THIS COMMENT"; }; 286string = { nm = FILL_IN_VAL_NO_ASSIGN; str = "name not followed by '='"; }; 287string = { nm = FILL_IN_VAL_NO_SEP; str = "no space separating entries"; }; 288string = { nm = EXTRACT_END; str = "END "; }; 289string = { nm = EXTRACT_START; str = START; }; 290string = { nm = FALSE_NAME_STR; str = false; }; 291string = { nm = FILE_LINE_FMT; str = "# %2$d \"%1$s\""; }; 292string = { nm = FIND_ENT_FAIL; str = "failed\n"; }; 293string = { nm = FIND_ENT_SUCC; str = "SUCCESS\n"; }; 294string = { nm = FIND_FILE_CURDIR; str = "."; }; 295string = { nm = FIND_FILE_DIR_FMT; str = "%s/%s"; }; 296string = { nm = FIND_FILE_NAME; str = "find-file"; }; 297string = { nm = FIND_LIC_TEXT_AGPL; str = agpl; }; 298string = { nm = FIND_LIC_TEXT_BAD_FILE; str = "read full file"; }; 299string = { nm = FIND_LIC_TEXT_INVAL; str = "invalid license file: %s"; }; 300string = { nm = FIND_LIC_TEXT_LGPL; str = lgpl; }; 301string = { nm = FIND_LIC_TEXT_MBSD; str = mbsd; }; 302string = { nm = FIND_LIC_TEXT_NO_LIC; str = "stat file"; }; 303string = { nm = FIND_LIC_TEXT_OPEN; str = "open"; }; 304string = { nm = FIND_LIC_TEXT_SFX; str = lic; }; 305string = { nm = FIND_MAC_END_NESTED; str = "macros cannot nest"; }; 306string = { nm = FIND_MAC_END_NOPE; str = "macro has no end"; }; 307 308string = { nm = FIND_MAC_END_EMPTY; 309 str = "WARNING: empty macro in %s line %d\n"; }; 310 311string = { nm = FN_DEBUG; 312 str = " -- DEBUG %s -- FOR index %d"; }; 313 314string = { nm = FN_BOGUS_FMT; 315 str = "%d (%s) is an unknown macro function, or has no handler"; }; 316 317string = { nm = FN_BOGUS_HUH; str = "? Say, what ?"; }; 318string = { nm = FN_DEBUG_GRAPHIC; str = " (%c)"; }; 319string = { nm = FN_IF_ELSE; str = "ELSE clause"; }; 320string = { nm = FOR_IN_LISTLESS; str = "FOR x IN ... has no list"; }; 321string = { nm = GUARD_SFX; str = "_GUARD"; }; 322 323string = { nm = FOR_ITERATION_FMT; 324 str = " - FOR-%s %s[%d] it#%d: Nxt %d, first=%s, last=%s\n"; }; 325 326string = { nm = GET_NOTHING_FMT; 327 str = "'get' invoked with no name in %s line %u\n"; }; 328 329string = { nm = GOT_NOTHING_FMT; 330 str = "'get %s' retrieved in %s line %u\n"; }; 331 332string = { nm = GUILE_CMD_FAIL_FMT; 333 str = "Failing Guile command: = = = = =\n\n%s\n\n" 334 "=================================\n"; }; 335 336string = { nm = GUILE_VERSION_BAD; 337 str = "Could not decipher Guile version: %s\n"; }; 338 339string = { nm = GUILE_VERSION_WRONG; 340 str = "Compiled Guile version does not match: %s vs %s\n"; }; 341 342string = { nm = GUILE_WARN_DEP_STR; str = "GUILE_WARN_DEPRECATED"; }; 343string = { nm = GUILE_WARN_NO_ENV; str = "GUILE_WARN_DEPRECATED=no"; }; 344string = { nm = HANDLE_EOL__ELS; str = els; }; 345string = { nm = HANDLE_EOL__THE; str = the; }; 346string = { nm = HANDLE_HASH_BAD_TPL; str = "Invalid template file"; }; 347string = { nm = HANDLE_HASH_SHELL; str = "SHELL="; }; 348string = { nm = HANDLE_SED_ELSE; str = "lse"; }; 349string = { nm = HANDLE_SED_ENDIF; str = "ndif"; }; 350string = { nm = HANDLE_SED_IFDEF; str = "fdef "; }; 351string = { nm = HANDLE_SED_IFNDEF; str = "fndef "; }; 352string = { nm = HEADER_STR; str = "HEADER"; }; 353string = { nm = HERE_ENDLESS_STR; str = "Unterminated HereString"; }; 354string = { nm = HERE_MISS_MARK_STR; str = "HereString missing the mark"; }; 355string = { nm = HTML_DEC_DIGIT; str = "&#%d;"; }; 356string = { nm = INIT_SCM_DEBUG_FMT; str = "(debug-enable 'backtrace)"; }; 357 358string = { nm = HERE_MARK_TOO_LONG; 359 str = "HereString mark 64 or more chars"; }; 360 361string = { nm = HIDE_EMAIL_END_FMT; 362 str = "');\n" 363 "document.write('\" >%s</a>');\n" 364 "//-->\n</script>"; }; 365 366string = { nm = HIDE_EMAIL_START_STR; 367 str = "<script language=\"JavaScript\" type=\"text/javascript\">\n" 368 "<!--\n" 369 "var one = 'ma';\n" 370 "var two = 'ilt';\n" 371 "document.write('<a href=\"' + one + two );\n" 372 "document.write('o:"; }; 373 374string = { nm = INIT_SCM_ERRS_FMT; 375 str = "(use-modules (%s)) (read-enable 'positions)\n" 376 "(add-hook! before-error-hook error-source-line)\n" 377 "(use-modules (ice-9 stack-catch))"; }; 378 379string = { nm = LD_BOGUS_UNKNOWN; 380 str = "Unknown macro or invalid context in %s line %d:\n\t%s%s"; }; 381 382string = { nm = LD_FOR_NAMELESS; 383 str = "FOR macro requires iterator name"; }; 384 385string = { nm = LD_INC_NO_FNAME; 386 str = "The INCLUDE macro requires a file name"; }; 387 388string = { nm = KR_STRING_NEWLINE; str = "\\n\\\n"; }; 389string = { nm = LC_ALL_IS_C; str = "LC_ALL=C"; }; 390string = { nm = LD_CASE_NO_ESAC; str = "ESAC not found"; }; 391string = { nm = LD_CASE_NO_EXPR; str = "expressionless CASE"; }; 392string = { nm = LD_DEF_NEED_NAME; str = "DEFINE requires a name"; }; 393string = { nm = LD_DEF_WOOPS; str = "parse ended unexpectedly"; }; 394string = { nm = LD_EXPR_BAD_NAME; str = "Invalid definition name"; }; 395string = { nm = LD_EXPR_NEED_TWO; str = "`?' needs two expressions"; }; 396string = { nm = LD_EXPR_NO_SPACE; str = "No space between expressions";}; 397string = { nm = LD_EXPR_NO_TEXT; str = "No text for unfound value"; }; 398string = { nm = LD_FOR_IN; str = "in"; }; 399string = { nm = LD_FOR_INVALID_VAR; str = "invalid FOR loop variable"; }; 400string = { nm = LD_FOR_NO_ENDFOR; str = "ENDFOR not found"; }; 401string = { nm = LD_IF_NO_ENDIF; str = "ENDIF not found"; }; 402string = { nm = LD_LIB_PATH_PFX; str = "LD_LIBRARY_PATH="; }; 403string = { nm = LD_LIB_PATH_STR; str = "LD_LIBRARY_PATH"; }; 404string = { nm = LD_SEL_EMPTY; str = "Empty macro text"; }; 405string = { nm = LD_SEL_INVAL; str = "Invalid selection clause"; }; 406string = { nm = LD_UNKNOWN_INVAL_DEF; str = "Invalid definition name"; }; 407string = { nm = LD_WHILE_NO_ENDWHILE; str = "ENDWHILE not found"; }; 408string = { nm = LD_WHILE_NO_EXPR; str = "expressionless WHILE"; }; 409string = { nm = LINE_CONCAT3_FMT; str = "%s\n%s\n%s"; }; 410string = { nm = LOAD_CGI_DEFS_MARKER; str = "@@ CGI Definitions @@"; }; 411string = { nm = LOAD_CGI_GET_NAME; str = "GET"; }; 412string = { nm = LOAD_CGI_NO_DATA_MSG; str = "No CGI data were received"; }; 413string = { nm = LOAD_CGI_READ_NAME; str = "read"; }; 414string = { nm = LOAD_CGI_READ_WHAT; str = "CGI text"; }; 415string = { nm = LOAD_TPL_CANNOT_MAP; str = "map data file"; }; 416string = { nm = LOAD_TPL_CANNOT_OPEN; str = "Could not open template '%s'";}; 417string = { nm = LOAD_TPL_CANNOT_STAT; str = "stat file"; }; 418string = { nm = LOAD_TPL_IRREGULAR; str = "not regular file"; }; 419string = { nm = LOAD_TPL_SFX_AGL; str = "agl"; }; 420string = { nm = LOAD_TPL_SFX_TPL; str = "tpl"; }; 421string = { nm = MAKE_SCRIPT_NL; str = " ; \\\n"; }; 422string = { nm = MEM_FILE_STR; str = "in-mem file"; }; 423string = { nm = MKSTEMP_FAIL_FMT; str = "mkstemp failed on `%s'"; }; 424 425string = { nm = LISTEN_PORT_FMT; 426 str = "to port %s with %d type address"; }; 427 428string = { nm = LOAD_CGI_INVAL_REQ_FMT; 429 str = "invalid CGI request method: ''%s''"; }; 430 431string = { nm = LOAD_FILE_SHORT_NAME; 432 str = "Cannot expand directory name: '%s'"; }; 433 434string = { nm = LOAD_MACS_BAD_PARSE; 435 str = "Template parse ended unexpectedly"; }; 436 437string = { nm = LOAD_SCM_ENDLESS; 438 str = "end of Guile/scheme expression not found"; }; 439 440string = { nm = LOG_SEP_FMT; 441 str = "\n\n* * * * LOG ENTRY %d * * * *\n"; }; 442 443string = { nm = MAKE_GPERF_CLEANUP; 444 str = "(add-cleanup \"rm -rf ${gpdir}\")"; }; 445 446string = { nm = MALLOC_FAIL_FMT; 447 str = "malloc of %zd bytes failed\n"; }; 448 449string = { nm = MK_GPERF_SCRIPT; 450 str = <<- _GP_Script_ 451 gperf --version > /dev/null 2>&1 || die 'no gperf program' 452 test -z ${gpdir} && { 453 gpdir=`mktemp -d ./.gperf.XXXXXX` 2>/dev/null 454 test -z "${gpdir}" && gpdir=.gperf.$$ 455 test -d ${gpdir} || mkdir ${gpdir} || die "cannot mkdir ${gpdir}" 456 } 457 cd ${gpdir} || die cannot cd into ${gpdir} 458 gpdir=`pwd` 459 gperf_%2$s=${gpdir}/%2$s 460 461 { 462 cat << \_EOF_ 463 %%{ 464 #include <stdio.h> 465 %%} 466 struct %2$s_index { char const * name; int const idx; }; 467 %%%% 468 _EOF_ 469 470 idx=1 471 while read f 472 do echo "${f}, ${idx}" 473 idx=`expr ${idx} + 1` 474 done << \_EOLIST_ 475 %3$s 476 _EOLIST_ 477 478 cat << \_EOF_ 479 %%%% 480 int main(int argc, char ** argv) { 481 char * pz = argv[1]; 482 struct %2$s_index const * pI = %2$s_find( pz, strlen( pz )); 483 if (pI == NULL) 484 return 1; 485 printf( "0x%%02X\n", pI->idx ); 486 return 0; 487 } 488 _EOF_ 489 } > %2$s.gperf 490 491 exec 2> %2$s.log 492 gperf --language=ANSI-C -H %2$s_hash -N %2$s_find \ 493 -C -E -I -t %2$s.gperf > %2$s-temp.c || \ 494 die "gperf failed on ${gpdir}/%2$s.gperf 495 `cat %2$s.log`" 496 egrep -v '^[^#].*_inline' %2$s-temp.c > %2$s.c 497 export CFLAGS="$CFLAGS -g" 498 %1$s %2$s 1>&2 499 test $? -eq 0 -a -x ${gperf_%2$s} || \ 500 die "could not '%1$s %2$s' gperf program 501 `cat %2$s.log`" 502 exec 2>&8 503 _GP_Script_; 504}; 505 506string = { nm = MK_HEAD_GUARD_SCM; 507 str = "(define header-file \"%s\") " 508 "(define header-guard \"%s\")"; }; 509 510string = { nm = MK_LIC_NO_OPEN; 511 str = "Could not open license file '%s'"; }; 512 513string = { nm = MK_TMP_DIR_CMD; 514 str = "mk_tmp_dir ; echo ${tmp_dir}/ag-XXXXXX"; }; 515 516string = { nm = MK_HEAD_GUARD_GUARD; str = "#ifndef %1$s\n#define %1$s 1";}; 517string = { nm = MK_LIC_TOO_BIG_FMT; str = "%s may not exceed %d chars\n";}; 518string = { nm = MK_LIC_BIG_OWN; str = "owner length"; }; 519string = { nm = MK_LIC_BIG_PFX; str = "prefix length"; }; 520string = { nm = MK_LIC_BIG_PROG; str = "program name length"; }; 521string = { nm = MK_LIC_NOT_STR; str = "license name is not a string";}; 522string = { nm = MK_LIC_NO_LIC; str = "There is no %s license."; }; 523string = { nm = MK_LIC_OWN; str = "<owner>"; }; 524string = { nm = MK_LIC_PFX; str = "<PFX>"; }; 525string = { nm = MK_LIC_PROG; str = "<program>"; }; 526string = { nm = MK_LIC_SFX; str = "lic"; }; 527string = { nm = MK_LIC_YRS; str = "<years>"; }; 528string = { nm = NAMED_VALUES_NO_NAME; str = "no macro arg name"; }; 529string = { nm = NEWLINE; str = "\n"; }; 530string = { nm = NEXT_PM_TOKEN_INVALID; str = "Invalid template file: %s"; }; 531string = { nm = NOT_STR_FMT; str = "ERROR: %s is not a string\n"; }; 532string = { nm = NO_IF_EXPR; str = "expressionless IF"; }; 533string = { nm = NO_NAME_STR; str = no; }; 534string = { nm = NO_TEMPLATE_ERR_MSG; str = "no template was specified"; }; 535string = { nm = NULL_FILE_NAME_STR; str = "NULL file name"; }; 536string = { nm = OPEN_OUTPUT_NULL; str = "null"; }; 537string = { nm = OUTPUT_NO_OPEN; str = "open for output"; }; 538string = { nm = OUTPUT_NO_UNLINK; str = "unlink"; }; 539string = { nm = OUTPUT_TEMP_FILE; str = "* temp file *"; }; 540string = { nm = NAMED_VALUES_WHERE; str = "On macro argument # %d:\n%s\n";}; 541 542string = { nm = OPEN_OUTPUT_BAD_FMT; 543 str = "Cannot format file name: \"%s\", %s, %s"; }; 544 545string = { nm = OUT_ADD_INVALID; 546 str = "No output file specified to add to"; }; 547 548string = { nm = OUT_PUSH_NEW_FAILED; 549 str = "failed to create temp file from %s"; }; 550 551string = { nm = OUT_RESUME_CANNOT; 552 str = "ERROR: no output file was suspended as '%s'\n"; }; 553 554string = { nm = OUT_SUSPEND_CANNOT; 555 str = "ERROR: Cannot pop output with no output pushed"; }; 556 557string = { nm = OUT_CLOSE_TRACE_WRAP; str = "%s '%s'\n"; }; 558string = { nm = OUT_PUSH_NEW_FAIL; str = "open 'wb+'"; }; 559string = { nm = OUT_SWITCH_FAIL; str = "freopen"; }; 560string = { nm = PARSE_INPUT_AG_DEF_STR; str = "Autogen Definitions cgi;\n"; }; 561string = { nm = PATH_TOO_BIG; str = "AF_UNIX path exceeds %d"; }; 562string = { nm = PIPE_DEFS_STDIN_NAME; str = "stdin"; }; 563string = { nm = PIPE_DEFS_STDIN_STR; str = "-"; }; 564string = { nm = PIPE_DUP2_NAME_STR; str = "dup2"; }; 565string = { nm = PIPE_FIFO_IN_NAME_FMT; str = "%s-in"; }; 566string = { nm = PIPE_FIFO_OPEN; str = "open"; }; 567string = { nm = PIPE_FIFO_OUT_NAME_FMT; str = "%s-out"; }; 568string = { nm = PIPE_FORK_NAME; str = "fork"; }; 569string = { nm = PIPE_MKFIFO_NAME; str = "mkfifo"; }; 570string = { nm = PIPE_POLL_NAME_STR; str = "poll"; }; 571string = { nm = PIPE_WRITE_NAME_STR; str = "write"; }; 572string = { nm = PORT_NUM_BAD; str = "Invalid port number: '%s'"; }; 573string = { nm = PROC_TPL_START; str = "Starting %s template\n"; }; 574string = { nm = PSEUDO_MACRO_NAME_STR; str = "pseudo-macro"; }; 575string = { nm = PSEUDO_MAC_BAD_FSM; str = "BROKEN FSM STATE"; }; 576 577string = { nm = PREP_INVOKE_NO_NAME; 578 str = "The INVOKE macro requires a name"; }; 579 580string = { nm = PREP_INVOKE_NO_SEP; 581 str = "The INVOKE macro name not space separated"; }; 582 583string = { nm = PRINT_DEF_SHOW_FMT; 584 str = "%s%s[%u] (%s) from %s/%d at %p\n"; }; 585 586string = { nm = PRINT_DEF_SPACES; 587 str = " "; }; // 32 spaces 588 589string = { nm = PROC_TPL_BOGUS_RET; 590 str = "%sBogus return from setjmp\n"; }; 591 592string = { nm = PSEUDO_MAC_BAD_ENDER; 593 str = "start marker contained in end marker"; }; 594 595string = { nm = PSEUDO_MAC_BAD_LENGTH; 596 str = "start/end macro mark too long"; }; 597 598string = { nm = PSEUDO_MAC_BAD_STARTER; 599 str = "end marker contained in start marker"; }; 600 601string = { nm = PSEUDO_MAC_ERR_FMT; 602 str = "bad template marker in %s on line %d:\n\t%s"; }; 603 604string = { nm = PSEUDO_MAC_BAD_MODE; str = "invalid edit mode marker"; }; 605string = { nm = PSEUDO_MAC_BAD_NOAG5; str = "need autogen5 marker"; }; 606string = { nm = PSEUDO_MAC_BAD_NOEND; str = "need end marker"; }; 607string = { nm = PSEUDO_MAC_BAD_NOEOL; str = "need end of line"; }; 608string = { nm = PSEUDO_MAC_BAD_NOSTART; str = "need start marker"; }; 609string = { nm = PSEUDO_MAC_BAD_NOTPL; str = "need template marker"; }; 610string = { nm = PSEUDO_MAC_BAD_PSEUDO; str = "broken pseudo-macro FSM"; }; 611string = { nm = PSEUDO_MAC_MODE_MARK; str = "-*-"; }; 612string = { nm = PSEUDO_MAC_TPL_FILE; str = "*template file*"; }; 613string = { nm = READY_INPUT_NODEF; str = "@@ No-Definitions @@"; }; 614string = { nm = READY_INPUT_NOT_REG; str = "open non-regular file"; }; 615string = { nm = READY_INPUT_STAT; str = stat; }; 616string = { nm = READ_DEF_NO_DEFS; str = "No definition data were read";}; 617string = { nm = READ_DEF_OPEN; str = "open"; }; 618string = { nm = READ_DEF_READ; str = "read"; }; 619string = { nm = REQUEST_METHOD; str = REQUEST_METHOD; }; 620string = { nm = RESOLVE_SCM_EXACT; str = "** EXACT **"; }; 621string = { nm = RESOLVE_SCM_INEXACT; str = "** INEXACT **"; }; 622string = { nm = RESOLVE_SCM_LIST; str = "** LIST **"; }; 623string = { nm = RESOLVE_SCM_PAIR; str = "** Pair **"; }; 624string = { nm = RESOLVE_SCM_PROC; str = "** Procedure 0x%08lX **"; }; 625string = { nm = RESOLVE_SCM_UNKNOWN; str = "** UNKNOWN **"; }; 626string = { nm = RESOLVE_SCM_VECTOR; str = "** Vector **"; }; 627string = { nm = RETURN_FROM_NOWHERE; str = "RETURN out of context"; }; 628 629string = { nm = REALLOC_FAIL_FMT; 630 str = "realloc of %zd bytes at 0x%p failed\n"; }; 631 632string = { nm = RM_MISSING_DE; 633 str = "attempt to remove unrecorded def entry\n"; }; 634 635string = { nm = RUN_GPERF_CMD; 636 str = <<- _EOF_ 637 test -n "${gperf_%1$s}" || \ 638 die 'no environment variable "gperf_%1$s"' 639 test -x "${gperf_%1$s}" || \ 640 die "no gperf program named ${gperf_%1$s}" 641 ${gperf_%1$s} %2$s 642 _EOF_; 643}; 644 645string = { nm = SAFE_PRINTF_BAD_FMT; 646 str = "%s ERROR: %s processing printf format:\n\t%s\n"; }; 647 648string = { nm = RUN_PRINTF_HUH; str = "? Say, what ?"; }; 649string = { nm = SAFE_PRINTF_BAD_ARGS; str = "Bad args to sprintf"; }; 650string = { nm = SCHEME_INIT_DEBUG_1_6; str = "ice-9 debug"; }; 651string = { nm = SCHEME_INIT_DEBUG_2_0; str = "system vm trace"; }; 652 653string = { nm = SCHEME_EVAL_ERR_FMT; 654 str = "Scheme evaluation error. AutoGen ABEND-ing in template\n" 655 "\t%s on line %d\n"; }; 656 657string = { nm = SCHEME_INIT_TEXT; define-line-no; str = ` 658sed -e "s/AUTOGEN_VERSION/${AG_VERSION}/" \ 659 -e $'s/^[ \t]*//' \ 660 -e 's/ *)/)/g' \ 661 -e '/^;/d' \ 662 -e '/^$/d' ${srcdir}/schemedef.scm 663`; }; 664 665string = { nm = SCM2ZCHARS_BAD_VAL; 666 str = "scm_string_length returned wrong value: %d != %d\n"; }; 667 668string = { nm = SCM_ERROR_FMT; 669 str = "\nGuile/Scheme evaluation error in %s line %d: %s\n"; }; 670 671string = { nm = SCM_FALSE_STR; str = "#f"; }; 672string = { nm = SCM_LIST_STR; str = "..."; }; 673string = { nm = SCM_OUT_POP_NO_REREAD; str = "re-read output"; }; 674string = { nm = SCM_PROC_CAST; str = "(*)()"; }; 675string = { nm = SCM_TRUE_STR; str = "#t"; }; 676string = { nm = SFX_FMT; str = "%s%s"; }; 677string = { nm = SHELL_RES_NULL_MSG; str = "shell_cmd result is NULL"; }; 678 679string = { nm = SCM_OUT_POP_EMPTY; 680 str = "ERROR: Cannot pop output with no output pushed\n"; }; 681 682string = { nm = SERV_RESTART; 683 str = "SERVER RESTART: serv_id is NULLPROCESS\n"; }; 684 685string = { nm = SET_ORIG_DIR_NO_MEM_MSG; 686 str = "cannot allocate path name"; }; 687 688string = { nm = SET_TMP_DIR_CMD; 689 str = "(set! tmp-dir \"%1$s\")\n" 690 "(add-cleanup \"test \\\"${VERBOSE:-false}\\\" = true " 691 "|| rm -rf %1$s\")"; }; 692 693string = { nm = SET_WRITE_WARN; 694 str = "Warning: (set-writable) function in %s on line %d:\n" 695 "\toverridden by invocation option\n"; }; 696 697string = { nm = SHELL_CMD_FMT; 698 str = "cd %s\n%s\n\necho\necho %s - %d\n"; }; 699 700string = { nm = SHELL_DIE_FMT; 701 str = "Closing server: %s signal (%d) received\n"; }; 702 703string = { nm = SHELL_INIT_STR; 704 str = <<- _EOF_ 705 exec 8>&2 2>/dev/null 706 707 if test -n "${ZSH_VERSION+set}" && (emulate sh) 1>&2 708 then 709 emulate sh 710 NULLCMD=: 711 712 else case `set -o` in *posix*) set -o posix ;; esac 713 fi 714 715 trap_exit() { 716 case "$1" in 717 0 | 10 | 15 ) 718 exec 1>&- 2>&- 719 test -d "${tmp_dir}" && rm -rf "${tmp_dir}" 720 ;; 721 722 * ) 723 exec 1>&8 724 echo "trapped on signal ${1}" 725 test -d "${tmp_dir}" && \ 726 echo "temp directory has been retained: ${tmp_dir}" 727 esac 728 } 729 730 die() { 731 echo "Killing AutoGen ${AG_pid}" 732 echo "FAILURE REASON: $*" 733 kill -15 ${AG_pid} 734 sleep 1 735 kill -1 ${AG_pid} 736 sleep 1 737 kill -2 ${AG_pid} 738 sleep 1 739 kill -9 ${AG_pid} 740 exit 1 741 } >&8 742 743 mk_tmp_dir() { 744 test -d "${tmp_dir}" && return 0 745 tmp_dir=` 746 t=\`mktemp -d ${TMPDIR}/.ag-XXXXXX\` 747 test -d "${t}" || { 748 t=${TMPDIR}/.ag-$$ 749 rm -rf ${t} 750 mkdir ${t} || die cannot mkdir ${t} 751 } 752 chmod 700 ${t} || die cannot chmod 700 ${t} 753 echo ${t} 754 ` 2>/dev/null 755 } 756 757 for f in 0 1 2 5 6 7 10 13 14 15 758 do trap "trap_exit ${f}" $f ; done 759 test -n "${CDPATH}" && { 760 CDPATH='' 761 unset CDPATH 762 } 763 ( unalias cd ) && unalias cd 764 ( set +v ) && set +v 765 test -z "${TMPDIR}" && TMPDIR=/tmp 766 tmp_dir='' 767 export AG_pid TMPDIR 768 AG_pid="%u" 769 AGexe='%s' 770 771 exec 2>&8 772 _EOF_; 773}; 774 775string = { nm = SHELL_LAST_CMD_MSG; str = "\nLast command issued:\n"; }; 776string = { nm = SHELL_NO_END_MARK_MSG; str = "feof on data load\n"; }; 777string = { nm = SHELL_RESTART_MSG; str = "\nServer Restart\n"; }; 778string = { nm = SHELL_RES_DISCARD_MSG; str = "(result discarded)\n"; }; 779string = { nm = SHELL_SET_PS4_FMT; str = "PS4=>${FUNCNAME:-ag}> "; }; 780string = { nm = SHELL_UNK_LAST_CMD_MSG; str = "? Say, what ?"; }; 781 782string = { nm = SHELL_READ_ERR_FMT; 783 str = "fs err %d (%s) reading from server shell\n"; }; 784 785string = { nm = SHELL_XTRACE_CMDS; 786 str = "set -x\n" 787 "trap\n" 788 "echo server setup done\n"; }; 789 790string = { nm = SH_DONE_MARK; 791 str = "ShElL-OuTpUt-HaS-bEeN-cOmPlEtEd"; }; 792 793string = { nm = START_DEP_FILE_FMT; 794 str = "# Makefile dependency file created by:\t\t-*- Mode: Makefile -*-\n" 795 "# %s\n" 796 "# with the following command line arguments:\n"; }; 797 798string = { nm = START_DEP_ARG_FMT; str = "# %s"; }; 799string = { nm = START_DEP_FOPEN_MSG; str = "fopen for write"; }; 800string = { nm = START_SCHEME_LIST; str = "'("; }; 801string = { nm = STDIN_FILE_NAME; str = "stdin"; }; 802 803string = { nm = STRDUP_FAIL_FMT; 804 str = "strdup of %d byte string failed\n"; }; 805 806string = { nm = STR_TO_C_MAP_FAIL; 807 str = "cannot map unprintable chars to C name chars"; }; 808 809string = { nm = STR_TO_C_NAME; 810 str = "ag_scm_string_to_c_name_x"; }; 811 812string = { nm = TOO_MANY_TIMEOUTS_MSG; 813 str = "Server shell timed out 5 times"; }; 814 815string = { nm = SYSCALL_NAME; str = "syscall"; }; 816string = { nm = TAB_FILE_LINE_FMT; str = "\tfrom %s line %d\n"; }; 817string = { nm = TEMP_SUFFIX; str = ".d-XXXXXX"; }; 818string = { nm = TPL_FILE_LINE_FMT; str = "from %s line %d"; }; 819string = { nm = TPL_FILE_TPL; str = "tpl"; }; 820string = { nm = TPL_MARK; str = "template"; }; 821string = { nm = TPL_FILE_NEXT_LINE_FMT; str = "# %2$d \"%1$s\""; }; 822string = { nm = TRACE_ADD_SRC_FILE_FMT; str = "add source dep: %s\n"; }; 823string = { nm = TRACE_ADD_TARG_FILE_FMT; str = "add target dep: %s\n"; }; 824 825string = { nm = TPL_INVOKED; 826 str = "Template macro %s invoked with %d args\n"; }; 827 828string = { nm = TPL_WARN_FMT; 829 str = "Warning in template %s, line %d\n\t%s\n"; }; 830 831string = { nm = TRACE_ADD_TO_ENV_FMT; 832 str = "Adding '%s' to environment\n"; }; 833 834string = { nm = TRACE_CASE_FAIL; 835 str = "CASE string `%s' did not match\n"; }; 836 837string = { nm = TRACE_CASE_MATCHED; 838 str = "CASE string `%s' %s matched `%s'\n"; }; 839 840string = { nm = TRACE_CASE_NOMATCH; 841 str = "CASE no match: `%s' %s vs. `%s'\n"; }; 842 843string = { nm = TRACE_AG_ARG_FMT; str = " '%s'"; }; 844string = { nm = TRACE_BUILD_DEFS; str = "eval for arg %d:\n\t`%s'\n"; }; 845string = { nm = TRACE_COPY_MARK; str = "marker '%s' loaded\n"; }; 846string = { nm = TRACE_DEF_LOAD; str = "Definition Load:\n"; }; 847string = { nm = TRACE_FIND_ENT; str = " in \"%s\" -- "; }; 848string = { nm = TRACE_FN_FOR_REPEAT; str = "FOR %s repeated %d times\n"; }; 849 850string = { nm = TRACE_EVAL_STRING; 851 str = "eval from file %s line %d:\n%s\n"; }; 852 853string = { nm = TRACE_FN_FOR; 854 str = "FOR %s loop in %s on line %d begins:\n"; }; 855 856string = { nm = TRACE_FN_FOR_SKIP; 857 str = "FOR loop skipped - no definition for `%s'\n"; }; 858 859string = { nm = TRACE_FN_IF; 860 str = "IF expression `%s' on line %d yielded true\n"; }; 861 862string = { nm = TRACE_FN_IF_NOTHING; 863 str = "IF `%s' macro selected no clause\n"; }; 864 865string = { nm = TRACE_FN_INC_LINE; str = "\tfrom %s line %d\n"; }; 866string = { nm = TRACE_FN_INC_TPL; str = "Template %s included\n"; }; 867string = { nm = TRACE_FN_REMAP_BASE; str = "\tbased on %s\n"; }; 868string = { nm = TRACE_FN_REMAP_EXPR; str = Expr; }; 869string = { nm = TRACE_FN_REMAP_INVOKE; str = Invoke; }; 870 871string = { nm = TRACE_FN_REMAPPED; 872 str = "remapped to '%s' (%2X) in %s at line %d\n"; }; 873 874string = { nm = TRACE_FN_WHILE_END; 875 str = "WHILE macro repeated %d times\n"; }; 876 877string = { nm = TRACE_FN_WHILE_START; 878 str = "WHILE `%s' loop in %s on line %d begins:\n"; }; 879 880string = { nm = TRACE_FOR_BY_STEP; 881 str = "\texiting FOR %s from %d to %d by %d:\n" 882 "\tmore than %d iterations\n"; }; 883 884string = { nm = TRACE_FOR_STEP_TOO_FAR; 885 str = "too many FOR iterations in %s line %d\n"; }; 886 887string = { nm = TRACE_MACRO_DEF; 888 str = "Defining macro %s from %s\n"; }; 889 890string = { nm = TRACE_MACRO_FMT; 891 str = "%-10s (%2X) in %s at line %d\n"; }; 892 893string = { nm = TRACE_SEL_MATCH_FULL; 894 str = "Compiling '%s' with bits 0x%lX\n"; }; 895 896string = { nm = TRACE_SHELL_RESULT_MSG; 897 str = "\n= = = RESULT %d bytes:\n%s%s\n" 898 "= = = = = = = = = = = = = = =\n"; }; 899 900string = { nm = TRACE_START_GUILE; 901 str = "\nGuile Library Version %s\n"; }; 902 903string = { nm = TRACE_MATCH_VAL; str = "searching for `%s'"; }; 904string = { nm = TRACE_MOVE_FMT; str = "%s %s to %s\n"; }; 905string = { nm = TRACE_OPEN_OUT; str = "%s '%s' mode %s\n"; }; 906string = { nm = TRACE_OUT_DELETE; str = "NOTE: skipping file '%s'\n";}; 907string = { nm = TRACE_OUT_PUSH_NEW; str = "%s -- temp file %s\n"; }; 908string = { nm = TRACE_OUT_SWITCH; str = "%s from %s to '%s'\n"; }; 909string = { nm = TRACE_POP_FMT; str = "%s %s%s\n"; }; 910string = { nm = TRACE_RESUME; str = "%s %s from '%s'\n"; }; 911string = { nm = TRACE_RM_SRC_FILE_FMT; str = "remove source dep: %s\n"; }; 912string = { nm = TRACE_RM_TARG_FILE_FMT; str = "remove target dep: %s\n"; }; 913string = { nm = TRACE_SHELL_FIRST_START; str = "\nServer First Start\n"; }; 914string = { nm = TRACE_SHELL_PID_FMT; str = "Server shell is pid %u\n"; }; 915string = { nm = TRACE_SHELL_STARTS_FMT; str = "Server shell %s starts\n"; }; 916string = { nm = TRACE_START_FMT; str = "\n\n===AutoGen starts - %u: %s"; }; 917string = { nm = TRACE_SUSPEND; str = "%s %s as '%s'\n"; }; 918string = { nm = TRACE_TRAP_STATE_FMT; str = "Trap state:\n%s\n"; }; 919string = { nm = TRACE_UNKNOWN_FMT; str = "\tcode %lX -- %s\n"; }; 920string = { nm = TRACE_VER_CONVERT; str = "0x%016llX <<== '%s'\n"; }; 921string = { nm = TRACE_XTRACE_MSG; str = "Server traps set\n"; }; 922string = { nm = TRUE_NAME_STR; str = true; }; 923string = { nm = UNAME_CALL_NAME; str = "uname(2)"; }; 924 925string = { nm = USAGE_INVAL_DEP_OPT_FMT; 926 str = "invalid make dependency option: %s"; }; 927 928string = { nm = USED_DEFINES_FMT; 929 str = "echo 'definition names looked up'\n" 930 "sed 's/[-^]/-/g'|sort -u -f\n" 931 "echo 'end of looked up definitions'"; }; 932 933string = { nm = USED_DEFINES_LINE_FMT; str = "%s\n"; }; 934string = { nm = WARN_FMT; str = "WARNING: %s\n"; }; 935string = { nm = WARN_STR; str = "Warning"; }; 936string = { nm = WORD_FORMAT; str = "format"; }; 937string = { nm = YES_NAME_STR; str = yes; }; 938string = { nm = YYLEX_DF_STR; str = "'%s'\n"; }; 939 940string = { nm = YYLEX_ERR_FMT; 941 str = "%s: in %s on line %d\n" 942 "\ttoken in error: %s\n" 943 "\t[[...<error-text>]] %s\n\n" 944 "Likely causes: a mismatched quote, a value that needs " 945 "quoting,\n\t\tor a missing semi-colon\n"; }; 946 947string = { nm = YYLEX_TOKEN_STR; str = "%s: ''%s''\n"; }; 948 949string = { nm = YYLEX_UNENDING_QUOTE; 950 str = "unterminated quote in definition"; }; 951 952string = { nm = zNil; str = ""; }; 953 954/* end of ag-text.def */ 955