SCM

SCM Repository

[matrix] Diff of /pkg/src/Mutils.h
ViewVC logotype

Diff of /pkg/src/Mutils.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2045, Tue Aug 14 13:07:10 2007 UTC revision 2113, Mon Feb 18 08:27:41 2008 UTC
# Line 5  Line 5 
5  extern "C" {  extern "C" {
6  #endif  #endif
7    
8  #include <Rdefines.h> /* Rinternals.h + GET_SLOT etc */  #include <ctype.h>
9  #include <R.h>  /* includes Rconfig.h */  #include <R.h>  /* includes Rconfig.h */
10    #include <Rdefines.h> /* Rinternals.h + GET_SLOT etc */
11    
12  #ifdef ENABLE_NLS  #ifdef ENABLE_NLS
13  #include <libintl.h>  #include <libintl.h>
# Line 18  Line 19 
19  #ifdef __GNUC__  #ifdef __GNUC__
20  # undef alloca  # undef alloca
21  # define alloca(x) __builtin_alloca((x))  # define alloca(x) __builtin_alloca((x))
22    #else
23    /* this is necessary (and sufficient) for Solaris 10: */
24    #ifdef __sun
25    # include <alloca.h>
26    #endif
27  #endif  #endif
28    
29  #define Alloca(n, t)   (t *) alloca( (size_t) ( (n) * sizeof(t) ) )  #define Alloca(n, t)   (t *) alloca( (size_t) ( (n) * sizeof(t) ) )
# Line 58  Line 64 
64  /* SEXP csc_check_column_sorting(SEXP A); */  /* SEXP csc_check_column_sorting(SEXP A); */
65  SEXP Matrix_make_named(int TYP, char **names);  SEXP Matrix_make_named(int TYP, char **names);
66  SEXP check_scalar_string(SEXP sP, char *vals, char *nm);  SEXP check_scalar_string(SEXP sP, char *vals, char *nm);
67    Rboolean equal_string_vectors(SEXP s1, SEXP s2);
68    
69  void d_packed_getDiag(double *dest, SEXP x, int n);  void d_packed_getDiag(double *dest, SEXP x, int n);
70  void l_packed_getDiag(   int *dest, SEXP x, int n);  void l_packed_getDiag(   int *dest, SEXP x, int n);
71  void tr_d_packed_getDiag(double *dest, SEXP x);  void tr_d_packed_getDiag(double *dest, SEXP x);
# Line 211  Line 219 
219   * Return the 0-based index of a string match in a vector of strings   * Return the 0-based index of a string match in a vector of strings
220   * terminated by an empty string.  Returns -1 for no match.   * terminated by an empty string.  Returns -1 for no match.
221   *   *
222   * @param dest class string to match   * @param class string to match
223   * @param valid vector of possible matches terminated by an empty string   * @param valid vector of possible matches terminated by an empty string
224   *   *
225   * @return index of match or -1 for no match   * @return index of match or -1 for no match

Legend:
Removed from v.2045  
changed lines
  Added in v.2113

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business Powered By FusionForge