On Tuesday, April 8, 2014 4:55:39 AM UTC+8, [email protected] wrote:
> Status: New
> 
> Owner: ----
> 
> Labels: Type-Defect Priority-Medium
> 
> 
> 
> New issue 216 by [email protected]: Syntax error in src/ops.c after  
> 
> 7.4.242?
> 
> http://code.google.com/p/vim/issues/detail?id=216
> 
> 
> 
> Cloning the current Vim repository using:
> 
> 
> 
> hg -v clone https://vim.googlecode.com/hg/ vim
> 
> hg -v update default
> 
> 
> 
> ./configure --prefix=${DMG_SANDBOX}  
> 
> --with-compiledby="[email protected]" --enable-gui=carbon  
> 
> --enable-multibyte
> 
> 
> 
> make -j 2
> 
> 
> 
> The error is:
> 
> 
> 
> 
> 
> /Developer-old/usr/bin/gcc-4.0 -c -I. -Iproto -DHAVE_CONFIG_H  
> 
> -DFEAT_GUI_MAC -fno-common -fpascal-strings -Wall -Wno-unknown-pragmas  
> 
> -mdynamic-no-pic -pipe -I. -Iproto -I/Developer-old/Headers/FlatCarbon  
> 
> -DMACOS_X_UNIX -I/Developer/Headers/FlatCarbon  -isysroot  
> 
> /Developer-old/SDKs/MacOSX10.4u.sdk       -arch ppc -arch i386  
> 
> -mmacosx-version-min=10.4 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       -o  
> 
> objects/ops.o ops.c
> 
> /Developer-old/usr/bin/gcc-4.0 -c -I. -Iproto -DHAVE_CONFIG_H  
> 
> -DFEAT_GUI_MAC -fno-common -fpascal-strings -Wall -Wno-unknown-pragmas  
> 
> -mdynamic-no-pic -pipe -I. -Iproto -I/Developer-old/Headers/FlatCarbon  
> 
> -DMACOS_X_UNIX -I/Developer/Headers/FlatCarbon  -isysroot  
> 
> /Developer-old/SDKs/MacOSX10.4u.sdk       -arch ppc -arch i386  
> 
> -mmacosx-version-min=10.4 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       -o  
> 
> objects/option.o option.c
> 
> ops.c:6478: error: syntax error before 'str_list'
> 
> ops.c: In function 'str_to_reg':
> 
> ops.c:6484: error: declaration for parameter 'str_list' but no such  
> 
> parameter
> 
> ops.c:6483: error: declaration for parameter 'blocklen' but no such  
> 
> parameter
> 
> ops.c:6482: error: declaration for parameter 'len' but no such parameter
> 
> ops.c:6481: error: declaration for parameter 'str' but no such parameter
> 
> ops.c:6480: error: declaration for parameter 'yank_type' but no such  
> 
> parameter
> 
> ops.c:6479: error: declaration for parameter 'y_ptr' but no such parameter
> 
> ops.c:6485: error: argument 'str_list' doesn't match prototype
> 
> ops.c:116: error: prototype declaration
> 
> ops.c:6485: error: argument 'blocklen' doesn't match prototype
> 
> ops.c:116: error: prototype declaration
> 
> ops.c:6485: error: argument 'len' doesn't match prototype
> 
> ops.c:116: error: prototype declaration
> 
> ops.c:6485: error: argument 'str' doesn't match prototype
> 
> ops.c:116: error: prototype declaration
> 
> ops.c:6485: error: argument 'yank_type' doesn't match prototype
> 
> ops.c:116: error: prototype declaration
> 
> ops.c:6485: error: argument 'y_ptr' doesn't match prototype
> 
> ops.c:116: error: prototype declaration
> 
> ops.c:6478: error: syntax error before 'str_list'
> 
> ops.c: In function 'str_to_reg':
> 
> ops.c:6484: error: declaration for parameter 'str_list' but no such  
> 
> parameter
> 
> ops.c:6483: error: declaration for parameter 'blocklen' but no such  
> 
> parameter
> 
> ops.c:6482: error: declaration for parameter 'len' but no such parameter
> 
> ops.c:6481: error: declaration for parameter 'str' but no such parameter
> 
> ops.c:6480: error: declaration for parameter 'yank_type' but no such  
> 
> parameter
> 
> ops.c:6479: error: declaration for parameter 'y_ptr' but no such parameter
> 
> ops.c:6485: error: argument 'str_list' doesn't match prototype
> 
> ops.c:116: error: prototype declaration
> 
> ops.c:6485: error: argument 'blocklen' doesn't match prototype
> 
> ops.c:116: error: prototype declaration
> 
> ops.c:6485: error: argument 'len' doesn't match prototype
> 
> ops.c:116: error: prototype declaration
> 
> ops.c:6485: error: argument 'str' doesn't match prototype
> 
> ops.c:116: error: prototype declaration
> 
> ops.c:6485: error: argument 'yank_type' doesn't match prototype
> 
> ops.c:116: error: prototype declaration
> 
> ops.c:6485: error: argument 'y_ptr' doesn't match prototype
> 
> ops.c:116: error: prototype declaration
> 
> lipo: can't open input file:  
> 
> /var/folders/1y/k5d3373n09l40vl23r7v7kjm0000gn/T//ccv96FUs.out (No such  
> 
> file or directory)
> 
> make: *** [objects/ops.o] Error 1
> 
> make: *** Waiting for unfinished jobs....
> 
> 

Probably mismatch parameter name between prototype & definition?

diff --git a/src/ops.c b/src/ops.c
--- a/src/ops.c
+++ b/src/ops.c
@@ -113,7 +113,7 @@
 #endif
 static void    block_prep __ARGS((oparg_T *oap, struct block_def *, linenr_T, 
int));
 #if defined(FEAT_CLIPBOARD) || defined(FEAT_EVAL)
-static void    str_to_reg __ARGS((struct yankreg *y_ptr, int type, char_u 
*str, long len, long blocklen, int str_list));
+static void    str_to_reg __ARGS((struct yankreg *y_ptr, int yank_type, char_u 
*str, long len, long blocklen, int str_list));
 #endif
 static int     ends_in_white __ARGS((linenr_T lnum));
 #ifdef FEAT_COMMENTS

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui