Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > VSs > VSs__Hello_World__LangDev
comparison main.c @ 1:9ad1a6186956
First shot at application-interface
| author | Some Random Person <seanhalle@yahoo.com> |
|---|---|
| date | Wed, 23 May 2012 14:24:18 -0700 |
| parents | 9cf4c84a3091 |
| children | 6643a6f47050 |
comparison
equal
deleted
inserted
replaced
| 0:35200dbc7d2c | 1:6c10e7a96764 |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright Oct 24, 2009 OpenSourceStewardshipFoundation.org | 2 * Copyright 20012 OpenSourceResearchInstitute.org |
| 3 * Licensed under GNU General Public License version 2 | 3 * Licensed under GNU General Public License version 2 |
| 4 * | 4 * |
| 5 * author seanhalle@yahoo.com | 5 * author seanhalle@yahoo.com |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include <malloc.h> | 8 #include <malloc.h> |
| 9 #include <stdlib.h> | 9 #include <stdlib.h> |
| 10 | 10 |
| 11 #include "Matrix_Mult.h" | 11 #include "VSs__Hello_World/VSs__Hello_World.h" |
| 12 #include "SSR_Matrix_Mult/SSR_Matrix_Mult.h" | |
| 13 | 12 |
| 14 /** | 13 /** |
| 15 * | 14 * |
| 16 */ | 15 */ |
| 17 int main( int argc, char **argv ) | 16 int main( int argc, char **argv ) |
| 18 { Matrix *leftMatrix, *rightMatrix, *resultMatrix; | 17 { |
| 19 ParamBag *paramBag; | |
| 20 | 18 |
| 21 DEBUG__printf2(TRUE, "arguments: %s | %s", argv[0], argv[1] ); | 19 DEBUG__printf2(TRUE, "arguments: %s | %s", argv[0], argv[1] ); |
| 22 | |
| 23 paramBag = makeParamBag(); | |
| 24 readParamFileIntoBag( argv[1], paramBag ); | |
| 25 initialize_Input_Matrices_Via( &leftMatrix, &rightMatrix, paramBag ); | |
| 26 | 20 |
| 27 resultMatrix = multiplyTheseMatrices( leftMatrix, rightMatrix ); | 21 VSs__Hello_World( ); |
| 28 | |
| 29 printf("\nresult matrix: \n"); | |
| 30 printMatrix( resultMatrix ); | |
| 31 | |
| 32 fflush(stdin); | |
| 33 | 22 |
| 34 exit(0); //cleans up | 23 exit(0); //cleans up |
| 35 } | 24 } |
