Skip to content

Commit bd4507a

Browse files
author
Christian Schulte
committed
4.4.0 rather than 4.3.4
git-svn-id: file:///Users/tack/GecodeGitMigration/gecode-svn-mirror/gecode/trunk@14459 e85b7adc-8362-4630-8c63-7469d557c915
1 parent 97f74e2 commit bd4507a

File tree

6 files changed

+796
-649
lines changed

6 files changed

+796
-649
lines changed

changelog.in

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
#
6868

6969
[RELEASE]
70-
Version: 4.3.4
71-
Date: 2015-01-20
70+
Version: 4.4.0
71+
Date: 2015-03-20
7272
[DESCRIPTION]
7373
Yada! Yada!
7474

@@ -78,8 +78,10 @@ What: change
7878
Rank: major
7979
[DESCRIPTION]
8080
All scripts now must call the constructor of their base class
81-
with an option argument. Note that you will have to change your
82-
models!
81+
with an option argument.
82+
83+
Note that you will have to change your models by a call to the
84+
constructor of the script class with an option argument!
8385

8486
[ENTRY]
8587
Module: driver

configure

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /bin/sh
22
# From configure.ac Id: configure.ac 14383 2015-01-26 14:46:08Z schulte .
33
# Guess values for system-dependent variables and create Makefiles.
4-
# Generated by GNU Autoconf 2.69 for GECODE 4.3.4.
4+
# Generated by GNU Autoconf 2.69 for GECODE 4.4.0.
55
#
66
# Report bugs to <[email protected]>.
77
#
@@ -581,8 +581,8 @@ MAKEFLAGS=
581581
# Identity of this package.
582582
PACKAGE_NAME='GECODE'
583583
PACKAGE_TARNAME='gecode'
584-
PACKAGE_VERSION='4.3.4'
585-
PACKAGE_STRING='GECODE 4.3.4'
584+
PACKAGE_VERSION='4.4.0'
585+
PACKAGE_STRING='GECODE 4.4.0'
586586
PACKAGE_BUGREPORT='[email protected]'
587587
PACKAGE_URL=''
588588

@@ -1377,7 +1377,7 @@ if test "$ac_init_help" = "long"; then
13771377
# Omit some internal or obsolete options to make the list less imposing.
13781378
# This message is too long to be a string in the A/UX 3.1 sh.
13791379
cat <<_ACEOF
1380-
\`configure' configures GECODE 4.3.4 to adapt to many kinds of systems.
1380+
\`configure' configures GECODE 4.4.0 to adapt to many kinds of systems.
13811381
13821382
Usage: $0 [OPTION]... [VAR=VALUE]...
13831383
@@ -1438,7 +1438,7 @@ fi
14381438

14391439
if test -n "$ac_init_help"; then
14401440
case $ac_init_help in
1441-
short | recursive ) echo "Configuration of GECODE 4.3.4:";;
1441+
short | recursive ) echo "Configuration of GECODE 4.4.0:";;
14421442
esac
14431443
cat <<\_ACEOF
14441444
@@ -1582,7 +1582,7 @@ fi
15821582
test -n "$ac_init_help" && exit $ac_status
15831583
if $ac_init_version; then
15841584
cat <<\_ACEOF
1585-
GECODE configure 4.3.4
1585+
GECODE configure 4.4.0
15861586
generated by GNU Autoconf 2.69
15871587
15881588
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2260,7 +2260,7 @@ cat >config.log <<_ACEOF
22602260
This file contains any messages produced by compilers while
22612261
running configure, to aid debugging if configure makes a mistake.
22622262
2263-
It was created by GECODE $as_me 4.3.4, which was
2263+
It was created by GECODE $as_me 4.4.0, which was
22642264
generated by GNU Autoconf 2.69. Invocation command line was
22652265
22662266
$ $0 $@
@@ -13323,7 +13323,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1332313323
# report actual input values of CONFIG_FILES etc. instead of their
1332413324
# values after options handling.
1332513325
ac_log="
13326-
This file was extended by GECODE $as_me 4.3.4, which was
13326+
This file was extended by GECODE $as_me 4.4.0, which was
1332713327
generated by GNU Autoconf 2.69. Invocation command line was
1332813328
1332913329
CONFIG_FILES = $CONFIG_FILES
@@ -13385,7 +13385,7 @@ _ACEOF
1338513385
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1338613386
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1338713387
ac_cs_version="\\
13388-
GECODE config.status 4.3.4
13388+
GECODE config.status 4.4.0
1338913389
configured by $0, generated by GNU Autoconf 2.69,
1339013390
with options \\"\$ac_cs_config\\"
1339113391

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ dnl
4141

4242
AC_REVISION([$Id$])
4343
AC_PREREQ(2.53)
44-
AC_INIT(GECODE, 4.3.4, [email protected])
44+
AC_INIT(GECODE, 4.4.0, [email protected])
4545
AC_CONFIG_HEADERS([gecode/support/config.hpp])
4646
AC_CONFIG_SRCDIR(gecode/kernel.hh)
4747

configure.ac.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dnl
3737

3838
AC_REVISION([$Id$])
3939
AC_PREREQ(2.53)
40-
AC_INIT(GECODE, 4.3.4, [email protected])
40+
AC_INIT(GECODE, 4.4.0, [email protected])
4141
AC_CONFIG_HEADERS([gecode/support/config.hpp])
4242
AC_CONFIG_SRCDIR(gecode/kernel.hh)
4343

gecode/flatzinc/lexer.yy.cpp

Lines changed: 38 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#define FLEX_SCANNER
1010
#define YY_FLEX_MAJOR_VERSION 2
1111
#define YY_FLEX_MINOR_VERSION 5
12-
#define YY_FLEX_SUBMINOR_VERSION 35
12+
#define YY_FLEX_SUBMINOR_VERSION 39
1313
#if YY_FLEX_SUBMINOR_VERSION > 0
1414
#define FLEX_BETA
1515
#endif
@@ -47,15 +47,13 @@ typedef int16_t flex_int16_t;
4747
typedef uint16_t flex_uint16_t;
4848
typedef int32_t flex_int32_t;
4949
typedef uint32_t flex_uint32_t;
50-
typedef uint64_t flex_uint64_t;
5150
#else
5251
typedef signed char flex_int8_t;
5352
typedef short int flex_int16_t;
5453
typedef int flex_int32_t;
5554
typedef unsigned char flex_uint8_t;
5655
typedef unsigned short int flex_uint16_t;
5756
typedef unsigned int flex_uint32_t;
58-
#endif /* ! C99 */
5957

6058
/* Limits of integral types. */
6159
#ifndef INT8_MIN
@@ -86,6 +84,8 @@ typedef unsigned int flex_uint32_t;
8684
#define UINT32_MAX (4294967295U)
8785
#endif
8886

87+
#endif /* ! C99 */
88+
8989
#endif /* ! FLEXINT_H */
9090

9191
#ifdef __cplusplus
@@ -189,11 +189,18 @@ typedef size_t yy_size_t;
189189
*/
190190
#define YY_LESS_LINENO(n) \
191191
do { \
192-
yy_size_t yyl;\
192+
int yyl;\
193193
for ( yyl = n; yyl < yyleng; ++yyl )\
194194
if ( yytext[yyl] == '\n' )\
195195
--yylineno;\
196196
}while(0)
197+
#define YY_LINENO_REWIND_TO(dst) \
198+
do {\
199+
const char *p;\
200+
for ( p = yy_cp-1; p >= (dst); --p)\
201+
if ( *p == '\n' )\
202+
--yylineno;\
203+
}while(0)
197204

198205
/* Return all but the first "n" matched characters back to the input stream. */
199206
#define yyless(n) \
@@ -339,7 +346,7 @@ void yyfree (void * ,yyscan_t yyscanner );
339346

340347
/* Begin user sect3 */
341348

342-
#define yywrap(n) 1
349+
#define yywrap(yyscanner) 1
343350
#define YY_SKIP_YYWRAP
344351

345352
typedef unsigned char YY_CHAR;
@@ -358,7 +365,7 @@ static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
358365
*/
359366
#define YY_DO_BEFORE_ACTION \
360367
yyg->yytext_ptr = yy_bp; \
361-
yyleng = (yy_size_t) (yy_cp - yy_bp); \
368+
yyleng = (size_t) (yy_cp - yy_bp); \
362369
yyg->yy_hold_char = *yy_cp; \
363370
*yy_cp = '\0'; \
364371
yyg->yy_c_buf_p = yy_cp;
@@ -661,7 +668,7 @@ bool parseInt(const char* text, int& value) {
661668
int yy_input_proc(char* buf, int size, yyscan_t yyscanner);
662669
#define YY_INPUT(buf, result, max_size) \
663670
result = yy_input_proc(buf, max_size, yyscanner);
664-
#line 665 "gecode/flatzinc/lexer.yy.cpp"
671+
#line 672 "gecode/flatzinc/lexer.yy.cpp"
665672

666673
#define INITIAL 0
667674

@@ -752,6 +759,10 @@ int yyget_lineno (yyscan_t yyscanner );
752759

753760
void yyset_lineno (int line_number ,yyscan_t yyscanner );
754761

762+
int yyget_column (yyscan_t yyscanner );
763+
764+
void yyset_column (int column_no ,yyscan_t yyscanner );
765+
755766
YYSTYPE * yyget_lval (yyscan_t yyscanner );
756767

757768
void yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
@@ -798,7 +809,7 @@ static int input (yyscan_t yyscanner );
798809
/* This used to be an fputs(), but since the string might contain NUL's,
799810
* we now use fwrite().
800811
*/
801-
#define ECHO fwrite( yytext, yyleng, 1, yyout )
812+
#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
802813
#endif
803814

804815
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
@@ -809,7 +820,7 @@ static int input (yyscan_t yyscanner );
809820
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
810821
{ \
811822
int c = '*'; \
812-
yy_size_t n; \
823+
size_t n; \
813824
for ( n = 0; n < max_size && \
814825
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
815826
buf[n] = (char) c; \
@@ -894,11 +905,6 @@ YY_DECL
894905
register int yy_act;
895906
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
896907

897-
#line 79 "./gecode/flatzinc/lexer.lxx"
898-
899-
900-
#line 901 "gecode/flatzinc/lexer.yy.cpp"
901-
902908
yylval = yylval_param;
903909

904910
if ( !yyg->yy_init )
@@ -927,6 +933,12 @@ YY_DECL
927933
yy_load_buffer_state(yyscanner );
928934
}
929935

936+
{
937+
#line 79 "./gecode/flatzinc/lexer.lxx"
938+
939+
940+
#line 941 "gecode/flatzinc/lexer.yy.cpp"
941+
930942
while ( 1 ) /* loops until end-of-file is reached */
931943
{
932944
yy_cp = yyg->yy_c_buf_p;
@@ -943,7 +955,7 @@ YY_DECL
943955
yy_match:
944956
do
945957
{
946-
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
958+
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
947959
if ( yy_accept[yy_current_state] )
948960
{
949961
yyg->yy_last_accepting_state = yy_current_state;
@@ -1293,7 +1305,7 @@ YY_RULE_SETUP
12931305
#line 155 "./gecode/flatzinc/lexer.lxx"
12941306
ECHO;
12951307
YY_BREAK
1296-
#line 1297 "gecode/flatzinc/lexer.yy.cpp"
1308+
#line 1309 "gecode/flatzinc/lexer.yy.cpp"
12971309
case YY_STATE_EOF(INITIAL):
12981310
yyterminate();
12991311

@@ -1424,6 +1436,7 @@ case YY_STATE_EOF(INITIAL):
14241436
"fatal flex scanner internal error--no action found" );
14251437
} /* end of action switch */
14261438
} /* end of scanning one token */
1439+
} /* end of user's declarations */
14271440
} /* end of yylex */
14281441

14291442
/* yy_get_next_buffer - try to read in a new buffer
@@ -1487,7 +1500,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
14871500
{ /* Not enough room in the buffer - grow it. */
14881501

14891502
/* just a shorter name for the current buffer */
1490-
YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
1503+
YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
14911504

14921505
int yy_c_buf_p_offset =
14931506
(int) (yyg->yy_c_buf_p - b->yy_ch_buf);
@@ -1622,6 +1635,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
16221635
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
16231636
yy_is_jam = (yy_current_state == 220);
16241637

1638+
(void)yyg;
16251639
return yy_is_jam ? 0 : yy_current_state;
16261640
}
16271641

@@ -1716,7 +1730,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
17161730
case EOB_ACT_END_OF_FILE:
17171731
{
17181732
if ( yywrap(yyscanner ) )
1719-
return 0;
1733+
return EOF;
17201734

17211735
if ( ! yyg->yy_did_buffer_switch_on_eof )
17221736
YY_NEW_FILE;
@@ -1863,10 +1877,6 @@ static void yy_load_buffer_state (yyscan_t yyscanner)
18631877
yyfree((void *) b ,yyscanner );
18641878
}
18651879

1866-
#ifndef __cplusplus
1867-
extern int isatty (int );
1868-
#endif /* __cplusplus */
1869-
18701880
/* Initializes or reinitializes a buffer.
18711881
* This function is sometimes called more than once on the same buffer,
18721882
* such as during a yyrestart() or at EOF.
@@ -2076,16 +2086,17 @@ YY_BUFFER_STATE yy_scan_string (yyconst char * yystr , yyscan_t yyscanner)
20762086

20772087
/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
20782088
* scan from a @e copy of @a bytes.
2079-
* @param bytes the byte buffer to scan
2080-
* @param len the number of bytes in the buffer pointed to by @a bytes.
2089+
* @param yybytes the byte buffer to scan
2090+
* @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
20812091
* @param yyscanner The scanner object.
20822092
* @return the newly allocated buffer state object.
20832093
*/
20842094
YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len , yyscan_t yyscanner)
20852095
{
20862096
YY_BUFFER_STATE b;
20872097
char *buf;
2088-
yy_size_t n, i;
2098+
yy_size_t n;
2099+
yy_size_t i;
20892100

20902101
/* Get memory for full buffer, including space for trailing EOB's. */
20912102
n = _yybytes_len + 2;
@@ -2231,7 +2242,7 @@ void yyset_lineno (int line_number , yyscan_t yyscanner)
22312242

22322243
/* lineno is only valid if an input buffer exists. */
22332244
if (! YY_CURRENT_BUFFER )
2234-
yy_fatal_error( "yyset_lineno called with no buffer" , yyscanner);
2245+
YY_FATAL_ERROR( "yyset_lineno called with no buffer" );
22352246

22362247
yylineno = line_number;
22372248
}
@@ -2246,7 +2257,7 @@ void yyset_column (int column_no , yyscan_t yyscanner)
22462257

22472258
/* column is only valid if an input buffer exists. */
22482259
if (! YY_CURRENT_BUFFER )
2249-
yy_fatal_error( "yyset_column called with no buffer" , yyscanner);
2260+
YY_FATAL_ERROR( "yyset_column called with no buffer" );
22502261

22512262
yycolumn = column_no;
22522263
}

0 commit comments

Comments
 (0)