Go to the source code of this file.
◆ TESTING
◆ main()
Definition at line 181 of file rljson.cpp.
183 printf(
"Test rljson begin:\n");
187 printf(
"rljson.initRecord ret=%d\n", ret);
201 printf(
"optColon=%d\n", record.
optColon);
204 printf(
"optComma=%d\n", record.
optComma);
205 printf(
"optParamType=%d (0=default=text 1=integer 2=float)\n", record.
optParamType);
207 rljson.
print(stdout,&record);
208 printf(
"rljson.print ret=%d\n", ret);
210 FILE *fin = fopen(
"/home/lehrig/temp/json1.txt",
"r");
213 printf(
"could not open /home/lehrig/temp/json1.txt\n");
218 while(fgets(line,1023,fin) != NULL)
220 printf(
"json1.txt: %s", line);
222 printf(
"DEBUG: text=%s param=%s withText=%d\n" 223 "startsWith: openBracket=%d closeBracket=%d endArray=%d\n" 224 "opt: colon=%d openBracket=%d beginArray=%d paramType=%d comma=%d\n",
int print(FILE *fout, rlJSONrecord *record, const char *indent="")
int interpret(const char *line, rlJSONrecord *record)
int startsWithOpenBracket
int setText(const char *text)
int startsWithCloseBracket
int initRecord(rlJSONrecord *record)