Error al crear librerias xharbour una version vieja

Error al crear librerias xharbour una version vieja

Postby ruben Dario » Sat Jun 11, 2016 9:47 pm

Saludos al Forum
Trato de crear la contribucion de xharbour una version vieja al dar este instrucion da error

bison -v -d source\compiler\harbour.sly -oobj\b32\harboury.c
** error 1 ** deleting obj\b32\harboury.c
Este es el error

source\compiler\harbour.sly:1809.56-67: Integer Out of range '$lNumber'

Estes e un trozo de codigo harbour.sly
esta es la instrucion que da error
| EmptyStatements LineStat { $<lNumber>$ += $<lNumber>3; }
Hago es cambio, coloco 2 en vez 3 y pasa el bison.

Code: Select all  Expand view

IfEndif    : IfBegin EndIf                    { hb_compGenJumpHere( $1 ); }
           | IfBegin IfElse EndIf             { hb_compGenJumpHere( $1 ); }
           | IfBegin IfElseIf EndIf           { hb_compGenJumpHere( $1 ); hb_compElseIfFix( $2 ); }
           | IfBegin IfElseIf IfElse EndIf    { hb_compGenJumpHere( $1 ); hb_compElseIfFix( $2 ); }
           ;

EmptyStatements : LineStat             { $<lNumber>$ = $<lNumber>1; }
           | EmptyStatements LineStat  { $<lNumber>$ += $<lNumber>3; }
           ;

EmptyStats : /* empty */           { $<lNumber>$ = 0; }
           | EmptyStatements       { $<lNumber>$ = $<lNumber>1; }

 


ahora el erroror esta en harbour.c

MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
bison -v -d source\compiler\harbour.sly -oobj\b32\harboury.c
bcc32 -c -Iinclude;source\compiler;source\macro -d -5 -6 -OS -a8 -DHB_FM_STATISTICS_OFF -O2 -D__EXPORT__ -DHB_GUI -tWM -DHB_FM_STATISTICS_OFF -DHB_INCLUDE_WINEXCHANDLER -DHARBOUR_MAIN_WIN -d -a8 -OS -O2 -5 -6 -DSIMPLEX -oobj\b32\harboury.obj obj\b32\harboury.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
obj\b32\harboury.c:
Warning W8004 obj\\b32\\harboury.c 3356: 'yymsg' is assigned a value that is never used in function yydestruct
Error E2040 obj\\b32\\harboury.c 3418: Declaration terminated incorrectly
*** 1 errors in Compile ***

** error 1 ** deleting obj\b32\harboury.obj
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
bcc32 -DHB_THREAD_SUPPORT -c -Iinclude;source\compiler;source\macro -d -5 -6 -OS -a8 -DHB_FM_STATISTICS_OFF -O2 -D__EXPORT__ -DHB_GUI -tWM -DHB_FM_STATISTICS_OFF -DHB_INCLUDE_WINEXCHANDLER -DHARBOUR_MAIN_WIN -d -a8 -OS -O2 -5 -6 -DSIMPLEX -oobj\b32\harboury.obj obj\b32\harboury.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
obj\b32\harboury.c:
Warning W8004 obj\\b32\\harboury.c 3356: 'yymsg' is assigned a value that is never used in function yydestruct
Error E2040 obj\\b32\\harboury.c 3418: Declaration terminated incorrectly
*** 1 errors in Compile ***

** error 1 ** deleting obj\b32\harboury.obj
pero esta extension harboury.c lo construye el bison, alquien me puede orientar.

Code: Select all  Expand view

#if defined (__STDC__) || defined (__cplusplus)
static void
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
#else
static void
yydestruct (yymsg, yytype, yyvaluep)
    const char *yymsg;
    int yytype;
    YYSTYPE *yyvaluep;
#endif
{
  /* Pacify ``unused variable'' warnings.  */
  (void) yyvaluep;

  if (!yymsg)
    yymsg = "Deleting";
  YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);

  switch (yytype)
    {

      default:
        break;
    }
}

 
Ruben Dario Gonzalez
Cali-Colombia
rubendariogd@hotmail.com - rubendariogd@gmail.com
User avatar
ruben Dario
 
Posts: 1061
Joined: Thu Sep 27, 2007 3:47 pm
Location: Colombia

Re: Error al crear librerias xharbour una version vieja

Postby Antonio Linares » Tue Jun 14, 2016 11:26 am

Ruben,

Que código hay en la línea 3418 de harboury.c ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41366
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Error al crear librerias xharbour una version vieja

Postby ruben Dario » Tue Jun 14, 2016 1:57 pm

Antonio Linares wrote:Ruben,

Que código hay en la línea 3418 de harboury.c ?


Gracias Antonio Anexo los errores.

Linea 3356
Code: Select all  Expand view


        #if defined (__STDC__) || defined (__cplusplus)
        static void
        yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
        #else
        static void
        yydestruct (yymsg, yytype, yyvaluep)
            const char *yymsg;
            int yytype;
            YYSTYPE *yyvaluep;
        #endif
        {
          /* Pacify ``unused variable'' warnings.  */
          (void) yyvaluep;

          if (!yymsg)
3356        yymsg = "Deleting";
          YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);

          switch (yytype)
            {

              default:
                break;
            }
        }

 


Linea 3418

Code: Select all  Expand view

3401      #ifdef YYPARSE_PARAM
            # if defined (__STDC__) || defined (__cplusplus)
            int yyparse (void *YYPARSE_PARAM)
            # else
            int yyparse (YYPARSE_PARAM)
              void *YYPARSE_PARAM;
            # endif
            #else /* ! YYPARSE_PARAM */
            #if defined (__STDC__) || defined (__cplusplus)
            int
            yyparse (void)
            #else
            int
            yyparse ()
                ;
            #endif
            #endif
3418      {
             
              int yystate;
              int yyn;
              int yyresult;
              /* Number of tokens to shift before error messages enabled.  */
              int yyerrstatus;
              /* Look-ahead token as an internal (translated) token number.  */
              int yytoken = 0;

              /* Three stacks and their tools:
                 `yyss': related to states,
                 `yyvs': related to semantic values,
                 `yyls': related to locations.

                 Refer to the stacks thru separate pointers, to allow yyoverflow
                 to reallocate them elsewhere.  */


              /* The state stack.  */
              short int yyssa[YYINITDEPTH];
              short int *yyss = yyssa;
              short int *yyssp;

              /* The semantic value stack.  */
              YYSTYPE yyvsa[YYINITDEPTH];
              YYSTYPE *yyvs = yyvsa;
              YYSTYPE *yyvsp;



 
Ruben Dario Gonzalez
Cali-Colombia
rubendariogd@hotmail.com - rubendariogd@gmail.com
User avatar
ruben Dario
 
Posts: 1061
Joined: Thu Sep 27, 2007 3:47 pm
Location: Colombia

Re: Error al crear librerias xharbour una version vieja

Postby Antonio Linares » Wed Jun 15, 2016 5:51 am

Ruben,

Que versión de xHarbour estás intentando construir ?

Has probado a construir el siguiente build de xHarbour para ver si ese error ya se corrigió ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41366
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Error al crear librerias xharbour una version vieja

Postby ruben Dario » Wed Jun 15, 2016 2:12 pm

Antonio Linares wrote:Ruben,

Que versión de xHarbour estás intentando construir ?

Has probado a construir el siguiente build de xHarbour para ver si ese error ya se corrigió ?


Es la Version xHarbour 082, estoy usando bcc.5.5.1 a no ser que usaron un bcc Inferior a 5.5.1.
El problema esta harbour.sly harboury.c.

La unica seria probar con otro harbour.sly de otra version para ver que pasa. La otra seria Usar un Build de Otra version pero tendria que ser de la .90 o 100. creo que con los build de las ultimas versiones no funcionaria.
Ruben Dario Gonzalez
Cali-Colombia
rubendariogd@hotmail.com - rubendariogd@gmail.com
User avatar
ruben Dario
 
Posts: 1061
Joined: Thu Sep 27, 2007 3:47 pm
Location: Colombia


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 23 guests