Skip to content
Snippets Groups Projects
Commit 18220226 authored by Andrea Censi's avatar Andrea Censi
Browse files

No commit message

No commit message
parent 32517618
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ MESSAGE(STATUS "csm_link_flags = ${csm_link_flags}")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${csm_c_flags}")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ggdb")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ggdb -Wall")
# for realpath
IF("${CMAKE_SYSTEM}" MATCHES "Linux")
......@@ -176,6 +176,8 @@ TARGET_LINK_LIBRARIES(csm ${csm_link_flags})
INSTALL(TARGETS csm ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
IF(0)
INCLUDE_DIRECTORIES(/sw/include)
LINK_DIRECTORIES(/sw/lib)
......@@ -183,7 +185,7 @@ ADD_EXECUTABLE(hsm_test00 ./csm/hsm/hsm_test00.c ./csm/hsm/hsm.c)
TARGET_LINK_LIBRARIES(hsm_test00 csm-static ${csm_link_flags} pgm pnm pbm)
INSTALL(PROGRAMS hsm_test00 DESTINATION bin)
ENDIF(0)
SUBDIRS(pkg-config)
......@@ -83,7 +83,7 @@ int poly_greatest_real_root(unsigned int n, const double*a, double *root) {
gsl_poly_complex_workspace_free (w);
if(TRACE_ALGO) {
printf("Solving the equation\n a = [");
for(int i=0;i<n;i++) {
for(unsigned int i=0;i<n;i++) {
printf("%lf ", a[i]);
}
printf("]\n");
......
......@@ -20,12 +20,13 @@
#include <sys/stat.h>
#include <unistd.h>
#include <libgen.h>
#include <string.h>
#include "options.h"
#include <string.h>
void display_table(FILE*f, char**table, int rows, int columns, int padding);
#include "options.h"
const char * options_banner_string = "";
......@@ -147,7 +148,7 @@ int options_parse_stream(struct option*ops, const char*pwd, FILE*file) {
/* name continus until nonspace char */
while(!isspace(*line)) line++;
char * value;
const char * value;
if(*line == 0) value = ""; else {
*line = 0; /* terminating 0 for name */
line++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment