17 #include "grammarGenerator.h"
19 #include "stringManipulate.h"
25 static int compareLn(
const void* lnRow1,
const void* lnRow2);
26 static int compareUri(
const void* uriRow1,
const void* uriRow2);
31 static void sortUriTable(
UriTable* uriTable);
39 unsigned int treeTCount = bufCount;
51 for(i = 0; i < bufCount; i++)
58 for(i = 0; i < bufCount; i++)
65 #if DEBUG_GRAMMAR_GEN == ON && EXIP_DEBUG_LEVEL == INFO
68 for(i = 0; i < treeTCount; i++)
71 for(j = 0; j < treeT[i].
count; j++)
105 for(i = 0; i < treeTCount; i++)
113 #if DEBUG_GRAMMAR_GEN == ON && EXIP_DEBUG_LEVEL == INFO
117 for(i = 0; i < treeTCount; i++)
120 for(j = 0; j < treeT[i].
count; j++)
132 for(i = 0; i < treeTCount; i++)
138 for(i = 0; i < substituteTbl.
count; i++)
171 static int compareLn(
const void* lnRow1,
const void* lnRow2)
179 static int compareUri(
const void* uriRow1,
const void* uriRow2)
187 static void sortUriTable(
UriTable* uriTable)
193 for (i = 0; i < uriTable->
count; i++)
195 unsigned int initialEntries = 0;
224 qsort(&uriTable->
uri[4], uriTable->
count - 4,
sizeof(
UriEntry), compareUri);