diff options
author | Shashank | 2017-05-29 12:40:26 +0530 |
---|---|---|
committer | Shashank | 2017-05-29 12:40:26 +0530 |
commit | 0345245e860375a32c9a437c4a9d9cae807134e9 (patch) | |
tree | ad51ecbfa7bcd3cc5f09834f1bb8c08feaa526a4 /modules/completion/includes | |
download | scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.gz scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.bz2 scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.zip |
CMSCOPE changed
Diffstat (limited to 'modules/completion/includes')
-rwxr-xr-x | modules/completion/includes/completeLine.h | 33 | ||||
-rwxr-xr-x | modules/completion/includes/completion.h | 91 | ||||
-rwxr-xr-x | modules/completion/includes/dynlib_completion.h | 29 | ||||
-rwxr-xr-x | modules/completion/includes/getCommonPart.h | 31 | ||||
-rwxr-xr-x | modules/completion/includes/getPartLine.h | 33 | ||||
-rwxr-xr-x | modules/completion/includes/getfields.h | 34 | ||||
-rwxr-xr-x | modules/completion/includes/getfieldsdictionary.h | 26 | ||||
-rwxr-xr-x | modules/completion/includes/getmacrosdictionary.h | 23 | ||||
-rwxr-xr-x | modules/completion/includes/gw_completion.h | 24 |
9 files changed, 324 insertions, 0 deletions
diff --git a/modules/completion/includes/completeLine.h b/modules/completion/includes/completeLine.h new file mode 100755 index 000000000..fcb069a37 --- /dev/null +++ b/modules/completion/includes/completeLine.h @@ -0,0 +1,33 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) 2009 - DIGITEO - Allan CORNET +* +* This file must be used under the terms of the CeCILL. +* This source file is licensed as described in the file COPYING, which +* you should have received as part of this distribution. The terms +* are also available at +* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +* +*/ + +#ifndef __COMPLETE_LINE_H__ +#define __COMPLETE_LINE_H__ + +#include "dynlib_completion.h" +#include "BOOL.h" + + +/** +* complete line with a string +* @param[in] current line +* @param[in] string to add +* @param[in] file pattern +* @param[in] default pattern +* @param[in] string added is path or not +* @param[in] string after caret (completion with insertion) +* @return line assembled +*/ +COMPLETION_IMPEXP char *completeLine(char *currentline, char *stringToAdd, char *filePattern, + char *defaultPattern, BOOL stringToAddIsPath, char *postCaretLine); + +#endif /* __COMPLETE_LINE_H__ */ diff --git a/modules/completion/includes/completion.h b/modules/completion/includes/completion.h new file mode 100755 index 000000000..ecb45bc95 --- /dev/null +++ b/modules/completion/includes/completion.h @@ -0,0 +1,91 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2007 - INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ + +#ifndef __COMPLETION_H__ +#define __COMPLETION_H__ + +#include "dynlib_completion.h" + +/** + * completion function on all types for scilab + * @param[in] somechars first characters of a word + * @param[out] sizeArrayReturned + * @return an array of chars + */ +COMPLETION_IMPEXP char **completion(char *somechars, int *sizeArrayReturned); + +/** +* completion function on Functions for scilab +* @param[in] somechars first characters of a word +* @param[out] sizeArrayReturned +* @return an array of chars +*/ +COMPLETION_IMPEXP char **completionOnFunctions(char *somechars, int *sizeArrayReturned); + +/** +* completion function on command words for scilab +* @param[in] somechars first characters of a word +* @param[out] sizeArrayReturned +* @return an array of chars +*/ +COMPLETION_IMPEXP char **completionOnCommandWords(char *somechars, int *sizeArrayReturned); + +/** +* completion function on Macros in libraries for scilab +* @param[in] somechars first characters of a word +* @param[out] sizeArrayReturned +* @return an array of chars +*/ +COMPLETION_IMPEXP char **completionOnMacros(char *somechars, int *sizeArrayReturned); + +/** +* completion function on Variables for scilab +* @param[in] somechars first characters of a word +* @param[out] sizeArrayReturned +* @return an array of chars +*/ +COMPLETION_IMPEXP char **completionOnVariables(char *somechars, int *sizeArrayReturned); + +/** +* completion function on Variables for scilab +* Macros already defined as variables are removed +* @param[in] somechars first characters of a word +* @param[out] sizeArrayReturned +* @return an array of chars +*/ +COMPLETION_IMPEXP char **completionOnVariablesWithoutMacros(char *somechars, int *sizeArrayReturned); + +/** +* completion function on files for scilab +* @param[in] somechars first characters of a word +* @param[out] sizeArrayReturned +* @return an array of chars +*/ +COMPLETION_IMPEXP char **completionOnFiles(char *somechars, int *sizeArrayReturned); + +/** +* completion function on files for scilab +* @param[in] the line before the caret +* @param[in] the part +* @return an array of chars +*/ +COMPLETION_IMPEXP char **completionOnFields(char *lineBeforeCaret, char *pattern, int *sizeArrayReturned); + +/** +* completion handle graphics properties for scilab +* @param[in] somechars first characters of a word +* @param[out] sizeArrayReturned +* @return an array of chars +*/ +COMPLETION_IMPEXP char **completionOnHandleGraphicsProperties(char *somechars, int *sizeArrayReturned); +/*--------------------------------------------------------------------------*/ +#endif /* __COMPLETION_H__ */ diff --git a/modules/completion/includes/dynlib_completion.h b/modules/completion/includes/dynlib_completion.h new file mode 100755 index 000000000..bfad1a6d4 --- /dev/null +++ b/modules/completion/includes/dynlib_completion.h @@ -0,0 +1,29 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) DIGITEO - 2009 - Allan CORNET +* +* This file must be used under the terms of the CeCILL. +* This source file is licensed as described in the file COPYING, which +* you should have received as part of this distribution. The terms +* are also available at +* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +* +*/ + +/*--------------------------------------------------------------------------*/ +#ifndef __DYNLIB_COMPLETION_H__ +#define __DYNLIB_COMPLETION_H__ + +#ifdef _MSC_VER +#ifdef COMPLETION_EXPORTS +#define COMPLETION_IMPEXP __declspec(dllexport) +#else +#define COMPLETION_IMPEXP __declspec(dllimport) +#endif +#else +#define COMPLETION_IMPEXP +#endif + +#endif /* __DYNLIB_COMPLETION_H__ */ +/*--------------------------------------------------------------------------*/ + diff --git a/modules/completion/includes/getCommonPart.h b/modules/completion/includes/getCommonPart.h new file mode 100755 index 000000000..d6bbe6daf --- /dev/null +++ b/modules/completion/includes/getCommonPart.h @@ -0,0 +1,31 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) 2008 - DIGITEO - Allan CORNET +* +* This file must be used under the terms of the CeCILL. +* This source file is licensed as described in the file COPYING, which +* you should have received as part of this distribution. The terms +* are also available at +* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +* +*/ + +/*--------------------------------------------------------------------------*/ +#ifndef __GETCOMMONPART_H__ +#define __GETCOMMONPART_H__ + +#include "dynlib_completion.h" + +/** +* get common part of words +* example gethistory, gethistoryfile, gethist +* it will return : gethist +* @param[in] matrix of strings +* @param[in] size of array +* @return a string common part +*/ +COMPLETION_IMPEXP char *getCommonPart(char **dictionary, int sizeDictionary); + +#endif /* __GETCOMMONPART_H__ */ + +/*--------------------------------------------------------------------------*/ diff --git a/modules/completion/includes/getPartLine.h b/modules/completion/includes/getPartLine.h new file mode 100755 index 000000000..c4d962240 --- /dev/null +++ b/modules/completion/includes/getPartLine.h @@ -0,0 +1,33 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) 2008 - DIGITEO - Allan CORNET +* +* This file must be used under the terms of the CeCILL. +* This source file is licensed as described in the file COPYING, which +* you should have received as part of this distribution. The terms +* are also available at +* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +* +*/ + +#ifndef __GETPARTLINE_H__ +#define __GETPARTLINE_H__ + +#include "dynlib_completion.h" + +/** +* pre parsing current line to search with completion +* @param[in] current line +* @return word to find with completion +*/ +COMPLETION_IMPEXP char *getPartLevel(char *line); + +/** +* pre parsing current line to search with completion (file) +* @param[in] current line +* @return word to find with completion +*/ +COMPLETION_IMPEXP char *getFilePartLevel(char *line); + + +#endif /* __GETPARTLINE_H__ */ diff --git a/modules/completion/includes/getfields.h b/modules/completion/includes/getfields.h new file mode 100755 index 000000000..4e1a29722 --- /dev/null +++ b/modules/completion/includes/getfields.h @@ -0,0 +1,34 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2011 - DIGITEO - Calixte DENIZET + * Copyright (C) 2013 - Scilab Enterprises - Calixte DENIZET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ + +#ifndef __GETFIELDS_H__ +#define __GETFIELDS_H__ + +/** + * Get the fields name for a type and a mlist + * @param typeName the type name + * @param mlist the mlist address + * @return the arry of fields name + */ +const char ** getFieldsForType(const char * typeName, int * mlist, char ** fieldPath, const int fieldPathLen, int * fieldsSize); + +const char ** getFields(int * mlist, char ** fieldPath, const int fieldPathLen, int * fieldsSize); + +/** + * Initialization + */ +void initializeFieldsGetter(); + +char ** getFieldPath(const char * _str, int * len); + +#endif diff --git a/modules/completion/includes/getfieldsdictionary.h b/modules/completion/includes/getfieldsdictionary.h new file mode 100755 index 000000000..49eb53e5b --- /dev/null +++ b/modules/completion/includes/getfieldsdictionary.h @@ -0,0 +1,26 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2010 - Calixte DENIZET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ + +#ifndef __GETFIELDSDICTIONARY_H__ +#define __GETFIELDSDICTIONARY_H__ + +/** +* get fields dictionary +* @param[in] the line before the caret +* @param[in] the part +* @param[in] the returned size of the array +* @return array of strings +*/ +char **getfieldsdictionary(char *, char*, int*); + +#endif /* __GETFIELDSDICTIONARY_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/completion/includes/getmacrosdictionary.h b/modules/completion/includes/getmacrosdictionary.h new file mode 100755 index 000000000..d0297259e --- /dev/null +++ b/modules/completion/includes/getmacrosdictionary.h @@ -0,0 +1,23 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2007 - INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ +#ifndef __GETMACROSDICTIONARY_H__ +#define __GETMACROSDICTIONARY_H__ + +/** +* get scilab macros dictionary +* @param[out] size of returned array +* @return array of strings +*/ +char **getmacrosdictionary(int *sizearray); + +#endif /* __GETMACROSDICTIONARY_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/completion/includes/gw_completion.h b/modules/completion/includes/gw_completion.h new file mode 100755 index 000000000..b04a22bac --- /dev/null +++ b/modules/completion/includes/gw_completion.h @@ -0,0 +1,24 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2007 - INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ +#ifndef __GW_COMPLETION_H__ +#define __GW_COMPLETION_H__ +/*--------------------------------------------------------------------------*/ +#include "dynlib_completion.h" +/*--------------------------------------------------------------------------*/ +COMPLETION_IMPEXP int gw_completion(void); +/*--------------------------------------------------------------------------*/ +/* Declaration of all the profile function declared and */ +/* used in sci_gateway */ +COMPLETION_IMPEXP int sci_completion(char *fname, unsigned long fname_len); +/*--------------------------------------------------------------------------*/ +#endif /* __GW_COMPLETION_H__ */ + |