Changeset 3e173a in git


Ignore:
Timestamp:
Apr 14, 2011, 10:40:08 AM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'fc741b6502fd8a97288eaa3eba6e5220f3c3df87')
Children:
abff74aba5be226bf804f522482dfdcd4976a4b1
Parents:
42653b0f140bad76732590061da8a4a27f60ff2d
Message:
changlog stuff

git-svn-id: file:///usr/local/Singular/svn/trunk@14158 2c84dea3-7e68-4137-9b89-c4e89433aadc
Files:
1 deleted
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • Singular/distrib.h

    r42653b r3e173a  
    1 /*
    2 
    3 */
    4 
    5 /* define this if we pack a distribution */
    6 /* #undef MAKE_DISTRIBUTION */
     1#undef MAKE_DISTRIBUTION
  • Singular/libparse.cc

    r42653b r3e173a  
    2020
    2121/* Scanner skeleton version:
    22  * $Header: /exports/cvsroot-2/cvsroot/Singular/libparse.cc,v 1.15 2009-07-28 15:22:17 Singular Exp $
     22 * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $
    2323 */
    2424
     
    10571057#include <stdlib.h>
    10581058#include <ctype.h>
    1059 #include <Singular/mod2.h>
     1059#include <kernel/mod2.h>
    10601060#ifdef STANDALONE_PARSER
    1061   #include "utils.h"
     1061  #include <Singular/utils.h>
    10621062  #define HAVE_LIBPARSER
    10631063  #define YYLPDEBUG 1
     
    11011101
    11021102char *yylp_buffer_start;
     1103#ifndef NEW_FLEX
    11031104int yylplineno = 1;
     1105#endif /* NEW_FLEX */
    11041106int lpverbose = 0, check = 0;
    11051107int texinfo_out = 0;
     
    14101412        {
    14111413        register yy_state_type yy_current_state;
    1412         register char *yy_cp = NULL, *yy_bp = NULL;
     1414        register char *yy_cp, *yy_bp;
    14131415        register int yy_act;
    14141416
    1415 #line 228 "libparse.l"
     1417#line 231 "libparse.l"
    14161418
    14171419
     
    15061508case 1:
    15071509YY_RULE_SETUP
    1508 #line 229 "libparse.l"
     1510#line 232 "libparse.l"
    15091511{ }
    15101512        YY_BREAK
    15111513case 2:
    15121514YY_RULE_SETUP
    1513 #line 230 "libparse.l"
     1515#line 233 "libparse.l"
    15141516{ old_state = YYSTATE; BEGIN(comment); }
    15151517        YY_BREAK
    15161518case 3:
    15171519YY_RULE_SETUP
    1518 #line 232 "libparse.l"
     1520#line 235 "libparse.l"
    15191521{
    15201522         yyless(4); old_state = YYSTATE; BEGIN(info);
     
    15231525case 4:
    15241526YY_RULE_SETUP
    1525 #line 235 "libparse.l"
     1527#line 238 "libparse.l"
    15261528{
    15271529         yyless(8); old_state = YYSTATE; BEGIN(category);
     
    15301532case 5:
    15311533YY_RULE_SETUP
    1532 #line 238 "libparse.l"
     1534#line 241 "libparse.l"
    15331535{
    15341536             if ( mode != GET_INFO )
     
    15541556case 6:
    15551557YY_RULE_SETUP
    1556 #line 259 "libparse.l"
     1558#line 262 "libparse.l"
    15571559{
    15581560             found_version++;
     
    15911593case 7:
    15921594YY_RULE_SETUP
    1593 #line 293 "libparse.l"
     1595#line 296 "libparse.l"
    15941596{ p_static=TRUE; }
    15951597        YY_BREAK
    15961598case 8:
    15971599YY_RULE_SETUP
    1598 #line 295 "libparse.l"
     1600#line 298 "libparse.l"
    15991601{
    16001602             char proc[256];
     
    16691671case 9:
    16701672YY_RULE_SETUP
    1671 #line 364 "libparse.l"
     1673#line 367 "libparse.l"
    16721674{
    16731675             BEGIN(pexample);
     
    16841686case 10:
    16851687YY_RULE_SETUP
    1686 #line 376 "libparse.l"
     1688#line 379 "libparse.l"
    16871689{ quote++;
    16881690             BEGIN(libcmd);
     
    16911693case 11:
    16921694YY_RULE_SETUP
    1693 #line 380 "libparse.l"
     1695#line 383 "libparse.l"
    16941696{ quote++; brace2++;
    16951697             BEGIN(libcmd2);
     
    16981700case 12:
    16991701YY_RULE_SETUP
    1700 #line 384 "libparse.l"
     1702#line 387 "libparse.l"
    17011703{
    17021704             make_version(yytext, 0);
     
    17081710case 13:
    17091711YY_RULE_SETUP
    1710 #line 390 "libparse.l"
     1712#line 393 "libparse.l"
    17111713{
    17121714             #if YYLPDEBUG
     
    17171719case 14:
    17181720YY_RULE_SETUP
    1719 #line 395 "libparse.l"
     1721#line 398 "libparse.l"
    17201722{
    17211723             #if YYLPDEBUG > 1
     
    17261728case 15:
    17271729YY_RULE_SETUP
    1728 #line 400 "libparse.l"
     1730#line 403 "libparse.l"
    17291731{ yyless(0);
    17301732             BEGIN(INITIAL);
     
    17341736case 16:
    17351737YY_RULE_SETUP
    1736 #line 404 "libparse.l"
     1738#line 407 "libparse.l"
    17371739{
    17381740             yyless(0);
     
    17441746case 17:
    17451747YY_RULE_SETUP
    1746 #line 411 "libparse.l"
     1748#line 414 "libparse.l"
    17471749{ quote++;
    17481750             BEGIN(libcmd);
     
    17511753case 18:
    17521754YY_RULE_SETUP
    1753 #line 414 "libparse.l"
     1755#line 417 "libparse.l"
    17541756{ quote++; brace2++;
    17551757             BEGIN(libcmd2);
     
    17581760case 19:
    17591761YY_RULE_SETUP
    1760 #line 417 "libparse.l"
     1762#line 420 "libparse.l"
    17611763{ yylplineno++; }
    17621764        YY_BREAK
    17631765case 20:
    17641766YY_RULE_SETUP
    1765 #line 418 "libparse.l"
     1767#line 421 "libparse.l"
    17661768{
    17671769             #if YYLPDEBUG > 1
     
    17741776case 21:
    17751777YY_RULE_SETUP
    1776 #line 425 "libparse.l"
     1778#line 428 "libparse.l"
    17771779{
    17781780             #if YYLPDEBUG > 1
     
    17831785case 22:
    17841786YY_RULE_SETUP
    1785 #line 430 "libparse.l"
     1787#line 433 "libparse.l"
    17861788{
    17871789             #if YYLPDEBUG > 1
     
    17931795case 23:
    17941796YY_RULE_SETUP
    1795 #line 436 "libparse.l"
     1797#line 439 "libparse.l"
    17961798{
    17971799             yyless(0);
     
    18031805case 24:
    18041806YY_RULE_SETUP
    1805 #line 442 "libparse.l"
     1807#line 445 "libparse.l"
    18061808{
    18071809             yyless(0);
     
    18131815case 25:
    18141816YY_RULE_SETUP
    1815 #line 448 "libparse.l"
     1817#line 451 "libparse.l"
    18161818{ quote++;
    18171819             BEGIN(libcmd);
     
    18201822case 26:
    18211823YY_RULE_SETUP
    1822 #line 451 "libparse.l"
     1824#line 454 "libparse.l"
    18231825{ quote++; brace2++;
    18241826             BEGIN(libcmd2);
     
    18271829case 27:
    18281830YY_RULE_SETUP
    1829 #line 455 "libparse.l"
     1831#line 458 "libparse.l"
    18301832{ yylplineno++; }
    18311833        YY_BREAK
    18321834case 28:
    18331835YY_RULE_SETUP
    1834 #line 456 "libparse.l"
     1836#line 459 "libparse.l"
    18351837{
    18361838             #if YYLPDEBUG
     
    18411843case 29:
    18421844YY_RULE_SETUP
    1843 #line 461 "libparse.l"
     1845#line 464 "libparse.l"
    18441846{
    18451847             found_oldhelp=1;
     
    18511853case 30:
    18521854YY_RULE_SETUP
    1853 #line 469 "libparse.l"
     1855#line 472 "libparse.l"
    18541856{ quote--;
    18551857             yytext[yyleng-1] = '\0';
     
    18681870case 31:
    18691871YY_RULE_SETUP
    1870 #line 482 "libparse.l"
     1872#line 485 "libparse.l"
    18711873{ quote--; brace2--;
    18721874             yytext[yyleng-1] = '\0';
     
    18851887case 32:
    18861888YY_RULE_SETUP
    1887 #line 496 "libparse.l"
     1889#line 499 "libparse.l"
    18881890{ }
    18891891        YY_BREAK
    18901892case 33:
    18911893YY_RULE_SETUP
    1892 #line 497 "libparse.l"
     1894#line 500 "libparse.l"
    18931895{
    18941896             brace2++;
     
    19001902case 34:
    19011903YY_RULE_SETUP
    1902 #line 503 "libparse.l"
     1904#line 506 "libparse.l"
    19031905{
    19041906             brace2--;
     
    19191921case 35:
    19201922YY_RULE_SETUP
    1921 #line 518 "libparse.l"
     1923#line 521 "libparse.l"
    19221924{
    19231925             if(brace2>0)
     
    19411943case 36:
    19421944YY_RULE_SETUP
    1943 #line 536 "libparse.l"
     1945#line 539 "libparse.l"
    19441946{ yylplineno++;
    19451947              if(brace2<=0)
     
    19541956case 37:
    19551957YY_RULE_SETUP
    1956 #line 545 "libparse.l"
     1958#line 548 "libparse.l"
    19571959{ }
    19581960        YY_BREAK
    19591961case 38:
    19601962YY_RULE_SETUP
    1961 #line 546 "libparse.l"
     1963#line 549 "libparse.l"
    19621964{ old_state = YYSTATE; BEGIN(comment); }
    19631965        YY_BREAK
    19641966case 39:
    19651967YY_RULE_SETUP
    1966 #line 547 "libparse.l"
     1968#line 550 "libparse.l"
    19671969{
    19681970             if(brace2<=0)
     
    19751977case 40:
    19761978YY_RULE_SETUP
    1977 #line 555 "libparse.l"
     1979#line 558 "libparse.l"
    19781980{
    19791981              #if YYLPDEBUG
     
    19921994case 41:
    19931995YY_RULE_SETUP
    1994 #line 568 "libparse.l"
     1996#line 571 "libparse.l"
    19951997{
    19961998              #if YYLPDEBUG
     
    20032005case 42:
    20042006YY_RULE_SETUP
    2005 #line 575 "libparse.l"
     2007#line 578 "libparse.l"
    20062008{
    20072009              if(check && yyleng>2)
     
    20212023case 43:
    20222024YY_RULE_SETUP
    2023 #line 589 "libparse.l"
     2025#line 592 "libparse.l"
    20242026{ printf("[%s]", yytext); }
    20252027        YY_BREAK
    20262028case 44:
    20272029YY_RULE_SETUP
    2028 #line 591 "libparse.l"
     2030#line 594 "libparse.l"
    20292031{ }
    20302032        YY_BREAK
    20312033case 45:
    20322034YY_RULE_SETUP
    2033 #line 592 "libparse.l"
     2035#line 595 "libparse.l"
    20342036{
    20352037                SET_HELP_END(mode, pi, current_pos(0));
     
    20532055case 46:
    20542056YY_RULE_SETUP
    2055 #line 610 "libparse.l"
     2057#line 613 "libparse.l"
    20562058{ yylplineno++; }
    20572059        YY_BREAK
    20582060case 47:
    20592061YY_RULE_SETUP
    2060 #line 611 "libparse.l"
     2062#line 614 "libparse.l"
    20612063{ }
    20622064        YY_BREAK
    20632065case 48:
    20642066YY_RULE_SETUP
    2065 #line 613 "libparse.l"
     2067#line 616 "libparse.l"
    20662068{
    20672069             old_state = YYSTATE;
     
    20722074case 49:
    20732075YY_RULE_SETUP
    2074 #line 618 "libparse.l"
     2076#line 621 "libparse.l"
    20752077{}
    20762078        YY_BREAK
    20772079case 50:
    20782080YY_RULE_SETUP
    2079 #line 619 "libparse.l"
     2081#line 622 "libparse.l"
    20802082{
    20812083             brace1++; BEGIN(pbody);
     
    20982100case 51:
    20992101YY_RULE_SETUP
    2100 #line 636 "libparse.l"
     2102#line 639 "libparse.l"
    21012103{ yylplineno++;}
    21022104        YY_BREAK
    21032105case 52:
    21042106YY_RULE_SETUP
    2105 #line 638 "libparse.l"
     2107#line 641 "libparse.l"
    21062108{ }
    21072109        YY_BREAK
    21082110case 53:
    21092111YY_RULE_SETUP
    2110 #line 639 "libparse.l"
     2112#line 642 "libparse.l"
    21112113{ quote++; old_state = YYSTATE;
    21122114                 BEGIN(string); /* printf("%s", yytext); */
     
    21152117case 54:
    21162118YY_RULE_SETUP
    2117 #line 643 "libparse.l"
     2119#line 646 "libparse.l"
    21182120{
    21192121             if(check) printf("*** found 2 proc whithin procedure '%s'.\n",
     
    21242126case 55:
    21252127YY_RULE_SETUP
    2126 #line 648 "libparse.l"
     2128#line 651 "libparse.l"
    21272129{
    21282130             if(check) printf("*** found 1 proc whithin procedure '%s'.\n",
     
    21332135case 56:
    21342136YY_RULE_SETUP
    2135 #line 653 "libparse.l"
     2137#line 656 "libparse.l"
    21362138{
    21372139                 brace1++;
     
    21432145case 57:
    21442146YY_RULE_SETUP
    2145 #line 659 "libparse.l"
     2147#line 662 "libparse.l"
    21462148{
    21472149                           #if YYLPDEBUG > 1
     
    21732175case 58:
    21742176YY_RULE_SETUP
    2175 #line 685 "libparse.l"
     2177#line 688 "libparse.l"
    21762178{
    21772179                           brace2++; /* printf("%s", yytext); */
     
    21802182case 59:
    21812183YY_RULE_SETUP
    2182 #line 688 "libparse.l"
     2184#line 691 "libparse.l"
    21832185{
    21842186                           brace2--; /* printf("%s", yytext); */
     
    21912193case 60:
    21922194YY_RULE_SETUP
    2193 #line 695 "libparse.l"
     2195#line 698 "libparse.l"
    21942196{
    21952197                           brace3++; /* printf("%s", yytext); */
     
    21982200case 61:
    21992201YY_RULE_SETUP
    2200 #line 698 "libparse.l"
     2202#line 701 "libparse.l"
    22012203{
    22022204                           brace3--; /* printf("%s", yytext); */
     
    22092211case 62:
    22102212YY_RULE_SETUP
    2211 #line 705 "libparse.l"
     2213#line 708 "libparse.l"
    22122214{ yylplineno++; }
    22132215        YY_BREAK
    22142216case 63:
    22152217YY_RULE_SETUP
    2216 #line 706 "libparse.l"
     2218#line 709 "libparse.l"
    22172219{ }
    22182220        YY_BREAK
    22192221case 64:
    22202222YY_RULE_SETUP
    2221 #line 708 "libparse.l"
     2223#line 711 "libparse.l"
    22222224{
    22232225             quote++; BEGIN(string);
     
    22302232case 65:
    22312233YY_RULE_SETUP
    2232 #line 715 "libparse.l"
     2234#line 718 "libparse.l"
    22332235{ yylplineno++; }
    22342236        YY_BREAK
    22352237case 66:
    22362238YY_RULE_SETUP
    2237 #line 716 "libparse.l"
     2239#line 719 "libparse.l"
    22382240{ }
    22392241        YY_BREAK
    22402242case 67:
    22412243YY_RULE_SETUP
    2242 #line 718 "libparse.l"
     2244#line 721 "libparse.l"
    22432245{
    22442246             quote++; BEGIN(string);
     
    22512253case 68:
    22522254YY_RULE_SETUP
    2253 #line 725 "libparse.l"
     2255#line 728 "libparse.l"
    22542256{ yylplineno++; }
    22552257        YY_BREAK
    22562258case 69:
    22572259YY_RULE_SETUP
    2258 #line 726 "libparse.l"
     2260#line 729 "libparse.l"
    22592261{ }
    22602262        YY_BREAK
    22612263case 70:
    22622264YY_RULE_SETUP
    2263 #line 729 "libparse.l"
     2265#line 732 "libparse.l"
    22642266{ quote--;
    22652267                           copy_string(mode);
     
    22742276case 71:
    22752277YY_RULE_SETUP
    2276 #line 738 "libparse.l"
     2278#line 741 "libparse.l"
    22772279{ if (old_state == phelp) IncrCheckSum(*yytext);}
    22782280        YY_BREAK
    22792281case 72:
    22802282YY_RULE_SETUP
    2281 #line 739 "libparse.l"
     2283#line 742 "libparse.l"
    22822284{ yylplineno++; if (old_state == phelp) IncrCheckSum('\n');}
    22832285        YY_BREAK
    22842286case 73:
    22852287YY_RULE_SETUP
    2286 #line 740 "libparse.l"
     2288#line 743 "libparse.l"
    22872289{ if (old_state == phelp) IncrCheckSum(*yytext);}
    22882290        YY_BREAK
    22892291case 74:
    22902292YY_RULE_SETUP
    2291 #line 742 "libparse.l"
     2293#line 745 "libparse.l"
    22922294{ }
    22932295        YY_BREAK
    22942296case 75:
    22952297YY_RULE_SETUP
    2296 #line 743 "libparse.l"
     2298#line 746 "libparse.l"
    22972299{ quote++; old_state = YYSTATE;
    22982300                           BEGIN(string); /* printf("%s", yytext); */
     
    23012303case 76:
    23022304YY_RULE_SETUP
    2303 #line 746 "libparse.l"
     2305#line 749 "libparse.l"
    23042306{
    23052307                           brace1++; /* printf("(%d)%s", brace1, yytext); */
     
    23082310case 77:
    23092311YY_RULE_SETUP
    2310 #line 749 "libparse.l"
     2312#line 752 "libparse.l"
    23112313{
    23122314                           brace1--; /* printf("(%d)%s", brace1, yytext); */
     
    23212323case 78:
    23222324YY_RULE_SETUP
    2323 #line 758 "libparse.l"
     2325#line 761 "libparse.l"
    23242326{
    23252327                           brace2++; /* printf("%s", yytext); */
     
    23282330case 79:
    23292331YY_RULE_SETUP
    2330 #line 761 "libparse.l"
     2332#line 764 "libparse.l"
    23312333{
    23322334                           brace2--; /* printf("%s", yytext); */
     
    23352337case 80:
    23362338YY_RULE_SETUP
    2337 #line 764 "libparse.l"
     2339#line 767 "libparse.l"
    23382340{
    23392341                           brace3++; /* printf("%s", yytext); */
     
    23422344case 81:
    23432345YY_RULE_SETUP
    2344 #line 767 "libparse.l"
     2346#line 770 "libparse.l"
    23452347{
    23462348                           brace3--; /* printf("%s", yytext); */
     
    23492351case 82:
    23502352YY_RULE_SETUP
    2351 #line 770 "libparse.l"
     2353#line 773 "libparse.l"
    23522354{ yylplineno++; }
    23532355        YY_BREAK
    23542356case 83:
    23552357YY_RULE_SETUP
    2356 #line 771 "libparse.l"
     2358#line 774 "libparse.l"
    23572359{ }
    23582360        YY_BREAK
    23592361case 84:
    23602362YY_RULE_SETUP
    2361 #line 773 "libparse.l"
     2363#line 776 "libparse.l"
    23622364{ quote--;
    23632365                           BEGIN(pexample); /* printf("%s", yytext); */
     
    23662368case 85:
    23672369YY_RULE_SETUP
    2368 #line 776 "libparse.l"
    2369 { }
    2370         YY_BREAK
    2371 case 86:
    2372 YY_RULE_SETUP
    2373 #line 777 "libparse.l"
    2374 { }
    2375         YY_BREAK
    2376 case 87:
    2377 YY_RULE_SETUP
    2378 #line 778 "libparse.l"
    2379 { yylplineno++; }
    2380         YY_BREAK
    2381 case 88:
    2382 YY_RULE_SETUP
    23832370#line 779 "libparse.l"
    23842371{ }
    23852372        YY_BREAK
     2373case 86:
     2374YY_RULE_SETUP
     2375#line 780 "libparse.l"
     2376{ }
     2377        YY_BREAK
     2378case 87:
     2379YY_RULE_SETUP
     2380#line 781 "libparse.l"
     2381{ yylplineno++; }
     2382        YY_BREAK
     2383case 88:
     2384YY_RULE_SETUP
     2385#line 782 "libparse.l"
     2386{ }
     2387        YY_BREAK
    23862388case 89:
    23872389YY_RULE_SETUP
    2388 #line 781 "libparse.l"
     2390#line 784 "libparse.l"
    23892391{ BEGIN(old_state); }
    23902392        YY_BREAK
    23912393case 90:
    2392 YY_RULE_SETUP
    2393 #line 782 "libparse.l"
    2394 { yylplineno++; }
    2395         YY_BREAK
    2396 case 91:
    2397 YY_RULE_SETUP
    2398 #line 783 "libparse.l"
    2399 { }
    2400         YY_BREAK
    2401 case 92:
    24022394YY_RULE_SETUP
    24032395#line 785 "libparse.l"
    24042396{ yylplineno++; }
    24052397        YY_BREAK
    2406 case 93:
     2398case 91:
    24072399YY_RULE_SETUP
    24082400#line 786 "libparse.l"
    24092401{ }
    24102402        YY_BREAK
     2403case 92:
     2404YY_RULE_SETUP
     2405#line 788 "libparse.l"
     2406{ yylplineno++; }
     2407        YY_BREAK
     2408case 93:
     2409YY_RULE_SETUP
     2410#line 789 "libparse.l"
     2411{ }
     2412        YY_BREAK
    24112413case 94:
    24122414YY_RULE_SETUP
    2413 #line 787 "libparse.l"
     2415#line 790 "libparse.l"
    24142416{ p_static = FALSE;
    24152417                            #if YYLPDEBUG > 1
     
    24202422case 95:
    24212423YY_RULE_SETUP
    2422 #line 792 "libparse.l"
     2424#line 795 "libparse.l"
    24232425{ p_static = FALSE;
    24242426                           yylp_errno = YYLP_BAD_CHAR;
     
    24382440case 96:
    24392441YY_RULE_SETUP
    2440 #line 807 "libparse.l"
     2442#line 810 "libparse.l"
    24412443ECHO;
    24422444        YY_BREAK
     
    33463348        }
    33473349#endif
    3348 #line 807 "libparse.l"
     3350#line 810 "libparse.l"
    33493351
    33503352
     
    33863388   quote  = 0;
    33873389   yy_init=1;
    3388    yy_delete_buffer(yy_current_buffer);
     3390   yy_delete_buffer(YY_CURRENT_BUFFER);
    33893391}
    33903392
  • Singular/scanner.cc

    r42653b r3e173a  
    571571int feReadLine(char* b, int l);
    572572#define ALLOC(a) omAlloc((a))
     573#ifndef NEW_FLEX
    573574int yylineno  = 0;
     575#endif /* NEW_LEX */
    574576int blocknest = 0;
    575577extern char * yytext;
     
    815817        {
    816818        register yy_state_type yy_current_state;
    817         register char *yy_cp = NULL, *yy_bp = NULL;
     819        register char *yy_cp, *yy_bp;
    818820        register int yy_act;
    819821
    820 #line 120 "scanner.l"
     822#line 122 "scanner.l"
    821823
    822824
     
    911913case 1:
    912914YY_RULE_SETUP
    913 #line 121 "scanner.l"
     915#line 123 "scanner.l"
    914916{ }
    915917        YY_BREAK
    916918case 2:
    917919YY_RULE_SETUP
    918 #line 122 "scanner.l"
     920#line 124 "scanner.l"
    919921{ }
    920922        YY_BREAK
    921923case 3:
    922924YY_RULE_SETUP
    923 #line 123 "scanner.l"
     925#line 125 "scanner.l"
    924926{
    925927                           yy_noeof=noeof_comment;
     
    943945case 4:
    944946YY_RULE_SETUP
    945 #line 141 "scanner.l"
     947#line 143 "scanner.l"
    946948{ prompt_char='.';
    947949                           blocknest = 0; yy_noeof = noeof_brace; BEGIN(brace);
     
    950952case 5:
    951953YY_RULE_SETUP
    952 #line 144 "scanner.l"
     954#line 146 "scanner.l"
    953955{ prompt_char='.';
    954956                           blocknest = 0; yy_noeof = noeof_brace; BEGIN(brace);
     
    957959case 6:
    958960YY_RULE_SETUP
    959 #line 148 "scanner.l"
     961#line 150 "scanner.l"
    960962{ yy_noeof = noeof_asstring;
    961963                           BEGIN(asstring);
     
    965967case 7:
    966968YY_RULE_SETUP
    967 #line 153 "scanner.l"
     969#line 155 "scanner.l"
    968970{ yy_noeof = noeof_asstring;
    969971                           BEGIN(asstring);
     
    973975case 8:
    974976YY_RULE_SETUP
    975 #line 158 "scanner.l"
     977#line 160 "scanner.l"
    976978{
    977979                           char c; char *cp;
     
    985987case 9:
    986988YY_RULE_SETUP
    987 #line 166 "scanner.l"
     989#line 168 "scanner.l"
    988990{
    989991                           lvalp->name = omStrDup((char *)yytext);
     
    994996case 10:
    995997YY_RULE_SETUP
    996 #line 171 "scanner.l"
     998#line 173 "scanner.l"
    997999{
    9981000                           yy_noeof = 0; BEGIN(INITIAL);
     
    10021004case 11:
    10031005YY_RULE_SETUP
    1004 #line 176 "scanner.l"
     1006#line 178 "scanner.l"
    10051007{
    10061008                           yy_noeof = noeof_string;
     
    10111013case 12:
    10121014YY_RULE_SETUP
    1013 #line 181 "scanner.l"
     1015#line 183 "scanner.l"
    10141016{ if (blocknest++) yymore(); }
    10151017        YY_BREAK
    10161018case 13:
    10171019YY_RULE_SETUP
    1018 #line 182 "scanner.l"
     1020#line 184 "scanner.l"
    10191021{ if (blocknest) yymore(); }
    10201022        YY_BREAK
    10211023case 14:
    10221024YY_RULE_SETUP
    1023 #line 183 "scanner.l"
     1025#line 185 "scanner.l"
    10241026{
    10251027                           if (blocknest)
     
    10321034case 15:
    10331035YY_RULE_SETUP
    1034 #line 190 "scanner.l"
     1036#line 192 "scanner.l"
    10351037{
    10361038                           if (--blocknest <= 0)
     
    10461048case 16:
    10471049YY_RULE_SETUP
    1048 #line 200 "scanner.l"
     1050#line 202 "scanner.l"
    10491051{
    10501052                           yy_noeof = noeof_brace;
     
    10551057case 17:
    10561058YY_RULE_SETUP
    1057 #line 205 "scanner.l"
     1059#line 207 "scanner.l"
    10581060{ yymore(); }
    10591061        YY_BREAK
    10601062case 18:
    10611063YY_RULE_SETUP
    1062 #line 206 "scanner.l"
     1064#line 208 "scanner.l"
    10631065{ return '('; }
    10641066        YY_BREAK
    10651067case 19:
    10661068YY_RULE_SETUP
    1067 #line 207 "scanner.l"
     1069#line 209 "scanner.l"
    10681070{ return ','; }
    10691071        YY_BREAK
    10701072case 20:
    10711073YY_RULE_SETUP
    1072 #line 208 "scanner.l"
     1074#line 210 "scanner.l"
    10731075{ ; }
    10741076        YY_BREAK
    10751077case 21:
    10761078YY_RULE_SETUP
    1077 #line 209 "scanner.l"
     1079#line 211 "scanner.l"
    10781080{
    10791081                           lvalp->name = omStrDup((char *)yytext);
     
    10831085case 22:
    10841086YY_RULE_SETUP
    1085 #line 213 "scanner.l"
     1087#line 215 "scanner.l"
    10861088{
    10871089                           lvalp->name = omStrDup((char *)yytext);
     
    10911093case 23:
    10921094YY_RULE_SETUP
    1093 #line 217 "scanner.l"
     1095#line 219 "scanner.l"
    10941096{
    10951097                           yy_noeof = 0; BEGIN(INITIAL);
     
    10991101case 24:
    11001102YY_RULE_SETUP
    1101 #line 222 "scanner.l"
     1103#line 224 "scanner.l"
    11021104{
    11031105                           yy_blocklineno = yylineno;
     
    11091111case 25:
    11101112YY_RULE_SETUP
    1111 #line 228 "scanner.l"
     1113#line 230 "scanner.l"
    11121114{
    11131115                           yy_noeof = noeof_string;
     
    11181120case 26:
    11191121YY_RULE_SETUP
    1120 #line 233 "scanner.l"
    1121 { yymore(); }
    1122         YY_BREAK
    1123 case 27:
    1124 YY_RULE_SETUP
    1125 #line 234 "scanner.l"
    1126 { yymore(); }
    1127         YY_BREAK
    1128 case 28:
    1129 YY_RULE_SETUP
    11301122#line 235 "scanner.l"
    11311123{ yymore(); }
    11321124        YY_BREAK
     1125case 27:
     1126YY_RULE_SETUP
     1127#line 236 "scanner.l"
     1128{ yymore(); }
     1129        YY_BREAK
     1130case 28:
     1131YY_RULE_SETUP
     1132#line 237 "scanner.l"
     1133{ yymore(); }
     1134        YY_BREAK
    11331135case 29:
    11341136YY_RULE_SETUP
    1135 #line 236 "scanner.l"
     1137#line 238 "scanner.l"
    11361138{
    11371139                           yy_noeof = noeof_block;
     
    11421144case 30:
    11431145YY_RULE_SETUP
    1144 #line 241 "scanner.l"
     1146#line 243 "scanner.l"
    11451147{ yymore(); }
    11461148        YY_BREAK
    11471149case 31:
    11481150YY_RULE_SETUP
    1149 #line 242 "scanner.l"
     1151#line 244 "scanner.l"
    11501152{ yymore(); }
    11511153        YY_BREAK
    11521154case 32:
    11531155YY_RULE_SETUP
    1154 #line 243 "scanner.l"
     1156#line 245 "scanner.l"
    11551157{ blocknest++; yymore(); }
    11561158        YY_BREAK
    11571159case 33:
    11581160YY_RULE_SETUP
    1159 #line 244 "scanner.l"
     1161#line 246 "scanner.l"
    11601162{
    11611163                           if (--blocknest <= 0)
     
    11711173case 34:
    11721174YY_RULE_SETUP
    1173 #line 254 "scanner.l"
     1175#line 256 "scanner.l"
    11741176{ BEGIN(string); yy_noeof = noeof_string;}
    11751177        YY_BREAK
    11761178case 35:
    11771179YY_RULE_SETUP
    1178 #line 255 "scanner.l"
     1180#line 257 "scanner.l"
    11791181{ return SYS_BREAK; }
    11801182        YY_BREAK
    11811183case 36:
    1182 YY_RULE_SETUP
    1183 #line 256 "scanner.l"
    1184 { yymore(); }
    1185         YY_BREAK
    1186 case 37:
    1187 YY_RULE_SETUP
    1188 #line 257 "scanner.l"
    1189 { yymore(); }
    1190         YY_BREAK
    1191 case 38:
    11921184YY_RULE_SETUP
    11931185#line 258 "scanner.l"
    11941186{ yymore(); }
    11951187        YY_BREAK
     1188case 37:
     1189YY_RULE_SETUP
     1190#line 259 "scanner.l"
     1191{ yymore(); }
     1192        YY_BREAK
     1193case 38:
     1194YY_RULE_SETUP
     1195#line 260 "scanner.l"
     1196{ yymore(); }
     1197        YY_BREAK
    11961198case 39:
    11971199YY_RULE_SETUP
    1198 #line 259 "scanner.l"
     1200#line 261 "scanner.l"
    11991201{
    12001202                           char * s;
     
    12131215case 40:
    12141216YY_RULE_SETUP
    1215 #line 273 "scanner.l"
     1217#line 275 "scanner.l"
    12161218/* skip whitespace */
    12171219        YY_BREAK
    12181220case 41:
    12191221YY_RULE_SETUP
    1220 #line 274 "scanner.l"
     1222#line 276 "scanner.l"
    12211223{ return DOTDOT; }
    12221224        YY_BREAK
    12231225case 42:
    12241226YY_RULE_SETUP
    1225 #line 275 "scanner.l"
     1227#line 277 "scanner.l"
    12261228{ return COLONCOLON; }
    12271229        YY_BREAK
    12281230case 43:
    12291231YY_RULE_SETUP
    1230 #line 276 "scanner.l"
     1232#line 278 "scanner.l"
    12311233{ return MINUSMINUS; }
    12321234        YY_BREAK
    12331235case 44:
    12341236YY_RULE_SETUP
    1235 #line 277 "scanner.l"
     1237#line 279 "scanner.l"
    12361238{ return PLUSPLUS  ; }
    12371239        YY_BREAK
    12381240case 45:
    12391241YY_RULE_SETUP
    1240 #line 278 "scanner.l"
     1242#line 280 "scanner.l"
    12411243{ return EQUAL_EQUAL; }
    12421244        YY_BREAK
    12431245case 46:
    12441246YY_RULE_SETUP
    1245 #line 279 "scanner.l"
     1247#line 281 "scanner.l"
    12461248{ lvalp->i='&'; return LOGIC_OP; }
    12471249        YY_BREAK
    12481250case 47:
    12491251YY_RULE_SETUP
    1250 #line 280 "scanner.l"
     1252#line 282 "scanner.l"
    12511253{ lvalp->i='|'; return LOGIC_OP; }
    12521254        YY_BREAK
    12531255case 48:
    12541256YY_RULE_SETUP
    1255 #line 281 "scanner.l"
     1257#line 283 "scanner.l"
    12561258{ lvalp->i=LE; return COMP_OP; }
    12571259        YY_BREAK
    12581260case 49:
    12591261YY_RULE_SETUP
    1260 #line 282 "scanner.l"
     1262#line 284 "scanner.l"
    12611263{ lvalp->i=GE; return COMP_OP; }
    12621264        YY_BREAK
    12631265case 50:
    12641266YY_RULE_SETUP
    1265 #line 283 "scanner.l"
     1267#line 285 "scanner.l"
    12661268{ return NOT; }
    12671269        YY_BREAK
    12681270case 51:
    12691271YY_RULE_SETUP
    1270 #line 284 "scanner.l"
     1272#line 286 "scanner.l"
    12711273{ return NOTEQUAL; }
    12721274        YY_BREAK
    12731275case 52:
    12741276YY_RULE_SETUP
    1275 #line 285 "scanner.l"
     1277#line 287 "scanner.l"
    12761278{ return NOTEQUAL; }
    12771279        YY_BREAK
    12781280case 53:
    12791281YY_RULE_SETUP
    1280 #line 286 "scanner.l"
     1282#line 288 "scanner.l"
    12811283{ return '^'; }
    12821284        YY_BREAK
    12831285case 54:
    12841286YY_RULE_SETUP
    1285 #line 287 "scanner.l"
     1287#line 289 "scanner.l"
    12861288{ return '\\'; }
    12871289        YY_BREAK
    12881290case 55:
    12891291YY_RULE_SETUP
    1290 #line 288 "scanner.l"
     1292#line 290 "scanner.l"
    12911293{
    12921294                           lvalp->name = omStrDup("\n");
     
    12961298case 56:
    12971299YY_RULE_SETUP
    1298 #line 292 "scanner.l"
     1300#line 294 "scanner.l"
    12991301{
    13001302                           lvalp->name = (char *)yytext;
     
    13041306case 57:
    13051307YY_RULE_SETUP
    1306 #line 296 "scanner.l"
     1308#line 298 "scanner.l"
    13071309{
    13081310                           lvalp->name = (char *)yytext;
     
    13121314case 58:
    13131315YY_RULE_SETUP
    1314 #line 300 "scanner.l"
     1316#line 302 "scanner.l"
    13151317{
    13161318                           m2_end(-1);
     
    13191321case 59:
    13201322YY_RULE_SETUP
    1321 #line 303 "scanner.l"
     1323#line 305 "scanner.l"
    13221324{
    13231325                           #ifdef MM_STAT
     
    13341336case 60:
    13351337YY_RULE_SETUP
    1336 #line 315 "scanner.l"
     1338#line 317 "scanner.l"
    13371339{
    13381340                           lvalp->name = (char *)yytext;
     
    13421344case 61:
    13431345YY_RULE_SETUP
    1344 #line 319 "scanner.l"
     1346#line 321 "scanner.l"
    13451347{
    13461348                           lvalp->name = (char *)yytext;
     
    13531355YY_DO_BEFORE_ACTION; /* set up yytext again */
    13541356YY_RULE_SETUP
    1355 #line 323 "scanner.l"
     1357#line 325 "scanner.l"
    13561358{
    13571359                           lvalp->name = (char *)yytext;
     
    13611363case 63:
    13621364YY_RULE_SETUP
    1363 #line 328 "scanner.l"
     1365#line 330 "scanner.l"
    13641366{
    13651367                           /* {name} */
     
    13801382case 64:
    13811383YY_RULE_SETUP
    1382 #line 344 "scanner.l"
     1384#line 346 "scanner.l"
    13831385{
    13841386                           /*if (*yytext == '\n') REJECT;*/
     
    14051407case 65:
    14061408YY_RULE_SETUP
    1407 #line 365 "scanner.l"
     1409#line 367 "scanner.l"
    14081410YY_FATAL_ERROR( "flex scanner jammed" );
    14091411        YY_BREAK
     
    23022304        }
    23032305#endif
    2304 #line 365 "scanner.l"
     2306#line 367 "scanner.l"
    23052307
    23062308
    23072309void * myynewbuffer()
    23082310{
    2309   void * oldb = yy_current_buffer;
     2311  void * oldb = YY_CURRENT_BUFFER;
    23102312  yy_switch_to_buffer(yy_create_buffer(NULL, YY_BUF_SIZE));
    23112313  return oldb;
     
    23142316void myyoldbuffer(void * oldb)
    23152317{
    2316   yy_delete_buffer(yy_current_buffer);
     2318  yy_delete_buffer(YY_CURRENT_BUFFER);
    23172319  yy_switch_to_buffer((YY_BUFFER_STATE)oldb);
    23182320  //yy_flush_buffer((YY_BUFFER_STATE)oldb);
Note: See TracChangeset for help on using the changeset viewer.