[LON-CAPA-cvs] cvs: loncom /homework/caparesponse capa.i caparesponse.h
raeburn
raeburn at source.lon-capa.org
Sun Apr 28 22:49:44 EDT 2024
raeburn Mon Apr 29 02:49:44 2024 EDT
Added files:
/loncom/homework/caparesponse caparesponse.h
Modified files:
/loncom/homework/caparesponse capa.i
Log:
- Eliminate "Incompatible-pointer-types" error in capa_wrap.c compilation
and "implicit-function-declaration" warning in caparesponse.c building
capa.so on Fedora 40.
Index: loncom/homework/caparesponse/capa.i
diff -u loncom/homework/caparesponse/capa.i:1.7 loncom/homework/caparesponse/capa.i:1.8
--- loncom/homework/caparesponse/capa.i:1.7 Wed Apr 24 21:11:49 2024
+++ loncom/homework/caparesponse/capa.i Mon Apr 29 02:49:43 2024
@@ -1,11 +1,11 @@
%module capa
%{
-
+#include "caparesponse.h"
%}
%typemap(in) char** reterror (char* cvalue) {
SV* tempsv;
- int len;
+ int unsigned int len;
if (!SvROK($input)) {
croak("expected a reference\n");
}
Index: loncom/homework/caparesponse/caparesponse.h
+++ loncom/homework/caparesponse/caparesponse.h
#ifndef CAPARESPONSE_H
#define CAPARESPONSE_H
extern int caparesponse_capa_check_answer(char *response,char *correct,
int type,int tol_type,double tolerance,
int sig_lbound,int sig_ubound,
char *ans_fmt, char *unit_str,
int calc, char *id_list, char *pts_list,
char *rndseed, char** reterror);
extern int caparesponse_get_real_response(char* unit_str, char* answer,
double* scaled);
#endif
More information about the LON-CAPA-cvs
mailing list