summaryrefslogtreecommitdiffstats
path: root/scilab/modules/core
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre.ledru@scilab.org>2010-03-29 17:23:23 +0200
committerSylvestre Ledru <sylvestre.ledru@scilab.org>2010-03-29 17:23:23 +0200
commit0ed9b3690374eb18d54a66c779f9aa4dfca022b8 (patch)
tree4d112a5e7560de846ea2097aefe8546a538bde25 /scilab/modules/core
parent7f1dabb1ac506e05c7593567980efeefec40d332 (diff)
downloadscilab-0ed9b3690374eb18d54a66c779f9aa4dfca022b8.zip
scilab-0ed9b3690374eb18d54a66c779f9aa4dfca022b8.tar.gz
When stack*.h are included, trigger a warning to encourage the switch to api_scilab
Diffstat (limited to 'scilab/modules/core')
-rw-r--r--scilab/modules/core/includes/stack-c.h4
-rw-r--r--scilab/modules/core/includes/stack-def.h4
-rw-r--r--scilab/modules/core/includes/stack1.h4
-rw-r--r--scilab/modules/core/includes/stack2.h5
-rw-r--r--scilab/modules/core/includes/stack3.h5
5 files changed, 22 insertions, 0 deletions
diff --git a/scilab/modules/core/includes/stack-c.h b/scilab/modules/core/includes/stack-c.h
index 203097d..544ff4f 100644
--- a/scilab/modules/core/includes/stack-c.h
+++ b/scilab/modules/core/includes/stack-c.h
@@ -15,6 +15,10 @@
15#ifndef STACK_SCI 15#ifndef STACK_SCI
16#define STACK_SCI 16#define STACK_SCI
17 17
18#ifndef API_SCILAB_VERSION
19#pragma message("Using stack-c.h is deprecated. Please use api_scilab instead (try 'help api_scilab'). Note the stack-c.h API will be removed after Scilab 6.0.")
20#endif
21
18#include <string.h> 22#include <string.h>
19 23
20#ifdef __cplusplus 24#ifdef __cplusplus
diff --git a/scilab/modules/core/includes/stack-def.h b/scilab/modules/core/includes/stack-def.h
index f0089e2..e8ef2d0 100644
--- a/scilab/modules/core/includes/stack-def.h
+++ b/scilab/modules/core/includes/stack-def.h
@@ -15,6 +15,10 @@
15 15
16#include "machine.h" 16#include "machine.h"
17 17
18#ifndef API_SCILAB_VERSION
19#pragma message("Using stack-def.h is deprecated. Please use api_scilab instead (try 'help api_scilab'). Note the stack-def.h API will be removed after Scilab 6.0.")
20#endif
21
18#if _LCC_ & FORDLL 22#if _LCC_ & FORDLL
19#define IMPORT __declspec (dllimport) 23#define IMPORT __declspec (dllimport)
20#else 24#else
diff --git a/scilab/modules/core/includes/stack1.h b/scilab/modules/core/includes/stack1.h
index aa84c55..3b12ce4 100644
--- a/scilab/modules/core/includes/stack1.h
+++ b/scilab/modules/core/includes/stack1.h
@@ -12,6 +12,10 @@
12#ifndef STACK1_H 12#ifndef STACK1_H
13#define STACK1_H 13#define STACK1_H
14 14
15#ifndef API_SCILAB_VERSION
16#pragma message("Using stack1.h is deprecated. Please use api_scilab instead (try 'help api_scilab'). Note the stack1.h API will be removed after Scilab 6.0.")
17#endif
18
15#include "machine.h" 19#include "machine.h"
16#include "scisparse.h" /* SciSparse */ 20#include "scisparse.h" /* SciSparse */
17 21
diff --git a/scilab/modules/core/includes/stack2.h b/scilab/modules/core/includes/stack2.h
index 57c5614..f001ab7 100644
--- a/scilab/modules/core/includes/stack2.h
+++ b/scilab/modules/core/includes/stack2.h
@@ -12,6 +12,11 @@
12#ifndef STACK2_H 12#ifndef STACK2_H
13#define STACK2_H 13#define STACK2_H
14 14
15
16#ifndef API_SCILAB_VERSION
17#pragma message("Using stack2.h is deprecated. Please use api_scilab instead (try 'help api_scilab'). Note the stack2.h API will be removed after Scilab 6.0.")
18#endif
19
15#include "machine.h" 20#include "machine.h"
16 21
17/** 22/**
diff --git a/scilab/modules/core/includes/stack3.h b/scilab/modules/core/includes/stack3.h
index b0f6440..c4cb1a8 100644
--- a/scilab/modules/core/includes/stack3.h
+++ b/scilab/modules/core/includes/stack3.h
@@ -20,6 +20,11 @@
20 20
21#ifndef STACK3_H 21#ifndef STACK3_H
22#define STACK3_H 22#define STACK3_H
23
24#ifndef API_SCILAB_VERSION
25#pragma message("Using stack3.h is deprecated. Please use api_scilab instead (try 'help api_scilab'). Note the stack3.h API will be removed after Scilab 6.0.")
26#endif
27
23#include "machine.h" 28#include "machine.h"
24#include "doublecomplex.h" 29#include "doublecomplex.h"
25 30