Fossil

Diff
Login

Differences From Artifact [19fa9554aa]:

To Artifact [c35567dc16]:


1035
1036
1037
1038
1039
1040
1041

1042
1043
1044
1045
1046
1047
1048
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049







+







}

/*
** Register the built-in th1 language commands with interpreter interp.
** Usually this is called soon after interpreter creation.
*/
int th_register_language(Th_Interp *interp){
  int rc;
  /* Array of built-in commands. */
  struct Th_Command_Reg aCommand[] = {
    {"catch",    catch_command,   0},
    {"expr",     expr_command,    0},
    {"for",      for_command,     0},
    {"if",       if_command,      0},
    {"info",     info_command,    0},
1062
1063
1064
1065
1066
1067
1068
1069





1070
1063
1064
1065
1066
1067
1068
1069

1070
1071
1072
1073
1074
1075







-
+
+
+
+
+

    {"return",   return_command, 0},
    {"break",    simple_command, (void *)TH_BREAK}, 
    {"continue", simple_command, (void *)TH_CONTINUE}, 
    {"error",    simple_command, (void *)TH_ERROR}, 

    {0, 0, 0}
  };
  return Th_register_commands(interp, aCommand);
  rc = Th_register_commands(interp, aCommand);
#ifdef TH_USE_OUTBUF
  rc |= th_register_ob(interp);
#endif
  return rc;
}