]> arthur.barton.de Git - netatalk.git/blobdiff - etc/spotlight/spotlight_rawquery_lexer.l
Refactoring: move forkpath computation to function scope
[netatalk.git] / etc / spotlight / spotlight_rawquery_lexer.l
index 80ce17fd7a3699455800a3c1bbec8ed0fe9ab967..aa1e25f9c70415ff18024167267933f79ab1c569 100644 (file)
@@ -9,7 +9,10 @@
 #include <gio/gio.h>
 #include <atalk/talloc.h>
 #include <atalk/spotlight.h>
+#ifdef HAVE_TRACKER_SPARQL
 #include "slmod_sparql_parser.h"
+#define SLQ_VAR ssp_slq
+#endif
 %}
 
 ASC     [a-zA-Z0-9_\*\:\-\.]
@@ -36,6 +39,6 @@ true                                  {yylval.bval = true; return BOOL;}
 \<                                    return LT;
 \>                                    return GT;
 \,                                    return COMMA;
-{UANY}+                               {yylval.sval = talloc_strdup(ssp_slq, yytext); return WORD;}
+{UANY}+                               {yylval.sval = talloc_strdup(SLQ_VAR, yytext); return WORD;}
 [ \t\n]                               /* ignore */
 %%