[Xapian-tickets] [Xapian] #826: Syntax error in conftext.cpp:105 during configure

Xapian nobody at xapian.org
Tue Apr 30 22:15:32 BST 2024


#826: Syntax error in conftext.cpp:105 during configure
--------------------------+-------------------------------
 Reporter:  Eyal R.       |             Owner:  Olly Betts
     Type:  defect        |            Status:  closed
 Priority:  normal        |         Milestone:
Component:  Build system  |           Version:  git master
 Severity:  normal        |        Resolution:  invalid
 Keywords:                |        Blocked By:
 Blocking:                |  Operating System:  Linux
--------------------------+-------------------------------
Comment (by Olly Betts):

 I had a quick dig into the extra compilation with an eye to opening a bug
 report in autoconf, but actually it's deliberate - towards the end of a
 long comment discussing the problems with other approaches there's:

 {{{
 # Then you think of using sizeof to make sure the TYPE is really
 # defined:
 #
 #         sizeof (TYPE);
 #
 # That is great, but has one drawback: it succeeds when TYPE happens
 # to be a variable: you'd get the size of the variable's type.
 # Obviously, we must not accept a variable in place of a type name.
 #
 # So, to filter out the last possibility, we will require that this fail:
 #
 #         sizeof ((TYPE));
 #
 # This evokes a syntax error when TYPE is a type, but succeeds if TYPE
 # is actually a variable.
 }}}
-- 
Ticket URL: <https://trac.xapian.org/ticket/826#comment:14>
Xapian <https://xapian.org/>
Xapian


More information about the Xapian-tickets mailing list